@phcdevworks/spectre-tokens 4.14.0 → 4.15.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.
@@ -5658,6 +5658,23 @@
5658
5658
  }
5659
5659
  },
5660
5660
  "dark": {
5661
+ "action": {
5662
+ "onPage": {
5663
+ "$value": "{colors.brand.400}",
5664
+ "$type": "color",
5665
+ "$description": "action-coloured text on the dark page"
5666
+ },
5667
+ "onSurface": {
5668
+ "$value": "{colors.brand.400}",
5669
+ "$type": "color",
5670
+ "$description": "action-coloured text on dark surface containers"
5671
+ },
5672
+ "rail": {
5673
+ "$value": "{colors.brand.400}",
5674
+ "$type": "color",
5675
+ "$description": "action-coloured accent rail on the dark page"
5676
+ }
5677
+ },
5661
5678
  "surface": {
5662
5679
  "page": {
5663
5680
  "$value": "{colors.neutral.900}",
@@ -8193,6 +8210,38 @@
8193
8210
  }
8194
8211
  },
8195
8212
  "highContrast": {
8213
+ "action": {
8214
+ "bg": {
8215
+ "$value": "{colors.brand.800}",
8216
+ "$type": "color",
8217
+ "$description": "action fill lifted one step so its text holds 7:1"
8218
+ },
8219
+ "bgHover": {
8220
+ "$value": "{colors.brand.900}",
8221
+ "$type": "color"
8222
+ },
8223
+ "bgActive": {
8224
+ "$value": "{colors.brand.900}",
8225
+ "$type": "color",
8226
+ "$description": "same as bgHover: 900 is the darkest step every action family shares"
8227
+ },
8228
+ "text": {
8229
+ "$value": "{colors.white}",
8230
+ "$type": "color"
8231
+ },
8232
+ "onPage": {
8233
+ "$value": "{colors.brand.900}",
8234
+ "$type": "color"
8235
+ },
8236
+ "onSurface": {
8237
+ "$value": "{colors.brand.900}",
8238
+ "$type": "color"
8239
+ },
8240
+ "rail": {
8241
+ "$value": "{colors.brand.900}",
8242
+ "$type": "color"
8243
+ }
8244
+ },
8196
8245
  "surface": {
8197
8246
  "page": {
8198
8247
  "$value": "{colors.white}",
@@ -14107,6 +14156,48 @@
14107
14156
  "$description": "underline colour for inline links on hover"
14108
14157
  }
14109
14158
  },
14159
+ "action": {
14160
+ "bg": {
14161
+ "$value": "{colors.brand.700}",
14162
+ "$type": "color",
14163
+ "$description": "solid fill for the theme's own action colour (buttons, chips); a theme picks the palette family with data-spectre-action on the root element"
14164
+ },
14165
+ "bgHover": {
14166
+ "$value": "{colors.brand.800}",
14167
+ "$type": "color",
14168
+ "$description": "action fill on hover, one step darker in the same family"
14169
+ },
14170
+ "bgActive": {
14171
+ "$value": "{colors.brand.900}",
14172
+ "$type": "color",
14173
+ "$description": "action fill while pressed, two steps darker in the same family"
14174
+ },
14175
+ "text": {
14176
+ "$value": "{colors.white}",
14177
+ "$type": "color",
14178
+ "$description": "text and icons on action.bg, action.bgHover, and action.bgActive"
14179
+ },
14180
+ "focusRing": {
14181
+ "$value": "{colors.brand.500} / 0.4",
14182
+ "$type": "color",
14183
+ "$description": "focus ring around an action-filled control"
14184
+ },
14185
+ "onPage": {
14186
+ "$value": "{colors.brand.700}",
14187
+ "$type": "color",
14188
+ "$description": "action-coloured text on the page background: stat units, eyebrows, quote marks"
14189
+ },
14190
+ "onSurface": {
14191
+ "$value": "{colors.brand.700}",
14192
+ "$type": "color",
14193
+ "$description": "action-coloured text on surface containers"
14194
+ },
14195
+ "rail": {
14196
+ "$value": "{colors.brand.700}",
14197
+ "$type": "color",
14198
+ "$description": "action-coloured accent rail or quote rule; a non-text pair held to 3:1"
14199
+ }
14200
+ },
14110
14201
  "text": {
14111
14202
  "onPage": {
14112
14203
  "default": {
@@ -15057,11 +15148,11 @@
15057
15148
  "$type": "fontFamily"
15058
15149
  },
15059
15150
  "fontSize": {
15060
- "$value": "{typography.scale.6xl.fontSize}",
15151
+ "$value": "{typography.scale.4xl.fontSize}",
15061
15152
  "$type": "dimension"
15062
15153
  },
15063
15154
  "lineHeight": {
15064
- "$value": "{typography.scale.6xl.lineHeight}",
15155
+ "$value": "{typography.scale.4xl.lineHeight}",
15065
15156
  "$type": "dimension"
15066
15157
  },
15067
15158
  "fontWeight": {
@@ -15069,7 +15160,7 @@
15069
15160
  "$type": "fontWeight"
15070
15161
  },
15071
15162
  "letterSpacing": {
15072
- "$value": "{typography.scale.6xl.letterSpacing}",
15163
+ "$value": "{typography.scale.4xl.letterSpacing}",
15073
15164
  "$type": "dimension"
15074
15165
  }
15075
15166
  },
@@ -15079,11 +15170,11 @@
15079
15170
  "$type": "fontFamily"
15080
15171
  },
15081
15172
  "fontSize": {
15082
- "$value": "{typography.scale.5xl.fontSize}",
15173
+ "$value": "{typography.scale.3xl.fontSize}",
15083
15174
  "$type": "dimension"
15084
15175
  },
15085
15176
  "lineHeight": {
15086
- "$value": "{typography.scale.5xl.lineHeight}",
15177
+ "$value": "{typography.scale.3xl.lineHeight}",
15087
15178
  "$type": "dimension"
15088
15179
  },
15089
15180
  "fontWeight": {
@@ -15091,7 +15182,7 @@
15091
15182
  "$type": "fontWeight"
15092
15183
  },
15093
15184
  "letterSpacing": {
15094
- "$value": "{typography.scale.5xl.letterSpacing}",
15185
+ "$value": "{typography.scale.3xl.letterSpacing}",
15095
15186
  "$type": "dimension"
15096
15187
  }
15097
15188
  },
@@ -15101,11 +15192,11 @@
15101
15192
  "$type": "fontFamily"
15102
15193
  },
