@phcdevworks/spectre-tokens 4.12.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.
@@ -235,5 +235,48 @@
235
235
  "wide": "0.025em",
236
236
  "wider": "0.05em",
237
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
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"
238
281
  }
239
282
  }
@@ -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
  },
@@ -222,6 +258,18 @@
222
258
  "sidebar": {
223
259
  "width": "16rem"
224
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
+ },
225
273
  "responsive": {
226
274
  "lg": {
227
275
  "section": {
@@ -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
- "xl": {
119
+ "2xl": {
96
120
  "fontSize": "1.5rem",
97
121
  "lineHeight": "2.125rem",
98
122
  "fontWeight": 600,
99
123
  "letterSpacing": "0em"
100
124
  },
101
- "2xl": {
125
+ "3xl": {
102
126
  "fontSize": "1.875rem",
103
127
  "lineHeight": "2.5rem",
104
128
  "fontWeight": 700,
105
129
  "letterSpacing": "0em"
106
130
  },
107
- "3xl": {
131
+ "4xl": {
108
132
  "fontSize": "2.25rem",
109
133
  "lineHeight": "2.75rem",
110
134
  "fontWeight": 700,
111
135
  "letterSpacing": "0em"
112
136
  },
113
- "4xl": {
137
+ "5xl": {
114
138
  "fontSize": "3rem",
115
139
  "lineHeight": "3.5rem",
116
140
  "fontWeight": 800,
117
141
  "letterSpacing": "0em"
118
142
  },
119
- "5xl": {
143
+ "6xl": {
120
144
  "fontSize": "3.75rem",
121
145
  "lineHeight": "4.25rem",
122
146
  "fontWeight": 800,
123
147
  "letterSpacing": "0em"
124
148
  },
125
- "6xl": {
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": 800,
180
+ "fontWeight": 700,
138
181
  "letterSpacing": "{typography.scale.5xl.letterSpacing}"
139
182
  },
140
- "h2": {
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
- "h3": {
190
+ "h4": {
148
191
  "fontFamily": "{typography.families.sans}",
149
192
  "fontSize": "{typography.scale.3xl.fontSize}",
150
193
  "lineHeight": "{typography.scale.3xl.lineHeight}",
151
- "fontWeight": 700,
194
+ "fontWeight": 600,
152
195
  "letterSpacing": "{typography.scale.3xl.letterSpacing}"
153
196
  },
154
- "h4": {
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
- "h5": {
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
- "2": {
234
+ "3": {
192
235
  "fontFamily": "{typography.families.sans}",
193
236
  "fontSize": "{typography.scale.5xl.fontSize}",
194
237
  "lineHeight": "{typography.scale.5xl.lineHeight}",
195
- "fontWeight": 800,
238
+ "fontWeight": 700,
196
239
  "letterSpacing": "{typography.scale.5xl.letterSpacing}"
197
240
  },
198
- "3": {
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
- "4": {
248
+ "5": {
206
249
  "fontFamily": "{typography.families.sans}",
207
250
  "fontSize": "{typography.scale.3xl.fontSize}",
208
251
  "lineHeight": "{typography.scale.3xl.lineHeight}",
209
- "fontWeight": 700,
252
+ "fontWeight": 600,
210
253
  "letterSpacing": "{typography.scale.3xl.letterSpacing}"
211
254
  },
212
- "5": {
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.lg.fontSize}",
230
- "lineHeight": "{typography.scale.lg.lineHeight}",
265
+ "fontSize": "{typography.scale.xl.fontSize}",
266
+ "lineHeight": "{typography.scale.xl.lineHeight}",
231
267
  "fontWeight": 400,
232
- "letterSpacing": "{typography.scale.lg.letterSpacing}"
268
+ "letterSpacing": "{typography.scale.xl.letterSpacing}"
233
269
  }
234
270
  }
235
271
  }