@phcdevworks/spectre-tokens 4.11.0 → 4.13.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 -3
- package/dist/index.cjs +2004 -86
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2652 -3
- package/dist/index.d.cts +1846 -6
- package/dist/index.d.ts +1846 -6
- package/dist/index.js +2004 -86
- package/dist/index.js.map +1 -1
- package/dist/tokens.dtcg.json +5303 -68
- package/package.json +12 -11
- package/tokens/components.json +768 -0
- package/tokens/modes.json +5278 -420
- package/tokens/primitives.json +31 -0
- package/tokens/semantic-roles.json +140 -8
package/tokens/primitives.json
CHANGED
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"72": "4.5rem",
|
|
22
22
|
"80": "5rem",
|
|
23
23
|
"96": "6rem",
|
|
24
|
+
"128": "8rem",
|
|
25
|
+
"160": "10rem",
|
|
26
|
+
"192": "12rem",
|
|
24
27
|
"240": "15rem"
|
|
25
28
|
},
|
|
26
29
|
"radii": {
|
|
@@ -232,5 +235,33 @@
|
|
|
232
235
|
"wide": "0.025em",
|
|
233
236
|
"wider": "0.05em",
|
|
234
237
|
"widest": "0.1em"
|
|
238
|
+
},
|
|
239
|
+
"leading": {
|
|
240
|
+
"none": "1",
|
|
241
|
+
"tight": "1.25",
|
|
242
|
+
"snug": "1.375",
|
|
243
|
+
"normal": "1.5",
|
|
244
|
+
"relaxed": "1.625",
|
|
245
|
+
"loose": "2"
|
|
246
|
+
},
|
|
247
|
+
"textDecoration": {
|
|
248
|
+
"thickness": {
|
|
249
|
+
"thin": "1px",
|
|
250
|
+
"base": "2px",
|
|
251
|
+
"thick": "3px"
|
|
252
|
+
},
|
|
253
|
+
"offset": {
|
|
254
|
+
"sm": "0.125em",
|
|
255
|
+
"md": "0.2em",
|
|
256
|
+
"lg": "0.3em"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"fontWeight": {
|
|
260
|
+
"normal": 400,
|
|
261
|
+
"medium": 500,
|
|
262
|
+
"semibold": 600,
|
|
263
|
+
"bold": 700,
|
|
264
|
+
"extrabold": 800,
|
|
265
|
+
"black": 900
|
|
235
266
|
}
|
|
236
267
|
}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"inverse": {
|
|
45
45
|
"value": "{colors.neutral.900}",
|
|
46
|
-
"description": "fixed dark background for content islands not owned by the page's own light/dark mode
|
|
46
|
+
"description": "fixed dark background for content islands not owned by the page's own light/dark mode \u2014 photo-backed cards, brand-dark card bodies, utility bars",
|
|
47
47
|
"metadata": {
|
|
48
48
|
"pair": "text.onInverse.default"
|
|
49
49
|
}
|
|
@@ -79,6 +79,14 @@
|
|
|
79
79
|
"onInverseHover": {
|
|
80
80
|
"value": "{colors.brand.300}",
|
|
81
81
|
"description": "link color on hover, on surface.inverse"
|
|
82
|
+
},
|
|
83
|
+
"underline": {
|
|
84
|
+
"value": "{colors.brand.600} / 0.4",
|
|
85
|
+
"description": "underline colour for inline links; the link text keeps link.default"
|
|
86
|
+
},
|
|
87
|
+
"underlineHover": {
|
|
88
|
+
"value": "{colors.brand.700}",
|
|
89
|
+
"description": "underline colour for inline links on hover"
|
|
82
90
|
}
|
|
83
91
|
},
|
|
84
92
|
"text": {
|
|
@@ -111,7 +119,14 @@
|
|
|
111
119
|
"pair": "surface.page"
|
|
112
120
|
}
|
|
113
121
|
},
|
|
114
|
-
"brand": "{colors.brand.600}"
|
|
122
|
+
"brand": "{colors.brand.600}",
|
|
123
|
+
"accent": {
|
|
124
|
+
"value": "{colors.accent.600}",
|
|
125
|
+
"description": "accent-coloured text for eyebrows, stat units, and quote marks",
|
|
126
|
+
"metadata": {
|
|
127
|
+
"pair": "surface.page"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
115
130
|
},
|
|
116
131
|
"onSurface": {
|
|
117
132
|
"default": {
|
|
@@ -142,7 +157,14 @@
|
|
|
142
157
|
"pair": "surface.card"
|
|
143
158
|
}
|
|
144
159
|
},
|
|
145
|
-
"brand": "{colors.brand.600}"
|
|
160
|
+
"brand": "{colors.brand.600}",
|
|
161
|
+
"accent": {
|
|
162
|
+
"value": "{colors.accent.600}",
|
|
163
|
+
"description": "accent-coloured text for eyebrows, stat units, and quote marks",
|
|
164
|
+
"metadata": {
|
|
165
|
+
"pair": "surface.card"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
146
168
|
},
|
|
147
169
|
"onInverse": {
|
|
148
170
|
"default": {
|
|
@@ -158,6 +180,20 @@
|
|
|
158
180
|
"metadata": {
|
|
159
181
|
"pair": "surface.inverse"
|
|
160
182
|
}
|
|
183
|
+
},
|
|
184
|
+
"brand": {
|
|
185
|
+
"value": "{colors.brand.300}",
|
|
186
|
+
"description": "brand-coloured text on surface.inverse, independent of page mode",
|
|
187
|
+
"metadata": {
|
|
188
|
+
"pair": "surface.inverse"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"accent": {
|
|
192
|
+
"value": "{colors.accent.300}",
|
|
193
|
+
"description": "accent-coloured text on surface.inverse (eyebrows, stat units, quote marks), independent of page mode",
|
|
194
|
+
"metadata": {
|
|
195
|
+
"pair": "surface.inverse"
|
|
196
|
+
}
|
|
161
197
|
}
|
|
162
198
|
}
|
|
163
199
|
},
|
|
@@ -166,33 +202,129 @@
|
|
|
166
202
|
"padding": {
|
|
167
203
|
"sm": "1.5rem",
|
|
168
204
|
"md": "2rem",
|
|
169
|
-
"lg": "3rem"
|
|
205
|
+
"lg": "3rem",
|
|
206
|
+
"xl": "4rem",
|
|
207
|
+
"2xl": "5rem",
|
|
208
|
+
"3xl": "6rem",
|
|
209
|
+
"4xl": "8rem"
|
|
170
210
|
},
|
|
171
211
|
"gap": {
|
|
172
212
|
"sm": "1rem",
|
|
173
213
|
"md": "1.5rem",
|
|
174
|
-
"lg": "2rem"
|
|
214
|
+
"lg": "2rem",
|
|
215
|
+
"xl": "2.5rem",
|
|
216
|
+
"2xl": "3rem",
|
|
217
|
+
"3xl": "4rem",
|
|
218
|
+
"4xl": "5rem"
|
|
175
219
|
}
|
|
176
220
|
},
|
|
177
221
|
"stack": {
|
|
178
222
|
"gap": {
|
|
179
223
|
"sm": "0.5rem",
|
|
180
|
-
"md": "
|
|
181
|
-
"lg": "
|
|
224
|
+
"md": "1rem",
|
|
225
|
+
"lg": "1.5rem",
|
|
226
|
+
"xl": "2.5rem",
|
|
227
|
+
"2xl": "3rem",
|
|
228
|
+
"3xl": "4rem",
|
|
229
|
+
"4xl": "5rem"
|
|
182
230
|
}
|
|
183
231
|
},
|
|
184
232
|
"container": {
|
|
185
233
|
"paddingInline": {
|
|
186
234
|
"sm": "1rem",
|
|
187
235
|
"md": "1.5rem",
|
|
188
|
-
"lg": "2rem"
|
|
236
|
+
"lg": "2rem",
|
|
237
|
+
"xl": "2.5rem",
|
|
238
|
+
"2xl": "3rem",
|
|
239
|
+
"3xl": "4rem",
|
|
240
|
+
"4xl": "5rem"
|
|
189
241
|
},
|
|
190
242
|
"maxWidth": "72rem",
|
|
191
243
|
"maxWidthProse": "65ch",
|
|
192
244
|
"maxWidthWide": "80rem"
|
|
193
245
|
},
|
|
246
|
+
"hero": {
|
|
247
|
+
"paddingTop": {
|
|
248
|
+
"sm": "{layout.section.padding.2xl}",
|
|
249
|
+
"md": "{layout.section.padding.3xl}",
|
|
250
|
+
"lg": "{layout.section.padding.4xl}"
|
|
251
|
+
},
|
|
252
|
+
"paddingBottom": {
|
|
253
|
+
"sm": "{layout.section.padding.xl}",
|
|
254
|
+
"md": "{layout.section.padding.2xl}",
|
|
255
|
+
"lg": "{layout.section.padding.3xl}"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
194
258
|
"sidebar": {
|
|
195
259
|
"width": "16rem"
|
|
260
|
+
},
|
|
261
|
+
"prose": {
|
|
262
|
+
"flow": {
|
|
263
|
+
"listItem": "0.5rem",
|
|
264
|
+
"headingAfter": "1rem",
|
|
265
|
+
"paragraph": "1.5rem",
|
|
266
|
+
"list": "1.5rem",
|
|
267
|
+
"blockquote": "2rem",
|
|
268
|
+
"figure": "2rem",
|
|
269
|
+
"heading": "2.5rem",
|
|
270
|
+
"hr": "3rem"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"responsive": {
|
|
274
|
+
"lg": {
|
|
275
|
+
"section": {
|
|
276
|
+
"padding": {
|
|
277
|
+
"xl": "6rem",
|
|
278
|
+
"2xl": "8rem",
|
|
279
|
+
"3xl": "10rem",
|
|
280
|
+
"4xl": "12rem"
|
|
281
|
+
},
|
|
282
|
+
"gap": {
|
|
283
|
+
"xl": "3rem",
|
|
284
|
+
"2xl": "4rem",
|
|
285
|
+
"3xl": "6rem",
|
|
286
|
+
"4xl": "8rem"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"stack": {
|
|
290
|
+
"gap": {
|
|
291
|
+
"xl": "3rem",
|
|
292
|
+
"2xl": "4rem",
|
|
293
|
+
"3xl": "6rem",
|
|
294
|
+
"4xl": "8rem"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"container": {
|
|
298
|
+
"paddingInline": {
|
|
299
|
+
"xl": "3rem",
|
|
300
|
+
"2xl": "4rem",
|
|
301
|
+
"3xl": "6rem",
|
|
302
|
+
"4xl": "8rem"
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"elevation": {
|
|
309
|
+
"flat": {
|
|
310
|
+
"shadow": "{shadows.none}",
|
|
311
|
+
"surface": "{surface.page}",
|
|
312
|
+
"zIndex": "{zIndex.base}"
|
|
313
|
+
},
|
|
314
|
+
"raised": {
|
|
315
|
+
"shadow": "{shadows.md}",
|
|
316
|
+
"surface": "{surface.card}",
|
|
317
|
+
"zIndex": "{zIndex.base}"
|
|
318
|
+
},
|
|
319
|
+
"overlay": {
|
|
320
|
+
"shadow": "{shadows.lg}",
|
|
321
|
+
"surface": "{surface.card}",
|
|
322
|
+
"zIndex": "{zIndex.dropdown}"
|
|
323
|
+
},
|
|
324
|
+
"modal": {
|
|
325
|
+
"shadow": "{shadows.2xl}",
|
|
326
|
+
"surface": "{surface.card}",
|
|
327
|
+
"zIndex": "{zIndex.modal}"
|
|
196
328
|
}
|
|
197
329
|
}
|
|
198
330
|
}
|