@phcdevworks/spectre-tokens 4.0.0 → 4.2.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 +32 -29
- package/dist/index.cjs +33 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +18 -0
- package/dist/index.d.cts +33 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -1
- package/dist/tokens.dtcg.json +114 -0
- package/package.json +9 -8
- package/tokens/components.json +47 -0
- package/tokens/modes.json +100 -0
package/dist/tokens.dtcg.json
CHANGED
|
@@ -226,6 +226,44 @@
|
|
|
226
226
|
"$type": "color"
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
|
+
"footer": {
|
|
230
|
+
"bg": {
|
|
231
|
+
"$value": "{colors.neutral.900}",
|
|
232
|
+
"$type": "color"
|
|
233
|
+
},
|
|
234
|
+
"text": {
|
|
235
|
+
"$value": "{colors.neutral.50}",
|
|
236
|
+
"$type": "color"
|
|
237
|
+
},
|
|
238
|
+
"heading": {
|
|
239
|
+
"$value": "{colors.white}",
|
|
240
|
+
"$type": "color"
|
|
241
|
+
},
|
|
242
|
+
"muted": {
|
|
243
|
+
"$value": "{colors.neutral.400}",
|
|
244
|
+
"$type": "color"
|
|
245
|
+
},
|
|
246
|
+
"link": {
|
|
247
|
+
"$value": "{colors.neutral.300}",
|
|
248
|
+
"$type": "color"
|
|
249
|
+
},
|
|
250
|
+
"linkHover": {
|
|
251
|
+
"$value": "{colors.brand.400}",
|
|
252
|
+
"$type": "color"
|
|
253
|
+
},
|
|
254
|
+
"border": {
|
|
255
|
+
"$value": "{colors.neutral.700}",
|
|
256
|
+
"$type": "color"
|
|
257
|
+
},
|
|
258
|
+
"divider": {
|
|
259
|
+
"$value": "{colors.neutral.800}",
|
|
260
|
+
"$type": "color"
|
|
261
|
+
},
|
|
262
|
+
"chipBg": {
|
|
263
|
+
"$value": "{colors.neutral.800}",
|
|
264
|
+
"$type": "color"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
229
267
|
"modal": {
|
|
230
268
|
"bg": {
|
|
231
269
|
"$value": "{colors.white}",
|
|
@@ -1201,6 +1239,44 @@
|
|
|
1201
1239
|
"$type": "color"
|
|
1202
1240
|
}
|
|
1203
1241
|
},
|
|
1242
|
+
"footer": {
|
|
1243
|
+
"bg": {
|
|
1244
|
+
"$value": "{colors.neutral.900}",
|
|
1245
|
+
"$type": "color"
|
|
1246
|
+
},
|
|
1247
|
+
"text": {
|
|
1248
|
+
"$value": "{colors.neutral.50}",
|
|
1249
|
+
"$type": "color"
|
|
1250
|
+
},
|
|
1251
|
+
"heading": {
|
|
1252
|
+
"$value": "{colors.white}",
|
|
1253
|
+
"$type": "color"
|
|
1254
|
+
},
|
|
1255
|
+
"muted": {
|
|
1256
|
+
"$value": "{colors.neutral.400}",
|
|
1257
|
+
"$type": "color"
|
|
1258
|
+
},
|
|
1259
|
+
"link": {
|
|
1260
|
+
"$value": "{colors.neutral.300}",
|
|
1261
|
+
"$type": "color"
|
|
1262
|
+
},
|
|
1263
|
+
"linkHover": {
|
|
1264
|
+
"$value": "{colors.brand.400}",
|
|
1265
|
+
"$type": "color"
|
|
1266
|
+
},
|
|
1267
|
+
"border": {
|
|
1268
|
+
"$value": "{colors.neutral.700}",
|
|
1269
|
+
"$type": "color"
|
|
1270
|
+
},
|
|
1271
|
+
"divider": {
|
|
1272
|
+
"$value": "{colors.neutral.800}",
|
|
1273
|
+
"$type": "color"
|
|
1274
|
+
},
|
|
1275
|
+
"chipBg": {
|
|
1276
|
+
"$value": "{colors.neutral.800}",
|
|
1277
|
+
"$type": "color"
|
|
1278
|
+
}
|
|
1279
|
+
},
|
|
1204
1280
|
"modal": {
|
|
1205
1281
|
"bg": {
|
|
1206
1282
|
"$value": "{colors.white}",
|
|
@@ -1814,6 +1890,44 @@
|
|
|
1814
1890
|
"$type": "color"
|
|
1815
1891
|
}
|
|
1816
1892
|
},
|
|
1893
|
+
"footer": {
|
|
1894
|
+
"bg": {
|
|
1895
|
+
"$value": "{colors.black}",
|
|
1896
|
+
"$type": "color"
|
|
1897
|
+
},
|
|
1898
|
+
"text": {
|
|
1899
|
+
"$value": "{colors.neutral.50}",
|
|
1900
|
+
"$type": "color"
|
|
1901
|
+
},
|
|
1902
|
+
"heading": {
|
|
1903
|
+
"$value": "{colors.white}",
|
|
1904
|
+
"$type": "color"
|
|
1905
|
+
},
|
|
1906
|
+
"muted": {
|
|
1907
|
+
"$value": "{colors.neutral.400}",
|
|
1908
|
+
"$type": "color"
|
|
1909
|
+
},
|
|
1910
|
+
"link": {
|
|
1911
|
+
"$value": "{colors.neutral.300}",
|
|
1912
|
+
"$type": "color"
|
|
1913
|
+
},
|
|
1914
|
+
"linkHover": {
|
|
1915
|
+
"$value": "{colors.brand.300}",
|
|
1916
|
+
"$type": "color"
|
|
1917
|
+
},
|
|
1918
|
+
"border": {
|
|
1919
|
+
"$value": "{colors.neutral.800}",
|
|
1920
|
+
"$type": "color"
|
|
1921
|
+
},
|
|
1922
|
+
"divider": {
|
|
1923
|
+
"$value": "{colors.neutral.900}",
|
|
1924
|
+
"$type": "color"
|
|
1925
|
+
},
|
|
1926
|
+
"chipBg": {
|
|
1927
|
+
"$value": "{colors.neutral.900}",
|
|
1928
|
+
"$type": "color"
|
|
1929
|
+
}
|
|
1930
|
+
},
|
|
1817
1931
|
"modal": {
|
|
1818
1932
|
"bg": {
|
|
1819
1933
|
"$value": "{colors.neutral.800}",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phcdevworks/spectre-tokens",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "@phcdevworks/spectre-tokens is the design-token package of the Spectre system. It provides a complete, UI-ready token surface for downstream Spectre packages and compatible applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"phcdevworks",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"node": "^22.12.0 || >=24.0.0"
|
|
36
36
|
},
|
|
37
37
|
"type": "module",
|
|
38
|
-
"packageManager": "npm@12.0.
|
|
38
|
+
"packageManager": "npm@12.0.2",
|
|
39
39
|
"main": "./dist/index.cjs",
|
|
40
40
|
"module": "./dist/index.js",
|
|
41
41
|
"types": "./dist/index.d.ts",
|
|
@@ -57,10 +57,11 @@
|
|
|
57
57
|
"scripts": {
|
|
58
58
|
"generate": "tsx scripts/generate-types.ts",
|
|
59
59
|
"prebuild": "npm run generate",
|
|
60
|
-
"build": "npm run build:ts && npm run build:css && npm run build:design",
|
|
60
|
+
"build": "npm run build:ts && npm run build:css && npm run build:design && npm run build:docs",
|
|
61
61
|
"build:ts": "tsup --config tsup.config.ts",
|
|
62
62
|
"build:css": "tsx scripts/build-css.ts",
|
|
63
63
|
"build:design": "tsx scripts/build-dtcg.ts",
|
|
64
|
+
"build:docs": "tsx scripts/build-token-reference.ts",
|
|
64
65
|
"check:manifest": "tsx scripts/check-contract-manifest.ts",
|
|
65
66
|
"check:docs": "tsx scripts/check-doc-contract.ts",
|
|
66
67
|
"check:version-sync": "npm run check:docs",
|
|
@@ -98,9 +99,9 @@
|
|
|
98
99
|
},
|
|
99
100
|
"devDependencies": {
|
|
100
101
|
"@phcdevworks/spectre-manifest": "^1.1.0",
|
|
101
|
-
"@types/node": "^26.1.
|
|
102
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
103
|
-
"@typescript-eslint/parser": "^8.
|
|
102
|
+
"@types/node": "^26.1.2",
|
|
103
|
+
"@typescript-eslint/eslint-plugin": "^8.66.0",
|
|
104
|
+
"@typescript-eslint/parser": "^8.66.0",
|
|
104
105
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
105
106
|
"colord": "^2.9.3",
|
|
106
107
|
"eslint": "^10.8.0",
|
|
@@ -109,9 +110,9 @@
|
|
|
109
110
|
"style-dictionary": "^5.5.0",
|
|
110
111
|
"ts-node": "^10.9.2",
|
|
111
112
|
"tsup": "^8.5.1",
|
|
112
|
-
"tsx": "^4.23.
|
|
113
|
+
"tsx": "^4.23.10",
|
|
113
114
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
114
|
-
"typescript-eslint": "^8.
|
|
115
|
+
"typescript-eslint": "^8.66.0",
|
|
115
116
|
"vitest": "^4.1.10"
|
|
116
117
|
},
|
|
117
118
|
"overrides": {
|
package/tokens/components.json
CHANGED
|
@@ -280,6 +280,53 @@
|
|
|
280
280
|
"value": "{colors.neutral.200}"
|
|
281
281
|
}
|
|
282
282
|
},
|
|
283
|
+
"footer": {
|
|
284
|
+
"bg": {
|
|
285
|
+
"value": "{colors.neutral.900}",
|
|
286
|
+
"metadata": {
|
|
287
|
+
"pair": "component.footer.text"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"text": {
|
|
291
|
+
"value": "{colors.neutral.50}",
|
|
292
|
+
"metadata": {
|
|
293
|
+
"pair": "component.footer.bg"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"heading": {
|
|
297
|
+
"value": "{colors.white}",
|
|
298
|
+
"metadata": {
|
|
299
|
+
"pair": "component.footer.bg"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"muted": {
|
|
303
|
+
"value": "{colors.neutral.400}",
|
|
304
|
+
"metadata": {
|
|
305
|
+
"pair": "component.footer.bg"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"link": {
|
|
309
|
+
"value": "{colors.neutral.300}",
|
|
310
|
+
"metadata": {
|
|
311
|
+
"pair": "component.footer.bg"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"linkHover": {
|
|
315
|
+
"value": "{colors.brand.400}",
|
|
316
|
+
"metadata": {
|
|
317
|
+
"pair": "component.footer.bg"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"border": {
|
|
321
|
+
"value": "{colors.neutral.700}"
|
|
322
|
+
},
|
|
323
|
+
"divider": {
|
|
324
|
+
"value": "{colors.neutral.800}"
|
|
325
|
+
},
|
|
326
|
+
"chipBg": {
|
|
327
|
+
"value": "{colors.neutral.800}"
|
|
328
|
+
}
|
|
329
|
+
},
|
|
283
330
|
"modal": {
|
|
284
331
|
"bg": {
|
|
285
332
|
"value": "{colors.white}"
|
package/tokens/modes.json
CHANGED
|
@@ -392,6 +392,56 @@
|
|
|
392
392
|
"metadata": {}
|
|
393
393
|
}
|
|
394
394
|
},
|
|
395
|
+
"footer": {
|
|
396
|
+
"bg": {
|
|
397
|
+
"value": "{colors.neutral.900}",
|
|
398
|
+
"metadata": {
|
|
399
|
+
"pair": "modes.default.component.footer.text"
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"text": {
|
|
403
|
+
"value": "{colors.neutral.50}",
|
|
404
|
+
"metadata": {
|
|
405
|
+
"pair": "modes.default.component.footer.bg"
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"heading": {
|
|
409
|
+
"value": "{colors.white}",
|
|
410
|
+
"metadata": {
|
|
411
|
+
"pair": "modes.default.component.footer.bg"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
"muted": {
|
|
415
|
+
"value": "{colors.neutral.400}",
|
|
416
|
+
"metadata": {
|
|
417
|
+
"pair": "modes.default.component.footer.bg"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"link": {
|
|
421
|
+
"value": "{colors.neutral.300}",
|
|
422
|
+
"metadata": {
|
|
423
|
+
"pair": "modes.default.component.footer.bg"
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
"linkHover": {
|
|
427
|
+
"value": "{colors.brand.400}",
|
|
428
|
+
"metadata": {
|
|
429
|
+
"pair": "modes.default.component.footer.bg"
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"border": {
|
|
433
|
+
"value": "{colors.neutral.700}",
|
|
434
|
+
"metadata": {}
|
|
435
|
+
},
|
|
436
|
+
"divider": {
|
|
437
|
+
"value": "{colors.neutral.800}",
|
|
438
|
+
"metadata": {}
|
|
439
|
+
},
|
|
440
|
+
"chipBg": {
|
|
441
|
+
"value": "{colors.neutral.800}",
|
|
442
|
+
"metadata": {}
|
|
443
|
+
}
|
|
444
|
+
},
|
|
395
445
|
"modal": {
|
|
396
446
|
"bg": {
|
|
397
447
|
"value": "{colors.white}",
|
|
@@ -1130,6 +1180,56 @@
|
|
|
1130
1180
|
"metadata": {}
|
|
1131
1181
|
}
|
|
1132
1182
|
},
|
|
1183
|
+
"footer": {
|
|
1184
|
+
"bg": {
|
|
1185
|
+
"value": "{colors.black}",
|
|
1186
|
+
"metadata": {
|
|
1187
|
+
"pair": "modes.dark.component.footer.text"
|
|
1188
|
+
}
|
|
1189
|
+
},
|
|
1190
|
+
"text": {
|
|
1191
|
+
"value": "{colors.neutral.50}",
|
|
1192
|
+
"metadata": {
|
|
1193
|
+
"pair": "modes.dark.component.footer.bg"
|
|
1194
|
+
}
|
|
1195
|
+
},
|
|
1196
|
+
"heading": {
|
|
1197
|
+
"value": "{colors.white}",
|
|
1198
|
+
"metadata": {
|
|
1199
|
+
"pair": "modes.dark.component.footer.bg"
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
"muted": {
|
|
1203
|
+
"value": "{colors.neutral.400}",
|
|
1204
|
+
"metadata": {
|
|
1205
|
+
"pair": "modes.dark.component.footer.bg"
|
|
1206
|
+
}
|
|
1207
|
+
},
|
|
1208
|
+
"link": {
|
|
1209
|
+
"value": "{colors.neutral.300}",
|
|
1210
|
+
"metadata": {
|
|
1211
|
+
"pair": "modes.dark.component.footer.bg"
|
|
1212
|
+
}
|
|
1213
|
+
},
|
|
1214
|
+
"linkHover": {
|
|
1215
|
+
"value": "{colors.brand.300}",
|
|
1216
|
+
"metadata": {
|
|
1217
|
+
"pair": "modes.dark.component.footer.bg"
|
|
1218
|
+
}
|
|
1219
|
+
},
|
|
1220
|
+
"border": {
|
|
1221
|
+
"value": "{colors.neutral.800}",
|
|
1222
|
+
"metadata": {}
|
|
1223
|
+
},
|
|
1224
|
+
"divider": {
|
|
1225
|
+
"value": "{colors.neutral.900}",
|
|
1226
|
+
"metadata": {}
|
|
1227
|
+
},
|
|
1228
|
+
"chipBg": {
|
|
1229
|
+
"value": "{colors.neutral.900}",
|
|
1230
|
+
"metadata": {}
|
|
1231
|
+
}
|
|
1232
|
+
},
|
|
1133
1233
|
"modal": {
|
|
1134
1234
|
"bg": {
|
|
1135
1235
|
"value": "{colors.neutral.800}",
|