@servicetitan/hammer-token 1.3.4 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +34 -20
- package/build/web/core/primitive-variables.scss +2 -0
- package/build/web/core/primitive.scss +2 -2
- package/build/web/core/semantic-variables.scss +3 -0
- package/build/web/core/semantic.scss +3 -3
- package/config.js +4 -2
- package/package.json +9 -10
- package/.turbo/turbo-lint.log +0 -4
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @servicetitan/hammer-token
|
|
2
|
+
|
|
3
|
+
## 1.3.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#913](https://github.com/servicetitan/hammer/pull/913) [`3246da5`](https://github.com/servicetitan/hammer/commit/3246da57b0b41ad823acf6c45fa4bea0fe8fca84) Thanks [@tounsoo](https://github.com/tounsoo)! - Fix font family base not using CSS variables
|
|
8
|
+
|
|
9
|
+
## 1.3.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#889](https://github.com/servicetitan/hammer/pull/889) [`56f1e97`](https://github.com/servicetitan/hammer/commit/56f1e97b15cb203e0a004fed2eb6bdb91a9917cf) Thanks [@w-a-t-s-o-n](https://github.com/w-a-t-s-o-n)! - Updating CHANGELOG headings to match Changesets
|
|
14
|
+
|
|
15
|
+
## v1.3.4 (Sat Nov 02 2024)
|
|
2
16
|
|
|
3
17
|
#### 🐛 Bug Fix
|
|
4
18
|
|
|
@@ -12,7 +26,7 @@
|
|
|
12
26
|
|
|
13
27
|
---
|
|
14
28
|
|
|
15
|
-
|
|
29
|
+
## v1.3.3 (Tue Oct 29 2024)
|
|
16
30
|
|
|
17
31
|
#### 🐛 Bug Fix
|
|
18
32
|
|
|
@@ -24,7 +38,7 @@
|
|
|
24
38
|
|
|
25
39
|
---
|
|
26
40
|
|
|
27
|
-
|
|
41
|
+
## v1.3.2 (Mon Oct 28 2024)
|
|
28
42
|
|
|
29
43
|
#### 🐛 Bug Fix
|
|
30
44
|
|
|
@@ -36,7 +50,7 @@
|
|
|
36
50
|
|
|
37
51
|
---
|
|
38
52
|
|
|
39
|
-
|
|
53
|
+
## v1.3.1 (Mon Oct 28 2024)
|
|
40
54
|
|
|
41
55
|
#### 📝 Documentation
|
|
42
56
|
|
|
@@ -48,7 +62,7 @@
|
|
|
48
62
|
|
|
49
63
|
---
|
|
50
64
|
|
|
51
|
-
|
|
65
|
+
## v1.3.0 (Fri Oct 25 2024)
|
|
52
66
|
|
|
53
67
|
#### ✨ New Feature
|
|
54
68
|
|
|
@@ -60,7 +74,7 @@
|
|
|
60
74
|
|
|
61
75
|
---
|
|
62
76
|
|
|
63
|
-
|
|
77
|
+
## v1.2.0 (Wed Aug 14 2024)
|
|
64
78
|
|
|
65
79
|
#### 🏠 Internal
|
|
66
80
|
|
|
@@ -72,7 +86,7 @@
|
|
|
72
86
|
|
|
73
87
|
---
|
|
74
88
|
|
|
75
|
-
|
|
89
|
+
## v1.1.2 (Mon Jul 15 2024)
|
|
76
90
|
|
|
77
91
|
#### 🏠 Internal
|
|
78
92
|
|
|
@@ -84,7 +98,7 @@
|
|
|
84
98
|
|
|
85
99
|
---
|
|
86
100
|
|
|
87
|
-
|
|
101
|
+
## v1.1.1 (Thu Jul 11 2024)
|
|
88
102
|
|
|
89
103
|
#### 📝 Dependencies
|
|
90
104
|
|
|
@@ -97,7 +111,7 @@
|
|
|
97
111
|
|
|
98
112
|
---
|
|
99
113
|
|
|
100
|
-
|
|
114
|
+
## v1.1.0 (Wed Jul 10 2024)
|
|
101
115
|
|
|
102
116
|
#### 🚀 Enhancement
|
|
103
117
|
|
|
@@ -109,7 +123,7 @@
|
|
|
109
123
|
|
|
110
124
|
---
|
|
111
125
|
|
|
112
|
-
|
|
126
|
+
## v1.0.0 (Mon Jun 03 2024)
|
|
113
127
|
|
|
114
128
|
#### 🏠 Internal
|
|
115
129
|
|
|
@@ -121,7 +135,7 @@
|
|
|
121
135
|
|
|
122
136
|
---
|
|
123
137
|
|
|
124
|
-
|
|
138
|
+
## v0.7.0 (Mon Jun 03 2024)
|
|
125
139
|
|
|
126
140
|
#### 🐛 Bug Fix
|
|
127
141
|
|
|
@@ -133,7 +147,7 @@
|
|
|
133
147
|
|
|
134
148
|
---
|
|
135
149
|
|
|
136
|
-
|
|
150
|
+
## v0.6.0 (Fri May 31 2024)
|
|
137
151
|
|
|
138
152
|
#### ✨ New Feature
|
|
139
153
|
|
|
@@ -145,7 +159,7 @@
|
|
|
145
159
|
|
|
146
160
|
---
|
|
147
161
|
|
|
148
|
-
|
|
162
|
+
## v0.5.2 (Fri May 03 2024)
|
|
149
163
|
|
|
150
164
|
#### 🏠 Internal
|
|
151
165
|
|
|
@@ -157,7 +171,7 @@
|
|
|
157
171
|
|
|
158
172
|
---
|
|
159
173
|
|
|
160
|
-
|
|
174
|
+
## v0.5.1 (Thu Apr 18 2024)
|
|
161
175
|
|
|
162
176
|
#### 🐛 Bug Fix
|
|
163
177
|
|
|
@@ -169,7 +183,7 @@
|
|
|
169
183
|
|
|
170
184
|
---
|
|
171
185
|
|
|
172
|
-
|
|
186
|
+
## v0.5.0 (Fri Apr 12 2024)
|
|
173
187
|
|
|
174
188
|
#### ✨ New Feature
|
|
175
189
|
|
|
@@ -181,7 +195,7 @@
|
|
|
181
195
|
|
|
182
196
|
---
|
|
183
197
|
|
|
184
|
-
|
|
198
|
+
## v0.4.0 (Fri Mar 29 2024)
|
|
185
199
|
|
|
186
200
|
#### 🏠 Internal
|
|
187
201
|
|
|
@@ -193,7 +207,7 @@
|
|
|
193
207
|
|
|
194
208
|
---
|
|
195
209
|
|
|
196
|
-
|
|
210
|
+
## v0.3.0 (Mon Mar 18 2024)
|
|
197
211
|
|
|
198
212
|
:tada: This release contains work from a new contributor! :tada:
|
|
199
213
|
|
|
@@ -216,7 +230,7 @@ Thank you, Derek Watson ([@w-a-t-s-o-n](https://github.com/w-a-t-s-o-n)), for al
|
|
|
216
230
|
|
|
217
231
|
---
|
|
218
232
|
|
|
219
|
-
|
|
233
|
+
## v0.2.0 (Fri Jan 26 2024)
|
|
220
234
|
|
|
221
235
|
#### 🐛 Bug Fix
|
|
222
236
|
|
|
@@ -237,7 +251,7 @@ Thank you, Derek Watson ([@w-a-t-s-o-n](https://github.com/w-a-t-s-o-n)), for al
|
|
|
237
251
|
|
|
238
252
|
---
|
|
239
253
|
|
|
240
|
-
|
|
254
|
+
## v0.1.0 (Sat Dec 16 2023)
|
|
241
255
|
|
|
242
256
|
:tada: This release contains work from new contributors! :tada:
|
|
243
257
|
|
|
@@ -282,7 +296,7 @@ Thanks for all your work!
|
|
|
282
296
|
|
|
283
297
|
---
|
|
284
298
|
|
|
285
|
-
|
|
299
|
+
## v0.1.0 (Thu Sep 14 2023)
|
|
286
300
|
|
|
287
301
|
:tada: This release contains work from new contributors! :tada:
|
|
288
302
|
|
|
@@ -77,6 +77,8 @@ $token: (
|
|
|
77
77
|
duration-instant: 0ms,
|
|
78
78
|
duration-fast: 100ms,
|
|
79
79
|
duration-slow: 300ms,
|
|
80
|
+
font-family-base: "'Nunito Sans', sans-serif",
|
|
81
|
+
font-family-display: "'Sofia Pro', SofiaPro, sans-serif",
|
|
80
82
|
font-line-height-base: 1.5,
|
|
81
83
|
font-line-height-display: 1.25,
|
|
82
84
|
font-weight-normal: 400,
|
|
@@ -76,8 +76,8 @@ $duration: 200ms;
|
|
|
76
76
|
$duration-instant: 0ms;
|
|
77
77
|
$duration-fast: 100ms;
|
|
78
78
|
$duration-slow: 300ms;
|
|
79
|
-
$font-family-base: 'Nunito Sans', sans-serif;
|
|
80
|
-
$font-family-display: 'Sofia Pro', SofiaPro, sans-serif;
|
|
79
|
+
$font-family-base: var(--font-family-base, 'Nunito Sans', sans-serif);
|
|
80
|
+
$font-family-display: var(--font-family-display, 'Sofia Pro', SofiaPro, sans-serif);
|
|
81
81
|
$font-line-height-base: 1.5;
|
|
82
82
|
$font-line-height-display: 1.25;
|
|
83
83
|
$font-weight-normal: 400;
|
|
@@ -107,16 +107,19 @@ $nonColor: (
|
|
|
107
107
|
typography-paragraph-size-large: 1.25rem,
|
|
108
108
|
typography-paragraph-size-xlarge: 1.5rem,
|
|
109
109
|
typography-paragraph-font-weight: 400,
|
|
110
|
+
typography-paragraph-font-family: "'Nunito Sans', sans-serif",
|
|
110
111
|
typography-heading-size-xsmall: 0.875rem,
|
|
111
112
|
typography-heading-size-small: 1rem,
|
|
112
113
|
typography-heading-size: 1.25rem,
|
|
113
114
|
typography-heading-size-large: 1.5rem,
|
|
114
115
|
typography-heading-size-xlarge: 2rem,
|
|
115
116
|
typography-heading-font-weight: 700,
|
|
117
|
+
typography-heading-font-family: "'Sofia Pro', SofiaPro, sans-serif",
|
|
116
118
|
typography-label-size-xsmall: 0.625rem,
|
|
117
119
|
typography-label-size-small: 0.75rem,
|
|
118
120
|
typography-label-size: 0.875rem,
|
|
119
121
|
typography-label-size-large: 1rem,
|
|
120
122
|
typography-label-size-xlarge: 1.25rem,
|
|
121
123
|
typography-label-font-weight: 600,
|
|
124
|
+
typography-label-font-family: "'Nunito Sans', sans-serif",
|
|
122
125
|
);
|
|
@@ -59,18 +59,18 @@ $typography-paragraph-size: 1rem;
|
|
|
59
59
|
$typography-paragraph-size-large: 1.25rem;
|
|
60
60
|
$typography-paragraph-size-xlarge: 1.5rem;
|
|
61
61
|
$typography-paragraph-font-weight: 400;
|
|
62
|
-
$typography-paragraph-font-family: 'Nunito Sans', sans-serif;
|
|
62
|
+
$typography-paragraph-font-family: var(--typography-paragraph-font-family, 'Nunito Sans', sans-serif);
|
|
63
63
|
$typography-heading-size-xsmall: 0.875rem;
|
|
64
64
|
$typography-heading-size-small: 1rem;
|
|
65
65
|
$typography-heading-size: 1.25rem;
|
|
66
66
|
$typography-heading-size-large: 1.5rem;
|
|
67
67
|
$typography-heading-size-xlarge: 2rem;
|
|
68
68
|
$typography-heading-font-weight: 700;
|
|
69
|
-
$typography-heading-font-family: 'Sofia Pro', SofiaPro, sans-serif;
|
|
69
|
+
$typography-heading-font-family: var(--typography-heading-font-family, 'Sofia Pro', SofiaPro, sans-serif);
|
|
70
70
|
$typography-label-size-xsmall: 0.625rem;
|
|
71
71
|
$typography-label-size-small: 0.75rem;
|
|
72
72
|
$typography-label-size: 0.875rem;
|
|
73
73
|
$typography-label-size-large: 1rem;
|
|
74
74
|
$typography-label-size-xlarge: 1.25rem;
|
|
75
75
|
$typography-label-font-weight: 600;
|
|
76
|
-
$typography-label-font-family: 'Nunito Sans', sans-serif;
|
|
76
|
+
$typography-label-font-family: var(--typography-label-font-family, 'Nunito Sans', sans-serif);
|
package/config.js
CHANGED
|
@@ -17,6 +17,8 @@ StyleDictionary.registerFormat({
|
|
|
17
17
|
.map((token) => {
|
|
18
18
|
let value = token.value;
|
|
19
19
|
let name = `${token.name.replace("-default", "")}`;
|
|
20
|
+
if (token.name.includes("font-family"))
|
|
21
|
+
return `$${name}: var(--${name}, ${value});`;
|
|
20
22
|
if (token.attributes.appearance) {
|
|
21
23
|
return `$${name}: var(--${name}, ${value});`;
|
|
22
24
|
}
|
|
@@ -82,12 +84,12 @@ StyleDictionary.registerFormat({
|
|
|
82
84
|
isColor = false;
|
|
83
85
|
}
|
|
84
86
|
});
|
|
85
|
-
if (token.name.includes("font-family")) return false;
|
|
86
87
|
return !isColor;
|
|
87
88
|
})
|
|
88
89
|
.map((token) => {
|
|
89
90
|
let value = token.value;
|
|
90
91
|
let name = `${token.name.replace("-default", "")}`;
|
|
92
|
+
if (token.name.includes("font-family")) return ` ${name}: "${value}",`;
|
|
91
93
|
return ` ${name}: ${value},`;
|
|
92
94
|
})
|
|
93
95
|
.join(`\n`);
|
|
@@ -110,10 +112,10 @@ StyleDictionary.registerFormat({
|
|
|
110
112
|
name: `custom/primitive-variables`,
|
|
111
113
|
formatter: function ({ dictionary }) {
|
|
112
114
|
const vars = dictionary.allTokens
|
|
113
|
-
.filter((token) => !token.name.includes("font-family"))
|
|
114
115
|
.map((token) => {
|
|
115
116
|
let value = token.value;
|
|
116
117
|
let name = `${token.name.replace("-default", "")}`;
|
|
118
|
+
if (token.name.includes("font-family")) return ` ${name}: "${value}",`;
|
|
117
119
|
return ` ${name}: ${value},`;
|
|
118
120
|
})
|
|
119
121
|
.join(`\n`);
|
package/package.json
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/hammer-token",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/web/index.js",
|
|
6
6
|
"types": "build/web/index.d.ts",
|
|
7
7
|
"bin": {
|
|
8
8
|
"hammer-token": "./src/utils/copy-css-utils-cli.js"
|
|
9
9
|
},
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "node ./config.js",
|
|
12
|
-
"dev": "pnpm build && chokidar \"./src\" -c \"pnpm build\"",
|
|
13
|
-
"clean": "rimraf build .turbo",
|
|
14
|
-
"lint": "eslint",
|
|
15
|
-
"nuke": "pnpm clean && rimraf node_modules"
|
|
16
|
-
},
|
|
17
10
|
"optionalDependencies": {
|
|
18
11
|
"commander": "^12.1.0"
|
|
19
12
|
},
|
|
@@ -21,5 +14,11 @@
|
|
|
21
14
|
"fs-extra": "^11.2.0",
|
|
22
15
|
"style-dictionary": "^3"
|
|
23
16
|
},
|
|
24
|
-
"
|
|
25
|
-
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "node ./config.js",
|
|
19
|
+
"dev": "pnpm build && chokidar \"./src\" -c \"pnpm build\"",
|
|
20
|
+
"clean": "rimraf build .turbo",
|
|
21
|
+
"lint": "eslint",
|
|
22
|
+
"nuke": "pnpm clean && rimraf node_modules"
|
|
23
|
+
}
|
|
24
|
+
}
|
package/.turbo/turbo-lint.log
DELETED