@omni-design/components 0.7.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/.claude/commands/ScanComponents.md +26 -0
- package/.claude/commands/ShareComponent.md +128 -0
- package/.cursorrules +21 -0
- package/CLAUDE.md +1046 -0
- package/README.md +70 -0
- package/dist/OmniDesignProvider.esm.js +2 -0
- package/dist/OmniDesignProvider.esm.js.map +1 -0
- package/dist/OmniDesignProvider.js +2 -0
- package/dist/OmniDesignProvider.js.map +1 -0
- package/dist/index.esm.js +42 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +42 -0
- package/dist/index.js.map +1 -0
- package/dist/types/OmniDesignProvider.d.ts +158 -0
- package/dist/types/components/Accordion/Accordion.d.ts +42 -0
- package/dist/types/components/Accordion/AccordionShowcase.d.ts +2 -0
- package/dist/types/components/Accordion/index.d.ts +2 -0
- package/dist/types/components/Alert/Alert.d.ts +14 -0
- package/dist/types/components/Alert/AlertShowcase.d.ts +2 -0
- package/dist/types/components/Alert/index.d.ts +2 -0
- package/dist/types/components/AppBar/AppBar.d.ts +43 -0
- package/dist/types/components/AppBar/AppBarShowcase.d.ts +2 -0
- package/dist/types/components/AppBar/index.d.ts +2 -0
- package/dist/types/components/Autocomplete/Autocomplete.d.ts +26 -0
- package/dist/types/components/Autocomplete/AutocompleteShowcase.d.ts +2 -0
- package/dist/types/components/Autocomplete/index.d.ts +2 -0
- package/dist/types/components/Avatar/Avatar.d.ts +29 -0
- package/dist/types/components/Avatar/AvatarShowcase.d.ts +2 -0
- package/dist/types/components/Avatar/defaultAvatar.d.ts +2 -0
- package/dist/types/components/Avatar/index.d.ts +3 -0
- package/dist/types/components/BackgroundPicker.d.ts +12 -0
- package/dist/types/components/Badge/Badge.d.ts +43 -0
- package/dist/types/components/Badge/BadgeShowcase.d.ts +1 -0
- package/dist/types/components/Badge/index.d.ts +2 -0
- package/dist/types/components/BevelText/BevelText.d.ts +15 -0
- package/dist/types/components/BevelText/BevelTextShowcase.d.ts +2 -0
- package/dist/types/components/BevelText/index.d.ts +2 -0
- package/dist/types/components/BottomNavigation/BottomNavigation.d.ts +15 -0
- package/dist/types/components/BottomNavigation/BottomNavigationShowcase.d.ts +2 -0
- package/dist/types/components/BottomNavigation/index.d.ts +2 -0
- package/dist/types/components/Box/Box.d.ts +36 -0
- package/dist/types/components/Box/BoxShowcase.d.ts +2 -0
- package/dist/types/components/Box/index.d.ts +2 -0
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +22 -0
- package/dist/types/components/Breadcrumbs/BreadcrumbsShowcase.d.ts +2 -0
- package/dist/types/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/types/components/Button/Button.d.ts +66 -0
- package/dist/types/components/Button/index.d.ts +2 -0
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +41 -0
- package/dist/types/components/ButtonGroup/index.d.ts +2 -0
- package/dist/types/components/Card/Card.d.ts +54 -0
- package/dist/types/components/Card/CardShowcase.d.ts +2 -0
- package/dist/types/components/Card/index.d.ts +2 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +51 -0
- package/dist/types/components/Checkbox/index.d.ts +2 -0
- package/dist/types/components/Chip/Chip.d.ts +42 -0
- package/dist/types/components/Chip/ChipShowcase.d.ts +2 -0
- package/dist/types/components/Chip/index.d.ts +2 -0
- package/dist/types/components/CircularProgress/CircularProgress.d.ts +12 -0
- package/dist/types/components/CircularProgress/CircularProgressShowcase.d.ts +2 -0
- package/dist/types/components/CircularProgress/index.d.ts +2 -0
- package/dist/types/components/CodeBlock/CodeBlock.d.ts +35 -0
- package/dist/types/components/Colors/Colors.d.ts +7 -0
- package/dist/types/components/Colors/index.d.ts +1 -0
- package/dist/types/components/Container/Container.d.ts +70 -0
- package/dist/types/components/Container/index.d.ts +1 -0
- package/dist/types/components/Copyright/Copyright.d.ts +11 -0
- package/dist/types/components/Copyright/CopyrightShowcase.d.ts +2 -0
- package/dist/types/components/Copyright/index.d.ts +2 -0
- package/dist/types/components/CurvedText/CurvedText.d.ts +23 -0
- package/dist/types/components/CurvedText/CurvedTextShowcase.d.ts +2 -0
- package/dist/types/components/CurvedText/index.d.ts +2 -0
- package/dist/types/components/Dialog/Dialog.d.ts +82 -0
- package/dist/types/components/Dialog/DialogShowcase.d.ts +2 -0
- package/dist/types/components/Dialog/index.d.ts +2 -0
- package/dist/types/components/Divider/Divider.d.ts +22 -0
- package/dist/types/components/Divider/DividerShowcase.d.ts +2 -0
- package/dist/types/components/Divider/index.d.ts +2 -0
- package/dist/types/components/Drawer/Drawer.d.ts +30 -0
- package/dist/types/components/Drawer/DrawerShowcase.d.ts +2 -0
- package/dist/types/components/Drawer/index.d.ts +2 -0
- package/dist/types/components/DropZone/DropZone.d.ts +15 -0
- package/dist/types/components/DropZone/index.d.ts +2 -0
- package/dist/types/components/Fab/Fab.d.ts +17 -0
- package/dist/types/components/Fab/FabShowcase.d.ts +2 -0
- package/dist/types/components/Fab/index.d.ts +2 -0
- package/dist/types/components/Footer/Footer.d.ts +14 -0
- package/dist/types/components/Footer/FooterShowcase.d.ts +2 -0
- package/dist/types/components/Footer/index.d.ts +2 -0
- package/dist/types/components/Gradient/Gradient.d.ts +38 -0
- package/dist/types/components/Gradient/GradientShowcase.d.ts +2 -0
- package/dist/types/components/Gradient/gradientUtils.d.ts +185 -0
- package/dist/types/components/Gradient/index.d.ts +3 -0
- package/dist/types/components/Grid/Grid.d.ts +112 -0
- package/dist/types/components/Grid/index.d.ts +1 -0
- package/dist/types/components/Header/Header.d.ts +53 -0
- package/dist/types/components/Header/index.d.ts +1 -0
- package/dist/types/components/Icon/Icon.d.ts +19 -0
- package/dist/types/components/Icon/IconShowcase.d.ts +2 -0
- package/dist/types/components/Icon/index.d.ts +2 -0
- package/dist/types/components/IconBadge/IconBadge.d.ts +10 -0
- package/dist/types/components/IconBadge/IconBadgeShowcase.d.ts +2 -0
- package/dist/types/components/IconBadge/index.d.ts +2 -0
- package/dist/types/components/Input/Input.d.ts +47 -0
- package/dist/types/components/Input/index.d.ts +2 -0
- package/dist/types/components/LinearProgress/LinearProgress.d.ts +9 -0
- package/dist/types/components/LinearProgress/LinearProgressShowcase.d.ts +2 -0
- package/dist/types/components/LinearProgress/index.d.ts +2 -0
- package/dist/types/components/Link/Link.d.ts +16 -0
- package/dist/types/components/Link/LinkShowcase.d.ts +2 -0
- package/dist/types/components/Link/index.d.ts +2 -0
- package/dist/types/components/List/List.d.ts +55 -0
- package/dist/types/components/List/ListShowcase.d.ts +2 -0
- package/dist/types/components/List/index.d.ts +2 -0
- package/dist/types/components/MainLayout/MainLayout.d.ts +28 -0
- package/dist/types/components/MainLayout/index.d.ts +1 -0
- package/dist/types/components/Menu/Menu.d.ts +37 -0
- package/dist/types/components/Menu/MenuShowcase.d.ts +2 -0
- package/dist/types/components/Menu/index.d.ts +2 -0
- package/dist/types/components/Modal/Modal.d.ts +18 -0
- package/dist/types/components/Modal/ModalShowcase.d.ts +2 -0
- package/dist/types/components/Modal/index.d.ts +2 -0
- package/dist/types/components/NumberField/NumberField.d.ts +22 -0
- package/dist/types/components/NumberField/NumberFieldShowcase.d.ts +2 -0
- package/dist/types/components/NumberField/index.d.ts +2 -0
- package/dist/types/components/Pagination/Pagination.d.ts +17 -0
- package/dist/types/components/Pagination/PaginationShowcase.d.ts +2 -0
- package/dist/types/components/Pagination/index.d.ts +2 -0
- package/dist/types/components/Paper/Paper.d.ts +111 -0
- package/dist/types/components/Paper/index.d.ts +1 -0
- package/dist/types/components/Popover/Popover.d.ts +31 -0
- package/dist/types/components/Popover/index.d.ts +1 -0
- package/dist/types/components/PreviewSurface.d.ts +18 -0
- package/dist/types/components/Radio/Radio.d.ts +55 -0
- package/dist/types/components/Radio/RadioShowcase.d.ts +2 -0
- package/dist/types/components/Radio/index.d.ts +2 -0
- package/dist/types/components/Rail/Rail.d.ts +15 -0
- package/dist/types/components/Rail/RailShowcase.d.ts +2 -0
- package/dist/types/components/Rail/index.d.ts +2 -0
- package/dist/types/components/Rating/Rating.d.ts +16 -0
- package/dist/types/components/Rating/RatingShowcase.d.ts +2 -0
- package/dist/types/components/Rating/index.d.ts +2 -0
- package/dist/types/components/Ratio/Ratio.d.ts +20 -0
- package/dist/types/components/Ratio/RatioShowcase.d.ts +2 -0
- package/dist/types/components/Ratio/index.d.ts +2 -0
- package/dist/types/components/SearchField/SearchField.d.ts +19 -0
- package/dist/types/components/SearchField/SearchFieldShowcase.d.ts +2 -0
- package/dist/types/components/SearchField/index.d.ts +2 -0
- package/dist/types/components/Section/Section.d.ts +44 -0
- package/dist/types/components/Section/SectionShowcase.d.ts +2 -0
- package/dist/types/components/Section/index.d.ts +2 -0
- package/dist/types/components/Select/Select.d.ts +23 -0
- package/dist/types/components/Select/SelectShowcase.d.ts +2 -0
- package/dist/types/components/Select/index.d.ts +2 -0
- package/dist/types/components/SettingsPanel.d.ts +2 -0
- package/dist/types/components/Sidebar/Sidebar.d.ts +53 -0
- package/dist/types/components/Sidebar/index.d.ts +1 -0
- package/dist/types/components/Slider/Slider.d.ts +79 -0
- package/dist/types/components/Slider/SliderShowcase.d.ts +2 -0
- package/dist/types/components/Slider/index.d.ts +2 -0
- package/dist/types/components/Snackbar/Snackbar.d.ts +17 -0
- package/dist/types/components/Snackbar/SnackbarShowcase.d.ts +2 -0
- package/dist/types/components/Snackbar/index.d.ts +2 -0
- package/dist/types/components/Spacing/Spacing.d.ts +16 -0
- package/dist/types/components/Spacing/index.d.ts +1 -0
- package/dist/types/components/SpeedDial/SpeedDial.d.ts +17 -0
- package/dist/types/components/SpeedDial/SpeedDialShowcase.d.ts +2 -0
- package/dist/types/components/SpeedDial/index.d.ts +2 -0
- package/dist/types/components/Stack/Stack.d.ts +52 -0
- package/dist/types/components/Stack/StackShowcase.d.ts +2 -0
- package/dist/types/components/Stack/index.d.ts +2 -0
- package/dist/types/components/Stepper/Stepper.d.ts +33 -0
- package/dist/types/components/Stepper/StepperShowcase.d.ts +2 -0
- package/dist/types/components/Stepper/index.d.ts +2 -0
- package/dist/types/components/Switch/Switch.d.ts +65 -0
- package/dist/types/components/Switch/SwitchShowcase.d.ts +2 -0
- package/dist/types/components/Switch/index.d.ts +2 -0
- package/dist/types/components/Table/Table.d.ts +20 -0
- package/dist/types/components/Table/TableShowcase.d.ts +2 -0
- package/dist/types/components/Table/index.d.ts +2 -0
- package/dist/types/components/Tabs/Tabs.d.ts +51 -0
- package/dist/types/components/Tabs/TabsShowcase.d.ts +2 -0
- package/dist/types/components/Tabs/index.d.ts +2 -0
- package/dist/types/components/Tag/Tag.d.ts +57 -0
- package/dist/types/components/Tag/TagShowcase.d.ts +2 -0
- package/dist/types/components/Tag/index.d.ts +2 -0
- package/dist/types/components/TextField/TextField.d.ts +105 -0
- package/dist/types/components/TextField/index.d.ts +1 -0
- package/dist/types/components/ToggleButton/ToggleButton.d.ts +94 -0
- package/dist/types/components/ToggleButton/index.d.ts +1 -0
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +48 -0
- package/dist/types/components/Toolbar/Toolbar.d.ts +14 -0
- package/dist/types/components/Toolbar/ToolbarShowcase.d.ts +2 -0
- package/dist/types/components/Toolbar/index.d.ts +2 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +20 -0
- package/dist/types/components/Tooltip/TooltipShowcase.d.ts +2 -0
- package/dist/types/components/Tooltip/index.d.ts +2 -0
- package/dist/types/components/TreeView/TreeBranch.d.ts +14 -0
- package/dist/types/components/TreeView/TreeView.d.ts +82 -0
- package/dist/types/components/TreeView/TreeViewShowcase.d.ts +2 -0
- package/dist/types/components/TreeView/index.d.ts +3 -0
- package/dist/types/components/Typography/Typography.d.ts +492 -0
- package/dist/types/components/Typography/TypographyShowcase.d.ts +2 -0
- package/dist/types/components/Typography/index.d.ts +2 -0
- package/dist/types/components/_a11y/ContrastCheck.d.ts +15 -0
- package/dist/types/components/_bevelPresets.d.ts +92 -0
- package/dist/types/components/_shadows.d.ts +32 -0
- package/dist/types/components/index.d.ts +74 -0
- package/dist/types/theme/useThemeMode.d.ts +4 -0
- package/docs/components.md +797 -0
- package/docs/getting-started.md +409 -0
- package/docs/token-system.md +468 -0
- package/package.json +126 -0
- package/public/styles/Dark-Mode.css +13867 -0
- package/public/styles/Light-Mode.css +14091 -0
- package/public/styles/README.md +93 -0
- package/public/styles/base.css +261 -0
- package/public/styles/core.css +378 -0
- package/public/styles/foundation.css +72 -0
- package/public/styles/styles.css +6 -0
- package/public/styles/theme.js +234 -0
- package/public/styles/theme.json +12 -0
- package/public/styles/typography-tokens.css +720 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# `@omni-design/components` CSS files
|
|
2
|
+
|
|
3
|
+
This folder ships as `@omni-design/components/public/styles/` in the published npm package.
|
|
4
|
+
The files split into two categories — STATIC and DYNAMIC — and they should be treated very differently.
|
|
5
|
+
|
|
6
|
+
## DYNAMIC — regenerated per design system
|
|
7
|
+
|
|
8
|
+
These files contain values specific to one design system (brand colors, fonts, etc.).
|
|
9
|
+
They are produced by the **studio's** `exportToCSS.ts` and replaced wholesale on every export.
|
|
10
|
+
|
|
11
|
+
| File | What's in it |
|
|
12
|
+
|---|---|
|
|
13
|
+
| `base.css` | Brand-specific font families, button defaults, primary-background mappings |
|
|
14
|
+
| `Light-Mode.css` | Full per-brand color palette + per-surface hover/active (light mode) |
|
|
15
|
+
| `Dark-Mode.css` | Same as Light-Mode for dark |
|
|
16
|
+
| `core.css` | Platform font overrides **and the chosen faces** (`--Set-Font-Family-*`) |
|
|
17
|
+
| `typography-tokens.css` | The per-style ramp, sizes, weights and variable-font axes |
|
|
18
|
+
|
|
19
|
+
**If you copy a fresh studio export into this folder, overwrite these five files.**
|
|
20
|
+
|
|
21
|
+
## STATIC — lib-owned, do not regenerate
|
|
22
|
+
|
|
23
|
+
These files have no brand-specific values. They're the same for every consumer of the lib.
|
|
24
|
+
**Never overwrite them from a studio export.** They are hand-edited (or generated upstream from a template), checked into the lib repo, and shipped as-is.
|
|
25
|
+
|
|
26
|
+
| File | What's in it |
|
|
27
|
+
|---|---|
|
|
28
|
+
| `foundation.css` | Primitive sizing tokens (button/card radius defaults) |
|
|
29
|
+
| `styles.css` | Final overrides slot (loads last). Add hand-edited overrides here. |
|
|
30
|
+
|
|
31
|
+
### `foundations.css` was removed — use `foundation.css`
|
|
32
|
+
|
|
33
|
+
Two files one character apart, both shipped. `foundations.css` held a strict
|
|
34
|
+
SUBSET of `foundation.css` — 44 of its 47 variables, nothing unique — but six
|
|
35
|
+
shared names carried DIFFERENT values:
|
|
36
|
+
|
|
37
|
+
| | foundation.css | foundations.css |
|
|
38
|
+
|---|---|---|
|
|
39
|
+
| `--Button-Radius` | `4px` | `34px` |
|
|
40
|
+
| `--Button-Icon-Radius` | `4px` | `61px` |
|
|
41
|
+
| `--Button-Bevel-Px` | `0px` | `4px` |
|
|
42
|
+
| `--Button-Bevel-Shadow` | `none` | full inset bevel |
|
|
43
|
+
|
|
44
|
+
So the two files disagreed about whether a button is a flat square or a bevelled
|
|
45
|
+
pill, and which one you got depended on how you imported. Worse, every reference
|
|
46
|
+
in the codebase named `foundation.css` while the package `exports` map only
|
|
47
|
+
permitted `foundations.css` — so the one file a consumer could import by name
|
|
48
|
+
was the one nothing else used.
|
|
49
|
+
|
|
50
|
+
The three variables missing from the plural version were `--Input-Radius`,
|
|
51
|
+
`--Input-Inner-Focus-Visible` and `--Sizing-Negative-2`. `--Input-Radius` is the
|
|
52
|
+
base of the `Dropdown-Frame-Radius` chain, so consumers on the plural file had
|
|
53
|
+
no input radius at all.
|
|
54
|
+
|
|
55
|
+
**If you are updating from a version that loaded `foundations.css`, buttons will
|
|
56
|
+
change from a 34px bevelled pill to a 4px flat square.** That is the correct
|
|
57
|
+
default — it is what every other reference in the lib and every studio export
|
|
58
|
+
already assumed — but it is a visible change, not a silent cleanup.
|
|
59
|
+
|
|
60
|
+
### Why `core.css` and `typography-tokens.css` moved to DYNAMIC
|
|
61
|
+
|
|
62
|
+
They used to be listed as static, on the grounds that they held no brand
|
|
63
|
+
values. That stopped being true: studio exports write the chosen faces
|
|
64
|
+
(`--Set-Font-Family-Display` / `-Eyebrow` / `-Header`), the header face's
|
|
65
|
+
variable-font axes (`--Font-Slant-Header`, `--Font-Roundness-Header`, …) and
|
|
66
|
+
the full per-style ramp into both.
|
|
67
|
+
|
|
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
|
|
70
|
+
header weight of 857 rendered at 600 because the lib's bundled copy won.
|
|
71
|
+
|
|
72
|
+
**The checked-in copies here are SEEDS, not the authority.** They define the
|
|
73
|
+
same token names with neutral values: faces fall back to what the design system
|
|
74
|
+
rendered before faces existed, and `--Font-Variation-Header` is `normal`, so
|
|
75
|
+
nothing is applied until a real design system supplies values. That makes them
|
|
76
|
+
a safe default for local development and for the showcase — nothing more.
|
|
77
|
+
|
|
78
|
+
At runtime the authority is the design system's own export. `theme.json` now
|
|
79
|
+
carries a `typography` slot alongside `foundation` / `core` / `lightMode` /
|
|
80
|
+
`darkMode` / `base` / `styles`, so the Provider fetches the brand's ramp
|
|
81
|
+
directly and the bundled copy is never consulted.
|
|
82
|
+
|
|
83
|
+
## How files are referenced
|
|
84
|
+
|
|
85
|
+
Consumers of `@omni-design/components` import these files directly, e.g.:
|
|
86
|
+
|
|
87
|
+
```js
|
|
88
|
+
import '@omni-design/components/public/styles/Light-Mode.css';
|
|
89
|
+
import '@omni-design/components/public/styles/core.css';
|
|
90
|
+
// etc.
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
The list of importable paths is whitelisted by the lib's `package.json` `exports` field.
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Prata&display=swap');
|
|
2
|
+
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');
|
|
3
|
+
|
|
4
|
+
/* ========================================
|
|
5
|
+
* Base CSS Variables
|
|
6
|
+
* Generated from DynoDesign JSON
|
|
7
|
+
* Auto-generated - do not edit manually
|
|
8
|
+
* ======================================== */
|
|
9
|
+
|
|
10
|
+
/* ========================================
|
|
11
|
+
* Root Button Colors
|
|
12
|
+
* Global button color variables
|
|
13
|
+
* ======================================== */
|
|
14
|
+
|
|
15
|
+
:root {
|
|
16
|
+
--Surface: var(--Primary-Background-11-Surface);
|
|
17
|
+
--Surface-Dim: var(--Primary-Background-11-Surface-Dim);
|
|
18
|
+
--Surface-Bright: var(--Primary-Background-11-Surface-Bright);
|
|
19
|
+
--Container: var(--Primary-Background-11-Container);
|
|
20
|
+
--Container-Lowest: var(--Primary-Background-11-Container-Lowest);
|
|
21
|
+
--Container-Low: var(--Primary-Background-11-Container-Low);
|
|
22
|
+
--Container-High: var(--Primary-Background-11-Container-High);
|
|
23
|
+
--Container-Highest: var(--Primary-Background-11-Container-Highest);
|
|
24
|
+
/* Default Theme */
|
|
25
|
+
--Background: var(--Primary-Background-11-Surface);
|
|
26
|
+
--Surface-Dim: var(--Primary-Background-11-Surface-Dim);
|
|
27
|
+
--Surface-Bright: var(--Primary-Background-11-Surface-Bright);
|
|
28
|
+
--Header: var(--Header-Surfaces-Primary-Color-11);
|
|
29
|
+
--Text: var(--Text-Surfaces-Primary-Color-11);
|
|
30
|
+
--Quiet: var(--Quiet-Surfaces-Primary-Color-11);
|
|
31
|
+
--Border: var(--Border-Surfaces-Primary-Color-11);
|
|
32
|
+
--Border-Variant: var(--Border-Variant-Surfaces-Primary-Color-11);
|
|
33
|
+
--Hotlink: var(--Text-Surfaces-Info-Color-11);
|
|
34
|
+
--Hotlink-Visited: var(--Text-Surfaces-Hotlink-Visited-Color-11);
|
|
35
|
+
--Hover: var(--Hover-Primary-Color-11);
|
|
36
|
+
--Active: var(--Active-Primary-Color-11);
|
|
37
|
+
--Focus-Visible: var(--Focus-Visible-Surfaces-Color-11);
|
|
38
|
+
--Buttons-Primary-Hover: #fbfdf9;
|
|
39
|
+
--Buttons-Primary-Active: #fbfdf9;
|
|
40
|
+
--Buttons-Primary-Light-Button: var(--Primary-Color-12);
|
|
41
|
+
--Buttons-Primary-Light-Text: var(--Text-Surfaces-Primary-Color-12);
|
|
42
|
+
--Buttons-Primary-Light-Border: var(--Border-Surfaces-Primary-Color-12);
|
|
43
|
+
--Buttons-Primary-Light-Hover: #FFFFFF;
|
|
44
|
+
--Buttons-Primary-Light-Active: #FFFFFF;
|
|
45
|
+
--Buttons-Secondary-Button: var(--Secondary-Color-9);
|
|
46
|
+
--Buttons-Secondary-Text: var(--Text-Surfaces-Secondary-Color-9);
|
|
47
|
+
--Buttons-Secondary-Border: var(--Border-Surfaces-Secondary-Color-11);
|
|
48
|
+
--Buttons-Secondary-Hover: #fceded;
|
|
49
|
+
--Buttons-Secondary-Active: #fceded;
|
|
50
|
+
--Buttons-Secondary-Light-Button: var(--Secondary-Color-12);
|
|
51
|
+
--Buttons-Secondary-Light-Text: var(--Text-Surfaces-Secondary-Color-12);
|
|
52
|
+
--Buttons-Secondary-Light-Border: var(--Border-Surfaces-Secondary-Color-11);
|
|
53
|
+
--Buttons-Secondary-Light-Hover: #FFFFFF;
|
|
54
|
+
--Buttons-Secondary-Light-Active: #FFFFFF;
|
|
55
|
+
--Buttons-Tertiary-Button: var(--Tertiary-Color-9);
|
|
56
|
+
--Buttons-Tertiary-Text: var(--Text-Surfaces-Tertiary-Color-9);
|
|
57
|
+
--Buttons-Tertiary-Border: var(--Border-Surfaces-Tertiary-Color-11);
|
|
58
|
+
--Buttons-Tertiary-Hover: #f7efe9;
|
|
59
|
+
--Buttons-Tertiary-Active: #f7efe9;
|
|
60
|
+
--Buttons-Tertiary-Light-Button: var(--Tertiary-Color-12);
|
|
61
|
+
--Buttons-Tertiary-Light-Text: var(--Text-Surfaces-Tertiary-Color-12);
|
|
62
|
+
--Buttons-Tertiary-Light-Border: var(--Border-Surfaces-Tertiary-Color-11);
|
|
63
|
+
--Buttons-Tertiary-Light-Hover: #FFFFFF;
|
|
64
|
+
--Buttons-Tertiary-Light-Active: #FFFFFF;
|
|
65
|
+
--Buttons-Primary-Button: var(--Primary-Button-Containers-Background-11-Button);
|
|
66
|
+
--Buttons-Primary-Text: var(--Primary-Button-Containers-Background-11-Text);
|
|
67
|
+
--Buttons-Primary-Border: var(--Border-Containers-Primary-Color-11);
|
|
68
|
+
--Buttons-Primary-Hover: #fbfdf9;
|
|
69
|
+
--Buttons-Primary-Active: #fbfdf9;
|
|
70
|
+
--Buttons-Primary-Light-Border: var(--Border-Containers-Primary-Color-12);
|
|
71
|
+
--Buttons-Secondary-Border: var(--Border-Containers-Secondary-Color-11);
|
|
72
|
+
--Buttons-Secondary-Light-Border: var(--Border-Containers-Secondary-Color-11);
|
|
73
|
+
--Buttons-Tertiary-Border: var(--Border-Containers-Tertiary-Color-11);
|
|
74
|
+
--Buttons-Tertiary-Light-Border: var(--Border-Containers-Tertiary-Color-11);
|
|
75
|
+
--Buttons-Neutral-Button: var(--Neutral-Color-9);
|
|
76
|
+
--Buttons-Neutral-Text: var(--Text-Surfaces-Neutral-Color-9);
|
|
77
|
+
--Buttons-Neutral-Border: var(--Border-Containers-Neutral-Color-11);
|
|
78
|
+
--Buttons-Neutral-Hover: #f1f1f1;
|
|
79
|
+
--Buttons-Neutral-Active: #f1f1f1;
|
|
80
|
+
--Buttons-Neutral-Light-Button: var(--Neutral-Color-12);
|
|
81
|
+
--Buttons-Neutral-Light-Text: var(--Text-Surfaces-Neutral-Color-12);
|
|
82
|
+
--Buttons-Neutral-Light-Border: var(--Border-Containers-Neutral-Color-11);
|
|
83
|
+
--Buttons-Neutral-Light-Hover: #FFFFFF;
|
|
84
|
+
--Buttons-Neutral-Light-Active: #FFFFFF;
|
|
85
|
+
--Buttons-Info-Button: var(--Info-Color-9);
|
|
86
|
+
--Buttons-Info-Text: var(--Text-Surfaces-Info-Color-9);
|
|
87
|
+
--Buttons-Info-Border: var(--Border-Containers-Info-Color-11);
|
|
88
|
+
--Buttons-Info-Hover: #eeefff;
|
|
89
|
+
--Buttons-Info-Active: #eeefff;
|
|
90
|
+
--Buttons-Info-Light-Button: var(--Info-Color-12);
|
|
91
|
+
--Buttons-Info-Light-Text: var(--Text-Surfaces-Info-Color-12);
|
|
92
|
+
--Buttons-Info-Light-Border: var(--Border-Containers-Info-Color-11);
|
|
93
|
+
--Buttons-Info-Light-Hover: #FFFFFF;
|
|
94
|
+
--Buttons-Info-Light-Active: #FFFFFF;
|
|
95
|
+
--Buttons-Success-Button: var(--Success-Color-9);
|
|
96
|
+
--Buttons-Success-Text: var(--Text-Surfaces-Success-Color-9);
|
|
97
|
+
--Buttons-Success-Border: var(--Border-Containers-Success-Color-11);
|
|
98
|
+
--Buttons-Success-Hover: #dff7e4;
|
|
99
|
+
--Buttons-Success-Active: #dff7e4;
|
|
100
|
+
--Buttons-Success-Light-Button: var(--Success-Color-12);
|
|
101
|
+
--Buttons-Success-Light-Text: var(--Text-Surfaces-Success-Color-12);
|
|
102
|
+
--Buttons-Success-Light-Border: var(--Border-Containers-Success-Color-11);
|
|
103
|
+
--Buttons-Success-Light-Hover: #FFFFFF;
|
|
104
|
+
--Buttons-Success-Light-Active: #FFFFFF;
|
|
105
|
+
--Buttons-Warning-Button: var(--Warning-Color-9);
|
|
106
|
+
--Buttons-Warning-Text: var(--Text-Surfaces-Warning-Color-9);
|
|
107
|
+
--Buttons-Warning-Border: var(--Border-Containers-Warning-Color-11);
|
|
108
|
+
--Buttons-Warning-Hover: #ffedd3;
|
|
109
|
+
--Buttons-Warning-Active: #ffedd3;
|
|
110
|
+
--Buttons-Warning-Light-Button: var(--Warning-Color-12);
|
|
111
|
+
--Buttons-Warning-Light-Text: var(--Text-Surfaces-Warning-Color-12);
|
|
112
|
+
--Buttons-Warning-Light-Border: var(--Border-Containers-Warning-Color-11);
|
|
113
|
+
--Buttons-Warning-Light-Hover: #FFFFFF;
|
|
114
|
+
--Buttons-Warning-Light-Active: #FFFFFF;
|
|
115
|
+
--Buttons-Error-Button: var(--Error-Color-9);
|
|
116
|
+
--Buttons-Error-Text: var(--Text-Surfaces-Error-Color-9);
|
|
117
|
+
--Buttons-Error-Border: var(--Border-Containers-Error-Color-11);
|
|
118
|
+
--Buttons-Error-Hover: #ffe8e3;
|
|
119
|
+
--Buttons-Error-Active: #ffe8e3;
|
|
120
|
+
--Buttons-Error-Light-Button: var(--Error-Color-12);
|
|
121
|
+
--Buttons-Error-Light-Text: var(--Text-Surfaces-Error-Color-12);
|
|
122
|
+
--Buttons-Error-Light-Border: var(--Border-Containers-Error-Color-11);
|
|
123
|
+
--Buttons-Error-Light-Hover: #FFFFFF;
|
|
124
|
+
--Buttons-Error-Light-Active: #FFFFFF;
|
|
125
|
+
--Buttons-BlackWhite-Light-Button: var(--White);
|
|
126
|
+
--Buttons-BlackWhite-Light-Text: var(--Text-Surfaces-BW-Button-Color-1);
|
|
127
|
+
--Buttons-BlackWhite-Light-Hover: #FFFFFF;
|
|
128
|
+
--Buttons-BlackWhite-Light-Active: #FFFFFF;
|
|
129
|
+
--Buttons-BlackWhite-Medium-Button: var(--Neutral-Color-1);
|
|
130
|
+
--Buttons-BlackWhite-Medium-Text: var(--Text-Surfaces-BW-Button-Color-12);
|
|
131
|
+
--Buttons-BlackWhite-Medium-Hover: #000000;
|
|
132
|
+
--Buttons-BlackWhite-Medium-Active: #000000;
|
|
133
|
+
--Buttons-Default-Button: var(--Default-Button-Default-Medium-Button);
|
|
134
|
+
--Buttons-Default-Text: var(--Default-Button-Default-Medium-Text);
|
|
135
|
+
--Buttons-Default-Border: var(--Default-Button-Border-Surfaces-Default-Color-11);
|
|
136
|
+
--Buttons-Default-Hover: #f5dddd;
|
|
137
|
+
--Buttons-Default-Active: #f5dddd;
|
|
138
|
+
--Icons-Default: var(--Icon-Surfaces-Neutral-Color-11);
|
|
139
|
+
--Icons-Default-Variant: var(--Icon-Variant-Surfaces-Neutral-Color-11);
|
|
140
|
+
--Icons-Primary: var(--Icon-Surfaces-Primary-Color-11);
|
|
141
|
+
--Icons-Primary-Variant: var(--Icon-Variant-Surfaces-Primary-Color-11);
|
|
142
|
+
--Icons-Secondary: var(--Icon-Surfaces-Secondary-Color-11);
|
|
143
|
+
--Icons-Secondary-Variant: var(--Icon-Variant-Surfaces-Secondary-Color-11);
|
|
144
|
+
--Icons-Tertiary: var(--Icon-Surfaces-Tertiary-Color-11);
|
|
145
|
+
--Icons-Tertiary-Variant: var(--Icon-Variant-Surfaces-Tertiary-Color-11);
|
|
146
|
+
--Icons-Neutral: var(--Icon-Surfaces-Neutral-Color-11);
|
|
147
|
+
--Icons-Neutral-Variant: var(--Icon-Variant-Surfaces-Neutral-Color-11);
|
|
148
|
+
--Icons-Info: var(--Icon-Surfaces-Info-Color-11);
|
|
149
|
+
--Icons-Info-Variant: var(--Icon-Variant-Surfaces-Info-Color-11);
|
|
150
|
+
--Icons-Success: var(--Icon-Surfaces-Success-Color-11);
|
|
151
|
+
--Icons-Success-Variant: var(--Icon-Variant-Surfaces-Success-Color-11);
|
|
152
|
+
--Icons-Warning: var(--Icon-Surfaces-Warning-Color-11);
|
|
153
|
+
--Icons-Warning-Variant: var(--Icon-Variant-Surfaces-Warning-Color-11);
|
|
154
|
+
--Icons-Error: var(--Icon-Surfaces-Error-Color-11);
|
|
155
|
+
--Icons-Error-Variant: var(--Icon-Variant-Surfaces-Error-Color-11);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
:root {
|
|
159
|
+
/* ========================================
|
|
160
|
+
* Chart Colors
|
|
161
|
+
* Direct hex values for data visualization
|
|
162
|
+
* ======================================== */
|
|
163
|
+
|
|
164
|
+
--Chart-BG: #ffffff;
|
|
165
|
+
--Chart-Lines: #e2e2e2;
|
|
166
|
+
|
|
167
|
+
/* Solid Chart Colors */
|
|
168
|
+
--Chart-1: #eef2ea;
|
|
169
|
+
--Chart-2: #fceded;
|
|
170
|
+
--Chart-3: #f7efe9;
|
|
171
|
+
--Chart-4: #eeefff;
|
|
172
|
+
--Chart-5: #dff7e4;
|
|
173
|
+
--Chart-6: #ffedd3;
|
|
174
|
+
--Chart-7: #ffe8e3;
|
|
175
|
+
--Chart-8: #f1f1f1;
|
|
176
|
+
--Chart-9: #dfe4d9;
|
|
177
|
+
--Chart-10: #f5dddd;
|
|
178
|
+
|
|
179
|
+
/* Opaque Chart Colors (50% opacity) */
|
|
180
|
+
--Chart-1-Opaque: rgba(238, 242, 234, 0.5);
|
|
181
|
+
--Chart-2-Opaque: rgba(252, 237, 237, 0.5);
|
|
182
|
+
--Chart-3-Opaque: rgba(247, 239, 233, 0.5);
|
|
183
|
+
--Chart-4-Opaque: rgba(238, 239, 255, 0.5);
|
|
184
|
+
--Chart-5-Opaque: rgba(223, 247, 228, 0.5);
|
|
185
|
+
--Chart-6-Opaque: rgba(255, 237, 211, 0.5);
|
|
186
|
+
--Chart-7-Opaque: rgba(255, 232, 227, 0.5);
|
|
187
|
+
--Chart-8-Opaque: rgba(241, 241, 241, 0.5);
|
|
188
|
+
--Chart-9-Opaque: rgba(223, 228, 217, 0.5);
|
|
189
|
+
--Chart-10-Opaque: rgba(245, 221, 221, 0.5);
|
|
190
|
+
|
|
191
|
+
/* ========================================
|
|
192
|
+
* Effect Levels (Box Shadows)
|
|
193
|
+
* ======================================== */
|
|
194
|
+
|
|
195
|
+
/* Per-elevation dropshadow tokens — defaults pre-computed for a white
|
|
196
|
+
surface using the studio's shared Comeau-style math (drop L,
|
|
197
|
+
ascending alpha). Brand CSS overrides --Dropshadow-Color-1..5 per
|
|
198
|
+
surface scope at runtime; the Effect-Level recipes below pick up the
|
|
199
|
+
overridden values automatically via var(). */
|
|
200
|
+
--Dropshadow-Color-1: #8c8c8c1a; /* L=55, S=0, alpha 0.10 */
|
|
201
|
+
--Dropshadow-Color-2: #73737329; /* L=45, S=0, alpha 0.16 */
|
|
202
|
+
--Dropshadow-Color-3: #59595938; /* L=35, S=0, alpha 0.22 */
|
|
203
|
+
--Dropshadow-Color-4: #4040404d; /* L=25, S=0, alpha 0.30 */
|
|
204
|
+
--Dropshadow-Color-5: #2e2e2e66; /* L=18, S=0, alpha 0.40 */
|
|
205
|
+
|
|
206
|
+
/* Layered shadow recipes — each level stacks its own atmospheric shadow
|
|
207
|
+
on top of the previous level's contact shadow. Higher elevations read
|
|
208
|
+
as more dramatic, not weaker. Shared with the studio's per-design-
|
|
209
|
+
system CSS export so generated systems and the lib's defaults agree. */
|
|
210
|
+
--Effect-Level-0: none;
|
|
211
|
+
--Effect-Level-1: 0 1px 2px var(--Dropshadow-Color-1);
|
|
212
|
+
--Effect-Level-2: 0 2px 4px var(--Dropshadow-Color-2), 0 1px 2px var(--Dropshadow-Color-1);
|
|
213
|
+
--Effect-Level-3: 0 4px 8px var(--Dropshadow-Color-3), 0 2px 4px var(--Dropshadow-Color-2);
|
|
214
|
+
--Effect-Level-4: 0 8px 16px var(--Dropshadow-Color-4), 0 4px 8px var(--Dropshadow-Color-3);
|
|
215
|
+
--Effect-Level-5: 0 16px 32px var(--Dropshadow-Color-5), 0 8px 16px var(--Dropshadow-Color-4);
|
|
216
|
+
|
|
217
|
+
--Set-Font-Family-Header: "Prata", serif;
|
|
218
|
+
--Set-Font-Family-Header-Weight: 200;
|
|
219
|
+
--Set-Font-Family-Body: "Roboto", sans-serif;
|
|
220
|
+
--Set-Font-Family-Body-Weight: 400;
|
|
221
|
+
--Set-Font-Family-Body-Semibold-Weight: 600;
|
|
222
|
+
--Set-Font-Family-Body-Bold-Weight: 700;
|
|
223
|
+
--Set-Font-Family-Decorative: "Permanent Marker", sans-serif;
|
|
224
|
+
--Set-Font-Family-Decorative-Weight: 200;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
:root {
|
|
229
|
+
--Button-Radius: 8px;
|
|
230
|
+
/* Structural default so outline borders render even when no brand CSS is
|
|
231
|
+
loaded (the studio chrome). A brand's generated base.css overrides this. */
|
|
232
|
+
--Button-Border-Width: 1px;
|
|
233
|
+
--Card-Radius: 11px;
|
|
234
|
+
--Card-Padding: 16px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
/* ========================================
|
|
239
|
+
* Surface Background Mapping
|
|
240
|
+
* Maps --Background to surface types
|
|
241
|
+
* ======================================== */
|
|
242
|
+
|
|
243
|
+
[data-surface="Container"] {
|
|
244
|
+
--Background: var(--Container);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
[data-surface="Container-Low"] {
|
|
248
|
+
--Background: var(--Container-Low);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
[data-surface="Container-Lowest"] {
|
|
252
|
+
--Background: var(--Container-Lowest);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
[data-surface="Container-High"] {
|
|
256
|
+
--Background: var(--Container-High);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
[data-surface="Container-Highest"] {
|
|
260
|
+
--Background: var(--Container-Highest);
|
|
261
|
+
}
|