@phcdevworks/spectre-tokens 4.13.0 → 4.14.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 +147 -8
- package/dist/index.cjs +112 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +59 -34
- package/dist/index.d.cts +61 -1
- package/dist/index.d.ts +61 -1
- package/dist/index.js +112 -47
- package/dist/index.js.map +1 -1
- package/dist/tokens.dtcg.json +248 -54
- package/package.json +7 -7
- package/tokens/components.json +1 -1
- package/tokens/modes.json +40 -2
- package/tokens/primitives.json +15 -0
- package/tokens/typography.json +71 -35
package/tokens/components.json
CHANGED
package/tokens/modes.json
CHANGED
|
@@ -1466,7 +1466,7 @@
|
|
|
1466
1466
|
"metadata": {}
|
|
1467
1467
|
},
|
|
1468
1468
|
"stripeBg": {
|
|
1469
|
-
"value": "{colors.
|
|
1469
|
+
"value": "{colors.black} / 0.05",
|
|
1470
1470
|
"metadata": {}
|
|
1471
1471
|
},
|
|
1472
1472
|
"hoverBg": {
|
|
@@ -4396,7 +4396,7 @@
|
|
|
4396
4396
|
"metadata": {}
|
|
4397
4397
|
},
|
|
4398
4398
|
"stripeBg": {
|
|
4399
|
-
"value": "{colors.
|
|
4399
|
+
"value": "{colors.white} / 0.06",
|
|
4400
4400
|
"metadata": {}
|
|
4401
4401
|
},
|
|
4402
4402
|
"hoverBg": {
|
|
@@ -5836,6 +5836,44 @@
|
|
|
5836
5836
|
}
|
|
5837
5837
|
}
|
|
5838
5838
|
}
|
|
5839
|
+
},
|
|
5840
|
+
"link": {
|
|
5841
|
+
"default": {
|
|
5842
|
+
"value": "{colors.brand.400}",
|
|
5843
|
+
"description": "default inline link color",
|
|
5844
|
+
"metadata": {
|
|
5845
|
+
"pair": "modes.dark.surface.card"
|
|
5846
|
+
}
|
|
5847
|
+
},
|
|
5848
|
+
"hover": {
|
|
5849
|
+
"value": "{colors.brand.300}",
|
|
5850
|
+
"description": "link color on hover",
|
|
5851
|
+
"metadata": {
|
|
5852
|
+
"pair": "modes.dark.surface.card"
|
|
5853
|
+
}
|
|
5854
|
+
},
|
|
5855
|
+
"active": {
|
|
5856
|
+
"value": "{colors.brand.200}",
|
|
5857
|
+
"description": "link color while pressed",
|
|
5858
|
+
"metadata": {
|
|
5859
|
+
"pair": "modes.dark.surface.card"
|
|
5860
|
+
}
|
|
5861
|
+
},
|
|
5862
|
+
"visited": {
|
|
5863
|
+
"value": "{colors.accent.300}",
|
|
5864
|
+
"description": "link color after the destination has been visited",
|
|
5865
|
+
"metadata": {
|
|
5866
|
+
"pair": "modes.dark.surface.card"
|
|
5867
|
+
}
|
|
5868
|
+
},
|
|
5869
|
+
"underline": {
|
|
5870
|
+
"value": "{colors.brand.400} / 0.4",
|
|
5871
|
+
"description": "underline colour for inline links; the link text keeps link.default"
|
|
5872
|
+
},
|
|
5873
|
+
"underlineHover": {
|
|
5874
|
+
"value": "{colors.brand.300}",
|
|
5875
|
+
"description": "underline colour for inline links on hover"
|
|
5876
|
+
}
|
|
5839
5877
|
}
|
|
5840
5878
|
},
|
|
5841
5879
|
"highContrast": {
|
package/tokens/primitives.json
CHANGED
|
@@ -263,5 +263,20 @@
|
|
|
263
263
|
"bold": 700,
|
|
264
264
|
"extrabold": 800,
|
|
265
265
|
"black": 900
|
|
266
|
+
},
|
|
267
|
+
"fontSize": {
|
|
268
|
+
"12": "0.75rem",
|
|
269
|
+
"14": "0.875rem",
|
|
270
|
+
"16": "1rem",
|
|
271
|
+
"18": "1.125rem",
|
|
272
|
+
"20": "1.25rem",
|
|
273
|
+
"24": "1.5rem",
|
|
274
|
+
"30": "1.875rem",
|
|
275
|
+
"36": "2.25rem",
|
|
276
|
+
"48": "3rem",
|
|
277
|
+
"60": "3.75rem",
|
|
278
|
+
"72": "4.5rem",
|
|
279
|
+
"96": "6rem",
|
|
280
|
+
"128": "8rem"
|
|
266
281
|
}
|
|
267
282
|
}
|
package/tokens/typography.json
CHANGED
|
@@ -59,6 +59,24 @@
|
|
|
59
59
|
"lineHeight": "{typography.scale.6xl.lineHeight}",
|
|
60
60
|
"weight": "{typography.scale.6xl.fontWeight}",
|
|
61
61
|
"letterSpacing": "{typography.scale.6xl.letterSpacing}"
|
|
62
|
+
},
|
|
63
|
+
"7xl": {
|
|
64
|
+
"size": "{typography.scale.7xl.fontSize}",
|
|
65
|
+
"lineHeight": "{typography.scale.7xl.lineHeight}",
|
|
66
|
+
"weight": "{typography.scale.7xl.fontWeight}",
|
|
67
|
+
"letterSpacing": "{typography.scale.7xl.letterSpacing}"
|
|
68
|
+
},
|
|
69
|
+
"8xl": {
|
|
70
|
+
"size": "{typography.scale.8xl.fontSize}",
|
|
71
|
+
"lineHeight": "{typography.scale.8xl.lineHeight}",
|
|
72
|
+
"weight": "{typography.scale.8xl.fontWeight}",
|
|
73
|
+
"letterSpacing": "{typography.scale.8xl.letterSpacing}"
|
|
74
|
+
},
|
|
75
|
+
"9xl": {
|
|
76
|
+
"size": "{typography.scale.9xl.fontSize}",
|
|
77
|
+
"lineHeight": "{typography.scale.9xl.lineHeight}",
|
|
78
|
+
"weight": "{typography.scale.9xl.fontWeight}",
|
|
79
|
+
"letterSpacing": "{typography.scale.9xl.letterSpacing}"
|
|
62
80
|
}
|
|
63
81
|
},
|
|
64
82
|
"typography": {
|
|
@@ -87,90 +105,108 @@
|
|
|
87
105
|
"letterSpacing": "0em"
|
|
88
106
|
},
|
|
89
107
|
"lg": {
|
|
108
|
+
"fontSize": "1.125rem",
|
|
109
|
+
"lineHeight": "1.875rem",
|
|
110
|
+
"fontWeight": 500,
|
|
111
|
+
"letterSpacing": "0em"
|
|
112
|
+
},
|
|
113
|
+
"xl": {
|
|
90
114
|
"fontSize": "1.25rem",
|
|
91
115
|
"lineHeight": "2rem",
|
|
92
116
|
"fontWeight": 600,
|
|
93
117
|
"letterSpacing": "0em"
|
|
94
118
|
},
|
|
95
|
-
"
|
|
119
|
+
"2xl": {
|
|
96
120
|
"fontSize": "1.5rem",
|
|
97
121
|
"lineHeight": "2.125rem",
|
|
98
122
|
"fontWeight": 600,
|
|
99
123
|
"letterSpacing": "0em"
|
|
100
124
|
},
|
|
101
|
-
"
|
|
125
|
+
"3xl": {
|
|
102
126
|
"fontSize": "1.875rem",
|
|
103
127
|
"lineHeight": "2.5rem",
|
|
104
128
|
"fontWeight": 700,
|
|
105
129
|
"letterSpacing": "0em"
|
|
106
130
|
},
|
|
107
|
-
"
|
|
131
|
+
"4xl": {
|
|
108
132
|
"fontSize": "2.25rem",
|
|
109
133
|
"lineHeight": "2.75rem",
|
|
110
134
|
"fontWeight": 700,
|
|
111
135
|
"letterSpacing": "0em"
|
|
112
136
|
},
|
|
113
|
-
"
|
|
137
|
+
"5xl": {
|
|
114
138
|
"fontSize": "3rem",
|
|
115
139
|
"lineHeight": "3.5rem",
|
|
116
140
|
"fontWeight": 800,
|
|
117
141
|
"letterSpacing": "0em"
|
|
118
142
|
},
|
|
119
|
-
"
|
|
143
|
+
"6xl": {
|
|
120
144
|
"fontSize": "3.75rem",
|
|
121
145
|
"lineHeight": "4.25rem",
|
|
122
146
|
"fontWeight": 800,
|
|
123
147
|
"letterSpacing": "0em"
|
|
124
148
|
},
|
|
125
|
-
"
|
|
149
|
+
"7xl": {
|
|
126
150
|
"fontSize": "4.5rem",
|
|
127
151
|
"lineHeight": "5rem",
|
|
128
152
|
"fontWeight": 900,
|
|
129
153
|
"letterSpacing": "0em"
|
|
154
|
+
},
|
|
155
|
+
"8xl": {
|
|
156
|
+
"fontSize": "6rem",
|
|
157
|
+
"lineHeight": "6.5rem",
|
|
158
|
+
"fontWeight": 900,
|
|
159
|
+
"letterSpacing": "0em"
|
|
160
|
+
},
|
|
161
|
+
"9xl": {
|
|
162
|
+
"fontSize": "8rem",
|
|
163
|
+
"lineHeight": "8.5rem",
|
|
164
|
+
"fontWeight": 900,
|
|
165
|
+
"letterSpacing": "0em"
|
|
130
166
|
}
|
|
131
167
|
},
|
|
132
168
|
"heading": {
|
|
133
169
|
"h1": {
|
|
170
|
+
"fontFamily": "{typography.families.sans}",
|
|
171
|
+
"fontSize": "{typography.scale.6xl.fontSize}",
|
|
172
|
+
"lineHeight": "{typography.scale.6xl.lineHeight}",
|
|
173
|
+
"fontWeight": 800,
|
|
174
|
+
"letterSpacing": "{typography.scale.6xl.letterSpacing}"
|
|
175
|
+
},
|
|
176
|
+
"h2": {
|
|
134
177
|
"fontFamily": "{typography.families.sans}",
|
|
135
178
|
"fontSize": "{typography.scale.5xl.fontSize}",
|
|
136
179
|
"lineHeight": "{typography.scale.5xl.lineHeight}",
|
|
137
|
-
"fontWeight":
|
|
180
|
+
"fontWeight": 700,
|
|
138
181
|
"letterSpacing": "{typography.scale.5xl.letterSpacing}"
|
|
139
182
|
},
|
|
140
|
-
"
|
|
183
|
+
"h3": {
|
|
141
184
|
"fontFamily": "{typography.families.sans}",
|
|
142
185
|
"fontSize": "{typography.scale.4xl.fontSize}",
|
|
143
186
|
"lineHeight": "{typography.scale.4xl.lineHeight}",
|
|
144
187
|
"fontWeight": 700,
|
|
145
188
|
"letterSpacing": "{typography.scale.4xl.letterSpacing}"
|
|
146
189
|
},
|
|
147
|
-
"
|
|
190
|
+
"h4": {
|
|
148
191
|
"fontFamily": "{typography.families.sans}",
|
|
149
192
|
"fontSize": "{typography.scale.3xl.fontSize}",
|
|
150
193
|
"lineHeight": "{typography.scale.3xl.lineHeight}",
|
|
151
|
-
"fontWeight":
|
|
194
|
+
"fontWeight": 600,
|
|
152
195
|
"letterSpacing": "{typography.scale.3xl.letterSpacing}"
|
|
153
196
|
},
|
|
154
|
-
"
|
|
197
|
+
"h5": {
|
|
155
198
|
"fontFamily": "{typography.families.sans}",
|
|
156
199
|
"fontSize": "{typography.scale.2xl.fontSize}",
|
|
157
200
|
"lineHeight": "{typography.scale.2xl.lineHeight}",
|
|
158
201
|
"fontWeight": 600,
|
|
159
202
|
"letterSpacing": "{typography.scale.2xl.letterSpacing}"
|
|
160
203
|
},
|
|
161
|
-
"
|
|
204
|
+
"h6": {
|
|
162
205
|
"fontFamily": "{typography.families.sans}",
|
|
163
206
|
"fontSize": "{typography.scale.xl.fontSize}",
|
|
164
207
|
"lineHeight": "{typography.scale.xl.lineHeight}",
|
|
165
208
|
"fontWeight": 600,
|
|
166
209
|
"letterSpacing": "{typography.scale.xl.letterSpacing}"
|
|
167
|
-
},
|
|
168
|
-
"h6": {
|
|
169
|
-
"fontFamily": "{typography.families.sans}",
|
|
170
|
-
"fontSize": "{typography.scale.lg.fontSize}",
|
|
171
|
-
"lineHeight": "{typography.scale.lg.lineHeight}",
|
|
172
|
-
"fontWeight": 600,
|
|
173
|
-
"letterSpacing": "{typography.scale.lg.letterSpacing}"
|
|
174
210
|
}
|
|
175
211
|
},
|
|
176
212
|
"body": {
|
|
@@ -182,54 +218,54 @@
|
|
|
182
218
|
},
|
|
183
219
|
"display": {
|
|
184
220
|
"1": {
|
|
221
|
+
"fontFamily": "{typography.families.sans}",
|
|
222
|
+
"fontSize": "{typography.scale.7xl.fontSize}",
|
|
223
|
+
"lineHeight": "{typography.scale.7xl.lineHeight}",
|
|
224
|
+
"fontWeight": 800,
|
|
225
|
+
"letterSpacing": "{typography.scale.7xl.letterSpacing}"
|
|
226
|
+
},
|
|
227
|
+
"2": {
|
|
185
228
|
"fontFamily": "{typography.families.sans}",
|
|
186
229
|
"fontSize": "{typography.scale.6xl.fontSize}",
|
|
187
230
|
"lineHeight": "{typography.scale.6xl.lineHeight}",
|
|
188
231
|
"fontWeight": 800,
|
|
189
232
|
"letterSpacing": "{typography.scale.6xl.letterSpacing}"
|
|
190
233
|
},
|
|
191
|
-
"
|
|
234
|
+
"3": {
|
|
192
235
|
"fontFamily": "{typography.families.sans}",
|
|
193
236
|
"fontSize": "{typography.scale.5xl.fontSize}",
|
|
194
237
|
"lineHeight": "{typography.scale.5xl.lineHeight}",
|
|
195
|
-
"fontWeight":
|
|
238
|
+
"fontWeight": 700,
|
|
196
239
|
"letterSpacing": "{typography.scale.5xl.letterSpacing}"
|
|
197
240
|
},
|
|
198
|
-
"
|
|
241
|
+
"4": {
|
|
199
242
|
"fontFamily": "{typography.families.sans}",
|
|
200
243
|
"fontSize": "{typography.scale.4xl.fontSize}",
|
|
201
244
|
"lineHeight": "{typography.scale.4xl.lineHeight}",
|
|
202
245
|
"fontWeight": 700,
|
|
203
246
|
"letterSpacing": "{typography.scale.4xl.letterSpacing}"
|
|
204
247
|
},
|
|
205
|
-
"
|
|
248
|
+
"5": {
|
|
206
249
|
"fontFamily": "{typography.families.sans}",
|
|
207
250
|
"fontSize": "{typography.scale.3xl.fontSize}",
|
|
208
251
|
"lineHeight": "{typography.scale.3xl.lineHeight}",
|
|
209
|
-
"fontWeight":
|
|
252
|
+
"fontWeight": 600,
|
|
210
253
|
"letterSpacing": "{typography.scale.3xl.letterSpacing}"
|
|
211
254
|
},
|
|
212
|
-
"
|
|
255
|
+
"6": {
|
|
213
256
|
"fontFamily": "{typography.families.sans}",
|
|
214
257
|
"fontSize": "{typography.scale.2xl.fontSize}",
|
|
215
258
|
"lineHeight": "{typography.scale.2xl.lineHeight}",
|
|
216
259
|
"fontWeight": 600,
|
|
217
260
|
"letterSpacing": "{typography.scale.2xl.letterSpacing}"
|
|
218
|
-
},
|
|
219
|
-
"6": {
|
|
220
|
-
"fontFamily": "{typography.families.sans}",
|
|
221
|
-
"fontSize": "{typography.scale.xl.fontSize}",
|
|
222
|
-
"lineHeight": "{typography.scale.xl.lineHeight}",
|
|
223
|
-
"fontWeight": 600,
|
|
224
|
-
"letterSpacing": "{typography.scale.xl.letterSpacing}"
|
|
225
261
|
}
|
|
226
262
|
},
|
|
227
263
|
"lead": {
|
|
228
264
|
"fontFamily": "{typography.families.sans}",
|
|
229
|
-
"fontSize": "{typography.scale.
|
|
230
|
-
"lineHeight": "{typography.scale.
|
|
265
|
+
"fontSize": "{typography.scale.xl.fontSize}",
|
|
266
|
+
"lineHeight": "{typography.scale.xl.lineHeight}",
|
|
231
267
|
"fontWeight": 400,
|
|
232
|
-
"letterSpacing": "{typography.scale.
|
|
268
|
+
"letterSpacing": "{typography.scale.xl.letterSpacing}"
|
|
233
269
|
}
|
|
234
270
|
}
|
|
235
271
|
}
|