15103
15194
  "fontSize": {
15104
- "$value": "{typography.scale.4xl.fontSize}",
15195
+ "$value": "{typography.scale.2xl.fontSize}",
15105
15196
  "$type": "dimension"
15106
15197
  },
15107
15198
  "lineHeight": {
15108
- "$value": "{typography.scale.4xl.lineHeight}",
15199
+ "$value": "{typography.scale.2xl.lineHeight}",
15109
15200
  "$type": "dimension"
15110
15201
  },
15111
15202
  "fontWeight": {
@@ -15113,7 +15204,7 @@
15113
15204
  "$type": "fontWeight"
15114
15205
  },
15115
15206
  "letterSpacing": {
15116
- "$value": "{typography.scale.4xl.letterSpacing}",
15207
+ "$value": "{typography.scale.2xl.letterSpacing}",
15117
15208
  "$type": "dimension"
15118
15209
  }
15119
15210
  },
@@ -15123,11 +15214,11 @@
15123
15214
  "$type": "fontFamily"
15124
15215
  },
15125
15216
  "fontSize": {
15126
- "$value": "{typography.scale.3xl.fontSize}",
15217
+ "$value": "{typography.scale.xl.fontSize}",
15127
15218
  "$type": "dimension"
15128
15219
  },
15129
15220
  "lineHeight": {
15130
- "$value": "{typography.scale.3xl.lineHeight}",
15221
+ "$value": "{typography.scale.xl.lineHeight}",
15131
15222
  "$type": "dimension"
15132
15223
  },
