@phcdevworks/spectre-tokens 4.16.0 → 4.17.0
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/README.md +50 -2
- package/dist/index.cjs +140 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +91 -14
- package/dist/index.d.cts +92 -0
- package/dist/index.d.ts +92 -0
- package/dist/index.js +140 -18
- package/dist/index.js.map +1 -1
- package/dist/tokens.dtcg.json +286 -14
- package/package.json +2 -2
- package/tokens/modes.json +16 -0
- package/tokens/palette.json +26 -0
- package/tokens/primitives.json +2 -1
- package/tokens/semantic-roles.json +53 -0
- package/tokens/typography.json +17 -15
package/tokens/typography.json
CHANGED
|
@@ -83,7 +83,9 @@
|
|
|
83
83
|
"families": {
|
|
84
84
|
"sans": "system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif",
|
|
85
85
|
"serif": "'Times New Roman', Times, serif",
|
|
86
|
-
"mono": "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace"
|
|
86
|
+
"mono": "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace",
|
|
87
|
+
"heading": "{typography.families.sans}",
|
|
88
|
+
"body": "{typography.families.sans}"
|
|
87
89
|
},
|
|
88
90
|
"scale": {
|
|
89
91
|
"xs": {
|
|
@@ -167,42 +169,42 @@
|
|
|
167
169
|
},
|
|
168
170
|
"heading": {
|
|
169
171
|
"h1": {
|
|
170
|
-
"fontFamily": "{typography.families.
|
|
172
|
+
"fontFamily": "{typography.families.heading}",
|
|
171
173
|
"fontSize": "{typography.scale.4xl.fontSize}",
|
|
172
174
|
"lineHeight": "{typography.scale.4xl.lineHeight}",
|
|
173
175
|
"fontWeight": 800,
|
|
174
176
|
"letterSpacing": "{typography.scale.4xl.letterSpacing}"
|
|
175
177
|
},
|
|
176
178
|
"h2": {
|
|
177
|
-
"fontFamily": "{typography.families.
|
|
179
|
+
"fontFamily": "{typography.families.heading}",
|
|
178
180
|
"fontSize": "{typography.scale.3xl.fontSize}",
|
|
179
181
|
"lineHeight": "{typography.scale.3xl.lineHeight}",
|
|
180
182
|
"fontWeight": 700,
|
|
181
183
|
"letterSpacing": "{typography.scale.3xl.letterSpacing}"
|
|
182
184
|
},
|
|
183
185
|
"h3": {
|
|
184
|
-
"fontFamily": "{typography.families.
|
|
186
|
+
"fontFamily": "{typography.families.heading}",
|
|
185
187
|
"fontSize": "{typography.scale.2xl.fontSize}",
|
|
186
188
|
"lineHeight": "{typography.scale.2xl.lineHeight}",
|
|
187
189
|
"fontWeight": 700,
|
|
188
190
|
"letterSpacing": "{typography.scale.2xl.letterSpacing}"
|
|
189
191
|
},
|
|
190
192
|
"h4": {
|
|
191
|
-
"fontFamily": "{typography.families.
|
|
193
|
+
"fontFamily": "{typography.families.heading}",
|
|
192
194
|
"fontSize": "{typography.scale.xl.fontSize}",
|
|
193
195
|
"lineHeight": "{typography.scale.xl.lineHeight}",
|
|
194
196
|
"fontWeight": 600,
|
|
195
197
|
"letterSpacing": "{typography.scale.xl.letterSpacing}"
|
|
196
198
|
},
|
|
197
199
|
"h5": {
|
|
198
|
-
"fontFamily": "{typography.families.
|
|
200
|
+
"fontFamily": "{typography.families.heading}",
|
|
199
201
|
"fontSize": "{typography.scale.xl.fontSize}",
|
|
200
202
|
"lineHeight": "{typography.scale.xl.lineHeight}",
|
|
201
203
|
"fontWeight": 600,
|
|
202
204
|
"letterSpacing": "{typography.scale.xl.letterSpacing}"
|
|
203
205
|
},
|
|
204
206
|
"h6": {
|
|
205
|
-
"fontFamily": "{typography.families.
|
|
207
|
+
"fontFamily": "{typography.families.heading}",
|
|
206
208
|
"fontSize": "{typography.scale.xl.fontSize}",
|
|
207
209
|
"lineHeight": "{typography.scale.xl.lineHeight}",
|
|
208
210
|
"fontWeight": 600,
|
|
@@ -210,7 +212,7 @@
|
|
|
210
212
|
}
|
|
211
213
|
},
|
|
212
214
|
"body": {
|
|
213
|
-
"fontFamily": "{typography.families.
|
|
215
|
+
"fontFamily": "{typography.families.body}",
|
|
214
216
|
"fontSize": "{typography.scale.md.fontSize}",
|
|
215
217
|
"lineHeight": "{typography.scale.md.lineHeight}",
|
|
216
218
|
"fontWeight": 400,
|
|
@@ -218,42 +220,42 @@
|
|
|
218
220
|
},
|
|
219
221
|
"display": {
|
|
220
222
|
"1": {
|
|
221
|
-
"fontFamily": "{typography.families.
|
|
223
|
+
"fontFamily": "{typography.families.heading}",
|
|
222
224
|
"fontSize": "{typography.scale.4xl.fontSize}",
|
|
223
225
|
"lineHeight": "{typography.scale.4xl.lineHeight}",
|
|
224
226
|
"fontWeight": 800,
|
|
225
227
|
"letterSpacing": "{typography.scale.4xl.letterSpacing}"
|
|
226
228
|
},
|
|
227
229
|
"2": {
|
|
228
|
-
"fontFamily": "{typography.families.
|
|
230
|
+
"fontFamily": "{typography.families.heading}",
|
|
229
231
|
"fontSize": "{typography.scale.4xl.fontSize}",
|
|
230
232
|
"lineHeight": "{typography.scale.4xl.lineHeight}",
|
|
231
233
|
"fontWeight": 800,
|
|
232
234
|
"letterSpacing": "{typography.scale.4xl.letterSpacing}"
|
|
233
235
|
},
|
|
234
236
|
"3": {
|
|
235
|
-
"fontFamily": "{typography.families.
|
|
237
|
+
"fontFamily": "{typography.families.heading}",
|
|
236
238
|
"fontSize": "{typography.scale.4xl.fontSize}",
|
|
237
239
|
"lineHeight": "{typography.scale.4xl.lineHeight}",
|
|
238
240
|
"fontWeight": 700,
|
|
239
241
|
"letterSpacing": "{typography.scale.4xl.letterSpacing}"
|
|
240
242
|
},
|
|
241
243
|
"4": {
|
|
242
|
-
"fontFamily": "{typography.families.
|
|
244
|
+
"fontFamily": "{typography.families.heading}",
|
|
243
245
|
"fontSize": "{typography.scale.4xl.fontSize}",
|
|
244
246
|
"lineHeight": "{typography.scale.4xl.lineHeight}",
|
|
245
247
|
"fontWeight": 700,
|
|
246
248
|
"letterSpacing": "{typography.scale.4xl.letterSpacing}"
|
|
247
249
|
},
|
|
248
250
|
"5": {
|
|
249
|
-
"fontFamily": "{typography.families.
|
|
251
|
+
"fontFamily": "{typography.families.heading}",
|
|
250
252
|
"fontSize": "{typography.scale.3xl.fontSize}",
|
|
251
253
|
"lineHeight": "{typography.scale.3xl.lineHeight}",
|
|
252
254
|
"fontWeight": 600,
|
|
253
255
|
"letterSpacing": "{typography.scale.3xl.letterSpacing}"
|
|
254
256
|
},
|
|
255
257
|
"6": {
|
|
256
|
-
"fontFamily": "{typography.families.
|
|
258
|
+
"fontFamily": "{typography.families.heading}",
|
|
257
259
|
"fontSize": "{typography.scale.2xl.fontSize}",
|
|
258
260
|
"lineHeight": "{typography.scale.2xl.lineHeight}",
|
|
259
261
|
"fontWeight": 600,
|
|
@@ -261,7 +263,7 @@
|
|
|
261
263
|
}
|
|
262
264
|
},
|
|
263
265
|
"lead": {
|
|
264
|
-
"fontFamily": "{typography.families.
|
|
266
|
+
"fontFamily": "{typography.families.body}",
|
|
265
267
|
"fontSize": "{typography.scale.xl.fontSize}",
|
|
266
268
|
"lineHeight": "{typography.scale.xl.lineHeight}",
|
|
267
269
|
"fontWeight": 400,
|