@omni-design/components 0.13.0 → 0.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.
Files changed (35) hide show
  1. package/dist/index.esm.js +4 -4
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/index.js +4 -4
  4. package/dist/index.js.map +1 -1
  5. package/dist/types/components/BrandIcon/BrandIcon.d.ts +3 -0
  6. package/dist/types/components/BrandIcon/BrandIconShowcase.d.ts +2 -0
  7. package/dist/types/components/BrandIcon/index.d.ts +2 -1
  8. package/dist/types/components/Button/Button.d.ts +35 -66
  9. package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +3 -1
  10. package/dist/types/components/CodeBlock/index.d.ts +1 -0
  11. package/dist/types/components/List/List.d.ts +2 -1
  12. package/dist/types/components/Rail/Rail.d.ts +2 -1
  13. package/dist/types/components/Slider/Slider.d.ts +6 -3
  14. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +8 -5
  15. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroupShowcase.d.ts +2 -0
  16. package/dist/types/components/ToggleButtonGroup/index.d.ts +2 -0
  17. package/dist/types/components/a11yPanel.d.ts +21 -0
  18. package/dist/types/docs/components.d.ts +123 -0
  19. package/dist/types/docs/componentsNav.d.ts +29 -13
  20. package/dist/types/docs/componentsSurfaces.d.ts +13 -0
  21. package/dist/types/docs/examples.d.ts +55 -45
  22. package/dist/types/docs/examples.lead.d.ts +89 -0
  23. package/dist/types/docs/figmaLinks.d.ts +1 -0
  24. package/dist/types/docs/samples.buttongroup.d.ts +22 -0
  25. package/dist/types/docs/samples.core.d.ts +104 -0
  26. package/dist/types/docs/samples.d.ts +27 -0
  27. package/dist/types/docs/samples.forms.d.ts +69 -0
  28. package/dist/types/docs/samples.nav.d.ts +70 -0
  29. package/dist/types/docs/samples.slider.d.ts +12 -0
  30. package/dist/types/docs/samples.surfaces.d.ts +69 -0
  31. package/package.json +1 -1
  32. package/public/styles/README.md +1 -1
  33. package/public/styles/base.css +41 -19
  34. package/public/styles/foundation.css +4 -4
  35. package/public/styles/typography-tokens.css +8 -8