15133
15224
  "fontWeight": {
@@ -15135,7 +15226,7 @@
15135
15226
  "$type": "fontWeight"
15136
15227
  },
15137
15228
  "letterSpacing": {
15138
- "$value": "{typography.scale.3xl.letterSpacing}",
15229
+ "$value": "{typography.scale.xl.letterSpacing}",
15139
15230
  "$type": "dimension"
15140
15231
  }
15141
15232
  },
@@ -15145,11 +15236,11 @@
15145
15236
  "$type": "fontFamily"
15146
15237
  },
15147
15238
  "fontSize": {
15148
- "$value": "{typography.scale.2xl.fontSize}",
15239
+ "$value": "{typography.scale.xl.fontSize}",
15149
15240
  "$type": "dimension"
15150
15241
  },
15151
15242
  "lineHeight": {
15152
- "$value": "{typography.scale.2xl.lineHeight}",
15243
+ "$value": "{typography.scale.xl.lineHeight}",
15153
15244
  "$type": "dimension"
15154
15245
  },
15155
15246
  "fontWeight": {
@@ -15157,7 +15248,7 @@
15157
15248
  "$type": "fontWeight"
15158
15249
  },
15159
15250
  "letterSpacing": {
15160
- "$value": "{typography.scale.2xl.letterSpacing}",
15251
+ "$value": "{typography.scale.xl.letterSpacing}",
15161
15252
  "$type": "dimension"
15162
15253
  }
15163
15254
  },
@@ -15213,11 +15304,11 @@
15213
15304
  "$type": "fontFamily"
15214
15305
  },
15215
15306
  "fontSize": {
15216
- "$value": "{typography.scale.7xl.fontSize}",
15307
+ "$value": "{typography.scale.4xl.fontSize}",
15217
15308
  "$type": "dimension"
15218
15309
  },
15219
15310
  "lineHeight": {
15220
- "$value": "{typography.scale.7xl.lineHeight}",
15311
+ "$value": "{typography.scale.4xl.lineHeight}",
15221
15312
  "$type": "dimension"
15222
15313
  },
15223
15314
  "fontWeight": {
@@ -15225,7 +15316,7 @@
15225
15316
  "$type": "fontWeight"
15226
15317
  },
15227
15318
  "letterSpacing": {
15228
- "$value": "{typography.scale.7xl.letterSpacing}",
15319
+ "$value": "{typography.scale.4xl.letterSpacing}",
15229
15320
  "$type": "dimension"
15230
15321
  }
15231
15322
  },
@@ -15235,11 +15326,11 @@
15235
15326
  "$type": "fontFamily"
15236
15327
  },
15237
15328
  "fontSize": {
15238
- "$value": "{typography.scale.6xl.fontSize}",
15329
+ "$value": "{typography.scale.4xl.fontSize}",
15239
15330
  "$type": "dimension"
15240
15331
  },
15241
15332
  "lineHeight": {
15242
- "$value": "{typography.scale.6xl.lineHeight}",
15333
+ "$value": "{typography.scale.4xl.lineHeight}",
15243
15334
  "$type": "dimension"
15244
15335
  },
15245
15336
  "fontWeight": {
@@ -15247,7 +15338,7 @@
15247
15338
  "$type": "fontWeight"
15248
15339
  },
15249
15340
  "letterSpacing": {
15250
- "$value": "{typography.scale.6xl.letterSpacing}",
15341
+ "$value": "{typography.scale.4xl.letterSpacing}",
15251
15342
  "$type": "dimension"
15252
15343
  }
