@orange-halo/tokens 2.0.0 → 2.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/contrast-pairs.json +187 -30
- package/contrast.js +11 -2
- package/dist/brands/hood-dark.css +74 -0
- package/dist/brands/hood-dark.json +723 -0
- package/dist/brands/hood.css +434 -0
- package/dist/brands/hood.json +723 -0
- package/dist/brands/orange-halo-dark.css +78 -0
- package/dist/brands/orange-halo-dark.json +857 -0
- package/dist/brands/orange-halo.css +512 -0
- package/dist/brands/orange-halo.json +857 -0
- package/dist/themes/dark.css +11 -0
- package/dist/themes/dark.json +146 -72
- package/dist/tokens.css +113 -62
- package/dist/tokens.js +131 -64
- package/dist/tokens.json +146 -72
- package/package.json +3 -4
- package/tokens/brands/hood/brand.json +7 -0
- package/tokens/brands/hood/dark.tokens.json +295 -0
- package/tokens/brands/hood/light.tokens.json +875 -0
- package/tokens/brands/hood/palette.tokens.json +187 -0
- package/tokens/brands/orange-halo/brand.json +7 -0
- package/tokens/{themes → brands/orange-halo}/dark.tokens.json +57 -7
- package/tokens/{semantic.tokens.json → brands/orange-halo/light.tokens.json} +128 -3
- package/tokens/{global.tokens.json → brands/orange-halo/palette.tokens.json} +83 -205
- package/tokens/{component.tokens.json → core/component.tokens.json} +205 -51
- package/tokens/core/scales.tokens.json +170 -0
- package/dist/themes/light.css +0 -47
package/dist/tokens.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
export const OhGridUnit = "8px"; // 8px grid with 4px half-steps
|
|
5
6
|
export const OhColorOrange50 = "#fff3e0";
|
|
6
7
|
export const OhColorOrange100 = "#ffe0b2";
|
|
7
8
|
export const OhColorOrange200 = "#ffcc80";
|
|
@@ -115,6 +116,11 @@ export const OhColorSurfaceOverlay = "#3d322966"; // Modal backdrop — warm
|
|
|
115
116
|
export const OhColorSurfaceDisabled = "#e2dcd2"; // Quiet disabled
|
|
116
117
|
export const OhColorSurfaceHover = "#fff4e6"; // Warm hover tint
|
|
117
118
|
export const OhColorSurfaceActivePressed = "#f0ebe3"; // Active/pressed surface
|
|
119
|
+
export const OhColorSurfaceFeaturedStart = "#fffbf5"; // Featured (sunlit) card gradient: top
|
|
120
|
+
export const OhColorSurfaceFeaturedMid = "#fdf6ee"; // Featured (sunlit) card gradient: 30%
|
|
121
|
+
export const OhColorSurfaceFeaturedEnd = "#f8efe4"; // Featured (sunlit) card gradient: bottom
|
|
122
|
+
export const OhColorSurfaceSheen = "#ffffff80"; // Light glaze at the top of card headers, fading to transparent
|
|
123
|
+
export const OhColorSurfaceBackdrop = "#3d322999"; // Modal backdrop — darker than surface.overlay so the dialog stands out
|
|
118
124
|
export const OhColorBorderDefault = "#e2dcd2"; // Standard border
|
|
119
125
|
export const OhColorBorderSubtle = "#ede8df"; // Subtle dividers
|
|
120
126
|
export const OhColorBorderEmphasis = "#6b5d4d"; // Strong border for form elements
|
|
@@ -122,6 +128,8 @@ export const OhColorBorderStrong = "#c9c1b4"; // Neutral edge between default an
|
|
|
122
128
|
export const OhColorBorderHover = "#8b4726"; // Hover border — darker for feedback
|
|
123
129
|
export const OhColorBorderDisabled = "#ede8df";
|
|
124
130
|
export const OhColorBorderBrand = "#c5430040"; // Brand-tinted border
|
|
131
|
+
export const OhColorBorderBrandHover = "#c5430059"; // Brand-tinted border on hover. Decorative container edge — not a focus or control border
|
|
132
|
+
export const OhColorBorderDivider = "#e2d5c899"; // Decorative divider inside a container, such as a card's header and footer
|
|
125
133
|
export const OhColorTextPrimary = "#3d3229"; // Primary text — warm brown
|
|
126
134
|
export const OhColorTextSecondary = "#6b5d4d"; // Secondary text
|
|
127
135
|
export const OhColorTextDisabled = "#c9c1b4"; // Disabled text
|
|
@@ -143,14 +151,14 @@ export const OhFontFamilyDisplay =
|
|
|
143
151
|
export const OhFontFamilyMono =
|
|
144
152
|
"'JetBrains Mono', 'Fira Code', ui-monospace, monospace";
|
|
145
153
|
export const OhFontSizeXs = "0.75rem"; // 12px
|
|
146
|
-
export const OhFontSizeSm = "0.
|
|
154
|
+
export const OhFontSizeSm = "0.75rem"; // Kept so existing references don't break. On the grid, small text is xs; use xs or a tier 2 role
|
|
147
155
|
export const OhFontSizeBase = "1rem"; // 16px
|
|
148
|
-
export const OhFontSizeLg = "1.
|
|
149
|
-
export const OhFontSizeXl = "1.
|
|
150
|
-
export const OhFontSize2xl = "1.
|
|
156
|
+
export const OhFontSizeLg = "1.25rem"; // 20px
|
|
157
|
+
export const OhFontSizeXl = "1.5rem"; // 24px
|
|
158
|
+
export const OhFontSize2xl = "1.75rem"; // 28px
|
|
151
159
|
export const OhFontSize3xl = "2rem"; // 32px
|
|
152
|
-
export const OhFontSize4xl = "2.
|
|
153
|
-
export const OhFontSize5xl = "
|
|
160
|
+
export const OhFontSize4xl = "2.5rem"; // 40px
|
|
161
|
+
export const OhFontSize5xl = "3rem"; // 48px
|
|
154
162
|
export const OhFontWeightNormal = "400";
|
|
155
163
|
export const OhFontWeightMedium = "500";
|
|
156
164
|
export const OhFontWeightSemibold = "600";
|
|
@@ -167,33 +175,6 @@ export const OhFontLetterSpacingNormal = "0";
|
|
|
167
175
|
export const OhFontLetterSpacingWide = "0.01em";
|
|
168
176
|
export const OhFontLetterSpacingWider = "0.02em";
|
|
169
177
|
export const OhFontLetterSpacingWidest = "0.05em"; // Uppercase labels: hero eyebrows, footer headings
|
|
170
|
-
export const OhSpacing0 = "0";
|
|
171
|
-
export const OhSpacing1 = "0.25rem"; // 4px
|
|
172
|
-
export const OhSpacing2 = "0.5rem"; // 8px
|
|
173
|
-
export const OhSpacing3 = "0.75rem"; // 12px
|
|
174
|
-
export const OhSpacing4 = "1rem"; // 16px
|
|
175
|
-
export const OhSpacing5 = "1.25rem"; // 20px
|
|
176
|
-
export const OhSpacing6 = "1.5rem"; // 24px
|
|
177
|
-
export const OhSpacing7 = "1.75rem"; // 28px
|
|
178
|
-
export const OhSpacing8 = "2rem"; // 32px
|
|
179
|
-
export const OhSpacing10 = "2.5rem"; // 40px
|
|
180
|
-
export const OhSpacing12 = "3rem"; // 48px
|
|
181
|
-
export const OhSpacing16 = "4rem"; // 64px
|
|
182
|
-
export const OhSpacing20 = "5rem"; // 80px
|
|
183
|
-
export const OhSpacingPx = "1px";
|
|
184
|
-
export const OhSpacing05 = "0.125rem"; // 2px
|
|
185
|
-
export const OhSpacing15 = "0.375rem"; // 6px
|
|
186
|
-
export const OhSpacing25 = "0.625rem"; // 10px
|
|
187
|
-
export const OhSpacing35 = "0.875rem"; // 14px
|
|
188
|
-
export const OhSpacingLayoutPage = "1.5rem";
|
|
189
|
-
export const OhSpacingLayoutSection = "3rem";
|
|
190
|
-
export const OhSpacingLayoutStack = "1.25rem";
|
|
191
|
-
export const OhSpacingLayoutInline = "1rem";
|
|
192
|
-
export const OhSpacingComponentXs = "0.375rem";
|
|
193
|
-
export const OhSpacingComponentSm = "0.625rem";
|
|
194
|
-
export const OhSpacingComponentMd = "0.875rem";
|
|
195
|
-
export const OhSpacingComponentLg = "1.25rem";
|
|
196
|
-
export const OhSpacingComponentXl = "1.75rem";
|
|
197
178
|
export const OhRadiusNone = "0";
|
|
198
179
|
export const OhRadiusXs = "4px"; // Small details, chips
|
|
199
180
|
export const OhRadiusSm = "6px"; // Buttons, inputs
|
|
@@ -215,10 +196,34 @@ export const OhShadowChunkyPrimary = "#e8c4a0"; // Warm peach for primary button
|
|
|
215
196
|
export const OhShadowChunkySecondary = "#d4c4b0"; // Neutral tan for secondary/form elements
|
|
216
197
|
export const OhShadowChunkyAccent = "#a0b4c8"; // Blue offset shadow for accent buttons — decorative
|
|
217
198
|
export const OhShadowChunkyError = "#b545404d"; // Error state shadow
|
|
199
|
+
export const OhShadowChunkyDriftwood = "#6b5d4d26"; // Translucent driftwood, for offset shadows on cream
|
|
200
|
+
export const OhShadowChunkyDriftwoodHover = "#6b5d4d33"; // A step darker, for the lifted state
|
|
201
|
+
export const OhShadowChunkyDriftwoodDeep = "#6b5d4d40"; // For dialogs, which sit above everything
|
|
202
|
+
export const OhShadowChunkyWalnut = "#3d322926"; // Translucent walnut, for the inset shadow inside fields
|
|
203
|
+
export const OhShadowLayeredFlat =
|
|
204
|
+
"0 1px 2px rgba(61, 50, 41, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6)";
|
|
205
|
+
export const OhShadowLayeredRaised =
|
|
206
|
+
"0 2px 6px rgba(61, 50, 41, 0.08), 0 6px 16px rgba(61, 50, 41, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8)";
|
|
207
|
+
export const OhShadowLayeredLifted =
|
|
208
|
+
"0 4px 12px rgba(61, 50, 41, 0.1), 0 12px 28px rgba(61, 50, 41, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9)";
|
|
209
|
+
export const OhShadowLayeredPressed =
|
|
210
|
+
"0 1px 3px rgba(61, 50, 41, 0.1), 0 3px 8px rgba(61, 50, 41, 0.06), inset 0 1px 2px rgba(61, 50, 41, 0.04)";
|
|
211
|
+
export const OhShadowLayeredFocused =
|
|
212
|
+
"0 2px 6px rgba(61, 50, 41, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8)"; // Sits under the focus glow
|
|
213
|
+
export const OhShadowLayeredSunlit =
|
|
214
|
+
"0 2px 8px rgba(139, 69, 19, 0.08), 0 8px 24px rgba(139, 69, 19, 0.06), 0 0 20px rgba(197, 67, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9)";
|
|
215
|
+
export const OhShadowLayeredSunlitLifted =
|
|
216
|
+
"0 4px 12px rgba(139, 69, 19, 0.12), 0 12px 32px rgba(139, 69, 19, 0.08), 0 0 28px rgba(197, 67, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1)";
|
|
217
|
+
export const OhShadowLayeredSunlitFocused =
|
|
218
|
+
"0 2px 8px rgba(139, 69, 19, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9)"; // Sits under the focus glow
|
|
218
219
|
export const OhShadowPrimary = "#e8c4a0"; // Primary buttons
|
|
219
220
|
export const OhShadowSecondary = "#d4c4b0"; // Secondary/form elements
|
|
220
221
|
export const OhShadowAccent = "#a0b4c8"; // Accent buttons
|
|
221
222
|
export const OhShadowError = "#b545404d"; // Error state
|
|
223
|
+
export const OhShadowNeutral = "#6b5d4d26"; // Containers and the skip link
|
|
224
|
+
export const OhShadowNeutralHover = "#6b5d4d33"; // Lifted containers
|
|
225
|
+
export const OhShadowOverlay = "#6b5d4d40"; // Dialogs
|
|
226
|
+
export const OhShadowField = "#3d322926"; // The inset shadow inside text fields
|
|
222
227
|
export const OhGradientSunlit =
|
|
223
228
|
"linear-gradient(180deg, #fffbf5 0%, #fdf6ee 30%, #f8efe4 100%)"; // Gentle warmth for surfaces — same stops as the sunlit card
|
|
224
229
|
export const OhGradientWarm =
|
|
@@ -246,6 +251,33 @@ export const OhBorderWidth0 = "0";
|
|
|
246
251
|
export const OhBorderWidth1 = "1px";
|
|
247
252
|
export const OhBorderWidth2 = "2px";
|
|
248
253
|
export const OhBorderWidthChunky = "2.5px"; // Signature chunky frame for controls and feedback
|
|
254
|
+
export const OhSpacing0 = "0";
|
|
255
|
+
export const OhSpacing1 = "0.25rem"; // 4px
|
|
256
|
+
export const OhSpacing2 = "0.5rem"; // 8px
|
|
257
|
+
export const OhSpacing3 = "0.75rem"; // 12px
|
|
258
|
+
export const OhSpacing4 = "1rem"; // 16px
|
|
259
|
+
export const OhSpacing5 = "1.25rem"; // 20px
|
|
260
|
+
export const OhSpacing6 = "1.5rem"; // 24px
|
|
261
|
+
export const OhSpacing7 = "1.75rem"; // 28px
|
|
262
|
+
export const OhSpacing8 = "2rem"; // 32px
|
|
263
|
+
export const OhSpacing10 = "2.5rem"; // 40px
|
|
264
|
+
export const OhSpacing12 = "3rem"; // 48px
|
|
265
|
+
export const OhSpacing16 = "4rem"; // 64px
|
|
266
|
+
export const OhSpacing20 = "5rem"; // 80px
|
|
267
|
+
export const OhSpacingPx = "1px";
|
|
268
|
+
export const OhSpacing05 = "0.125rem"; // 2px
|
|
269
|
+
export const OhSpacing15 = "0.375rem"; // 6px
|
|
270
|
+
export const OhSpacing25 = "0.625rem"; // 10px
|
|
271
|
+
export const OhSpacing35 = "0.875rem"; // 14px
|
|
272
|
+
export const OhSpacingLayoutPage = "1.5rem";
|
|
273
|
+
export const OhSpacingLayoutSection = "3rem";
|
|
274
|
+
export const OhSpacingLayoutStack = "1.25rem";
|
|
275
|
+
export const OhSpacingLayoutInline = "1rem";
|
|
276
|
+
export const OhSpacingComponentXs = "0.375rem";
|
|
277
|
+
export const OhSpacingComponentSm = "0.625rem";
|
|
278
|
+
export const OhSpacingComponentMd = "0.875rem";
|
|
279
|
+
export const OhSpacingComponentLg = "1.25rem";
|
|
280
|
+
export const OhSpacingComponentXl = "1.75rem";
|
|
249
281
|
export const OhSizeContainerSm = "640px";
|
|
250
282
|
export const OhSizeContainerMd = "768px";
|
|
251
283
|
export const OhSizeContainerLg = "1024px";
|
|
@@ -264,56 +296,56 @@ export const OhZIndexPopover = 1300;
|
|
|
264
296
|
export const OhZIndexTooltip = 1400;
|
|
265
297
|
export const OhTypographyHeadingFontFamily =
|
|
266
298
|
"'Bricolage Grotesque', 'General Sans', sans-serif";
|
|
267
|
-
export const OhTypographyHeadingH1FontSize = "2.
|
|
299
|
+
export const OhTypographyHeadingH1FontSize = "2.5rem";
|
|
268
300
|
export const OhTypographyHeadingH1FontWeight = "700";
|
|
269
|
-
export const OhTypographyHeadingH1LineHeight = 1.25
|
|
301
|
+
export const OhTypographyHeadingH1LineHeight = 1.2; // 48px at 40px: 40px × 1.25, rounded to the 8px grid
|
|
270
302
|
export const OhTypographyHeadingH1LetterSpacing = "-0.02em";
|
|
271
303
|
export const OhTypographyHeadingH2FontSize = "2rem";
|
|
272
304
|
export const OhTypographyHeadingH2FontWeight = "700";
|
|
273
|
-
export const OhTypographyHeadingH2LineHeight = 1.25;
|
|
305
|
+
export const OhTypographyHeadingH2LineHeight = 1.25; // 40px at 32px: 32px × 1.25, rounded to the 8px grid
|
|
274
306
|
export const OhTypographyHeadingH2LetterSpacing = "-0.01em";
|
|
275
|
-
export const OhTypographyHeadingH3FontSize = "1.
|
|
307
|
+
export const OhTypographyHeadingH3FontSize = "1.75rem";
|
|
276
308
|
export const OhTypographyHeadingH3FontWeight = "600";
|
|
277
|
-
export const OhTypographyHeadingH3LineHeight = 1.35
|
|
309
|
+
export const OhTypographyHeadingH3LineHeight = 1.4286; // 40px at 28px: 28px × 1.35, rounded to the 8px grid
|
|
278
310
|
export const OhTypographyHeadingH3LetterSpacing = "-0.01em";
|
|
279
|
-
export const OhTypographyHeadingH4FontSize = "1.
|
|
311
|
+
export const OhTypographyHeadingH4FontSize = "1.5rem";
|
|
280
312
|
export const OhTypographyHeadingH4FontWeight = "600";
|
|
281
|
-
export const OhTypographyHeadingH4LineHeight = 1.35
|
|
313
|
+
export const OhTypographyHeadingH4LineHeight = 1.3333; // 32px at 24px: 24px × 1.35, rounded to the 8px grid
|
|
282
314
|
export const OhTypographyHeadingH4LetterSpacing = "0";
|
|
283
|
-
export const OhTypographyHeadingH5FontSize = "1.
|
|
315
|
+
export const OhTypographyHeadingH5FontSize = "1.25rem";
|
|
284
316
|
export const OhTypographyHeadingH5FontWeight = "500";
|
|
285
|
-
export const OhTypographyHeadingH5LineHeight = 1.5
|
|
317
|
+
export const OhTypographyHeadingH5LineHeight = 1.6; // 32px at 20px: 20px × 1.5, rounded to the 8px grid
|
|
286
318
|
export const OhTypographyHeadingH6FontSize = "1rem";
|
|
287
319
|
export const OhTypographyHeadingH6FontWeight = "500";
|
|
288
|
-
export const OhTypographyHeadingH6LineHeight = 1.5;
|
|
320
|
+
export const OhTypographyHeadingH6LineHeight = 1.5; // 24px at 16px: 16px × 1.5, rounded to the 8px grid
|
|
289
321
|
export const OhTypographyBodyFontFamily =
|
|
290
322
|
"'Bricolage Grotesque', 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif";
|
|
291
|
-
export const OhTypographyBodyXlFontSize = "1.
|
|
323
|
+
export const OhTypographyBodyXlFontSize = "1.5rem";
|
|
292
324
|
export const OhTypographyBodyXlFontWeight = "400";
|
|
293
|
-
export const OhTypographyBodyXlLineHeight = 1.5
|
|
294
|
-
export const OhTypographyBodyLgFontSize = "1.
|
|
325
|
+
export const OhTypographyBodyXlLineHeight = 1.6667; // 40px at 24px: 24px × 1.5, rounded to the 8px grid
|
|
326
|
+
export const OhTypographyBodyLgFontSize = "1.25rem";
|
|
295
327
|
export const OhTypographyBodyLgFontWeight = "400";
|
|
296
|
-
export const OhTypographyBodyLgLineHeight = 1.65
|
|
328
|
+
export const OhTypographyBodyLgLineHeight = 1.6; // 32px at 20px: 20px × 1.65, rounded to the 8px grid
|
|
297
329
|
export const OhTypographyBodyBaseFontSize = "1rem";
|
|
298
330
|
export const OhTypographyBodyBaseFontWeight = "400";
|
|
299
|
-
export const OhTypographyBodyBaseLineHeight = 1.5;
|
|
300
|
-
export const OhTypographyBodySmFontSize = "0.
|
|
331
|
+
export const OhTypographyBodyBaseLineHeight = 1.5; // 24px at 16px: 16px × 1.5, rounded to the 8px grid
|
|
332
|
+
export const OhTypographyBodySmFontSize = "0.75rem";
|
|
301
333
|
export const OhTypographyBodySmFontWeight = "400";
|
|
302
|
-
export const OhTypographyBodySmLineHeight = 1.5
|
|
334
|
+
export const OhTypographyBodySmLineHeight = 1.6667; // 20px at 12px: 12px × 1.5, rounded to the 4px grid
|
|
303
335
|
export const OhTypographyBodySmLetterSpacing = "0.01em";
|
|
304
336
|
export const OhTypographyBodyXsFontSize = "0.75rem";
|
|
305
337
|
export const OhTypographyBodyXsFontWeight = "400";
|
|
306
|
-
export const OhTypographyBodyXsLineHeight = 1.5
|
|
338
|
+
export const OhTypographyBodyXsLineHeight = 1.6667; // 20px at 12px: 12px × 1.5, rounded to the 4px grid
|
|
307
339
|
export const OhTypographyBodyXsLetterSpacing = "0.01em";
|
|
308
340
|
export const OhTypographyLabelFontFamily =
|
|
309
341
|
"'Bricolage Grotesque', 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif";
|
|
310
|
-
export const OhTypographyLabelBaseFontSize = "
|
|
342
|
+
export const OhTypographyLabelBaseFontSize = "1rem";
|
|
311
343
|
export const OhTypographyLabelBaseFontWeight = "500";
|
|
312
|
-
export const OhTypographyLabelBaseLineHeight = 1.5; // 1.5
|
|
344
|
+
export const OhTypographyLabelBaseLineHeight = 1.5; // 24px at 16px: 16px × 1.5, rounded to the 8px grid
|
|
313
345
|
export const OhTypographyLabelBaseLetterSpacing = "0.01em";
|
|
314
346
|
export const OhTypographyLabelSmFontSize = "0.75rem";
|
|
315
347
|
export const OhTypographyLabelSmFontWeight = "500";
|
|
316
|
-
export const OhTypographyLabelSmLineHeight = 1.
|
|
348
|
+
export const OhTypographyLabelSmLineHeight = 1.6667; // 20px at 12px: 12px × 1.5, rounded to the 4px grid
|
|
317
349
|
export const OhTypographyLabelSmLetterSpacing = "0.01em";
|
|
318
350
|
export const OhTypographyEyebrowFontFamily =
|
|
319
351
|
"'Bricolage Grotesque', 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif";
|
|
@@ -325,13 +357,13 @@ export const OhTypographyControlFontFamily =
|
|
|
325
357
|
export const OhTypographyControlFontWeight = "600";
|
|
326
358
|
export const OhTypographyControlLetterSpacing = "0.01em";
|
|
327
359
|
export const OhTypographyControlFontSizeSm = "1rem"; // Small buttons, field labels
|
|
328
|
-
export const OhTypographyControlFontSizeMd = "1.
|
|
329
|
-
export const OhTypographyControlFontSizeLg = "1.
|
|
360
|
+
export const OhTypographyControlFontSizeMd = "1.25rem"; // Default: input text, choices, buttons
|
|
361
|
+
export const OhTypographyControlFontSizeLg = "1.5rem"; // Large buttons
|
|
330
362
|
export const OhTypographyEmphasisFontWeight = "600";
|
|
331
363
|
export const OhTypographyCodeFontFamily =
|
|
332
364
|
"'JetBrains Mono', 'Fira Code', ui-monospace, monospace";
|
|
333
|
-
export const OhTypographyCodeFontSize = "
|
|
334
|
-
export const OhTypographyCodeLineHeight = 1.5;
|
|
365
|
+
export const OhTypographyCodeFontSize = "1rem";
|
|
366
|
+
export const OhTypographyCodeLineHeight = 1.5; // 24px at 16px: 16px × 1.5, rounded to the 8px grid
|
|
335
367
|
export const OhLayoutContainerSm = "640px";
|
|
336
368
|
export const OhLayoutContainerMd = "768px";
|
|
337
369
|
export const OhLayoutContainerLg = "1024px";
|
|
@@ -352,6 +384,39 @@ export const OhElevationStrong =
|
|
|
352
384
|
export const OhElevationGlow =
|
|
353
385
|
"0 0 0 3px rgba(197, 67, 0, 0.2), 0 0 12px rgba(197, 67, 0, 0.1)"; // Focus ring
|
|
354
386
|
export const OhElevationInset = "inset 0 1px 3px rgba(61, 50, 41, 0.08)"; // Inputs, wells
|
|
387
|
+
export const OhElevationSurfaceFlat =
|
|
388
|
+
"0 1px 2px rgba(61, 50, 41, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6)";
|
|
389
|
+
export const OhElevationSurfaceRaised =
|
|
390
|
+
"0 2px 6px rgba(61, 50, 41, 0.08), 0 6px 16px rgba(61, 50, 41, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8)";
|
|
391
|
+
export const OhElevationSurfaceLifted =
|
|
392
|
+
"0 4px 12px rgba(61, 50, 41, 0.1), 0 12px 28px rgba(61, 50, 41, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9)"; // Hovered
|
|
393
|
+
export const OhElevationSurfacePressed =
|
|
394
|
+
"0 1px 3px rgba(61, 50, 41, 0.1), 0 3px 8px rgba(61, 50, 41, 0.06), inset 0 1px 2px rgba(61, 50, 41, 0.04)";
|
|
395
|
+
export const OhElevationSurfaceFocused =
|
|
396
|
+
"0 2px 6px rgba(61, 50, 41, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8)"; // Sits under the focus glow
|
|
397
|
+
export const OhElevationSurfaceFeatured =
|
|
398
|
+
"0 2px 8px rgba(139, 69, 19, 0.08), 0 8px 24px rgba(139, 69, 19, 0.06), 0 0 20px rgba(197, 67, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9)";
|
|
399
|
+
export const OhElevationSurfaceFeaturedLifted =
|
|
400
|
+
"0 4px 12px rgba(139, 69, 19, 0.12), 0 12px 32px rgba(139, 69, 19, 0.08), 0 0 28px rgba(197, 67, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1)";
|
|
401
|
+
export const OhElevationSurfaceFeaturedFocused =
|
|
402
|
+
"0 2px 8px rgba(139, 69, 19, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9)";
|
|
403
|
+
export const OhElevationOffsetXs = "1px";
|
|
404
|
+
export const OhElevationOffsetSm = "2px";
|
|
405
|
+
export const OhElevationOffsetMd = "3px";
|
|
406
|
+
export const OhElevationOffsetLg = "4px";
|
|
407
|
+
export const OhElevationOffsetXl = "5px";
|
|
408
|
+
export const OhElevationOffset2xl = "6px";
|
|
409
|
+
export const OhLiftHoverSm = "-1px";
|
|
410
|
+
export const OhLiftHoverMd = "-2px";
|
|
411
|
+
export const OhLiftPressSm = "1px";
|
|
412
|
+
export const OhLiftPressMd = "2px";
|
|
413
|
+
export const OhStrokeControl = "2.5px"; // Controls and framed containers: buttons, fields, checkboxes, alerts, dialogs
|
|
414
|
+
export const OhStrokeSurface = "1px"; // Card edges
|
|
415
|
+
export const OhStrokeDivider = "1px"; // Lines between sections
|
|
416
|
+
export const OhDecorationUnderlineThickness = "2px";
|
|
417
|
+
export const OhDecorationUnderlineFocusThickness = "3px"; // The solid underline that shows keyboard focus on inline links
|
|
418
|
+
export const OhDecorationUnderlineDash = "4px";
|
|
419
|
+
export const OhDecorationUnderlinePeriod = "8px";
|
|
355
420
|
export const OhFocusRingWidth = "3px";
|
|
356
421
|
export const OhFocusRingOffset = "2px";
|
|
357
422
|
export const OhFocusRingColor = "#c54300"; // The focus colour: outlines, focused control borders. Must stay opaque (4.7:1 on cream, WCAG 1.4.11)
|
|
@@ -369,12 +434,12 @@ export const OhButtonSizeSmPaddingX = "1rem";
|
|
|
369
434
|
export const OhButtonSizeSmPaddingY = "0.5rem";
|
|
370
435
|
export const OhButtonSizeSmMinHeight = "40px";
|
|
371
436
|
export const OhButtonSizeSmGap = "0.5rem";
|
|
372
|
-
export const OhButtonSizeMdFontSize = "1.
|
|
437
|
+
export const OhButtonSizeMdFontSize = "1.25rem";
|
|
373
438
|
export const OhButtonSizeMdPaddingX = "1.5rem";
|
|
374
439
|
export const OhButtonSizeMdPaddingY = "0.75rem";
|
|
375
440
|
export const OhButtonSizeMdMinHeight = "48px";
|
|
376
441
|
export const OhButtonSizeMdGap = "0.5rem";
|
|
377
|
-
export const OhButtonSizeLgFontSize = "1.
|
|
442
|
+
export const OhButtonSizeLgFontSize = "1.5rem";
|
|
378
443
|
export const OhButtonSizeLgPaddingX = "2rem";
|
|
379
444
|
export const OhButtonSizeLgPaddingY = "1rem";
|
|
380
445
|
export const OhButtonSizeLgMinHeight = "56px";
|
|
@@ -401,7 +466,7 @@ export const OhButtonFocusRingColor = "#c54300";
|
|
|
401
466
|
export const OhButtonFocusGlowColor = "#c5430026";
|
|
402
467
|
export const OhInputBaseFontFamily =
|
|
403
468
|
"'Bricolage Grotesque', 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif";
|
|
404
|
-
export const OhInputBaseFontSize = "1.
|
|
469
|
+
export const OhInputBaseFontSize = "1.25rem";
|
|
405
470
|
export const OhInputBaseLineHeight = 1.5;
|
|
406
471
|
export const OhInputBaseBorderRadius = "10px";
|
|
407
472
|
export const OhInputBaseBorderWidth = "2.5px";
|
|
@@ -448,12 +513,13 @@ export const OhCardSunlitGradientStart = "#fffbf5";
|
|
|
448
513
|
export const OhCardSunlitGradientMid = "#fdf6ee";
|
|
449
514
|
export const OhCardSunlitGradientEnd = "#f8efe4";
|
|
450
515
|
export const OhCardSunlitBorderColor = "#c5430040";
|
|
451
|
-
export const OhCardSunlitBorderColorHover = "#c5430059";
|
|
516
|
+
export const OhCardSunlitBorderColorHover = "#c5430059";
|
|
452
517
|
export const OhCardSunlitShadow =
|
|
453
518
|
"0 4px 16px rgba(61, 50, 41, 0.08), 0 2px 6px rgba(61, 50, 41, 0.06)";
|
|
454
|
-
export const OhCardSectionDividerColor = "#e2d5c899";
|
|
519
|
+
export const OhCardSectionDividerColor = "#e2d5c899";
|
|
455
520
|
export const OhCardSectionHeaderGradientStart = "#ffffff80";
|
|
456
521
|
export const OhCardSectionHeaderGradientEnd = "#ffffff00";
|
|
522
|
+
export const OhProgressTrackInsetShadow = "#0000000f"; // Neutral, so it works on every track colour
|
|
457
523
|
export const OhProgressInverseTrackBackground = "#ffffff26";
|
|
458
524
|
export const OhProgressInverseTrackBorder = "#ffffff4d";
|
|
459
525
|
export const OhProgressInverseFill = "#faf7f2";
|
|
@@ -482,5 +548,6 @@ export const OhLinkColorHover = "#9e3500";
|
|
|
482
548
|
export const OhLinkTextDecoration = "underline";
|
|
483
549
|
export const OhLinkTextDecorationHover = "none";
|
|
484
550
|
export const OhLinkInverseFocusBackground = "#0000001a"; // Focus tint — paired with the underline, which is the indicator
|
|
485
|
-
export const OhModalOverlay = "#3d322999";
|
|
551
|
+
export const OhModalOverlay = "#3d322999";
|
|
486
552
|
export const OhCloseButtonBackgroundHover = "#00000014"; // Neutral tint that works on every alert variant
|
|
553
|
+
export const OhCloseButtonShadowHover = "#00000026"; // Offset shadow colour on hover and press. Neutral, like the background, so it works on every alert variant
|