@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.css
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
:root {
|
|
6
|
+
--oh-grid-unit: 8px; /** 8px grid with 4px half-steps */
|
|
6
7
|
--oh-color-orange-50: #fff3e0;
|
|
7
8
|
--oh-color-orange-100: #ffe0b2;
|
|
8
9
|
--oh-color-orange-200: #ffcc80;
|
|
@@ -89,19 +90,22 @@
|
|
|
89
90
|
--oh-color-surface-overlay: rgba(61, 50, 41, 0.4); /** Modal backdrop — warm */
|
|
90
91
|
--oh-color-surface-hover: #fff4e6; /** Warm hover tint */
|
|
91
92
|
--oh-color-surface-active-pressed: #f0ebe3; /** Active/pressed surface */
|
|
93
|
+
--oh-color-surface-sheen: rgba(255, 255, 255, 0.5); /** Light glaze at the top of card headers, fading to transparent */
|
|
94
|
+
--oh-color-surface-backdrop: rgba(61, 50, 41, 0.6); /** Modal backdrop — darker than surface.overlay so the dialog stands out */
|
|
92
95
|
--oh-color-border-brand: rgba(197, 67, 0, 0.25); /** Brand-tinted border */
|
|
96
|
+
--oh-color-border-brand-hover: rgba(197, 67, 0, 0.35); /** Brand-tinted border on hover. Decorative container edge — not a focus or control border */
|
|
97
|
+
--oh-color-border-divider: rgba(226, 213, 200, 0.6); /** Decorative divider inside a container, such as a card's header and footer */
|
|
93
98
|
--oh-font-family-sans: 'Bricolage Grotesque', 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
94
99
|
--oh-font-family-display: 'Bricolage Grotesque', 'General Sans', sans-serif;
|
|
95
100
|
--oh-font-family-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
|
|
96
101
|
--oh-font-size-xs: 0.75rem; /** 12px */
|
|
97
|
-
--oh-font-size-sm: 0.875rem; /** 14px */
|
|
98
102
|
--oh-font-size-base: 1rem; /** 16px */
|
|
99
|
-
--oh-font-size-lg: 1.
|
|
100
|
-
--oh-font-size-xl: 1.
|
|
101
|
-
--oh-font-size-2xl: 1.
|
|
103
|
+
--oh-font-size-lg: 1.25rem; /** 20px */
|
|
104
|
+
--oh-font-size-xl: 1.5rem; /** 24px */
|
|
105
|
+
--oh-font-size-2xl: 1.75rem; /** 28px */
|
|
102
106
|
--oh-font-size-3xl: 2rem; /** 32px */
|
|
103
|
-
--oh-font-size-4xl: 2.
|
|
104
|
-
--oh-font-size-5xl:
|
|
107
|
+
--oh-font-size-4xl: 2.5rem; /** 40px */
|
|
108
|
+
--oh-font-size-5xl: 3rem; /** 48px */
|
|
105
109
|
--oh-font-weight-normal: 400;
|
|
106
110
|
--oh-font-weight-medium: 500;
|
|
107
111
|
--oh-font-weight-semibold: 600;
|
|
@@ -118,24 +122,6 @@
|
|
|
118
122
|
--oh-font-letter-spacing-wide: 0.01em;
|
|
119
123
|
--oh-font-letter-spacing-wider: 0.02em;
|
|
120
124
|
--oh-font-letter-spacing-widest: 0.05em; /** Uppercase labels: hero eyebrows, footer headings */
|
|
121
|
-
--oh-spacing-0: 0;
|
|
122
|
-
--oh-spacing-1: 0.25rem; /** 4px */
|
|
123
|
-
--oh-spacing-2: 0.5rem; /** 8px */
|
|
124
|
-
--oh-spacing-3: 0.75rem; /** 12px */
|
|
125
|
-
--oh-spacing-4: 1rem; /** 16px */
|
|
126
|
-
--oh-spacing-5: 1.25rem; /** 20px */
|
|
127
|
-
--oh-spacing-6: 1.5rem; /** 24px */
|
|
128
|
-
--oh-spacing-7: 1.75rem; /** 28px */
|
|
129
|
-
--oh-spacing-8: 2rem; /** 32px */
|
|
130
|
-
--oh-spacing-10: 2.5rem; /** 40px */
|
|
131
|
-
--oh-spacing-12: 3rem; /** 48px */
|
|
132
|
-
--oh-spacing-16: 4rem; /** 64px */
|
|
133
|
-
--oh-spacing-20: 5rem; /** 80px */
|
|
134
|
-
--oh-spacing-px: 1px;
|
|
135
|
-
--oh-spacing-0-5: 0.125rem; /** 2px */
|
|
136
|
-
--oh-spacing-1-5: 0.375rem; /** 6px */
|
|
137
|
-
--oh-spacing-2-5: 0.625rem; /** 10px */
|
|
138
|
-
--oh-spacing-3-5: 0.875rem; /** 14px */
|
|
139
125
|
--oh-radius-none: 0;
|
|
140
126
|
--oh-radius-xs: 4px; /** Small details, chips */
|
|
141
127
|
--oh-radius-sm: 6px; /** Buttons, inputs */
|
|
@@ -153,6 +139,18 @@
|
|
|
153
139
|
--oh-shadow-chunky-secondary: #d4c4b0; /** Neutral tan for secondary/form elements */
|
|
154
140
|
--oh-shadow-chunky-accent: #a0b4c8; /** Blue offset shadow for accent buttons — decorative */
|
|
155
141
|
--oh-shadow-chunky-error: rgba(181, 69, 64, 0.3); /** Error state shadow */
|
|
142
|
+
--oh-shadow-chunky-driftwood: rgba(107, 93, 77, 0.15); /** Translucent driftwood, for offset shadows on cream */
|
|
143
|
+
--oh-shadow-chunky-driftwood-hover: rgba(107, 93, 77, 0.2); /** A step darker, for the lifted state */
|
|
144
|
+
--oh-shadow-chunky-driftwood-deep: rgba(107, 93, 77, 0.25); /** For dialogs, which sit above everything */
|
|
145
|
+
--oh-shadow-chunky-walnut: rgba(61, 50, 41, 0.15); /** Translucent walnut, for the inset shadow inside fields */
|
|
146
|
+
--oh-shadow-layered-flat: 0 1px 2px rgba(61, 50, 41, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
|
|
147
|
+
--oh-shadow-layered-raised: 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);
|
|
148
|
+
--oh-shadow-layered-lifted: 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);
|
|
149
|
+
--oh-shadow-layered-pressed: 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);
|
|
150
|
+
--oh-shadow-layered-focused: 0 2px 6px rgba(61, 50, 41, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8); /** Sits under the focus glow */
|
|
151
|
+
--oh-shadow-layered-sunlit: 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);
|
|
152
|
+
--oh-shadow-layered-sunlit-lifted: 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);
|
|
153
|
+
--oh-shadow-layered-sunlit-focused: 0 2px 8px rgba(139, 69, 19, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9); /** Sits under the focus glow */
|
|
156
154
|
--oh-gradient-warm: linear-gradient(135deg, #C54300 0%, #FF9800 100%); /** Brand emphasis */
|
|
157
155
|
--oh-gradient-nostalgic: linear-gradient(180deg, #F5F0E8 0%, #EDE8DF 100%); /** Subtle retro depth */
|
|
158
156
|
--oh-motion-duration-quick: 100ms; /** Micro-interactions (color shifts) */
|
|
@@ -168,6 +166,24 @@
|
|
|
168
166
|
--oh-border-width-1: 1px;
|
|
169
167
|
--oh-border-width-2: 2px;
|
|
170
168
|
--oh-border-width-chunky: 2.5px; /** Signature chunky frame for controls and feedback */
|
|
169
|
+
--oh-spacing-0: 0;
|
|
170
|
+
--oh-spacing-1: 0.25rem; /** 4px */
|
|
171
|
+
--oh-spacing-2: 0.5rem; /** 8px */
|
|
172
|
+
--oh-spacing-3: 0.75rem; /** 12px */
|
|
173
|
+
--oh-spacing-4: 1rem; /** 16px */
|
|
174
|
+
--oh-spacing-5: 1.25rem; /** 20px */
|
|
175
|
+
--oh-spacing-6: 1.5rem; /** 24px */
|
|
176
|
+
--oh-spacing-7: 1.75rem; /** 28px */
|
|
177
|
+
--oh-spacing-8: 2rem; /** 32px */
|
|
178
|
+
--oh-spacing-10: 2.5rem; /** 40px */
|
|
179
|
+
--oh-spacing-12: 3rem; /** 48px */
|
|
180
|
+
--oh-spacing-16: 4rem; /** 64px */
|
|
181
|
+
--oh-spacing-20: 5rem; /** 80px */
|
|
182
|
+
--oh-spacing-px: 1px;
|
|
183
|
+
--oh-spacing-0-5: 0.125rem; /** 2px */
|
|
184
|
+
--oh-spacing-1-5: 0.375rem; /** 6px */
|
|
185
|
+
--oh-spacing-2-5: 0.625rem; /** 10px */
|
|
186
|
+
--oh-spacing-3-5: 0.875rem; /** 14px */
|
|
171
187
|
--oh-size-container-sm: 640px;
|
|
172
188
|
--oh-size-container-md: 768px;
|
|
173
189
|
--oh-size-container-lg: 1024px;
|
|
@@ -184,26 +200,50 @@
|
|
|
184
200
|
--oh-z-index-modal: 1200;
|
|
185
201
|
--oh-z-index-popover: 1300;
|
|
186
202
|
--oh-z-index-tooltip: 1400;
|
|
203
|
+
--oh-typography-heading-h1-line-height: 1.2; /** 48px at 40px: 40px × 1.25, rounded to the 8px grid */
|
|
204
|
+
--oh-typography-heading-h2-line-height: 1.25; /** 40px at 32px: 32px × 1.25, rounded to the 8px grid */
|
|
205
|
+
--oh-typography-heading-h3-line-height: 1.4286; /** 40px at 28px: 28px × 1.35, rounded to the 8px grid */
|
|
206
|
+
--oh-typography-heading-h4-line-height: 1.3333; /** 32px at 24px: 24px × 1.35, rounded to the 8px grid */
|
|
207
|
+
--oh-typography-heading-h5-line-height: 1.6; /** 32px at 20px: 20px × 1.5, rounded to the 8px grid */
|
|
208
|
+
--oh-typography-heading-h6-line-height: 1.5; /** 24px at 16px: 16px × 1.5, rounded to the 8px grid */
|
|
209
|
+
--oh-typography-body-xl-line-height: 1.6667; /** 40px at 24px: 24px × 1.5, rounded to the 8px grid */
|
|
210
|
+
--oh-typography-body-lg-line-height: 1.6; /** 32px at 20px: 20px × 1.65, rounded to the 8px grid */
|
|
211
|
+
--oh-typography-body-base-line-height: 1.5; /** 24px at 16px: 16px × 1.5, rounded to the 8px grid */
|
|
212
|
+
--oh-typography-body-sm-line-height: 1.6667; /** 20px at 12px: 12px × 1.5, rounded to the 4px grid */
|
|
213
|
+
--oh-typography-body-xs-line-height: 1.6667; /** 20px at 12px: 12px × 1.5, rounded to the 4px grid */
|
|
214
|
+
--oh-typography-label-base-line-height: 1.5; /** 24px at 16px: 16px × 1.5, rounded to the 8px grid */
|
|
215
|
+
--oh-typography-label-sm-line-height: 1.6667; /** 20px at 12px: 12px × 1.5, rounded to the 4px grid */
|
|
216
|
+
--oh-typography-code-line-height: 1.5; /** 24px at 16px: 16px × 1.5, rounded to the 8px grid */
|
|
217
|
+
--oh-elevation-offset-xs: 1px;
|
|
218
|
+
--oh-elevation-offset-sm: 2px;
|
|
219
|
+
--oh-elevation-offset-md: 3px;
|
|
220
|
+
--oh-elevation-offset-lg: 4px;
|
|
221
|
+
--oh-elevation-offset-xl: 5px;
|
|
222
|
+
--oh-elevation-offset-2xl: 6px;
|
|
223
|
+
--oh-lift-hover-sm: -1px;
|
|
224
|
+
--oh-lift-hover-md: -2px;
|
|
225
|
+
--oh-lift-press-sm: 1px;
|
|
226
|
+
--oh-lift-press-md: 2px;
|
|
227
|
+
--oh-decoration-underline-thickness: 2px;
|
|
228
|
+
--oh-decoration-underline-focus-thickness: 3px; /** The solid underline that shows keyboard focus on inline links */
|
|
229
|
+
--oh-decoration-underline-dash: 4px;
|
|
230
|
+
--oh-decoration-underline-period: 8px;
|
|
187
231
|
--oh-focus-ring-width: 3px;
|
|
188
232
|
--oh-focus-ring-offset: 2px;
|
|
189
233
|
--oh-focus-glow-color: rgba(197, 67, 0, 0.15); /** Decorative glow only — never the sole focus indicator */
|
|
190
|
-
--oh-button-base-border-width: 2.5px;
|
|
191
234
|
--oh-button-size-sm-min-height: 40px;
|
|
192
235
|
--oh-button-size-md-min-height: 48px;
|
|
193
236
|
--oh-button-size-lg-min-height: 56px;
|
|
194
|
-
--oh-input-base-border-width: 2.5px;
|
|
195
237
|
--oh-input-size-md-min-height: 48px;
|
|
196
|
-
--oh-card-sunlit-border-color-hover: rgba(197, 67, 0, 0.35); /** Decorative container edge — not a focus or control border */
|
|
197
|
-
--oh-card-section-divider-color: rgba(226, 213, 200, 0.6); /** Decorative divider */
|
|
198
|
-
--oh-card-section-header-gradient-start: rgba(255, 255, 255, 0.5);
|
|
199
238
|
--oh-card-section-header-gradient-end: rgba(255, 255, 255, 0);
|
|
239
|
+
--oh-progress-track-inset-shadow: rgba(0, 0, 0, 0.06); /** Neutral, so it works on every track colour */
|
|
200
240
|
--oh-progress-inverse-track-background: rgba(255, 255, 255, 0.15);
|
|
201
241
|
--oh-progress-inverse-track-border: rgba(255, 255, 255, 0.3);
|
|
202
242
|
--oh-link-text-decoration: underline;
|
|
203
243
|
--oh-link-text-decoration-hover: none;
|
|
204
244
|
--oh-link-inverse-focus-background: rgba(0, 0, 0, 0.1); /** Focus tint — paired with the underline, which is the indicator */
|
|
205
|
-
--oh-modal-overlay: rgba(61, 50, 41, 0.6); /** Backdrop — darker than color.surface.overlay so the dialog stands out */
|
|
206
245
|
--oh-close-button-background-hover: rgba(0, 0, 0, 0.08); /** Neutral tint that works on every alert variant */
|
|
246
|
+
--oh-close-button-shadow-hover: rgba(0, 0, 0, 0.15); /** Offset shadow colour on hover and press. Neutral, like the background, so it works on every alert variant */
|
|
207
247
|
--oh-color-brand-primary: var(--oh-color-orange-900); /** Primary brand action — WCAG AA */
|
|
208
248
|
--oh-color-brand-primary-hover: var(--oh-color-orange-950); /** Hover state */
|
|
209
249
|
--oh-color-brand-primary-active: var(--oh-color-orange-950); /** Active/pressed state */
|
|
@@ -231,6 +271,9 @@
|
|
|
231
271
|
--oh-color-surface-inset: var(--oh-color-warm-parchment); /** Inputs, wells — pressed in */
|
|
232
272
|
--oh-color-surface-highlight: var(--oh-color-white); /** Brightest surface — focused inputs, top of raised gradients */
|
|
233
273
|
--oh-color-surface-disabled: var(--oh-color-warm-sand); /** Quiet disabled */
|
|
274
|
+
--oh-color-surface-featured-start: var(--oh-color-warm-dawn); /** Featured (sunlit) card gradient: top */
|
|
275
|
+
--oh-color-surface-featured-mid: var(--oh-color-warm-shell); /** Featured (sunlit) card gradient: 30% */
|
|
276
|
+
--oh-color-surface-featured-end: var(--oh-color-warm-biscuit); /** Featured (sunlit) card gradient: bottom */
|
|
234
277
|
--oh-color-border-default: var(--oh-color-warm-sand); /** Standard border */
|
|
235
278
|
--oh-color-border-subtle: var(--oh-color-warm-parchment); /** Subtle dividers */
|
|
236
279
|
--oh-color-border-emphasis: var(--oh-color-warm-driftwood); /** Strong border for form elements */
|
|
@@ -251,19 +294,15 @@
|
|
|
251
294
|
--oh-color-text-on-error: var(--oh-color-white); /** Text on filled color.feedback.error */
|
|
252
295
|
--oh-color-text-on-warning: var(--oh-color-white); /** Text on filled color.feedback.warning */
|
|
253
296
|
--oh-color-text-on-info: var(--oh-color-white); /** Text on filled color.feedback.info */
|
|
254
|
-
--oh-
|
|
255
|
-
--oh-spacing-layout-section: var(--oh-spacing-12);
|
|
256
|
-
--oh-spacing-layout-stack: var(--oh-spacing-5);
|
|
257
|
-
--oh-spacing-layout-inline: var(--oh-spacing-4);
|
|
258
|
-
--oh-spacing-component-xs: var(--oh-spacing-1-5);
|
|
259
|
-
--oh-spacing-component-sm: var(--oh-spacing-2-5);
|
|
260
|
-
--oh-spacing-component-md: var(--oh-spacing-3-5);
|
|
261
|
-
--oh-spacing-component-lg: var(--oh-spacing-5);
|
|
262
|
-
--oh-spacing-component-xl: var(--oh-spacing-7);
|
|
297
|
+
--oh-font-size-sm: var(--oh-font-size-xs); /** Kept so existing references don't break. On the grid, small text is xs; use xs or a tier 2 role */
|
|
263
298
|
--oh-shadow-primary: var(--oh-shadow-chunky-primary); /** Primary buttons */
|
|
264
299
|
--oh-shadow-secondary: var(--oh-shadow-chunky-secondary); /** Secondary/form elements */
|
|
265
300
|
--oh-shadow-accent: var(--oh-shadow-chunky-accent); /** Accent buttons */
|
|
266
301
|
--oh-shadow-error: var(--oh-shadow-chunky-error); /** Error state */
|
|
302
|
+
--oh-shadow-neutral: var(--oh-shadow-chunky-driftwood); /** Containers and the skip link */
|
|
303
|
+
--oh-shadow-neutral-hover: var(--oh-shadow-chunky-driftwood-hover); /** Lifted containers */
|
|
304
|
+
--oh-shadow-overlay: var(--oh-shadow-chunky-driftwood-deep); /** Dialogs */
|
|
305
|
+
--oh-shadow-field: var(--oh-shadow-chunky-walnut); /** The inset shadow inside text fields */
|
|
267
306
|
--oh-gradient-sunlit: linear-gradient(180deg, var(--oh-color-warm-dawn) 0%, var(--oh-color-warm-shell) 30%, var(--oh-color-warm-biscuit) 100%); /** Gentle warmth for surfaces — same stops as the sunlit card */
|
|
268
307
|
--oh-motion-quick: var(--oh-motion-duration-quick);
|
|
269
308
|
--oh-motion-snappy: var(--oh-motion-duration-snappy);
|
|
@@ -273,55 +312,51 @@
|
|
|
273
312
|
--oh-motion-ease-gentle: var(--oh-motion-easing-gentle);
|
|
274
313
|
--oh-motion-ease-out: var(--oh-motion-easing-out);
|
|
275
314
|
--oh-motion-ease-playful: var(--oh-motion-easing-playful);
|
|
315
|
+
--oh-spacing-layout-page: var(--oh-spacing-6);
|
|
316
|
+
--oh-spacing-layout-section: var(--oh-spacing-12);
|
|
317
|
+
--oh-spacing-layout-stack: var(--oh-spacing-5);
|
|
318
|
+
--oh-spacing-layout-inline: var(--oh-spacing-4);
|
|
319
|
+
--oh-spacing-component-xs: var(--oh-spacing-1-5);
|
|
320
|
+
--oh-spacing-component-sm: var(--oh-spacing-2-5);
|
|
321
|
+
--oh-spacing-component-md: var(--oh-spacing-3-5);
|
|
322
|
+
--oh-spacing-component-lg: var(--oh-spacing-5);
|
|
323
|
+
--oh-spacing-component-xl: var(--oh-spacing-7);
|
|
276
324
|
--oh-typography-heading-font-family: var(--oh-font-family-display);
|
|
277
325
|
--oh-typography-heading-h1-font-size: var(--oh-font-size-4xl);
|
|
278
326
|
--oh-typography-heading-h1-font-weight: var(--oh-font-weight-bold);
|
|
279
|
-
--oh-typography-heading-h1-line-height: var(--oh-font-line-height-tight);
|
|
280
327
|
--oh-typography-heading-h1-letter-spacing: var(--oh-font-letter-spacing-tighter);
|
|
281
328
|
--oh-typography-heading-h2-font-size: var(--oh-font-size-3xl);
|
|
282
329
|
--oh-typography-heading-h2-font-weight: var(--oh-font-weight-bold);
|
|
283
|
-
--oh-typography-heading-h2-line-height: var(--oh-font-line-height-tight);
|
|
284
330
|
--oh-typography-heading-h2-letter-spacing: var(--oh-font-letter-spacing-tight);
|
|
285
331
|
--oh-typography-heading-h3-font-size: var(--oh-font-size-2xl);
|
|
286
332
|
--oh-typography-heading-h3-font-weight: var(--oh-font-weight-semibold);
|
|
287
|
-
--oh-typography-heading-h3-line-height: var(--oh-font-line-height-snug);
|
|
288
333
|
--oh-typography-heading-h3-letter-spacing: var(--oh-font-letter-spacing-tight);
|
|
289
334
|
--oh-typography-heading-h4-font-size: var(--oh-font-size-xl);
|
|
290
335
|
--oh-typography-heading-h4-font-weight: var(--oh-font-weight-semibold);
|
|
291
|
-
--oh-typography-heading-h4-line-height: var(--oh-font-line-height-snug);
|
|
292
336
|
--oh-typography-heading-h4-letter-spacing: var(--oh-font-letter-spacing-normal);
|
|
293
337
|
--oh-typography-heading-h5-font-size: var(--oh-font-size-lg);
|
|
294
338
|
--oh-typography-heading-h5-font-weight: var(--oh-font-weight-medium);
|
|
295
|
-
--oh-typography-heading-h5-line-height: var(--oh-font-line-height-normal);
|
|
296
339
|
--oh-typography-heading-h6-font-size: var(--oh-font-size-base);
|
|
297
340
|
--oh-typography-heading-h6-font-weight: var(--oh-font-weight-medium);
|
|
298
|
-
--oh-typography-heading-h6-line-height: var(--oh-font-line-height-normal);
|
|
299
341
|
--oh-typography-body-font-family: var(--oh-font-family-sans);
|
|
300
342
|
--oh-typography-body-xl-font-size: var(--oh-font-size-xl);
|
|
301
343
|
--oh-typography-body-xl-font-weight: var(--oh-font-weight-normal);
|
|
302
|
-
--oh-typography-body-xl-line-height: var(--oh-font-line-height-normal);
|
|
303
344
|
--oh-typography-body-lg-font-size: var(--oh-font-size-lg);
|
|
304
345
|
--oh-typography-body-lg-font-weight: var(--oh-font-weight-normal);
|
|
305
|
-
--oh-typography-body-lg-line-height: var(--oh-font-line-height-relaxed);
|
|
306
346
|
--oh-typography-body-base-font-size: var(--oh-font-size-base);
|
|
307
347
|
--oh-typography-body-base-font-weight: var(--oh-font-weight-normal);
|
|
308
|
-
--oh-typography-body-
|
|
309
|
-
--oh-typography-body-sm-font-size: var(--oh-font-size-sm);
|
|
348
|
+
--oh-typography-body-sm-font-size: var(--oh-font-size-xs);
|
|
310
349
|
--oh-typography-body-sm-font-weight: var(--oh-font-weight-normal);
|
|
311
|
-
--oh-typography-body-sm-line-height: var(--oh-font-line-height-normal);
|
|
312
350
|
--oh-typography-body-sm-letter-spacing: var(--oh-font-letter-spacing-wide);
|
|
313
351
|
--oh-typography-body-xs-font-size: var(--oh-font-size-xs);
|
|
314
352
|
--oh-typography-body-xs-font-weight: var(--oh-font-weight-normal);
|
|
315
|
-
--oh-typography-body-xs-line-height: var(--oh-font-line-height-normal);
|
|
316
353
|
--oh-typography-body-xs-letter-spacing: var(--oh-font-letter-spacing-wide);
|
|
317
354
|
--oh-typography-label-font-family: var(--oh-font-family-sans);
|
|
318
|
-
--oh-typography-label-base-font-size: var(--oh-font-size-
|
|
355
|
+
--oh-typography-label-base-font-size: var(--oh-font-size-base);
|
|
319
356
|
--oh-typography-label-base-font-weight: var(--oh-font-weight-medium);
|
|
320
|
-
--oh-typography-label-base-line-height: var(--oh-font-line-height-normal); /** 1.5 for WCAG 1.4.12 */
|
|
321
357
|
--oh-typography-label-base-letter-spacing: var(--oh-font-letter-spacing-wide);
|
|
322
358
|
--oh-typography-label-sm-font-size: var(--oh-font-size-xs);
|
|
323
359
|
--oh-typography-label-sm-font-weight: var(--oh-font-weight-medium);
|
|
324
|
-
--oh-typography-label-sm-line-height: var(--oh-font-line-height-normal); /** 1.5 for WCAG 1.4.12 */
|
|
325
360
|
--oh-typography-label-sm-letter-spacing: var(--oh-font-letter-spacing-wide);
|
|
326
361
|
--oh-typography-eyebrow-font-family: var(--oh-font-family-sans);
|
|
327
362
|
--oh-typography-eyebrow-font-size: var(--oh-font-size-base);
|
|
@@ -335,8 +370,7 @@
|
|
|
335
370
|
--oh-typography-control-font-size-lg: var(--oh-font-size-xl); /** Large buttons */
|
|
336
371
|
--oh-typography-emphasis-font-weight: var(--oh-font-weight-semibold);
|
|
337
372
|
--oh-typography-code-font-family: var(--oh-font-family-mono);
|
|
338
|
-
--oh-typography-code-font-size: var(--oh-font-size-
|
|
339
|
-
--oh-typography-code-line-height: var(--oh-font-line-height-normal);
|
|
373
|
+
--oh-typography-code-font-size: var(--oh-font-size-base);
|
|
340
374
|
--oh-layout-container-sm: var(--oh-size-container-sm);
|
|
341
375
|
--oh-layout-container-md: var(--oh-size-container-md);
|
|
342
376
|
--oh-layout-container-lg: var(--oh-size-container-lg);
|
|
@@ -353,6 +387,17 @@
|
|
|
353
387
|
--oh-elevation-strong: var(--oh-shadow-strong); /** Modals, dialogs */
|
|
354
388
|
--oh-elevation-glow: var(--oh-shadow-glow); /** Focus ring */
|
|
355
389
|
--oh-elevation-inset: var(--oh-shadow-inset); /** Inputs, wells */
|
|
390
|
+
--oh-elevation-surface-flat: var(--oh-shadow-layered-flat);
|
|
391
|
+
--oh-elevation-surface-raised: var(--oh-shadow-layered-raised);
|
|
392
|
+
--oh-elevation-surface-lifted: var(--oh-shadow-layered-lifted); /** Hovered */
|
|
393
|
+
--oh-elevation-surface-pressed: var(--oh-shadow-layered-pressed);
|
|
394
|
+
--oh-elevation-surface-focused: var(--oh-shadow-layered-focused); /** Sits under the focus glow */
|
|
395
|
+
--oh-elevation-surface-featured: var(--oh-shadow-layered-sunlit);
|
|
396
|
+
--oh-elevation-surface-featured-lifted: var(--oh-shadow-layered-sunlit-lifted);
|
|
397
|
+
--oh-elevation-surface-featured-focused: var(--oh-shadow-layered-sunlit-focused);
|
|
398
|
+
--oh-stroke-control: var(--oh-border-width-chunky); /** Controls and framed containers: buttons, fields, checkboxes, alerts, dialogs */
|
|
399
|
+
--oh-stroke-surface: var(--oh-border-width-1); /** Card edges */
|
|
400
|
+
--oh-stroke-divider: var(--oh-border-width-1); /** Lines between sections */
|
|
356
401
|
--oh-focus-ring-color: var(--oh-color-orange-900); /** The focus colour: outlines, focused control borders. Must stay opaque (4.7:1 on cream, WCAG 1.4.11) */
|
|
357
402
|
--oh-button-size-sm-padding-x: var(--oh-spacing-4);
|
|
358
403
|
--oh-button-size-sm-padding-y: var(--oh-spacing-2);
|
|
@@ -366,21 +411,23 @@
|
|
|
366
411
|
--oh-button-variant-secondary-background-hover: var(--oh-color-surface-hover);
|
|
367
412
|
--oh-button-variant-secondary-background-active: var(--oh-color-surface-active-pressed);
|
|
368
413
|
--oh-button-focus-glow-color: var(--oh-focus-glow-color);
|
|
414
|
+
--oh-input-base-line-height: var(--oh-typography-body-base-line-height);
|
|
369
415
|
--oh-input-size-md-padding-x: var(--oh-spacing-4);
|
|
370
416
|
--oh-input-size-md-padding-y: var(--oh-spacing-3);
|
|
371
|
-
--oh-card-base-border-width: var(--oh-border-width-1);
|
|
372
417
|
--oh-card-base-padding: var(--oh-spacing-5);
|
|
373
418
|
--oh-card-interactive-border-color-hover: var(--oh-color-border-brand);
|
|
374
|
-
--oh-card-sunlit-gradient-start: var(--oh-color-warm-dawn);
|
|
375
|
-
--oh-card-sunlit-gradient-mid: var(--oh-color-warm-shell);
|
|
376
|
-
--oh-card-sunlit-gradient-end: var(--oh-color-warm-biscuit);
|
|
377
419
|
--oh-card-sunlit-border-color: var(--oh-color-border-brand);
|
|
420
|
+
--oh-card-sunlit-border-color-hover: var(--oh-color-border-brand-hover);
|
|
421
|
+
--oh-card-section-divider-color: var(--oh-color-border-divider);
|
|
422
|
+
--oh-card-section-header-gradient-start: var(--oh-color-surface-sheen);
|
|
378
423
|
--oh-badge-base-padding-x: var(--oh-spacing-2-5);
|
|
379
424
|
--oh-badge-base-padding-y: var(--oh-spacing-1);
|
|
425
|
+
--oh-modal-overlay: var(--oh-color-surface-backdrop);
|
|
380
426
|
--oh-button-base-font-family: var(--oh-typography-control-font-family);
|
|
381
427
|
--oh-button-base-font-weight: var(--oh-typography-control-font-weight);
|
|
382
428
|
--oh-button-base-letter-spacing: var(--oh-typography-control-letter-spacing);
|
|
383
429
|
--oh-button-base-border-radius: var(--oh-shape-control);
|
|
430
|
+
--oh-button-base-border-width: var(--oh-stroke-control);
|
|
384
431
|
--oh-button-base-transition-duration: var(--oh-motion-snappy);
|
|
385
432
|
--oh-button-base-transition-easing: var(--oh-motion-ease-playful);
|
|
386
433
|
--oh-button-size-sm-font-size: var(--oh-typography-control-font-size-sm);
|
|
@@ -405,8 +452,8 @@
|
|
|
405
452
|
--oh-button-focus-ring-color: var(--oh-focus-ring-color);
|
|
406
453
|
--oh-input-base-font-family: var(--oh-typography-control-font-family);
|
|
407
454
|
--oh-input-base-font-size: var(--oh-typography-control-font-size-md);
|
|
408
|
-
--oh-input-base-line-height: var(--oh-typography-body-base-line-height);
|
|
409
455
|
--oh-input-base-border-radius: var(--oh-shape-control);
|
|
456
|
+
--oh-input-base-border-width: var(--oh-stroke-control);
|
|
410
457
|
--oh-input-base-transition-duration: var(--oh-motion-snappy);
|
|
411
458
|
--oh-input-base-transition-easing: var(--oh-motion-ease-gentle);
|
|
412
459
|
--oh-input-state-default-background: var(--oh-color-surface-base);
|
|
@@ -423,6 +470,7 @@
|
|
|
423
470
|
--oh-input-state-error-shadow-color: var(--oh-shadow-error);
|
|
424
471
|
--oh-card-base-background: var(--oh-color-surface-raised);
|
|
425
472
|
--oh-card-base-border-radius: var(--oh-shape-large);
|
|
473
|
+
--oh-card-base-border-width: var(--oh-stroke-surface);
|
|
426
474
|
--oh-card-base-border-color: var(--oh-color-border-default);
|
|
427
475
|
--oh-card-base-shadow: var(--oh-elevation-soft);
|
|
428
476
|
--oh-card-interactive-transition-duration: var(--oh-motion-gentle);
|
|
@@ -436,7 +484,10 @@
|
|
|
436
484
|
--oh-card-flat-gradient-start: var(--oh-color-surface-base);
|
|
437
485
|
--oh-card-flat-gradient-end: var(--oh-color-surface-raised);
|
|
438
486
|
--oh-card-flat-border-color: var(--oh-color-border-default);
|
|
439
|
-
--oh-card-sunlit-background: var(--oh-
|
|
487
|
+
--oh-card-sunlit-background: linear-gradient(180deg, var(--oh-color-surface-featured-start) 0%, var(--oh-color-surface-featured-mid) 30%, var(--oh-color-surface-featured-end) 100%);
|
|
488
|
+
--oh-card-sunlit-gradient-start: var(--oh-color-surface-featured-start);
|
|
489
|
+
--oh-card-sunlit-gradient-mid: var(--oh-color-surface-featured-mid);
|
|
490
|
+
--oh-card-sunlit-gradient-end: var(--oh-color-surface-featured-end);
|
|
440
491
|
--oh-card-sunlit-shadow: var(--oh-elevation-medium);
|
|
441
492
|
--oh-progress-inverse-fill: var(--oh-color-text-inverse);
|
|
442
493
|
--oh-badge-base-font-family: var(--oh-typography-label-font-family);
|