15253
15344
  },
@@ -15257,11 +15348,11 @@
15257
15348
  "$type": "fontFamily"
15258
15349
  },
15259
15350
  "fontSize": {
15260
- "$value": "{typography.scale.5xl.fontSize}",
15351
+ "$value": "{typography.scale.4xl.fontSize}",
15261
15352
  "$type": "dimension"
15262
15353
  },
15263
15354
  "lineHeight": {
15264
- "$value": "{typography.scale.5xl.lineHeight}",
15355
+ "$value": "{typography.scale.4xl.lineHeight}",
15265
15356
  "$type": "dimension"
15266
15357
  },
15267
15358
  "fontWeight": {
@@ -15269,7 +15360,7 @@
15269
15360
  "$type": "fontWeight"
15270
15361
  },
15271
15362
  "letterSpacing": {
15272
- "$value": "{typography.scale.5xl.letterSpacing}",
15363
+ "$value": "{typography.scale.4xl.letterSpacing}",
15273
15364
  "$type": "dimension"
15274
15365
  }
15275
15366
  },
@@ -15361,6 +15452,94 @@
15361
15452
  "$value": "{typography.scale.xl.letterSpacing}",
15362
15453
  "$type": "dimension"
15363
15454
  }
15455
+ },
15456
+ "responsive": {
15457
+ "md": {
15458
+ "heading": {
15459
+ "h1": {
15460
+ "fontSize": {
15461
+ "$value": "{typography.scale.6xl.fontSize}",
15462
+ "$type": "dimension"
15463
+ },
15464
+ "lineHeight": {
15465
+ "$value": "{typography.scale.6xl.lineHeight}",
15466
+ "$type": "dimension"
15467
+ }
15468
+ },
15469
+ "h2": {
15470
+ "fontSize": {
15471
+ "$value": "{typography.scale.5xl.fontSize}",
15472
+ "$type": "dimension"
15473
+ },
15474
+ "lineHeight": {
15475
+ "$value": "{typography.scale.5xl.lineHeight}",
15476
+ "$type": "dimension"
15477
+ }
15478
+ },
15479
+ "h3": {
15480
+ "fontSize": {
15481
+ "$value": "{typography.scale.4xl.fontSize}",
15482
+ "$type": "dimension"
15483
+ },
15484
+ "lineHeight": {
15485
+ "$value": "{typography.scale.4xl.lineHeight}",
15486
+ "$type": "dimension"
15487
+ }
15488
+ },
15489
+ "h4": {
15490
+ "fontSize": {
15491
+ "$value": "{typography.scale.3xl.fontSize}",
15492
+ "$type": "dimension"
15493
+ },
15494
+ "lineHeight": {
15495
+ "$value": "{typography.scale.3xl.lineHeight}",
15496
+ "$type": "dimension"
15497
+ }
15498
+ },
15499
+ "h5": {
15500
+ "fontSize": {
15501
+ "$value": "{typography.scale.2xl.fontSize}",
15502
+ "$type": "dimension"
15503
+ },
15504
+ "lineHeight": {
15505
+ "$value": "{typography.scale.2xl.lineHeight}",
15506
+ "$type": "dimension"
15507
+ }
15508
+ }
15509
+ },
15510
+ "display": {
15511
+ "1": {
15512
+ "fontSize": {
15513
+ "$value": "{typography.scale.7xl.fontSize}",
15514
+ "$type": "dimension"
15515
+ },
15516
+ "lineHeight": {
15517
+ "$value": "{typography.scale.7xl.lineHeight}",
15518
+ "$type": "dimension"
15519
+ }
15520
+ },
15521
+ "2": {
15522
+ "fontSize": {
15523
+ "$value": "{typography.scale.6xl.fontSize}",
15524
+ "$type": "dimension"
15525
+ },
15526
+ "lineHeight": {
15527
+ "$value": "{typography.scale.6xl.lineHeight}",
15528
+ "$type": "dimension"
15529
+ }
15530
+ },
15531
+ "3": {
15532
+ "fontSize": {
15533
+ "$value": "{typography.scale.5xl.fontSize}",
15534
+ "$type": "dimension"
15535
+ },
15536
+ "lineHeight": {
15537
+ "$value": "{typography.scale.5xl.lineHeight}",
15538
+ "$type": "dimension"
15539
+ }
15540
+ }
15541
+ }
15542
+ }
15364
15543
  }
