@phcdevworks/spectre-tokens 4.14.0 → 4.16.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 +59 -2
- package/dist/index.cjs +219 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +550 -56
- package/dist/index.d.cts +83 -0
- package/dist/index.d.ts +83 -0
- package/dist/index.js +219 -51
- package/dist/index.js.map +1 -1
- package/dist/tokens.dtcg.json +248 -24
- package/package.json +11 -11
- package/tokens/modes.json +115 -0
- package/tokens/semantic-roles.json +56 -0
- package/tokens/typography.json +64 -24
package/tokens/typography.json
CHANGED
|
@@ -168,38 +168,38 @@
|
|
|
168
168
|
"heading": {
|
|
169
169
|
"h1": {
|
|
170
170
|
"fontFamily": "{typography.families.sans}",
|
|
171
|
-
"fontSize": "{typography.scale.
|
|
172
|
-
"lineHeight": "{typography.scale.
|
|
171
|
+
"fontSize": "{typography.scale.4xl.fontSize}",
|
|
172
|
+
"lineHeight": "{typography.scale.4xl.lineHeight}",
|
|
173
173
|
"fontWeight": 800,
|
|
174
|
-
"letterSpacing": "{typography.scale.
|
|
174
|
+
"letterSpacing": "{typography.scale.4xl.letterSpacing}"
|
|
175
175
|
},
|
|
176
176
|
"h2": {
|
|
177
177
|
"fontFamily": "{typography.families.sans}",
|
|
178
|
-
"fontSize": "{typography.scale.
|
|
179
|
-
"lineHeight": "{typography.scale.
|
|
178
|
+
"fontSize": "{typography.scale.3xl.fontSize}",
|
|
179
|
+
"lineHeight": "{typography.scale.3xl.lineHeight}",
|
|
180
180
|
"fontWeight": 700,
|
|
181
|
-
"letterSpacing": "{typography.scale.
|
|
181
|
+
"letterSpacing": "{typography.scale.3xl.letterSpacing}"
|
|
182
182
|
},
|
|
183
183
|
"h3": {
|
|
184
184
|
"fontFamily": "{typography.families.sans}",
|
|
185
|
-
"fontSize": "{typography.scale.
|
|
186
|
-
"lineHeight": "{typography.scale.
|
|
185
|
+
"fontSize": "{typography.scale.2xl.fontSize}",
|
|
186
|
+
"lineHeight": "{typography.scale.2xl.lineHeight}",
|
|
187
187
|
"fontWeight": 700,
|
|
188
|
-
"letterSpacing": "{typography.scale.
|
|
188
|
+
"letterSpacing": "{typography.scale.2xl.letterSpacing}"
|
|
189
189
|
},
|
|
190
190
|
"h4": {
|
|
191
191
|
"fontFamily": "{typography.families.sans}",
|
|
192
|
-
"fontSize": "{typography.scale.
|
|
193
|
-
"lineHeight": "{typography.scale.
|
|
192
|
+
"fontSize": "{typography.scale.xl.fontSize}",
|
|
193
|
+
"lineHeight": "{typography.scale.xl.lineHeight}",
|
|
194
194
|
"fontWeight": 600,
|
|
195
|
-
"letterSpacing": "{typography.scale.
|
|
195
|
+
"letterSpacing": "{typography.scale.xl.letterSpacing}"
|
|
196
196
|
},
|
|
197
197
|
"h5": {
|
|
198
198
|
"fontFamily": "{typography.families.sans}",
|
|
199
|
-
"fontSize": "{typography.scale.
|
|
200
|
-
"lineHeight": "{typography.scale.
|
|
199
|
+
"fontSize": "{typography.scale.xl.fontSize}",
|
|
200
|
+
"lineHeight": "{typography.scale.xl.lineHeight}",
|
|
201
201
|
"fontWeight": 600,
|
|
202
|
-
"letterSpacing": "{typography.scale.
|
|
202
|
+
"letterSpacing": "{typography.scale.xl.letterSpacing}"
|
|
203
203
|
},
|
|
204
204
|
"h6": {
|
|
205
205
|
"fontFamily": "{typography.families.sans}",
|
|
@@ -219,24 +219,24 @@
|
|
|
219
219
|
"display": {
|
|
220
220
|
"1": {
|
|
221
221
|
"fontFamily": "{typography.families.sans}",
|
|
222
|
-
"fontSize": "{typography.scale.
|
|
223
|
-
"lineHeight": "{typography.scale.
|
|
222
|
+
"fontSize": "{typography.scale.4xl.fontSize}",
|
|
223
|
+
"lineHeight": "{typography.scale.4xl.lineHeight}",
|
|
224
224
|
"fontWeight": 800,
|
|
225
|
-
"letterSpacing": "{typography.scale.
|
|
225
|
+
"letterSpacing": "{typography.scale.4xl.letterSpacing}"
|
|
226
226
|
},
|
|
227
227
|
"2": {
|
|
228
228
|
"fontFamily": "{typography.families.sans}",
|
|
229
|
-
"fontSize": "{typography.scale.
|
|
230
|
-
"lineHeight": "{typography.scale.
|
|
229
|
+
"fontSize": "{typography.scale.4xl.fontSize}",
|
|
230
|
+
"lineHeight": "{typography.scale.4xl.lineHeight}",
|
|
231
231
|
"fontWeight": 800,
|
|
232
|
-
"letterSpacing": "{typography.scale.
|
|
232
|
+
"letterSpacing": "{typography.scale.4xl.letterSpacing}"
|
|
233
233
|
},
|
|
234
234
|
"3": {
|
|
235
235
|
"fontFamily": "{typography.families.sans}",
|
|
236
|
-
"fontSize": "{typography.scale.
|
|
237
|
-
"lineHeight": "{typography.scale.
|
|
236
|
+
"fontSize": "{typography.scale.4xl.fontSize}",
|
|
237
|
+
"lineHeight": "{typography.scale.4xl.lineHeight}",
|
|
238
238
|
"fontWeight": 700,
|
|
239
|
-
"letterSpacing": "{typography.scale.
|
|
239
|
+
"letterSpacing": "{typography.scale.4xl.letterSpacing}"
|
|
240
240
|
},
|
|
241
241
|
"4": {
|
|
242
242
|
"fontFamily": "{typography.families.sans}",
|
|
@@ -266,6 +266,46 @@
|
|
|
266
266
|
"lineHeight": "{typography.scale.xl.lineHeight}",
|
|
267
267
|
"fontWeight": 400,
|
|
268
268
|
"letterSpacing": "{typography.scale.xl.letterSpacing}"
|
|
269
|
+
},
|
|
270
|
+
"responsive": {
|
|
271
|
+
"md": {
|
|
272
|
+
"heading": {
|
|
273
|
+
"h1": {
|
|
274
|
+
"fontSize": "{typography.scale.6xl.fontSize}",
|
|
275
|
+
"lineHeight": "{typography.scale.6xl.lineHeight}"
|
|
276
|
+
},
|
|
277
|
+
"h2": {
|
|
278
|
+
"fontSize": "{typography.scale.5xl.fontSize}",
|
|
279
|
+
"lineHeight": "{typography.scale.5xl.lineHeight}"
|
|
280
|
+
},
|
|
281
|
+
"h3": {
|
|
282
|
+
"fontSize": "{typography.scale.4xl.fontSize}",
|
|
283
|
+
"lineHeight": "{typography.scale.4xl.lineHeight}"
|
|
284
|
+
},
|
|
285
|
+
"h4": {
|
|
286
|
+
"fontSize": "{typography.scale.3xl.fontSize}",
|
|
287
|
+
"lineHeight": "{typography.scale.3xl.lineHeight}"
|
|
288
|
+
},
|
|
289
|
+
"h5": {
|
|
290
|
+
"fontSize": "{typography.scale.2xl.fontSize}",
|
|
291
|
+
"lineHeight": "{typography.scale.2xl.lineHeight}"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"display": {
|
|
295
|
+
"1": {
|
|
296
|
+
"fontSize": "{typography.scale.7xl.fontSize}",
|
|
297
|
+
"lineHeight": "{typography.scale.7xl.lineHeight}"
|
|
298
|
+
},
|
|
299
|
+
"2": {
|
|
300
|
+
"fontSize": "{typography.scale.6xl.fontSize}",
|
|
301
|
+
"lineHeight": "{typography.scale.6xl.lineHeight}"
|
|
302
|
+
},
|
|
303
|
+
"3": {
|
|
304
|
+
"fontSize": "{typography.scale.5xl.fontSize}",
|
|
305
|
+
"lineHeight": "{typography.scale.5xl.lineHeight}"
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
269
309
|
}
|
|
270
310
|
}
|
|
271
311
|
}
|