@@ -0,0 +1,89 @@
1
+ export const NAV_ITEMS: ({
2
+ icon: JSX.Element;
3
+ label: string;
4
+ badge?: undefined;
5
+ } | {
6
+ icon: JSX.Element;
7
+ label: string;
8
+ badge: number;
9
+ })[];
10
+ export const LIST_ITEMS: {
11
+ label: string;
12
+ }[];
13
+ export const TABLE_COLUMNS: ({
14
+ label: string;
15
+ field: string;
16
+ width: string;
17
+ align?: undefined;
18
+ } | {
19
+ label: string;
20
+ field: string;
21
+ align: string;
22
+ width?: undefined;
23
+ })[];
24
+ export const TABLE_ROWS: {
25
+ name: string;
26
+ calories: number;
27
+ fat: number;
28
+ }[];
29
+ export const SELECT_OPTIONS: {
30
+ value: string;
31
+ label: string;
32
+ }[];
33
+ export const TOOLBAR_ITEMS: {
34
+ icon: JSX.Element;
35
+ label: string;
36
+ }[];
37
+ export const TREE_ITEMS: ({
38
+ id: string;
39
+ label: string;
40
+ children: ({
41
+ id: string;
42
+ label: string;
43
+ children: {
44
+ id: string;
45
+ label: string;
46
+ }[];
47
+ } | {
48
+ id: string;
49
+ label: string;
50
+ children?: undefined;
51
+ })[];
52
+ } | {
53
+ id: string;
54
+ label: string;
55
+ children?: undefined;
56
+ })[];
57
+ export namespace LEAD_EXAMPLES {
58
+ function ButtonGroup(): JSX.Element;
59
+ function ToggleButtonGroup(): JSX.Element;
60
+ function AppBar(): JSX.Element;
61
+ function Autocomplete(): JSX.Element;
62
+ function BottomNavigation(): JSX.Element;
63
+ function CodeBlock(): JSX.Element;
64
+ function Dialog(): JSX.Element;
65
+ function Drawer(): JSX.Element;
66
+ function DropZone(): JSX.Element;
67
+ function IconBadge(): JSX.Element;
68
+ function List(): JSX.Element;
69
+ function Loader(): JSX.Element;
70
+ function Menu(): JSX.Element;
71
+ function Modal(): JSX.Element;
72
+ function Paper(): JSX.Element;
73
+ function Popover(): JSX.Element;
74
+ function Rail(): JSX.Element;
75
+ function Ratio(): JSX.Element;
76
+ function SearchField(): JSX.Element;
77
+ function Select(): JSX.Element;
78
+ function Sidebar(): JSX.Element;
79
+ function Snackbar(): JSX.Element;
80
+ function StateMessage(): JSX.Element;
81
+ function Stepper(): JSX.Element;
82
+ function Swatch(): JSX.Element;
83
+ function Table(): JSX.Element;
84
+ function Tag(): JSX.Element;
85
+ function TextField(): JSX.Element;
86
+ function Toolbar(): JSX.Element;
87
+ function Tooltip(): JSX.Element;
88
+ function TreeView(): JSX.Element;
89
+ }
@@ -18,6 +18,7 @@ export namespace FIGMA_PAGES {
18
18
  let Breadcrumbs: string;
19
19
  let Button: string;
20
20
  let ButtonGroup: string;
21
+ let ToggleButtonGroup: string;
21
22
  let Card: string;
22
23
  let Checkbox: string;
23
24
  let Chip: string;
@@ -0,0 +1,22 @@
1
+ export const BUTTON_GROUP_SAMPLES: {
2
+ separated: () => JSX.Element;
3
+ fit: () => JSX.Element;
4
+ orientation: () => JSX.Element;
5
+ size: () => JSX.Element;
6
+ variant: () => JSX.Element;
7
+ disabled: () => JSX.Element;
8
+ 'aria-label': () => JSX.Element;
9
+ };
10
+ export const TOGGLE_BUTTON_GROUP_SAMPLES: {
11
+ allowEmpty: () => JSX.Element;
12
+ multiple: () => JSX.Element;
13
+ separated: () => JSX.Element;
14
+ variant: () => JSX.Element;
15
+ color: () => JSX.Element;
16
+ size: () => JSX.Element;
17
+ fit: () => JSX.Element;
18
+ orientation: () => JSX.Element;
19
+ 'value / defaultValue': () => JSX.Element;
20
+ onChange: () => JSX.Element;
21
+ disabled: () => JSX.Element;
22
+ };
@@ -0,0 +1,104 @@
1
+ export namespace CORE_SAMPLES {
2
+ namespace Button {
3
+ function selected(): JSX.Element;
4
+ function avatar(): JSX.Element;
5
+ function letterNumber(): JSX.Element;
6
+ function swatch(): JSX.Element;
7
+ }
8
+ namespace Chip {
9
+ export function variant(): JSX.Element;
10
+ export function selected_1(): JSX.Element;
11
+ export { selected_1 as selected };
12
+ export function clickable(): JSX.Element;
13
+ export function disabled(): JSX.Element;
14
+ }
15
+ namespace Badge {
16
+ export function variant_1(): JSX.Element;
17
+ export { variant_1 as variant };
18
+ export function dot(): JSX.Element;
19
+ export function showZero(): JSX.Element;
20
+ export function invisible(): JSX.Element;
21
+ export function overlap(): JSX.Element;
22
+ }
23
+ namespace Alert {
24
+ function color(): JSX.Element;
25
+ function size(): JSX.Element;
26
+ }
27
+ namespace Avatar {
28
+ export function defaultPhoto(): JSX.Element;
29
+ export function size_1(): JSX.Element;
30
+ export { size_1 as size };
31
+ export function clickable_1(): JSX.Element;
32
+ export { clickable_1 as clickable };
33
+ }
34
+ namespace Icon {
35
+ export function color_1(): JSX.Element;
36
+ export { color_1 as color };
37
+ export function size_2(): JSX.Element;
38
+ export { size_2 as size };
39
+ export function twoTone(): JSX.Element;
40
+ export function disabled_1(): JSX.Element;
41
+ export { disabled_1 as disabled };
42
+ }
43
+ namespace Swatch {
44
+ export function size_3(): JSX.Element;
45
+ export { size_3 as size };
46
+ export function selected_2(): JSX.Element;
47
+ export { selected_2 as selected };
48
+ export function disabled_2(): JSX.Element;
49
+ export { disabled_2 as disabled };
50
+ export function radio(): JSX.Element;
51
+ }
52
+ namespace Tag {
53
+ export function color_2(): JSX.Element;
54
+ export { color_2 as color };
55
+ export function width(): JSX.Element;
56
+ export function allCaps(): JSX.Element;
57
+ }
58
+ namespace IconBadge {
59
+ export function color_3(): JSX.Element;
60
+ export { color_3 as color };
61
+ export function size_4(): JSX.Element;
62
+ export { size_4 as size };
63
+ }
64
+ namespace Link {
65
+ export function disabled_3(): JSX.Element;
66
+ export { disabled_3 as disabled };
67
+ }
68
+ namespace Divider {
69
+ export function color_4(): JSX.Element;
70
+ export { color_4 as color };
71
+ export function orientation(): JSX.Element;
72
+ export function size_5(): JSX.Element;
73
+ export { size_5 as size };
74
+ export function indicatorStyle(): JSX.Element;
75
+ export function textAlign(): JSX.Element;
76
+ }
77
+ namespace Loader {
78
+ export function color_5(): JSX.Element;
79
+ export { color_5 as color };
80
+ export function size_6(): JSX.Element;
81
+ export { size_6 as size };
82
+ }
83
+ namespace StateMessage {
84
+ export function type(): JSX.Element;
85
+ export function size_7(): JSX.Element;
86
+ export { size_7 as size };
87
+ }
88
+ namespace Fab {
89
+ export function variant_2(): JSX.Element;
90
+ export { variant_2 as variant };
91
+ }
92
+ namespace Rating {
93
+ export function color_6(): JSX.Element;
94
+ export { color_6 as color };
95
+ export function size_8(): JSX.Element;
96
+ export { size_8 as size };
97
+ export function readOnly(): JSX.Element;
98
+ }
99
+ namespace CodeBlock {
100
+ function showCopy(): JSX.Element;
101
+ function showHeader(): JSX.Element;
102
+ function wrap(): JSX.Element;
103
+ }
104
+ }
@@ -0,0 +1,27 @@
1
+ export const PALETTES: string[];
2
+ export const BUTTON_ONLY: string[];
3
+ export const SIZES: string[];
4
+ export function Cell({ label, emphasis, width, children }: {
5
+ label: any;
6
+ emphasis?: boolean;
7
+ width: any;
8
+ children: any;
9
+ }): JSX.Element;
10
+ export function Axis({ values, render, defaultValue, width }: {
11
+ values: any;
12
+ render: any;
13
+ defaultValue: any;
14
+ width: any;
15
+ }): JSX.Element;
16
+ export function AxisStack({ values, render, defaultValue, width }: {
17
+ values: any;
18
+ render: any;
19
+ defaultValue: any;
20
+ width?: string;
21
+ }): JSX.Element;
22
+ export function Toggle({ render, offLabel, onLabel, width }: {
23
+ render: any;
24
+ offLabel?: string;
25
+ onLabel?: string;
26
+ width: any;
27
+ }): JSX.Element;
@@ -0,0 +1,69 @@
1
+ export namespace FORM_SAMPLES {
2
+ let Checkbox: {
3
+ variant: () => JSX.Element;
4
+ size: () => JSX.Element;
5
+ 'checked / defaultChecked': () => JSX.Element;
6
+ indeterminate: () => JSX.Element;
7
+ disabled: () => JSX.Element;
8
+ };
9
+ namespace Radio {
10
+ function color(): JSX.Element;
11
+ function size(): JSX.Element;
12
+ function labelPlacement(): JSX.Element;
13
+ function checked(): JSX.Element;
14
+ function disabled(): JSX.Element;
15
+ }
16
+ let SwitchInput: {
17
+ variant: () => JSX.Element;
18
+ size: () => JSX.Element;
19
+ 'checked / defaultChecked': () => JSX.Element;
20
+ icon: () => JSX.Element;
21
+ labelPlacement: () => JSX.Element;
22
+ disabled: () => JSX.Element;
23
+ };
24
+ namespace Input {
25
+ export function variant(): JSX.Element;
26
+ export function size_1(): JSX.Element;
27
+ export { size_1 as size };
28
+ export function labelPosition(): JSX.Element;
29
+ export function validation(): JSX.Element;
30
+ export function disabled_1(): JSX.Element;
31
+ export { disabled_1 as disabled };
32
+ }
33
+ namespace TextField {
34
+ export function error(): JSX.Element;
35
+ export function size_2(): JSX.Element;
36
+ export { size_2 as size };
37
+ }
38
+ namespace SearchField {
39
+ export function color_1(): JSX.Element;
40
+ export { color_1 as color };
41
+ export function showClearButton(): JSX.Element;
42
+ export function size_3(): JSX.Element;
43
+ export { size_3 as size };
44
+ }
45
+ namespace Select {
46
+ export function labelPosition_1(): JSX.Element;
47
+ export { labelPosition_1 as labelPosition };
48
+ export function size_4(): JSX.Element;
49
+ export { size_4 as size };
50
+ export function mode(): JSX.Element;
51
+ }
52
+ namespace Autocomplete {
53
+ export function labelPosition_2(): JSX.Element;
54
+ export { labelPosition_2 as labelPosition };
55
+ export function size_5(): JSX.Element;
56
+ export { size_5 as size };
57
+ }
58
+ namespace DropZone {
59
+ export function multiple(): JSX.Element;
60
+ export function size_6(): JSX.Element;
61
+ export { size_6 as size };
62
+ export function disabled_2(): JSX.Element;
63
+ export { disabled_2 as disabled };
64
+ }
65
+ namespace Avatar {
66
+ export function color_2(): JSX.Element;
67
+ export { color_2 as color };
68
+ }
69
+ }
@@ -0,0 +1,70 @@
1
+ export namespace NAV_SAMPLES {
2
+ namespace Tabs {
3
+ function orientation(): JSX.Element;
4
+ function baseline(): JSX.Element;
5
+ function variant(): JSX.Element;
6
+ function size(): JSX.Element;
7
+ function scrollable(): JSX.Element;
8
+ }
9
+ namespace Breadcrumbs {
10
+ export function size_1(): JSX.Element;
11
+ export { size_1 as size };
12
+ export function condense(): JSX.Element;
13
+ export function backOnlyMobile(): JSX.Element;
14
+ }
15
+ let Pagination: {
16
+ size: () => JSX.Element;
17
+ 'showFirstButton / showLastButton': () => JSX.Element;
18
+ };
19
+ namespace Stepper {
20
+ export function orientation_1(): JSX.Element;
21
+ export { orientation_1 as orientation };
22
+ export function size_2(): JSX.Element;
23
+ export { size_2 as size };
24
+ export function clickable(): JSX.Element;
25
+ export function dashedIncomplete(): JSX.Element;
26
+ }
27
+ namespace List {
28
+ export function orientation_2(): JSX.Element;
29
+ export { orientation_2 as orientation };
30
+ export function dividers(): JSX.Element;
31
+ export function clickable_1(): JSX.Element;
32
+ export { clickable_1 as clickable };
33
+ export function selectionMode(): JSX.Element;
34
+ export function loading(): JSX.Element;
35
+ }
36
+ namespace TreeView {
37
+ export function selectionMode_1(): JSX.Element;
38
+ export { selectionMode_1 as selectionMode };
39
+ }
40
+ namespace AppBar {
41
+ function mode(): JSX.Element;
42
+ function brandType(): JSX.Element;
43
+ function menuType(): JSX.Element;
44
+ }
45
+ namespace Rail {
46
+ export function variant_1(): JSX.Element;
47
+ export { variant_1 as variant };
48
+ export function expandable(): JSX.Element;
49
+ export function expandedWidth(): JSX.Element;
50
+ export function labelStyle(): JSX.Element;
51
+ }
52
+ namespace BottomNavigation {
53
+ export function showLabels(): JSX.Element;
54
+ export function variant_2(): JSX.Element;
55
+ export { variant_2 as variant };
56
+ }
57
+ namespace Sidebar {
58
+ export function variant_3(): JSX.Element;
59
+ export { variant_3 as variant };
60
+ }
61
+ namespace Toolbar {
62
+ export function type(): JSX.Element;
63
+ export function orientation_3(): JSX.Element;
64
+ export { orientation_3 as orientation };
65
+ }
66
+ namespace Menu {
67
+ export function size_3(): JSX.Element;
68
+ export { size_3 as size };
69
+ }
70
+ }
@@ -0,0 +1,12 @@
1
+ export const SLIDER_SAMPLES: {
2
+ variant: () => JSX.Element;
3
+ size: () => JSX.Element;
4
+ 'value / defaultValue': () => JSX.Element;
5
+ fill: () => JSX.Element;
6
+ orientation: () => JSX.Element;
7
+ marks: () => JSX.Element;
8
+ step: () => JSX.Element;
9
+ valueLabelDisplay: () => JSX.Element;
10
+ label: () => JSX.Element;
11
+ disabled: () => JSX.Element;
12
+ };
@@ -0,0 +1,69 @@
1
+ export namespace SURFACE_SAMPLES {
2
+ namespace Card {
3
+ function variant(): JSX.Element;
4
+ function size(): JSX.Element;
5
+ function orientation(): JSX.Element;
6
+ function clickable(): JSX.Element;
7
+ function elevated(): JSX.Element;
8
+ function selected(): JSX.Element;
9
+ }
10
+ namespace Accordion {
11
+ export function variant_1(): JSX.Element;
12
+ export { variant_1 as variant };
13
+ export function size_1(): JSX.Element;
14
+ export { size_1 as size };
15
+ export function defaultExpanded(): JSX.Element;
16
+ export function disabled(): JSX.Element;
17
+ }
18
+ namespace Paper {
19
+ export function outlined(): JSX.Element;
20
+ export function variant_2(): JSX.Element;
21
+ export { variant_2 as variant };
22
+ }
23
+ namespace Ratio {
24
+ function fit(): JSX.Element;
25
+ }
26
+ namespace Table {
27
+ function loading(): JSX.Element;
28
+ }
29
+ namespace Modal {
30
+ export function open(): JSX.Element;
31
+ export function size_2(): JSX.Element;
32
+ export { size_2 as size };
33
+ export function layout(): JSX.Element;
34
+ export function closeOnBackdrop(): JSX.Element;
35
+ export function showCloseButton(): JSX.Element;
36
+ }
37
+ namespace Dialog {
38
+ export function open_1(): JSX.Element;
39
+ export { open_1 as open };
40
+ export function maxWidth(): JSX.Element;
41
+ export function fullScreen(): JSX.Element;
42
+ export function alert(): JSX.Element;
43
+ export function nonModal(): JSX.Element;
44
+ }
45
+ namespace Drawer {
46
+ export function open_2(): JSX.Element;
47
+ export { open_2 as open };
48
+ export function anchor(): JSX.Element;
49
+ export function size_3(): JSX.Element;
50
+ export { size_3 as size };
51
+ export function hideBackdrop(): JSX.Element;
52
+ }
53
+ namespace Snackbar {
54
+ export function open_3(): JSX.Element;
55
+ export { open_3 as open };
56
+ export function color(): JSX.Element;
57
+ export function anchor_1(): JSX.Element;
58
+ export { anchor_1 as anchor };
59
+ }
60
+ namespace Tooltip {
61
+ function placement(): JSX.Element;
62
+ function arrow(): JSX.Element;
63
+ function describeChild(): JSX.Element;
64
+ }
65
+ namespace Popover {
66
+ export function open_4(): JSX.Element;
67
+ export { open_4 as open };
68
+ }
69
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omni-design/components",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "DynoDesign adaptive component library — token-driven React components with customizable CSS theming",
5
5
  "author": "Lise Noble",
6
6
  "license": "Apache-2.0",
@@ -66,7 +66,7 @@ variable-font axes (`--Font-Slant-Header`, `--Font-Roundness-Header`, …) and
66
66
  the full per-style ramp into both.
67
67
 
68
68
  The old wording — overwrite only base/Light/Dark — therefore gave a consumer
69
- the brand's colours but not its fonts or axes, silently. A design system with a
69
+ the brand's colors but not its fonts or axes, silently. A design system with a
70
70
  header weight of 857 rendered at 600 because the lib's bundled copy won.
71
71
 
72
72
  **The checked-in copies here are SEEDS, not the authority.** They define the
@@ -99,24 +99,35 @@
99
99
  --Buttons-Default-Quiet: var(--Buttons-Secondary-Quiet);
100
100
  --Buttons-Default-Hover: #efa5a4;
101
101
  --Buttons-Default-Pressed: #efa5a4;
102
- --Icons-Default: var(--Icon-Surfaces-Neutral-Color-9);
103
- --Icons-Default-Variant: var(--Icon-Variant-Surfaces-Neutral-Color-9);
104
- --Icons-Primary: var(--Icon-Surfaces-Primary-Color-9);
105
- --Icons-Primary-Variant: var(--Icon-Variant-Surfaces-Primary-Color-9);
106
- --Icons-Secondary: var(--Icon-Surfaces-Secondary-Color-9);
107
- --Icons-Secondary-Variant: var(--Icon-Variant-Surfaces-Secondary-Color-9);
108
- --Icons-Tertiary: var(--Icon-Surfaces-Tertiary-Color-9);
109
- --Icons-Tertiary-Variant: var(--Icon-Variant-Surfaces-Tertiary-Color-9);
110
- --Icons-Neutral: var(--Icon-Surfaces-Neutral-Color-9);
111
- --Icons-Neutral-Variant: var(--Icon-Variant-Surfaces-Neutral-Color-9);
112
- --Icons-Info: var(--Icon-Surfaces-Info-Color-9);
113
- --Icons-Info-Variant: var(--Icon-Variant-Surfaces-Info-Color-9);
114
- --Icons-Success: var(--Icon-Surfaces-Success-Color-9);
115
- --Icons-Success-Variant: var(--Icon-Variant-Surfaces-Success-Color-9);
116
- --Icons-Warning: var(--Icon-Surfaces-Warning-Color-9);
117
- --Icons-Warning-Variant: var(--Icon-Variant-Surfaces-Warning-Color-9);
118
- --Icons-Error: var(--Icon-Surfaces-Error-Color-9);
119
- --Icons-Error-Variant: var(--Icon-Variant-Surfaces-Error-Color-9);
102
+ /* The Icons ramp, with a fallback that is doing real work.
103
+ `--Icon-Surfaces-<Palette>-Color-9` and its Variant sibling are referenced
104
+ here and defined NOWHERE — not in this file and not in a generated brand
105
+ sheet. An undefined var() makes the whole declaration invalid at computed
106
+ value time, so every one of these resolved to nothing, and a Switch on
107
+ `secondary` painted the same dark track as one on `tertiary`, `info` and
108
+ `error`. Nine variants, one color, no error anywhere.
109
+ The surface-scoped name stays FIRST, because a brand that emits it should
110
+ win — that is the rule this system runs on. The palette ramp behind it is
111
+ what the themed blocks further down this file already use, so the fallback
112
+ agrees with them rather than inventing a value. */
113
+ --Icons-Default: var(--Icon-Surfaces-Neutral-Color-9, var(--Neutral-Color-6));
114
+ --Icons-Default-Variant: var(--Icon-Variant-Surfaces-Neutral-Color-9, var(--Neutral-Color-7));
115
+ --Icons-Primary: var(--Icon-Surfaces-Primary-Color-9, var(--Primary-Color-6));
116
+ --Icons-Primary-Variant: var(--Icon-Variant-Surfaces-Primary-Color-9, var(--Primary-Color-7));
117
+ --Icons-Secondary: var(--Icon-Surfaces-Secondary-Color-9, var(--Secondary-Color-6));
118
+ --Icons-Secondary-Variant: var(--Icon-Variant-Surfaces-Secondary-Color-9, var(--Secondary-Color-7));
119
+ --Icons-Tertiary: var(--Icon-Surfaces-Tertiary-Color-9, var(--Tertiary-Color-6));
120
+ --Icons-Tertiary-Variant: var(--Icon-Variant-Surfaces-Tertiary-Color-9, var(--Tertiary-Color-7));
121
+ --Icons-Neutral: var(--Icon-Surfaces-Neutral-Color-9, var(--Neutral-Color-6));
122
+ --Icons-Neutral-Variant: var(--Icon-Variant-Surfaces-Neutral-Color-9, var(--Neutral-Color-7));
123
+ --Icons-Info: var(--Icon-Surfaces-Info-Color-9, var(--Info-Color-6));
124
+ --Icons-Info-Variant: var(--Icon-Variant-Surfaces-Info-Color-9, var(--Info-Color-7));
125
+ --Icons-Success: var(--Icon-Surfaces-Success-Color-9, var(--Success-Color-6));
126
+ --Icons-Success-Variant: var(--Icon-Variant-Surfaces-Success-Color-9, var(--Success-Color-7));
127
+ --Icons-Warning: var(--Icon-Surfaces-Warning-Color-9, var(--Warning-Color-6));
128
+ --Icons-Warning-Variant: var(--Icon-Variant-Surfaces-Warning-Color-9, var(--Warning-Color-7));
129
+ --Icons-Error: var(--Icon-Surfaces-Error-Color-9, var(--Error-Color-6));
130
+ --Icons-Error-Variant: var(--Icon-Variant-Surfaces-Error-Color-9, var(--Error-Color-7));
120
131
  }
121
132
 
122
133
  :root {
@@ -175,7 +186,7 @@
175
186
 
176
187
 
177
188
  :root {
178
- /* Default Primary / Secondary / Tertiary Tone — the Color-N each brand colour sits at. */
189
+ /* Default Primary / Secondary / Tertiary Tone — the Color-N each brand color sits at. */
179
190
  --DPT: 6;
180
191
  --DST: 7;
181
192
  --DTT: 8;
@@ -250,6 +261,17 @@
250
261
  --Checkbox-Gap: 8px;
251
262
  --Sm-Checkbox-Gap: 4px;
252
263
  --Lg-Checkbox-Gap: 12px;
264
+ /* The Switch track. These are the Component-Size collection's values, and
265
+ they are here because they were nowhere: the number lived in Figma and
266
+ again as a literal in Switch.js, with nothing able to see the two drift.
267
+ They had — 28x16 and 40x24 against the file's 35x20 and 42x24, with large
268
+ matching, which is why it read as consistent. */
269
+ --Switch-Width: 42px;
270
+ --Sm-Switch-Width: 35px;
271
+ --Lg-Switch-Width: 56px;
272
+ --Switch-Height: 24px;
273
+ --Sm-Switch-Height: 20px;
274
+ --Lg-Switch-Height: 32px;
253
275
  --Divider: 1px;
254
276
  --Sm-Divider: 0.5px;
255
277
  --Lg-Divider: 2px;
@@ -5,19 +5,19 @@
5
5
 
6
6
  :root {
7
7
 
8
- /* ── The brand's CORE colours ────────────────────────────────────────────
8
+ /* ── The brand's CORE colors ────────────────────────────────────────────
9
9
  The three hexes the user actually picked, verbatim.
10
10
 
11
- Nothing else in the published CSS says which colour a brand chose.
11
+ Nothing else in the published CSS says which color a brand chose.
12
12
  generateScaledTones writes the pick into the tone NEAREST ITS LIGHTNESS,
13
- so the index differs per colour — a dark pick lands low, a pale one high
13
+ so the index differs per color — a dark pick lands low, a pale one high
14
14
  — and no fixed tone can stand for it. Color-Vibrant is not it either: that
15
15
  is hardcoded to Color-8, which on a light brand is a pale tint. The
16
16
  library's own Colors page showed Color-11 and then Color-8 and was wrong
17
17
  both times, because the information was never published.
18
18
 
19
19
  Emitted here rather than derived, so a consumer can show the brand's
20
- colours without reaching into Firestore — which a published stylesheet
20
+ colors without reaching into Firestore — which a published stylesheet
21
21
  cannot do. */
22
22
  --Primary-Core: #849054;
23
23
  --Secondary-Core: #e49090;
@@ -551,7 +551,7 @@
551
551
 
552
552
  /* Alt Display — mirrors Display step for step. The pairing sets one word
553
553
  on one baseline ("Omni" + "Design"), so the two must not diverge in
554
- size or leading; colour is what separates them. */
554
+ size or leading; color is what separates them. */
555
555
  --Alt-Display-Small-Font-Size: 34px;
556
556
  --Alt-Display-Small-Font-Weight: 900;
557
557
  --Alt-Display-Small-Line-Height: 41px;
@@ -790,7 +790,7 @@
790
790
 
791
791
  /* Alt Display — mirrors Display step for step. The pairing sets one word
792
792
  on one baseline ("Omni" + "Design"), so the two must not diverge in
793
- size or leading; colour is what separates them. */
793
+ size or leading; color is what separates them. */
794
794
  --Alt-Display-Small-Font-Size: 34px;
795
795
  --Alt-Display-Small-Font-Weight: 900;
796
796
  --Alt-Display-Small-Line-Height: 41px;
@@ -1029,7 +1029,7 @@
1029
1029
 
1030
1030
  /* Alt Display — mirrors Display step for step. The pairing sets one word
1031
1031
  on one baseline ("Omni" + "Design"), so the two must not diverge in
1032
- size or leading; colour is what separates them. */
1032
+ size or leading; color is what separates them. */
1033
1033
  --Alt-Display-Small-Font-Size: 36px;
1034
1034
  --Alt-Display-Small-Font-Weight: 900;
1035
1035
  --Alt-Display-Small-Line-Height: 44px;
@@ -1269,7 +1269,7 @@
1269
1269
 
1270
1270
  /* Alt Display — mirrors Display step for step. The pairing sets one word
1271
1271
  on one baseline ("Omni" + "Design"), so the two must not diverge in
1272
- size or leading; colour is what separates them. */
1272
+ size or leading; color is what separates them. */
1273
1273
  --Alt-Display-Small-Font-Size: 36px;
1274
1274
  --Alt-Display-Small-Font-Weight: 900;
1275
1275
  --Alt-Display-Small-Line-Height: 44px;
@@ -1391,11 +1391,11 @@
1391
1391
  }
1392
1392
 
1393
1393
  /* ---------------------------------------------------------------------------
1394
- Alt Display colour — three variants, one pair of stops
1394
+ Alt Display color — three variants, one pair of stops
1395
1395
 
1396
1396
  Set data-alt-display on the element or any ancestor:
1397
1397
  default (or unset) the Alt reads as a heading
1398
- colored a flat Alt colour
1398
+ colored a flat Alt color
1399
1399
  gradient the two stops the theme publishes
1400
1400
 
1401
1401
  The stops are re-published per theme and surface, so every variant follows
@@ -1420,7 +1420,7 @@
1420
1420
  .typography-alt-display-large,
1421
1421
  .typography-alt-display-medium,
1422
1422
  .typography-alt-display-small {
1423
- /* Stop 1 alone: in the flat variants the two agree, and a plain colour keeps
1423
+ /* Stop 1 alone: in the flat variants the two agree, and a plain color keeps
1424
1424
  the selection highlight, print, and forced-colors working. */
1425
1425
  color: var(--Alt-Display-Color-Stop-1);
1426
1426
  }
@@ -1453,7 +1453,7 @@
1453
1453
  .typography-alt-display-small[data-alt-display="gradient"],
1454
1454
  [data-alt-display="gradient"] .typography-alt-display-small {
1455
1455
  /* The UA drops background-image here, and transparent text would leave
1456
- nothing on screen. Hand the glyphs back to the system colour. */
1456
+ nothing on screen. Hand the glyphs back to the system color. */
1457
1457
  background-image: none;
1458
1458
  -webkit-background-clip: border-box;
1459
1459
  background-clip: border-box;