15365
15544
  }
15366
15545
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phcdevworks/spectre-tokens",
3
- "version": "4.14.0",
3
+ "version": "4.15.0",
4
4
  "description": "@phcdevworks/spectre-tokens is the design-token foundation of the Spectre system. It provides the shared visual values and semantic contracts used across Spectre packages and PHCDevworks 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.2.0",
38
+ "packageManager": "npm@12.2.1",
39
39
  "main": "./dist/index.cjs",
40
40
  "module": "./dist/index.js",
41
41
  "types": "./dist/index.d.ts",
@@ -103,20 +103,20 @@
103
103
  "devDependencies": {
104
104
  "@phcdevworks/spectre-manifest": "^2.0.0",
105
105
  "@types/node": "^26.6.5",
106
- "@typescript-eslint/eslint-plugin": "^8.71.2",
107
- "@typescript-eslint/parser": "^8.71.2",
106
+ "@typescript-eslint/eslint-plugin": "^8.72.0",
107
+ "@typescript-eslint/parser": "^8.72.0",
108
108
  "@typescript/native": "npm:typescript@^7.0.2",
109
109
  "colord": "^2.10.0",
110
- "eslint": "^10.12.0",
110
+ "eslint": "^10.13.0",
111
111
  "jiti": "^2.7.0",
112
112
  "prettier": "^3.9.10",
113
- "style-dictionary": "^5.6.1",
113
+ "style-dictionary": "^5.7.0",
114
114
  "ts-node": "^10.9.2",
115
115
  "tsup": "^9.0.0",
116
116
  "tsx": "^4.23.15",
117
117
  "typescript": "npm:@typescript/typescript6@^6.0.2",
118
- "typescript-eslint": "^8.71.2",
119
- "vitest": "^5.0.4"
118
+ "typescript-eslint": "^8.72.0",
119
+ "vitest": "^5.0.5"
120
120
  },
121
121
  "overrides": {
122
122
  "esbuild": "0.28.1"
package/tokens/modes.json CHANGED
@@ -2909,6 +2909,30 @@
2909
2909
  }
2910
2910
  },
