@repobit/dex-system-design 2.1.1 → 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/CHANGELOG.md +20 -0
- package/package.json +6 -3
- package/schemas/component-manifest.json +16 -7
- package/src/assets/images/awards/av-comparatives-2025.png +0 -0
- package/src/assets/images/awards/av-test-top-product.png +0 -0
- package/src/assets/images/awards/gartner-peer-insights.png +0 -0
- package/src/assets/images/awards/idc.png +0 -0
- package/src/assets/images/awards/pcmag-best-of-2026.png +0 -0
- package/src/components/accordion/accordion-bg.css.js +1 -1
- package/src/components/accordion/accordion.css.js +2 -2
- package/src/components/alert/alert.css.js +1 -1
- package/src/components/anchor/anchor-nav.css.js +7 -7
- package/src/components/awards/awards-flex.css.js +3 -3
- package/src/components/awards/awards-spotlight.css.js +132 -0
- package/src/components/awards/awards-spotlight.js +130 -0
- package/src/components/awards/awards-spotlight.stories.js +205 -0
- package/src/components/awards/awards.css.js +1 -1
- package/src/components/back/back.css.js +1 -1
- package/src/components/bento-grid/bento-grid.css.js +1 -1
- package/src/components/bento-grid/bento-item.css.js +1 -1
- package/src/components/breadcrumb/breadcrumb.css.js +1 -1
- package/src/components/button/button.css.js +72 -1
- package/src/components/button/button.js +3 -2
- package/src/components/button/button.stories.js +18 -2
- package/src/components/cards/card.css.js +1 -1
- package/src/components/checkbox/checkbox.css.js +5 -3
- package/src/components/code/code.css.js +2 -2
- package/src/components/compare/compare.css.js +2 -2
- package/src/components/compatibility-table/compatibility-table.css.js +3 -3
- package/src/components/cta-banner/cta-banner.css.js +3 -3
- package/src/components/cta-banner/cta-banner.js +1 -1
- package/src/components/display/display.stories.js +1 -1
- package/src/components/divider/divider.stories.js +2 -2
- package/src/components/features-tab/features-tab.css.js +1 -1
- package/src/components/fieldset/fieldset.css.js +1 -1
- package/src/components/footer/footer-lp.css.js +1 -1
- package/src/components/footer/footer-lp.js +8 -0
- package/src/components/footer/footer.css.js +2 -2
- package/src/components/footer/footer.js +8 -0
- package/src/components/header/header-code.css.js +4 -4
- package/src/components/header/header.css.js +6 -6
- package/src/components/heading/heading.stories.js +1 -1
- package/src/components/highlight/highlight.css.js +2 -2
- package/src/components/image/image.css.js +6 -6
- package/src/components/install-options/install-options.css.js +7 -7
- package/src/components/link/link.css.js +23 -0
- package/src/components/link/link.stories.js +16 -1
- package/src/components/modal/modal.css.js +3 -3
- package/src/components/paragraph/paragraph.stories.js +4 -4
- package/src/components/picture/picture.css.js +6 -6
- package/src/components/pricing-cards/new-pricing.css.js +1 -1
- package/src/components/pricing-cards/pricing-card-header.css.js +1 -1
- package/src/components/pricing-cards/pricing-card.css.js +3 -3
- package/src/components/radio/radio.css.js +2 -2
- package/src/components/review/review.css.js +1 -1
- package/src/components/review/review.js +3 -2
- package/src/components/shared/token-scales.js +19 -9
- package/src/components/skeleton/skeleton.css.js +1 -1
- package/src/components/spinner/spinner.css.js +1 -1
- package/src/components/spotlight-section/spotlight-section.css.js +7 -7
- package/src/components/spotlight-section/spotlight-section.js +3 -3
- package/src/components/switch/switch.css.js +3 -0
- package/src/components/tab-list/tab-list.css.js +2 -2
- package/src/components/tabs/tabs.css.js +1 -1
- package/src/components/terminal/terminal-cursor.js +1 -1
- package/src/components/terminal/terminal-message.css.js +4 -4
- package/src/components/tooltip/tooltip.css.js +1 -1
- package/src/components/video/video.css.js +1 -1
- package/src/components/video-player/video-player.css.js +3 -3
- package/src/components/video-player/video-player.js +1 -1
- package/src/tokens/brand-layer.js +185 -0
- package/src/tokens/brands.stories.js +235 -0
- package/src/tokens/dark-derivation.js +10 -1
- package/src/tokens/dark-findings.js +14 -7
- package/src/tokens/shape.stories.js +5 -0
- package/src/tokens/themes/bitdefender.js +30 -0
- package/src/tokens/themes/contract.js +27 -0
- package/src/tokens/themes/index.js +41 -0
- package/src/tokens/tokens.css +121 -39
- package/src/tokens/tokens.js +130 -40
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The theme contract: the tokens a brand theme may set, and nothing else.
|
|
3
|
+
*
|
|
4
|
+
* Partners appear on co-branded pages on bitdefender.com. Bitdefender is the
|
|
5
|
+
* host, so the foundation -- typography, spacing, grid, neutrals, the status
|
|
6
|
+
* and info tones, icons, motion, focus geometry, navigation and footer -- is
|
|
7
|
+
* shared by every theme and never duplicated. What a partner brings is colour
|
|
8
|
+
* and shape, and this list is exactly that surface. A theme that sets a token
|
|
9
|
+
* outside it fails the build rather than quietly restyling the host.
|
|
10
|
+
*
|
|
11
|
+
* colour the brand ramp -- the eleven steps every brand role, brand status
|
|
12
|
+
* tone, focus ring and decorative use of the hue reads -- and the
|
|
13
|
+
* ink that sits on a brand fill, so a light brand can take dark ink.
|
|
14
|
+
* shape the corner steps every card, button, field, panel and chip reads.
|
|
15
|
+
* Circles (--radius-full), deliberate squares (--radius-none) and the
|
|
16
|
+
* focus ring's corner are not here: a brand must not move them.
|
|
17
|
+
*
|
|
18
|
+
* Widening the contract is a decision, not a convenience: everything listed
|
|
19
|
+
* here is something a partner can make look different on a Bitdefender page.
|
|
20
|
+
*/
|
|
21
|
+
export const THEME_CONTRACT = {
|
|
22
|
+
colour: [
|
|
23
|
+
...[50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950].map(n => `--color-brand-${n}`),
|
|
24
|
+
'--color-brand-on-fill'
|
|
25
|
+
],
|
|
26
|
+
shape: ['sm', 'md', 'lg', 'xl', '2xl', '3xl'].map(n => `--shape-radius-${n}`)
|
|
27
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brand themes, applied with data-brand="<name>".
|
|
3
|
+
*
|
|
4
|
+
* `bitdefender` is the default. It is generated from src/tokens/tokens.js by
|
|
5
|
+
* `npm run build:tokens`, so it always states the foundation's own values and
|
|
6
|
+
* never needs editing by hand.
|
|
7
|
+
*
|
|
8
|
+
* Adding a partner -- duplicate the default, rename it, change what differs:
|
|
9
|
+
*
|
|
10
|
+
* // themes/orange.js
|
|
11
|
+
* import bitdefender from './bitdefender.js';
|
|
12
|
+
* export default {
|
|
13
|
+
* colour: { ...bitdefender.colour, '--color-brand-500': '#...' },
|
|
14
|
+
* shape : { ...bitdefender.shape }
|
|
15
|
+
* };
|
|
16
|
+
*
|
|
17
|
+
* then register it below and run `npm run build:tokens`. Spreading the
|
|
18
|
+
* default, rather than copying its values, means anything the partner does
|
|
19
|
+
* not change keeps following Bitdefender -- including later changes to it.
|
|
20
|
+
* Copying works too, but freezes the copied values where they stood.
|
|
21
|
+
*
|
|
22
|
+
* A theme may only set tokens listed in ./contract.js. `npm run verify:brands`
|
|
23
|
+
* then measures it against the contrast floors and renders real components
|
|
24
|
+
* under it; `verify:brands:sweep` renders every story.
|
|
25
|
+
*
|
|
26
|
+
* On a co-branded page the partner theme goes on the content region. The site
|
|
27
|
+
* navigation is bitdefender.com's own menu, outside this package; bd-footer
|
|
28
|
+
* pins itself to the default theme. bd-header is the product hero and follows
|
|
29
|
+
* the partner:
|
|
30
|
+
*
|
|
31
|
+
* <site navigation>
|
|
32
|
+
* <main data-brand="orange"> <bd-header> ... </main>
|
|
33
|
+
* <bd-footer>
|
|
34
|
+
*/
|
|
35
|
+
import bitdefender from './bitdefender.js';
|
|
36
|
+
|
|
37
|
+
export const DEFAULT_THEME = 'bitdefender';
|
|
38
|
+
|
|
39
|
+
export const THEMES = {
|
|
40
|
+
bitdefender
|
|
41
|
+
};
|
package/src/tokens/tokens.css
CHANGED
|
@@ -181,6 +181,42 @@
|
|
|
181
181
|
--color-neutral-950: #0c0d0e;
|
|
182
182
|
--color-neutral-1000: #000000;
|
|
183
183
|
|
|
184
|
+
/* =====================
|
|
185
|
+
BRAND
|
|
186
|
+
====================== */
|
|
187
|
+
/* The brand is a ramp, not a colour. Components reach the brand hue at
|
|
188
|
+
ten different steps -- 50 for a tinted wash, 200 for a tinted edge, 400
|
|
189
|
+
and 950 for gradient stops and glows, 500 for the action, 600 and 700
|
|
190
|
+
for brand text -- so a brand that only named its primary would leave
|
|
191
|
+
every one of those behind. These eleven aliases are the whole of what a
|
|
192
|
+
brand has to restate.
|
|
193
|
+
|
|
194
|
+
Today they are the Bitdefender blue, step for step, so nothing renders
|
|
195
|
+
differently for their being here. They are the colour half of the
|
|
196
|
+
theme contract (src/tokens/themes/contract.js): a partner theme
|
|
197
|
+
restates them, and build-tokens re-declares every token that depends
|
|
198
|
+
on them inside that brand's [data-brand] scope. See Foundations/Brands.
|
|
199
|
+
|
|
200
|
+
What deliberately does NOT read this ramp: the info status tone
|
|
201
|
+
(--status-info-*, --color-surface-info). Info is a feedback colour,
|
|
202
|
+
not the brand, and it has to stay recognisable under every brand --
|
|
203
|
+
a business line whose brand were red would otherwise paint its info
|
|
204
|
+
alerts the colour of an error. Those keep --color-blue-* directly.
|
|
205
|
+
|
|
206
|
+
Components never name --color-blue-* for brand work; the lint rule
|
|
207
|
+
brand-hue-primitive holds that line. */
|
|
208
|
+
--color-brand-50: var(--color-blue-50);
|
|
209
|
+
--color-brand-100: var(--color-blue-100);
|
|
210
|
+
--color-brand-200: var(--color-blue-200);
|
|
211
|
+
--color-brand-300: var(--color-blue-300);
|
|
212
|
+
--color-brand-400: var(--color-blue-400);
|
|
213
|
+
--color-brand-500: var(--color-blue-500);
|
|
214
|
+
--color-brand-600: var(--color-blue-600);
|
|
215
|
+
--color-brand-700: var(--color-blue-700);
|
|
216
|
+
--color-brand-800: var(--color-blue-800);
|
|
217
|
+
--color-brand-900: var(--color-blue-900);
|
|
218
|
+
--color-brand-950: var(--color-blue-950);
|
|
219
|
+
|
|
184
220
|
/* ================================
|
|
185
221
|
CORE BORDER TOKENS
|
|
186
222
|
================================ */
|
|
@@ -200,6 +236,31 @@
|
|
|
200
236
|
--radius-3xl: 1.5rem; /* 24px */
|
|
201
237
|
--radius-full: 9999px;
|
|
202
238
|
|
|
239
|
+
/* =====================
|
|
240
|
+
SHAPE
|
|
241
|
+
====================== */
|
|
242
|
+
/* The corner steps a theme restates -- the shape half of the theme
|
|
243
|
+
contract, as --color-brand-* is the colour half. A partner whose brand
|
|
244
|
+
is square sets these to 0, one whose brand is soft raises them, and
|
|
245
|
+
every card, button, field, panel and chip that reads a step follows.
|
|
246
|
+
Today they are the radius scale, step for step, so nothing renders
|
|
247
|
+
differently for their being here.
|
|
248
|
+
|
|
249
|
+
Two steps are deliberately left out, because a brand must not move
|
|
250
|
+
them: --radius-full is a circle (a dot, a pill, a switch, an avatar),
|
|
251
|
+
and --radius-none is a corner someone decided should be square. The
|
|
252
|
+
focus ring keeps --focus-outline-radius on the scale too: focus
|
|
253
|
+
geometry is the host's, not a partner's.
|
|
254
|
+
|
|
255
|
+
Components never read --radius-sm..3xl directly; the lint rule
|
|
256
|
+
shape-primitive holds that line. */
|
|
257
|
+
--shape-radius-sm: var(--radius-sm);
|
|
258
|
+
--shape-radius-md: var(--radius-md);
|
|
259
|
+
--shape-radius-lg: var(--radius-lg);
|
|
260
|
+
--shape-radius-xl: var(--radius-xl);
|
|
261
|
+
--shape-radius-2xl: var(--radius-2xl);
|
|
262
|
+
--shape-radius-3xl: var(--radius-3xl);
|
|
263
|
+
|
|
203
264
|
/* ================================
|
|
204
265
|
CORE DIMENSION TOKENS
|
|
205
266
|
================================ */
|
|
@@ -253,16 +314,16 @@
|
|
|
253
314
|
/* The ladder stops at xl. --shadow-2xl and the inset --shadow-inner
|
|
254
315
|
stood beside it until 2026-10-15, and nothing read either. */
|
|
255
316
|
|
|
256
|
-
/* The focus glow: --color-
|
|
317
|
+
/* The focus glow: the brand at 15% (--color-brand-500), mixed from the palette. It
|
|
257
318
|
was rgba(6, 109, 255, 0.15) -- a blue one unit off blue-500 -- with a
|
|
258
319
|
red and a green beside it that were Tailwind's red-500 and green-500,
|
|
259
320
|
in no palette here. Nothing read the red or the green, so they went;
|
|
260
321
|
--form-input-focus-boxShadow reads this one. */
|
|
261
|
-
--shadow-focus-outline-blue: 0 0 0 3px color-mix(in srgb, var(--color-
|
|
322
|
+
--shadow-focus-outline-blue: 0 0 0 3px color-mix(in srgb, var(--color-brand-500) 15%, transparent);
|
|
262
323
|
|
|
263
324
|
/* Focus Outlines - Two-Color System for Universal Visibility */
|
|
264
325
|
--focus-outline-primary: 0 0 0 2px var(--color-neutral-0),
|
|
265
|
-
0 0 0 4px var(--color-
|
|
326
|
+
0 0 0 4px var(--color-brand-500);
|
|
266
327
|
|
|
267
328
|
/* Secondary, error and success rings stood here until 2026-10-15.
|
|
268
329
|
Nothing read them -- every component rings with primary -- and the
|
|
@@ -304,8 +365,14 @@
|
|
|
304
365
|
|
|
305
366
|
An outline also survives forced-colors mode, where a box-shadow ring
|
|
306
367
|
is not drawn at all. bd-button reads these; see its FOCUS block. */
|
|
307
|
-
--focus-outline-traditional: 2px solid var(--color-
|
|
368
|
+
--focus-outline-traditional: 2px solid var(--color-brand-500);
|
|
308
369
|
--focus-outline-traditional-inverse: 2px solid var(--color-neutral-0);
|
|
370
|
+
/* On a brand band (surface="brand"): the brand's own ink, which a
|
|
371
|
+
theme must clear 4.5:1 on its fill, so the ring clears the 3:1 a
|
|
372
|
+
focus indicator needs under every theme -- white on Bitdefender,
|
|
373
|
+
where it is the inverse ring, and dark ink on a light partner, where
|
|
374
|
+
a white one would vanish. */
|
|
375
|
+
--focus-outline-traditional-on-brand: 2px solid var(--color-brand-on-fill);
|
|
309
376
|
--focus-outline-offset: 2px;
|
|
310
377
|
|
|
311
378
|
/* The ring is a box-shadow, so it already follows the radius of the
|
|
@@ -339,7 +406,7 @@
|
|
|
339
406
|
3px height and a width transition describe a rule sliding under a
|
|
340
407
|
tab, and a dot scales instead. A fourth consumer needing dot
|
|
341
408
|
geometry should name it for the dot, not borrow these. */
|
|
342
|
-
--indicator-color: var(--color-
|
|
409
|
+
--indicator-color: var(--color-brand-500);
|
|
343
410
|
--indicator-underline-height: var(--border-width-3);
|
|
344
411
|
--indicator-underline-duration: var(--transition-duration-slow);
|
|
345
412
|
--indicator-underline-easing: var(--transition-easing-smooth);
|
|
@@ -374,7 +441,7 @@
|
|
|
374
441
|
scripts/card-shapes.json lists the eleven and lint:tokens checks it
|
|
375
442
|
both ways, so a card that stops using the role and a registry entry
|
|
376
443
|
that stops matching are both findings. */
|
|
377
|
-
--card-radius: var(--radius-2xl);
|
|
444
|
+
--card-radius: var(--shape-radius-2xl);
|
|
378
445
|
--card-padding: var(--spacing-32);
|
|
379
446
|
|
|
380
447
|
/* The inset a card takes when the viewport is too narrow to afford the
|
|
@@ -485,7 +552,7 @@
|
|
|
485
552
|
a video play icon at 3.13:1, a terminal's quieter lines at 1.91. */
|
|
486
553
|
--color-text-on-media: var(--color-neutral-0);
|
|
487
554
|
--color-text-on-media-muted: var(--color-neutral-300);
|
|
488
|
-
--color-text-brand: var(--color-
|
|
555
|
+
--color-text-brand: var(--color-brand-600);
|
|
489
556
|
/* Brand text, hovered: a link or a citation reference under the
|
|
490
557
|
pointer. Before this role existed, the hover read
|
|
491
558
|
--color-action-primary-active -- a pressed button fill used as ink.
|
|
@@ -494,7 +561,7 @@
|
|
|
494
561
|
questions, and a dark theme has to answer them differently. Measured
|
|
495
562
|
in the Figma Dark mode study: the fill stays put on a dark page and
|
|
496
563
|
the link it borrowed falls to 2.27:1. */
|
|
497
|
-
--color-text-brand-hover: var(--color-
|
|
564
|
+
--color-text-brand-hover: var(--color-brand-700);
|
|
498
565
|
--color-text-success: var(--color-green-800);
|
|
499
566
|
/* Warning text sits on the page, a card, surface-subtle (5.16) or its
|
|
500
567
|
own tint (--color-surface-warning, 5.59) -- not on surface-muted,
|
|
@@ -542,7 +609,7 @@
|
|
|
542
609
|
and the terminal's own palette (blue-400, the traffic-light green)
|
|
543
610
|
is only legible on a dark ground. Dark mode decision 15. */
|
|
544
611
|
--color-surface-media: var(--color-neutral-900);
|
|
545
|
-
--color-surface-brand: var(--color-
|
|
612
|
+
--color-surface-brand: var(--color-brand-500);
|
|
546
613
|
--color-surface-disabled: var(--color-neutral-100);
|
|
547
614
|
/* The ground of a control while it is held down, one step below
|
|
548
615
|
-muted (its hover). bd-back read neutral-200 for this and said in a
|
|
@@ -578,7 +645,7 @@
|
|
|
578
645
|
--color-border-subtle: var(--color-neutral-200);
|
|
579
646
|
--color-border-default: var(--color-neutral-400);
|
|
580
647
|
--color-border-strong: var(--color-neutral-900);
|
|
581
|
-
--color-border-brand: var(--color-
|
|
648
|
+
--color-border-brand: var(--color-brand-500);
|
|
582
649
|
--color-border-disabled: var(--color-neutral-300);
|
|
583
650
|
|
|
584
651
|
/* The boundary of a self-contained object -- a card, a panel, a
|
|
@@ -616,9 +683,9 @@
|
|
|
616
683
|
/* Action. The interactive ramp, one step down the palette per state.
|
|
617
684
|
accent is this system's conversion colour — Buy now and the like —
|
|
618
685
|
and is not a danger signal; see the bd-button story notes. */
|
|
619
|
-
--color-action-primary: var(--color-
|
|
620
|
-
--color-action-primary-hover: var(--color-
|
|
621
|
-
--color-action-primary-active: var(--color-
|
|
686
|
+
--color-action-primary: var(--color-brand-500);
|
|
687
|
+
--color-action-primary-hover: var(--color-brand-600);
|
|
688
|
+
--color-action-primary-active: var(--color-brand-700);
|
|
622
689
|
--color-action-accent: var(--color-red-600);
|
|
623
690
|
--color-action-accent-hover: var(--color-red-700);
|
|
624
691
|
--color-action-accent-active: var(--color-red-800);
|
|
@@ -642,6 +709,16 @@
|
|
|
642
709
|
near-black secondary ones. Measured in the Figma Dark mode study,
|
|
643
710
|
and re-measured on the live tokens 2026-10-15. */
|
|
644
711
|
--color-action-on-fill: var(--color-neutral-0);
|
|
712
|
+
/* Ink on a BRAND fill: a label, a checkmark, a dot or a thumb sitting on
|
|
713
|
+
a colour from the brand ramp. White today, the same pixel
|
|
714
|
+
--color-action-on-fill gives, so nothing moves. It exists because the
|
|
715
|
+
two stop agreeing the moment a partner's brand is light: white on a
|
|
716
|
+
typical brand orange is about 2.6:1, black about 8:1. A partner theme
|
|
717
|
+
sets this to whichever clears its fill, and --color-action-on-fill
|
|
718
|
+
stays white for the fills that are not the brand's -- the red accent
|
|
719
|
+
and the near-black secondary, where black would fail. Part of the
|
|
720
|
+
theme contract (src/tokens/themes/contract.js). */
|
|
721
|
+
--color-brand-on-fill: var(--color-neutral-0);
|
|
645
722
|
|
|
646
723
|
/* ================================
|
|
647
724
|
SEMANTIC ROLES - STACKING
|
|
@@ -717,12 +794,12 @@
|
|
|
717
794
|
--status-neutral-fill: var(--color-neutral-900);
|
|
718
795
|
--status-neutral-on-fill: var(--color-neutral-0);
|
|
719
796
|
|
|
720
|
-
--status-brand-text: var(--color-
|
|
721
|
-
--status-brand-surface: var(--color-
|
|
722
|
-
--status-brand-border: var(--color-
|
|
723
|
-
--status-brand-accent: var(--color-
|
|
724
|
-
--status-brand-fill: var(--color-
|
|
725
|
-
--status-brand-on-fill: var(--color-
|
|
797
|
+
--status-brand-text: var(--color-brand-600);
|
|
798
|
+
--status-brand-surface: var(--color-brand-50);
|
|
799
|
+
--status-brand-border: var(--color-brand-200);
|
|
800
|
+
--status-brand-accent: var(--color-brand-600);
|
|
801
|
+
--status-brand-fill: var(--color-brand-500);
|
|
802
|
+
--status-brand-on-fill: var(--color-brand-on-fill);
|
|
726
803
|
|
|
727
804
|
--status-info-text: var(--color-blue-600);
|
|
728
805
|
--status-info-surface: var(--color-blue-50);
|
|
@@ -1245,21 +1322,21 @@
|
|
|
1245
1322
|
);
|
|
1246
1323
|
--form-input-small-fontSize: var(--typography-fontSize-sm);
|
|
1247
1324
|
--form-input-small-padding: var(--spacing-8) var(--spacing-12);
|
|
1248
|
-
--form-input-small-borderRadius: var(--radius-sm);
|
|
1325
|
+
--form-input-small-borderRadius: var(--shape-radius-sm);
|
|
1249
1326
|
|
|
1250
1327
|
--form-input-medium-height: calc(
|
|
1251
1328
|
var(--spacing-12) * 2 + var(--typography-fontSize-base) * var(--typography-lineHeight-tight)
|
|
1252
1329
|
);
|
|
1253
1330
|
--form-input-medium-fontSize: var(--typography-fontSize-base);
|
|
1254
1331
|
--form-input-medium-padding: var(--spacing-12) var(--spacing-16);
|
|
1255
|
-
--form-input-medium-borderRadius: var(--radius-md);
|
|
1332
|
+
--form-input-medium-borderRadius: var(--shape-radius-md);
|
|
1256
1333
|
|
|
1257
1334
|
--form-input-large-height: calc(
|
|
1258
1335
|
var(--spacing-16) * 2 + var(--typography-fontSize-lg) * var(--typography-lineHeight-tight)
|
|
1259
1336
|
);
|
|
1260
1337
|
--form-input-large-fontSize: var(--typography-fontSize-lg);
|
|
1261
1338
|
--form-input-large-padding: var(--spacing-16) var(--spacing-20);
|
|
1262
|
-
--form-input-large-borderRadius: var(--radius-lg);
|
|
1339
|
+
--form-input-large-borderRadius: var(--shape-radius-lg);
|
|
1263
1340
|
|
|
1264
1341
|
--form-input-default-backgroundColor: var(--color-surface-default);
|
|
1265
1342
|
--form-input-default-borderColor: var(--color-border-default);
|
|
@@ -1347,17 +1424,17 @@
|
|
|
1347
1424
|
--button-small-fontSize: var(--typography-fontSize-sm);
|
|
1348
1425
|
--button-small-padding: var(--spacing-8) var(--spacing-16);
|
|
1349
1426
|
--button-small-gap: var(--spacing-4);
|
|
1350
|
-
--button-small-borderRadius: var(--radius-sm);
|
|
1427
|
+
--button-small-borderRadius: var(--shape-radius-sm);
|
|
1351
1428
|
|
|
1352
1429
|
--button-medium-fontSize: var(--typography-fontSize-base);
|
|
1353
1430
|
--button-medium-padding: var(--spacing-12) var(--spacing-24);
|
|
1354
1431
|
--button-medium-gap: var(--spacing-8);
|
|
1355
|
-
--button-medium-borderRadius: var(--radius-md);
|
|
1432
|
+
--button-medium-borderRadius: var(--shape-radius-md);
|
|
1356
1433
|
|
|
1357
1434
|
--button-large-fontSize: var(--typography-fontSize-lg);
|
|
1358
1435
|
--button-large-padding: var(--spacing-16) var(--spacing-32);
|
|
1359
1436
|
--button-large-gap: var(--spacing-8);
|
|
1360
|
-
--button-large-borderRadius: var(--radius-lg);
|
|
1437
|
+
--button-large-borderRadius: var(--shape-radius-lg);
|
|
1361
1438
|
|
|
1362
1439
|
/* Removed 2026-10-15, because nothing read them: the seven
|
|
1363
1440
|
--button-default-* (a state no variant draws), and
|
|
@@ -1410,7 +1487,7 @@
|
|
|
1410
1487
|
--button-primary-background-default: var(--color-action-primary);
|
|
1411
1488
|
--button-primary-background-hover: var(--color-action-primary-hover);
|
|
1412
1489
|
--button-primary-background-active: var(--color-action-primary-active);
|
|
1413
|
-
--button-primary-text-default: var(--color-
|
|
1490
|
+
--button-primary-text-default: var(--color-brand-on-fill);
|
|
1414
1491
|
|
|
1415
1492
|
/* secondary: near-black fill */
|
|
1416
1493
|
--button-secondary-background-default: var(--color-action-secondary);
|
|
@@ -1439,7 +1516,7 @@
|
|
|
1439
1516
|
--button-tertiary-text-hover: var(--color-text-brand);
|
|
1440
1517
|
--button-tertiary-border-hover: var(--color-action-primary-hover);
|
|
1441
1518
|
--button-tertiary-background-active: var(--color-action-primary);
|
|
1442
|
-
--button-tertiary-text-active: var(--color-
|
|
1519
|
+
--button-tertiary-text-active: var(--color-brand-on-fill);
|
|
1443
1520
|
|
|
1444
1521
|
/* ghost: dark outline */
|
|
1445
1522
|
--button-ghost-text-default: var(--color-text-primary);
|
|
@@ -1470,16 +1547,21 @@
|
|
|
1470
1547
|
literals, which no theme could reach. color-mix keeps the alpha and
|
|
1471
1548
|
puts the colour back on the palette. */
|
|
1472
1549
|
--button-white-background-default: var(--color-neutral-0);
|
|
1473
|
-
--button-white-background-hover: var(--color-
|
|
1474
|
-
--button-white-background-active: var(--color-
|
|
1475
|
-
/*
|
|
1476
|
-
a white fill on a brand band, in any theme -- so
|
|
1477
|
-
fixed too. Reading the role mixed a fill that never
|
|
1478
|
-
label that does: text-brand goes light in a dark
|
|
1479
|
-
2.36:1 on the white fill (dark mode finding 8).
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1550
|
+
--button-white-background-hover: var(--color-brand-50);
|
|
1551
|
+
--button-white-background-active: var(--color-brand-100);
|
|
1552
|
+
/* A ramp step by name (--color-brand-600), not --color-text-brand. The
|
|
1553
|
+
preset is fixed -- a white fill on a brand band, in any theme -- so
|
|
1554
|
+
its ink must be fixed too. Reading the role mixed a fill that never
|
|
1555
|
+
switches with a label that does: text-brand goes light in a dark
|
|
1556
|
+
theme and measured 2.36:1 on the white fill (dark mode finding 8).
|
|
1557
|
+
|
|
1558
|
+
The ramp keeps that property and still follows the business line: a
|
|
1559
|
+
step never flips with light or dark, but it is the brand's step, so
|
|
1560
|
+
the label matches the band it sits on under every brand. It was
|
|
1561
|
+
--color-blue-600 when blue was the only brand. */
|
|
1562
|
+
--button-white-text-default: var(--color-brand-600);
|
|
1563
|
+
|
|
1564
|
+
--button-outline-white-text-default: var(--color-brand-on-fill);
|
|
1483
1565
|
/* 71% rather than 55%. This edge is the only thing bounding an
|
|
1484
1566
|
outline-white button, so it carries the 3:1 of WCAG 1.4.11 on its
|
|
1485
1567
|
own. Measured over the grounds the preset is actually used on, 55%
|
|
@@ -1487,7 +1569,7 @@
|
|
|
1487
1569
|
blue-700 at 3.65. 71% is the lowest value that clears all three
|
|
1488
1570
|
with one number, so the token stops depending on which blue is
|
|
1489
1571
|
behind it. */
|
|
1490
|
-
--button-outline-white-border-default: color-mix(in srgb, var(--color-
|
|
1572
|
+
--button-outline-white-border-default: color-mix(in srgb, var(--color-brand-on-fill) 71%, transparent);
|
|
1491
1573
|
/* Hover and press DARKEN the band, they do not wash it white. A white
|
|
1492
1574
|
wash lightened the blue under a white label: 3.91:1 on hover and
|
|
1493
1575
|
3.38 pressed over blue-500, and 4.22 pressed over blue-600 -- under
|
|
@@ -1705,7 +1787,7 @@
|
|
|
1705
1787
|
A weight is a weight whichever face it is set in. */
|
|
1706
1788
|
|
|
1707
1789
|
/* Awards section — Orbit Frame 14 (node 1882:9342) */
|
|
1708
|
-
--layout-awards-section-background: var(--color-
|
|
1790
|
+
--layout-awards-section-background: var(--color-brand-50);
|
|
1709
1791
|
--layout-awards-cluster-max-width: 49.5625rem; /* 793px — trust banner column */
|
|
1710
1792
|
--layout-awards-intro-max-width: 39.4375rem; /* 631px — headline stack */
|
|
1711
1793
|
/* The page column has no width token of its own. --content-width-max,
|