2911
2911
  "dark": {
2912
+ "action": {
2913
+ "onPage": {
2914
+ "value": "{colors.brand.400}",
2915
+ "description": "action-coloured text on the dark page",
2916
+ "metadata": {
2917
+ "pair": "modes.dark.surface.page"
2918
+ }
2919
+ },
2920
+ "onSurface": {
2921
+ "value": "{colors.brand.400}",
2922
+ "description": "action-coloured text on dark surface containers",
2923
+ "metadata": {
2924
+ "pair": "modes.dark.surface.card"
2925
+ }
2926
+ },
2927
+ "rail": {
2928
+ "value": "{colors.brand.400}",
2929
+ "description": "action-coloured accent rail on the dark page",
2930
+ "metadata": {
2931
+ "pair": "modes.dark.surface.page",
2932
+ "minContrast": 3
2933
+ }
2934
+ }
2935
+ },
2912
2936
  "surface": {
2913
2937
  "page": {
2914
2938
  "value": "{colors.neutral.900}",
@@ -5877,6 +5901,53 @@
5877
5901
  }
5878
5902
  },
5879
5903
  "highContrast": {
5904
+ "action": {
5905
+ "bg": {
5906
+ "value": "{colors.brand.800}",
5907
+ "description": "action fill lifted one step so its text holds 7:1",
5908
+ "metadata": {
5909
+ "pair": "modes.highContrast.action.text"
5910
+ }
5911
+ },
5912
+ "bgHover": {
5913
+ "value": "{colors.brand.900}",
5914
+ "metadata": {
5915
+ "pair": "modes.highContrast.action.text"
5916
+ }
5917
+ },
5918
+ "bgActive": {
5919
+ "value": "{colors.brand.900}",
5920
+ "description": "same as bgHover: 900 is the darkest step every action family shares",
5921
+ "metadata": {
5922
+ "pair": "modes.highContrast.action.text"
5923
+ }
5924
+ },
5925
+ "text": {
5926
+ "value": "{colors.white}",
5927
+ "metadata": {
5928
+ "pair": "modes.highContrast.action.bg"
5929
+ }
5930
+ },
5931
+ "onPage": {
5932
+ "value": "{colors.brand.900}",
5933
+ "metadata": {
5934
+ "pair": "modes.highContrast.surface.page"
5935
+ }
5936
+ },
5937
+ "onSurface": {
5938
+ "value": "{colors.brand.900}",
5939
+ "metadata": {
5940
+ "pair": "modes.highContrast.surface.card"
5941
+ }
5942
+ },
5943
+ "rail": {
5944
+ "value": "{colors.brand.900}",
5945
+ "metadata": {
5946
+ "pair": "modes.highContrast.surface.page",
5947
+ "minContrast": 3
5948
+ }
5949
+ }
5950
+ },
5880
5951
  "surface": {
5881
5952
  "page": {
5882
5953
  "value": "{colors.white}",
@@ -89,6 +89,62 @@
89
89
  "description": "underline colour for inline links on hover"
90
90
  }
91
91
  },
92
+ "action": {
93
+ "bg": {
94
+ "value": "{colors.brand.700}",
95
+ "description": "solid fill for the theme's own action colour (buttons, chips); a theme picks the palette family with data-spectre-action on the root element",
96
+ "metadata": {
97
+ "pair": "action.text"
98
+ }
99
+ },
100
+ "bgHover": {
101
+ "value": "{colors.brand.800}",
102
+ "description": "action fill on hover, one step darker in the same family",
103
+ "metadata": {
104
+ "pair": "action.text"
105
+ }
106
+ },
107
+ "bgActive": {
108
+ "value": "{colors.brand.900}",
109
+ "description": "action fill while pressed, two steps darker in the same family",
110
+ "metadata": {
111
+ "pair": "action.text"
112
+ }
113
+ },
114
+ "text": {
115
+ "value": "{colors.white}",
116
+ "description": "text and icons on action.bg, action.bgHover, and action.bgActive",
117
+ "metadata": {
118
+ "pair": "action.bg"
119
+ }
120
+ },
121
+ "focusRing": {
122
+ "value": "{colors.brand.500} / 0.4",
123
+ "description": "focus ring around an action-filled control"
124
+ },
125
+ "onPage": {
126
+ "value": "{colors.brand.700}",
127
+ "description": "action-coloured text on the page background: stat units, eyebrows, quote marks",
128
+ "metadata": {
129
+ "pair": "surface.page"
130
+ }
131
+ },
132
+ "onSurface": {
133
+ "value": "{colors.brand.700}",
134
+ "description": "action-coloured text on surface containers",
135
+ "metadata": {
136
+ "pair": "surface.card"
137
+ }
138
+ },
139
+ "rail": {
140
+ "value": "{colors.brand.700}",
141
+ "description": "action-coloured accent rail or quote rule; a non-text pair held to 3:1",
142
+ "metadata": {
143
+ "pair": "surface.page",
144
+ "minContrast": 3
145
+ }
146
+ }
147
+ },
92
148
  "text": {
93
149
  "onPage": {
94
150
  "default": {