@wordpress/theme 0.3.1-next.6deb34194.0 → 0.4.1-next.738bb1424.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 +9 -0
- package/README.md +114 -40
- package/build/color-ramps/{index.js → index.cjs} +8 -8
- package/build/color-ramps/lib/{color-utils.js → color-utils.cjs} +2 -2
- package/build/color-ramps/lib/{constants.js → constants.cjs} +2 -2
- package/build/color-ramps/lib/{default-ramps.js → default-ramps.cjs} +1 -1
- package/build/color-ramps/lib/{find-color-with-constraints.js → find-color-with-constraints.cjs} +6 -6
- package/build/color-ramps/lib/{index.js → index.cjs} +6 -6
- package/build/color-ramps/lib/{ramp-configs.js → ramp-configs.cjs} +1 -1
- package/build/color-ramps/lib/{register-color-spaces.js → register-color-spaces.cjs} +1 -1
- package/build/color-ramps/lib/{taper-chroma.js → taper-chroma.cjs} +2 -2
- package/build/color-ramps/lib/{types.js → types.cjs} +1 -1
- package/build/color-ramps/lib/{utils.js → utils.cjs} +4 -4
- package/build/{context.js → context.cjs} +1 -1
- package/build/{index.js → index.cjs} +2 -2
- package/build/index.cjs.map +7 -0
- package/build/{lock-unlock.js → lock-unlock.cjs} +1 -1
- package/build/prebuilt/js/{design-tokens.js → design-tokens.cjs} +18 -2
- package/build/prebuilt/js/design-tokens.cjs.map +7 -0
- package/build/prebuilt/ts/{color-tokens.js → color-tokens.cjs} +36 -14
- package/build/prebuilt/ts/color-tokens.cjs.map +7 -0
- package/build/{token-id.js → prebuilt/ts/token-types.cjs} +4 -16
- package/build/prebuilt/ts/token-types.cjs.map +7 -0
- package/build/{private-apis.js → private-apis.cjs} +4 -4
- package/build/{theme-provider.js → theme-provider.cjs} +3 -3
- package/build/{types.js → types.cjs} +1 -1
- package/build/{use-theme-provider-styles.js → use-theme-provider-styles.cjs} +6 -6
- package/build-module/color-ramps/index.js +7 -7
- package/build-module/color-ramps/lib/color-utils.js +1 -1
- package/build-module/color-ramps/lib/constants.js +1 -1
- package/build-module/color-ramps/lib/find-color-with-constraints.js +5 -5
- package/build-module/color-ramps/lib/index.js +5 -5
- package/build-module/color-ramps/lib/taper-chroma.js +1 -1
- package/build-module/color-ramps/lib/utils.js +3 -3
- package/build-module/index.js +1 -1
- package/build-module/index.js.map +2 -2
- package/build-module/prebuilt/js/design-tokens.js +17 -1
- package/build-module/prebuilt/js/design-tokens.js.map +2 -2
- package/build-module/prebuilt/ts/color-tokens.js +35 -13
- package/build-module/prebuilt/ts/color-tokens.js.map +2 -2
- package/build-module/prebuilt/ts/token-types.js +1 -0
- package/build-module/prebuilt/ts/token-types.js.map +7 -0
- package/build-module/private-apis.js +3 -3
- package/build-module/theme-provider.js +2 -2
- package/build-module/use-theme-provider-styles.js +4 -4
- package/build-types/index.d.ts +2 -0
- package/build-types/index.d.ts.map +1 -1
- package/build-types/prebuilt/ts/color-tokens.d.ts.map +1 -1
- package/build-types/prebuilt/ts/token-types.d.ts +49 -0
- package/build-types/prebuilt/ts/token-types.d.ts.map +1 -0
- package/package.json +15 -7
- package/src/index.ts +2 -1
- package/src/prebuilt/css/design-tokens.css +18 -2
- package/src/prebuilt/js/design-tokens.js +17 -1
- package/src/prebuilt/ts/color-tokens.ts +31 -9
- package/src/prebuilt/ts/token-types.ts +125 -0
- package/bin/generate-default-ramps/index.ts +0 -49
- package/bin/generate-primitive-tokens/index.ts +0 -120
- package/bin/terrazzo-plugin-ds-tokens-docs/index.ts +0 -84
- package/bin/terrazzo-plugin-figma-ds-token-manager/index.ts +0 -217
- package/bin/terrazzo-plugin-figma-ds-token-manager/lib.ts +0 -1
- package/bin/terrazzo-plugin-inline-alias-values/index.ts +0 -113
- package/bin/terrazzo-plugin-known-wpds-css-variables/index.ts +0 -52
- package/build/index.js.map +0 -7
- package/build/prebuilt/js/design-tokens.js.map +0 -7
- package/build/prebuilt/json/figma.json +0 -787
- package/build/prebuilt/ts/color-tokens.js.map +0 -7
- package/build/token-id.js.map +0 -7
- package/build-module/prebuilt/json/figma.json +0 -787
- package/build-module/token-id.js +0 -6
- package/build-module/token-id.js.map +0 -7
- package/build-types/token-id.d.ts +0 -9
- package/build-types/token-id.d.ts.map +0 -1
- package/docs/ds-tokens.md +0 -160
- package/src/prebuilt/json/figma.json +0 -787
- package/src/test/token-id.test.ts +0 -12
- package/src/token-id.ts +0 -9
- package/terrazzo.config.ts +0 -126
- package/tokens/border.json +0 -56
- package/tokens/color.json +0 -1029
- package/tokens/dimension.json +0 -171
- package/tokens/elevation.json +0 -201
- package/tokens/typography.json +0 -93
- package/tsconfig.bin.json +0 -13
- package/tsconfig.bin.tsbuildinfo +0 -1
- package/tsconfig.json +0 -11
- package/tsconfig.src.json +0 -9
- package/tsconfig.src.tsbuildinfo +0 -1
- /package/build/color-ramps/{index.js.map → index.cjs.map} +0 -0
- /package/build/color-ramps/lib/{color-utils.js.map → color-utils.cjs.map} +0 -0
- /package/build/color-ramps/lib/{constants.js.map → constants.cjs.map} +0 -0
- /package/build/color-ramps/lib/{default-ramps.js.map → default-ramps.cjs.map} +0 -0
- /package/build/color-ramps/lib/{find-color-with-constraints.js.map → find-color-with-constraints.cjs.map} +0 -0
- /package/build/color-ramps/lib/{index.js.map → index.cjs.map} +0 -0
- /package/build/color-ramps/lib/{ramp-configs.js.map → ramp-configs.cjs.map} +0 -0
- /package/build/color-ramps/lib/{register-color-spaces.js.map → register-color-spaces.cjs.map} +0 -0
- /package/build/color-ramps/lib/{taper-chroma.js.map → taper-chroma.cjs.map} +0 -0
- /package/build/color-ramps/lib/{types.js.map → types.cjs.map} +0 -0
- /package/build/color-ramps/lib/{utils.js.map → utils.cjs.map} +0 -0
- /package/build/{context.js.map → context.cjs.map} +0 -0
- /package/build/{lock-unlock.js.map → lock-unlock.cjs.map} +0 -0
- /package/build/{private-apis.js.map → private-apis.cjs.map} +0 -0
- /package/build/{theme-provider.js.map → theme-provider.cjs.map} +0 -0
- /package/build/{types.js.map → types.cjs.map} +0 -0
- /package/build/{use-theme-provider-styles.js.map → use-theme-provider-styles.cjs.map} +0 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->
|
|
2
|
+
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
## 0.4.0-next.0 (2025-12-22)
|
|
6
|
+
|
|
7
|
+
### New Features
|
|
8
|
+
|
|
9
|
+
- Expose `ThemeProvider` TypeScript type from package. While the component is still experimental, this makes it easier to use TypeScript typings in your code, which would otherwise be inaccessible. ([#74011](https://github.com/WordPress/gutenberg/pull/74011))
|
package/README.md
CHANGED
|
@@ -6,46 +6,110 @@ This package is still experimental. “Experimental” means this is an early im
|
|
|
6
6
|
|
|
7
7
|
A theming package that's part of the WordPress Design System. It has two parts:
|
|
8
8
|
|
|
9
|
-
- **Design Tokens**: A comprehensive system of design tokens for colors, spacing, typography, and more
|
|
10
|
-
- **Theme System**: A flexible theming provider for consistent theming across applications
|
|
9
|
+
- **Design Tokens**: A comprehensive system of design tokens for colors, spacing, typography, and more.
|
|
10
|
+
- **Theme System**: A flexible theming provider for consistent theming across applications.
|
|
11
11
|
|
|
12
12
|
## Design Tokens
|
|
13
13
|
|
|
14
14
|
In the **[Design Tokens Reference](docs/ds-tokens.md)** document there is a complete reference of all available design tokens including colors, spacing, typography, and more.
|
|
15
15
|
|
|
16
|
-
###
|
|
16
|
+
### Architecture
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Internally, the design system uses a tiered token architecture:
|
|
19
|
+
|
|
20
|
+
- **Primitive tokens**: Raw values like hex colors or pixel dimensions which are what the browsers eventually interpret. These live in the `/tokens` directory as JSON source files and are an internal implementation detail.
|
|
21
|
+
- **Semantic tokens**: Purpose-driven tokens with meaningful names that reference primitives and describe their intended use. These are what get exported as CSS custom properties.
|
|
22
|
+
|
|
23
|
+
This separation allows the design system to maintain consistency while providing flexibility, since primitive values can be updated without changing the semantic token names that developers use in their code.
|
|
24
|
+
|
|
25
|
+
### Design Tokens
|
|
26
|
+
|
|
27
|
+
Design tokens are the visual design atoms of a design system. They are named entities that store visual design attributes like colors, spacing, typography, and shadows. They serve as a single source of truth that bridges design and development, ensuring consistency across platforms and making it easy to maintain and evolve the visual language of an application.
|
|
28
|
+
|
|
29
|
+
Rather than hardcoding values like `#3858e9` or `16px` throughout your code, tokens provide semantic names like `--wpds-color-bg-interactive-brand-strong` or `--wpds-dimension-padding-surface-md` that describe the purpose and context of the value. This makes code more maintainable and allows the design system to evolve. When a token's value changes, all components using that token automatically reflect the update.
|
|
30
|
+
|
|
31
|
+
#### Structure
|
|
32
|
+
|
|
33
|
+
The design system follows the [Design Tokens Community Group (DTCG)](https://design-tokens.github.io/community-group/format/) specification and organizes tokens into distinct types based on what kind of visual property they represent. Token definitions are stored as JSON files in the `/tokens` directory:
|
|
34
|
+
|
|
35
|
+
| File | Description |
|
|
36
|
+
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
|
37
|
+
| `color.json` | Color palettes including primitive color ramps and semantic color tokens for backgrounds, foregrounds, strokes, and focus states |
|
|
38
|
+
| `dimension.json` | Spacing scale and semantic spacing tokens for padding, margins, and sizing |
|
|
39
|
+
| `typography.json` | Font family stacks, font sizes, and line heights |
|
|
40
|
+
| `border.json` | Border radius and width values |
|
|
41
|
+
| `elevation.json` | Shadow definitions for creating depth and layering |
|
|
42
|
+
|
|
43
|
+
Each JSON file contains both primitive and semantic token definitions in a hierarchical structure. These files are the source of truth for the design system and are processed during the build step to generate CSS custom properties and other output formats in `/src/prebuilt`.
|
|
44
|
+
|
|
45
|
+
#### Token Naming
|
|
46
|
+
|
|
47
|
+
Semantic tokens follow a consistent naming pattern:
|
|
19
48
|
|
|
20
49
|
```
|
|
21
|
-
--wpds-<
|
|
50
|
+
--wpds-<type>-<property>-<target>[-<modifier>]
|
|
22
51
|
```
|
|
23
52
|
|
|
24
|
-
**
|
|
53
|
+
**Type** indicates what kind of value it represents, usually mapping to a DTCG token type.
|
|
54
|
+
|
|
55
|
+
| Value | Description |
|
|
56
|
+
| ----------- | ------------------------------------------------------------------------------ |
|
|
57
|
+
| `color` | Color values for backgrounds, foregrounds, and strokes |
|
|
58
|
+
| `dimension` | Spacing, sizing, and other measurable lengths (e.g., padding, margins, widths) |
|
|
59
|
+
| `border` | Border properties like radius and width |
|
|
60
|
+
| `elevation` | Shadow definitions for layering and depth |
|
|
61
|
+
| `font` | Typography properties like family, size, and line-height |
|
|
62
|
+
|
|
63
|
+
**Property** is the specific design property being defined.
|
|
25
64
|
|
|
26
|
-
| Value
|
|
27
|
-
|
|
|
28
|
-
| `bg
|
|
29
|
-
| `
|
|
30
|
-
| `
|
|
31
|
-
| `
|
|
32
|
-
| `
|
|
33
|
-
| `
|
|
34
|
-
| `
|
|
35
|
-
| `
|
|
36
|
-
| `
|
|
65
|
+
| Value | Description |
|
|
66
|
+
| -------- | ---------------------------------- |
|
|
67
|
+
| `bg` | Background color |
|
|
68
|
+
| `fg` | Foreground color (text and icons) |
|
|
69
|
+
| `stroke` | Border and outline color |
|
|
70
|
+
| `padding`| Internal spacing within an element |
|
|
71
|
+
| `gap` | Spacing between elements |
|
|
72
|
+
| `radius` | Border radius for rounded corners |
|
|
73
|
+
| `width` | Border width |
|
|
74
|
+
| `size` | Font size |
|
|
75
|
+
| `family` | Font family |
|
|
76
|
+
|
|
77
|
+
**Target** is the component or element type the token applies to.
|
|
78
|
+
|
|
79
|
+
| Value | Description |
|
|
80
|
+
| ------------- | --------------------------------------------------------- |
|
|
81
|
+
| `surface` | Container or layout backgrounds and borders |
|
|
82
|
+
| `interactive` | Interactive elements like buttons, inputs, and controls |
|
|
83
|
+
| `content` | Static content like text and icons |
|
|
84
|
+
| `track` | Track components like scrollbars and slider tracks |
|
|
85
|
+
| `thumb` | Thumb components like scrollbar thumbs and slider handles |
|
|
86
|
+
| `focus` | Focus indicators and rings |
|
|
87
|
+
|
|
88
|
+
**Modifier** is an optional size or intensity modifier.
|
|
89
|
+
|
|
90
|
+
| Value | Description |
|
|
91
|
+
| ----------------------------------- | -------------------- |
|
|
92
|
+
| `2xs`, `xs`, `sm`, `md`, `lg`, `xl` | Size scale modifiers |
|
|
93
|
+
|
|
94
|
+
#### Color Token Modifiers
|
|
95
|
+
|
|
96
|
+
Color tokens extend the base pattern with additional modifiers for tone, emphasis, and state:
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
--wpds-color-<property>-<target>-<tone>[-<emphasis>][-<state>]
|
|
100
|
+
```
|
|
37
101
|
|
|
38
102
|
**Tone** defines the semantic intent of the color.
|
|
39
103
|
|
|
40
|
-
| Value | Description
|
|
41
|
-
| --------- |
|
|
42
|
-
| `neutral` | Neutrally toned UI elements
|
|
43
|
-
| `brand` | Brand-accented or primary action colors
|
|
44
|
-
| `success` | Positive or completed states
|
|
45
|
-
| `info` | Informational or system-generated context
|
|
46
|
-
| `caution` | Heads-up or low-severity issues; “proceed carefully
|
|
47
|
-
| `warning` | Higher-severity or time-sensitive issues that require user attention but are not errors
|
|
48
|
-
| `error` | Blocking issues, validation failures, or destructive actions
|
|
104
|
+
| Value | Description |
|
|
105
|
+
| --------- | --------------------------------------------------------------------------------------- |
|
|
106
|
+
| `neutral` | Neutrally toned UI elements |
|
|
107
|
+
| `brand` | Brand-accented or primary action colors |
|
|
108
|
+
| `success` | Positive or completed states |
|
|
109
|
+
| `info` | Informational or system-generated context |
|
|
110
|
+
| `caution` | Heads-up or low-severity issues; “proceed carefully” |
|
|
111
|
+
| `warning` | Higher-severity or time-sensitive issues that require user attention but are not errors |
|
|
112
|
+
| `error` | Blocking issues, validation failures, or destructive actions |
|
|
49
113
|
|
|
50
114
|
> [!NOTE]
|
|
51
115
|
> `caution` and `warning` represent two escalation levels of non-error severity.
|
|
@@ -53,17 +117,17 @@ The design system defines color tokens using the following naming scheme:
|
|
|
53
117
|
|
|
54
118
|
**Emphasis** adjusts color strength relative to the base tone, if specified. The default is a normal emphasis.
|
|
55
119
|
|
|
56
|
-
| Value | Description
|
|
57
|
-
| -------------------- |
|
|
58
|
-
| `strong` | Higher contrast and/or elevated emphasis
|
|
59
|
-
| `weak` | Subtle variant for secondary or muted elements
|
|
120
|
+
| Value | Description |
|
|
121
|
+
| -------------------- | ---------------------------------------------- |
|
|
122
|
+
| `strong` | Higher contrast and/or elevated emphasis |
|
|
123
|
+
| `weak` | Subtle variant for secondary or muted elements |
|
|
60
124
|
|
|
61
125
|
**State** represents the interactive state of the element, if specified. The default is an idle state.
|
|
62
126
|
|
|
63
|
-
| Value | Description
|
|
64
|
-
| ---------- |
|
|
65
|
-
| `active` | Hovered, pressed, or selected state
|
|
66
|
-
| `disabled` | Unavailable or inoperable state
|
|
127
|
+
| Value | Description |
|
|
128
|
+
| ---------- | ----------------------------------- |
|
|
129
|
+
| `active` | Hovered, pressed, or selected state |
|
|
130
|
+
| `disabled` | Unavailable or inoperable state |
|
|
67
131
|
|
|
68
132
|
## Theme Provider
|
|
69
133
|
|
|
@@ -74,7 +138,7 @@ import { ThemeProvider } from '@wordpress/theme';
|
|
|
74
138
|
|
|
75
139
|
function App() {
|
|
76
140
|
return (
|
|
77
|
-
<ThemeProvider color={ { primary: 'blue' } }>
|
|
141
|
+
<ThemeProvider color={ { primary: 'blue' } } density="compact">
|
|
78
142
|
{ /* Your app content */ }
|
|
79
143
|
</ThemeProvider>
|
|
80
144
|
);
|
|
@@ -83,11 +147,21 @@ function App() {
|
|
|
83
147
|
|
|
84
148
|
The `color` prop accepts an object with the following optional properties:
|
|
85
149
|
|
|
86
|
-
- `primary`: The primary/accent seed color (default: `'#3858e9'`)
|
|
87
|
-
- `bg`: The background seed color (default: `'#f8f8f8'`)
|
|
150
|
+
- `primary`: The primary/accent seed color (default: `'#3858e9'`).
|
|
151
|
+
- `bg`: The background seed color (default: `'#f8f8f8'`).
|
|
88
152
|
|
|
89
153
|
Both properties accept any valid CSS color value. The theme system automatically generates appropriate color ramps and determines light/dark mode based on these seed colors.
|
|
90
154
|
|
|
155
|
+
The `density` prop controls the spacing scale throughout the UI:
|
|
156
|
+
|
|
157
|
+
- `'default'`: Standard spacing for general use.
|
|
158
|
+
- `'compact'`: Reduced spacing for information-dense interfaces like data tables or dashboards.
|
|
159
|
+
- `'comfortable'`: Increased spacing for focused experiences like modals, dialogs, or full-screen settings panels.
|
|
160
|
+
|
|
161
|
+
The density setting adjusts dimension tokens like gaps and paddings to maintain consistent spacing throughout the UI. Changing the density automatically updates spacing of all components that use these tokens.
|
|
162
|
+
|
|
163
|
+
When the `color` or `density` prop is omitted, the theme inherits the value from the closest parent `ThemeProvider`, or uses the default value if none is inherited.
|
|
164
|
+
|
|
91
165
|
### Nesting Providers
|
|
92
166
|
|
|
93
167
|
The provider can be used recursively to override or modify the theme for a specific subtree.
|
|
@@ -95,10 +169,10 @@ The provider can be used recursively to override or modify the theme for a speci
|
|
|
95
169
|
```tsx
|
|
96
170
|
<ThemeProvider color={ { bg: 'white' } }>
|
|
97
171
|
{ /* light-themed UI components */ }
|
|
98
|
-
<ThemeProvider color={ { bg: '#1e1e1e' } }>
|
|
99
|
-
{ /* dark-themed UI components */ }
|
|
172
|
+
<ThemeProvider color={ { bg: '#1e1e1e' } } density="compact">
|
|
173
|
+
{ /* dark-themed UI components with compact spacing */ }
|
|
100
174
|
<ThemeProvider color={ { primary: 'red' } }>
|
|
101
|
-
{ /* dark-themed with red accent */ }
|
|
175
|
+
{ /* dark-themed with red accent, inheriting compact density */ }
|
|
102
176
|
</ThemeProvider>
|
|
103
177
|
</ThemeProvider>
|
|
104
178
|
{ /* light-themed UI components */ }
|
|
@@ -26,13 +26,13 @@ __export(color_ramps_exports, {
|
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(color_ramps_exports);
|
|
28
28
|
var import_fn = require("colorjs.io/fn");
|
|
29
|
-
var import_register_color_spaces = require("./lib/register-color-spaces");
|
|
30
|
-
var import_lib = require("./lib/index");
|
|
31
|
-
var import_utils = require("./lib/utils");
|
|
32
|
-
var import_ramp_configs = require("./lib/ramp-configs");
|
|
33
|
-
var import_color_utils = require("./lib/color-utils");
|
|
34
|
-
var import_constants = require("./lib/constants");
|
|
35
|
-
var import_constants2 = require("./lib/constants");
|
|
29
|
+
var import_register_color_spaces = require("./lib/register-color-spaces.cjs");
|
|
30
|
+
var import_lib = require("./lib/index.cjs");
|
|
31
|
+
var import_utils = require("./lib/utils.cjs");
|
|
32
|
+
var import_ramp_configs = require("./lib/ramp-configs.cjs");
|
|
33
|
+
var import_color_utils = require("./lib/color-utils.cjs");
|
|
34
|
+
var import_constants = require("./lib/constants.cjs");
|
|
35
|
+
var import_constants2 = require("./lib/constants.cjs");
|
|
36
36
|
function buildBgRamp(seed) {
|
|
37
37
|
if (typeof seed !== "string" || seed.trim() === "") {
|
|
38
38
|
throw new Error("Seed color must be a non-empty string");
|
|
@@ -115,4 +115,4 @@ function checkAccessibleCombinations({
|
|
|
115
115
|
buildBgRamp,
|
|
116
116
|
checkAccessibleCombinations
|
|
117
117
|
});
|
|
118
|
-
//# sourceMappingURL=index.
|
|
118
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -25,7 +25,7 @@ __export(color_utils_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(color_utils_exports);
|
|
27
27
|
var import_fn = require("colorjs.io/fn");
|
|
28
|
-
var import_register_color_spaces = require("./register-color-spaces");
|
|
28
|
+
var import_register_color_spaces = require("./register-color-spaces.cjs");
|
|
29
29
|
function getColorString(color) {
|
|
30
30
|
return (0, import_fn.serialize)((0, import_fn.to)(color, import_fn.sRGB), { format: "hex", inGamut: true });
|
|
31
31
|
}
|
|
@@ -41,4 +41,4 @@ function clampToGamut(c) {
|
|
|
41
41
|
getColorString,
|
|
42
42
|
getContrast
|
|
43
43
|
});
|
|
44
|
-
//# sourceMappingURL=color-utils.
|
|
44
|
+
//# sourceMappingURL=color-utils.cjs.map
|
|
@@ -31,7 +31,7 @@ __export(constants_exports, {
|
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(constants_exports);
|
|
33
33
|
var import_fn = require("colorjs.io/fn");
|
|
34
|
-
var import_register_color_spaces = require("./register-color-spaces");
|
|
34
|
+
var import_register_color_spaces = require("./register-color-spaces.cjs");
|
|
35
35
|
var WHITE = (0, import_fn.to)("white", import_fn.OKLCH);
|
|
36
36
|
var BLACK = (0, import_fn.to)("black", import_fn.OKLCH);
|
|
37
37
|
var UNIVERSAL_CONTRAST_TOPUP = 0.02;
|
|
@@ -95,4 +95,4 @@ var DEFAULT_SEED_COLORS = {
|
|
|
95
95
|
WHITE,
|
|
96
96
|
WHITE_TEXT_CONTRAST_MARGIN
|
|
97
97
|
});
|
|
98
|
-
//# sourceMappingURL=constants.
|
|
98
|
+
//# sourceMappingURL=constants.cjs.map
|
package/build/color-ramps/lib/{find-color-with-constraints.js → find-color-with-constraints.cjs}
RENAMED
|
@@ -23,11 +23,11 @@ __export(find_color_with_constraints_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(find_color_with_constraints_exports);
|
|
25
25
|
var import_fn = require("colorjs.io/fn");
|
|
26
|
-
var import_register_color_spaces = require("./register-color-spaces");
|
|
27
|
-
var import_utils = require("./utils");
|
|
28
|
-
var import_constants = require("./constants");
|
|
29
|
-
var import_color_utils = require("./color-utils");
|
|
30
|
-
var import_taper_chroma = require("./taper-chroma");
|
|
26
|
+
var import_register_color_spaces = require("./register-color-spaces.cjs");
|
|
27
|
+
var import_utils = require("./utils.cjs");
|
|
28
|
+
var import_constants = require("./constants.cjs");
|
|
29
|
+
var import_color_utils = require("./color-utils.cjs");
|
|
30
|
+
var import_taper_chroma = require("./taper-chroma.cjs");
|
|
31
31
|
function cdiff(c1, c2) {
|
|
32
32
|
return Math.log(c1 / c2);
|
|
33
33
|
}
|
|
@@ -107,4 +107,4 @@ function findColorMeetingRequirements(reference, seed, target, direction, {
|
|
|
107
107
|
0 && (module.exports = {
|
|
108
108
|
findColorMeetingRequirements
|
|
109
109
|
});
|
|
110
|
-
//# sourceMappingURL=find-color-with-constraints.
|
|
110
|
+
//# sourceMappingURL=find-color-with-constraints.cjs.map
|
|
@@ -23,11 +23,11 @@ __export(lib_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(lib_exports);
|
|
25
25
|
var import_fn = require("colorjs.io/fn");
|
|
26
|
-
var import_register_color_spaces = require("./register-color-spaces");
|
|
27
|
-
var import_color_utils = require("./color-utils");
|
|
28
|
-
var import_find_color_with_constraints = require("./find-color-with-constraints");
|
|
29
|
-
var import_utils = require("./utils");
|
|
30
|
-
var import_constants = require("./constants");
|
|
26
|
+
var import_register_color_spaces = require("./register-color-spaces.cjs");
|
|
27
|
+
var import_color_utils = require("./color-utils.cjs");
|
|
28
|
+
var import_find_color_with_constraints = require("./find-color-with-constraints.cjs");
|
|
29
|
+
var import_utils = require("./utils.cjs");
|
|
30
|
+
var import_constants = require("./constants.cjs");
|
|
31
31
|
function calculateRamp({
|
|
32
32
|
seed,
|
|
33
33
|
sortedSteps,
|
|
@@ -226,4 +226,4 @@ function buildRamp(seedArg, config, {
|
|
|
226
226
|
0 && (module.exports = {
|
|
227
227
|
buildRamp
|
|
228
228
|
});
|
|
229
|
-
//# sourceMappingURL=index.
|
|
229
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -4,4 +4,4 @@ import_fn.ColorSpace.register(import_fn.sRGB);
|
|
|
4
4
|
import_fn.ColorSpace.register(import_fn.OKLCH);
|
|
5
5
|
import_fn.ColorSpace.register(import_fn.P3);
|
|
6
6
|
import_fn.ColorSpace.register(import_fn.HSL);
|
|
7
|
-
//# sourceMappingURL=register-color-spaces.
|
|
7
|
+
//# sourceMappingURL=register-color-spaces.cjs.map
|
|
@@ -23,7 +23,7 @@ __export(taper_chroma_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(taper_chroma_exports);
|
|
25
25
|
var import_fn = require("colorjs.io/fn");
|
|
26
|
-
var import_register_color_spaces = require("./register-color-spaces");
|
|
26
|
+
var import_register_color_spaces = require("./register-color-spaces.cjs");
|
|
27
27
|
function taperChroma(seed, lTarget, options = {}) {
|
|
28
28
|
const gamut = options.gamut ?? import_fn.sRGB;
|
|
29
29
|
const alpha = options.alpha ?? 0.65;
|
|
@@ -138,4 +138,4 @@ function maxInGamutChromaAtLH(l, h, gamutSpace, cap) {
|
|
|
138
138
|
0 && (module.exports = {
|
|
139
139
|
taperChroma
|
|
140
140
|
});
|
|
141
|
-
//# sourceMappingURL=taper-chroma.
|
|
141
|
+
//# sourceMappingURL=taper-chroma.cjs.map
|
|
@@ -15,4 +15,4 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
15
15
|
// packages/theme/src/color-ramps/lib/types.ts
|
|
16
16
|
var types_exports = {};
|
|
17
17
|
module.exports = __toCommonJS(types_exports);
|
|
18
|
-
//# sourceMappingURL=types.
|
|
18
|
+
//# sourceMappingURL=types.cjs.map
|
|
@@ -27,9 +27,9 @@ __export(utils_exports, {
|
|
|
27
27
|
stepsForStep: () => stepsForStep
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(utils_exports);
|
|
30
|
-
var import_register_color_spaces = require("./register-color-spaces");
|
|
31
|
-
var import_constants = require("./constants");
|
|
32
|
-
var import_color_utils = require("./color-utils");
|
|
30
|
+
var import_register_color_spaces = require("./register-color-spaces.cjs");
|
|
31
|
+
var import_constants = require("./constants.cjs");
|
|
32
|
+
var import_color_utils = require("./color-utils.cjs");
|
|
33
33
|
function buildDependencyGraph(config) {
|
|
34
34
|
const dependencies = /* @__PURE__ */ new Map();
|
|
35
35
|
const dependents = /* @__PURE__ */ new Map();
|
|
@@ -163,4 +163,4 @@ function solveWithBisect(calculateC, calculateValue, initLowerL, initLowerValue,
|
|
|
163
163
|
sortByDependency,
|
|
164
164
|
stepsForStep
|
|
165
165
|
});
|
|
166
|
-
//# sourceMappingURL=utils.
|
|
166
|
+
//# sourceMappingURL=utils.cjs.map
|
|
@@ -22,9 +22,9 @@ __export(index_exports, {
|
|
|
22
22
|
privateApis: () => import_private_apis.privateApis
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(index_exports);
|
|
25
|
-
var import_private_apis = require("./private-apis");
|
|
25
|
+
var import_private_apis = require("./private-apis.cjs");
|
|
26
26
|
// Annotate the CommonJS export names for ESM import in node:
|
|
27
27
|
0 && (module.exports = {
|
|
28
28
|
privateApis
|
|
29
29
|
});
|
|
30
|
-
//# sourceMappingURL=index.
|
|
30
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["export { privateApis } from './private-apis';\nexport type * from './prebuilt/ts/token-types';\nexport { type ThemeProvider } from './theme-provider';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA4B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -64,6 +64,15 @@ var design_tokens_default = [
|
|
|
64
64
|
"--wpds-color-bg-interactive-brand-weak",
|
|
65
65
|
"--wpds-color-bg-interactive-brand-weak-active",
|
|
66
66
|
"--wpds-color-bg-interactive-brand-weak-disabled",
|
|
67
|
+
"--wpds-color-bg-interactive-error",
|
|
68
|
+
"--wpds-color-bg-interactive-error-active",
|
|
69
|
+
"--wpds-color-bg-interactive-error-disabled",
|
|
70
|
+
"--wpds-color-bg-interactive-error-strong",
|
|
71
|
+
"--wpds-color-bg-interactive-error-strong-active",
|
|
72
|
+
"--wpds-color-bg-interactive-error-strong-disabled",
|
|
73
|
+
"--wpds-color-bg-interactive-error-weak",
|
|
74
|
+
"--wpds-color-bg-interactive-error-weak-active",
|
|
75
|
+
"--wpds-color-bg-interactive-error-weak-disabled",
|
|
67
76
|
"--wpds-color-bg-track-neutral-weak",
|
|
68
77
|
"--wpds-color-bg-track-neutral",
|
|
69
78
|
"--wpds-color-bg-thumb-neutral-weak",
|
|
@@ -97,6 +106,12 @@ var design_tokens_default = [
|
|
|
97
106
|
"--wpds-color-fg-interactive-brand-strong",
|
|
98
107
|
"--wpds-color-fg-interactive-brand-strong-active",
|
|
99
108
|
"--wpds-color-fg-interactive-brand-strong-disabled",
|
|
109
|
+
"--wpds-color-fg-interactive-error",
|
|
110
|
+
"--wpds-color-fg-interactive-error-active",
|
|
111
|
+
"--wpds-color-fg-interactive-error-disabled",
|
|
112
|
+
"--wpds-color-fg-interactive-error-strong",
|
|
113
|
+
"--wpds-color-fg-interactive-error-strong-active",
|
|
114
|
+
"--wpds-color-fg-interactive-error-strong-disabled",
|
|
100
115
|
"--wpds-color-stroke-surface-neutral",
|
|
101
116
|
"--wpds-color-stroke-surface-neutral-weak",
|
|
102
117
|
"--wpds-color-stroke-surface-neutral-strong",
|
|
@@ -116,7 +131,8 @@ var design_tokens_default = [
|
|
|
116
131
|
"--wpds-color-stroke-interactive-neutral-strong",
|
|
117
132
|
"--wpds-color-stroke-interactive-brand",
|
|
118
133
|
"--wpds-color-stroke-interactive-brand-active",
|
|
119
|
-
"--wpds-color-stroke-interactive-
|
|
134
|
+
"--wpds-color-stroke-interactive-error",
|
|
135
|
+
"--wpds-color-stroke-interactive-error-active",
|
|
120
136
|
"--wpds-color-stroke-interactive-error-strong",
|
|
121
137
|
"--wpds-color-stroke-focus-brand",
|
|
122
138
|
"--wpds-dimension-base",
|
|
@@ -151,4 +167,4 @@ var design_tokens_default = [
|
|
|
151
167
|
"--wpds-font-line-height-x-large",
|
|
152
168
|
"--wpds-font-line-height-2x-large"
|
|
153
169
|
];
|
|
154
|
-
//# sourceMappingURL=design-tokens.
|
|
170
|
+
//# sourceMappingURL=design-tokens.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/prebuilt/js/design-tokens.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * This file is generated by the @terrazzo/plugin-known-wpds-css-variables plugin.\n * Do not edit this file directly.\n */\n\nexport default [\n\t'--wpds-border-radius-surface-xs',\n\t'--wpds-border-radius-surface-sm',\n\t'--wpds-border-radius-surface-md',\n\t'--wpds-border-radius-surface-lg',\n\t'--wpds-border-width-surface-xs',\n\t'--wpds-border-width-surface-sm',\n\t'--wpds-border-width-surface-md',\n\t'--wpds-border-width-surface-lg',\n\t'--wpds-border-width-interactive-focus',\n\t'--wpds-color-bg-surface-neutral',\n\t'--wpds-color-bg-surface-neutral-strong',\n\t'--wpds-color-bg-surface-neutral-weak',\n\t'--wpds-color-bg-surface-brand',\n\t'--wpds-color-bg-surface-success',\n\t'--wpds-color-bg-surface-success-weak',\n\t'--wpds-color-bg-surface-info',\n\t'--wpds-color-bg-surface-info-weak',\n\t'--wpds-color-bg-surface-warning',\n\t'--wpds-color-bg-surface-warning-weak',\n\t'--wpds-color-bg-surface-caution',\n\t'--wpds-color-bg-surface-caution-weak',\n\t'--wpds-color-bg-surface-error',\n\t'--wpds-color-bg-surface-error-weak',\n\t'--wpds-color-bg-interactive-neutral',\n\t'--wpds-color-bg-interactive-neutral-active',\n\t'--wpds-color-bg-interactive-neutral-disabled',\n\t'--wpds-color-bg-interactive-neutral-strong',\n\t'--wpds-color-bg-interactive-neutral-strong-active',\n\t'--wpds-color-bg-interactive-neutral-strong-disabled',\n\t'--wpds-color-bg-interactive-neutral-weak',\n\t'--wpds-color-bg-interactive-neutral-weak-active',\n\t'--wpds-color-bg-interactive-neutral-weak-disabled',\n\t'--wpds-color-bg-interactive-brand',\n\t'--wpds-color-bg-interactive-brand-active',\n\t'--wpds-color-bg-interactive-brand-disabled',\n\t'--wpds-color-bg-interactive-brand-strong',\n\t'--wpds-color-bg-interactive-brand-strong-active',\n\t'--wpds-color-bg-interactive-brand-strong-disabled',\n\t'--wpds-color-bg-interactive-brand-weak',\n\t'--wpds-color-bg-interactive-brand-weak-active',\n\t'--wpds-color-bg-interactive-brand-weak-disabled',\n\t'--wpds-color-bg-interactive-error',\n\t'--wpds-color-bg-interactive-error-active',\n\t'--wpds-color-bg-interactive-error-disabled',\n\t'--wpds-color-bg-interactive-error-strong',\n\t'--wpds-color-bg-interactive-error-strong-active',\n\t'--wpds-color-bg-interactive-error-strong-disabled',\n\t'--wpds-color-bg-interactive-error-weak',\n\t'--wpds-color-bg-interactive-error-weak-active',\n\t'--wpds-color-bg-interactive-error-weak-disabled',\n\t'--wpds-color-bg-track-neutral-weak',\n\t'--wpds-color-bg-track-neutral',\n\t'--wpds-color-bg-thumb-neutral-weak',\n\t'--wpds-color-bg-thumb-neutral-weak-active',\n\t'--wpds-color-bg-thumb-brand',\n\t'--wpds-color-bg-thumb-brand-active',\n\t'--wpds-color-bg-thumb-brand-disabled',\n\t'--wpds-color-fg-content-neutral',\n\t'--wpds-color-fg-content-neutral-weak',\n\t'--wpds-color-fg-content-success',\n\t'--wpds-color-fg-content-success-weak',\n\t'--wpds-color-fg-content-info',\n\t'--wpds-color-fg-content-info-weak',\n\t'--wpds-color-fg-content-warning',\n\t'--wpds-color-fg-content-warning-weak',\n\t'--wpds-color-fg-content-caution',\n\t'--wpds-color-fg-content-caution-weak',\n\t'--wpds-color-fg-content-error',\n\t'--wpds-color-fg-content-error-weak',\n\t'--wpds-color-fg-interactive-neutral',\n\t'--wpds-color-fg-interactive-neutral-active',\n\t'--wpds-color-fg-interactive-neutral-disabled',\n\t'--wpds-color-fg-interactive-neutral-strong',\n\t'--wpds-color-fg-interactive-neutral-strong-active',\n\t'--wpds-color-fg-interactive-neutral-strong-disabled',\n\t'--wpds-color-fg-interactive-neutral-weak',\n\t'--wpds-color-fg-interactive-neutral-weak-disabled',\n\t'--wpds-color-fg-interactive-brand',\n\t'--wpds-color-fg-interactive-brand-active',\n\t'--wpds-color-fg-interactive-brand-disabled',\n\t'--wpds-color-fg-interactive-brand-strong',\n\t'--wpds-color-fg-interactive-brand-strong-active',\n\t'--wpds-color-fg-interactive-brand-strong-disabled',\n\t'--wpds-color-fg-interactive-error',\n\t'--wpds-color-fg-interactive-error-active',\n\t'--wpds-color-fg-interactive-error-disabled',\n\t'--wpds-color-fg-interactive-error-strong',\n\t'--wpds-color-fg-interactive-error-strong-active',\n\t'--wpds-color-fg-interactive-error-strong-disabled',\n\t'--wpds-color-stroke-surface-neutral',\n\t'--wpds-color-stroke-surface-neutral-weak',\n\t'--wpds-color-stroke-surface-neutral-strong',\n\t'--wpds-color-stroke-surface-brand',\n\t'--wpds-color-stroke-surface-brand-strong',\n\t'--wpds-color-stroke-surface-success',\n\t'--wpds-color-stroke-surface-success-strong',\n\t'--wpds-color-stroke-surface-info',\n\t'--wpds-color-stroke-surface-info-strong',\n\t'--wpds-color-stroke-surface-warning',\n\t'--wpds-color-stroke-surface-warning-strong',\n\t'--wpds-color-stroke-surface-error',\n\t'--wpds-color-stroke-surface-error-strong',\n\t'--wpds-color-stroke-interactive-neutral',\n\t'--wpds-color-stroke-interactive-neutral-active',\n\t'--wpds-color-stroke-interactive-neutral-disabled',\n\t'--wpds-color-stroke-interactive-neutral-strong',\n\t'--wpds-color-stroke-interactive-brand',\n\t'--wpds-color-stroke-interactive-brand-active',\n\t'--wpds-color-stroke-interactive-error',\n\t'--wpds-color-stroke-interactive-error-active',\n\t'--wpds-color-stroke-interactive-error-strong',\n\t'--wpds-color-stroke-focus-brand',\n\t'--wpds-dimension-base',\n\t'--wpds-dimension-padding-surface-2xs',\n\t'--wpds-dimension-padding-surface-xs',\n\t'--wpds-dimension-padding-surface-sm',\n\t'--wpds-dimension-padding-surface-md',\n\t'--wpds-dimension-padding-surface-lg',\n\t'--wpds-dimension-gap-2xs',\n\t'--wpds-dimension-gap-xs',\n\t'--wpds-dimension-gap-sm',\n\t'--wpds-dimension-gap-md',\n\t'--wpds-dimension-gap-lg',\n\t'--wpds-dimension-gap-xl',\n\t'--wpds-elevation-x-small',\n\t'--wpds-elevation-small',\n\t'--wpds-elevation-medium',\n\t'--wpds-elevation-large',\n\t'--wpds-font-family-heading',\n\t'--wpds-font-family-body',\n\t'--wpds-font-family-mono',\n\t'--wpds-font-size-x-small',\n\t'--wpds-font-size-small',\n\t'--wpds-font-size-medium',\n\t'--wpds-font-size-large',\n\t'--wpds-font-size-x-large',\n\t'--wpds-font-size-2x-large',\n\t'--wpds-font-line-height-x-small',\n\t'--wpds-font-line-height-small',\n\t'--wpds-font-line-height-medium',\n\t'--wpds-font-line-height-large',\n\t'--wpds-font-line-height-x-large',\n\t'--wpds-font-line-height-2x-large',\n];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,IAAO,wBAAQ;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -25,19 +25,19 @@ module.exports = __toCommonJS(color_tokens_exports);
|
|
|
25
25
|
var color_tokens_default = {
|
|
26
26
|
"primary-bgFill1": ["bg-interactive-brand-strong"],
|
|
27
27
|
"primary-fgFill": [
|
|
28
|
-
"fg-interactive-brand-strong
|
|
29
|
-
"fg-interactive-brand-strong"
|
|
28
|
+
"fg-interactive-brand-strong",
|
|
29
|
+
"fg-interactive-brand-strong-active"
|
|
30
30
|
],
|
|
31
31
|
"primary-bgFill2": ["bg-interactive-brand-strong-active"],
|
|
32
32
|
"primary-surface2": ["bg-interactive-brand-active"],
|
|
33
33
|
"primary-surface4": ["bg-interactive-brand-weak-active"],
|
|
34
34
|
"primary-fgSurface3": [
|
|
35
|
-
"fg-interactive-brand
|
|
36
|
-
"fg-interactive-brand"
|
|
35
|
+
"fg-interactive-brand",
|
|
36
|
+
"fg-interactive-brand-active"
|
|
37
37
|
],
|
|
38
38
|
"primary-stroke3": [
|
|
39
|
-
"bg-thumb-brand-active",
|
|
40
39
|
"bg-thumb-brand",
|
|
40
|
+
"bg-thumb-brand-active",
|
|
41
41
|
"stroke-focus-brand",
|
|
42
42
|
"stroke-interactive-brand",
|
|
43
43
|
"stroke-surface-brand-strong"
|
|
@@ -63,23 +63,44 @@ var color_tokens_default = {
|
|
|
63
63
|
"warning-fgSurface3": ["fg-content-warning-weak"],
|
|
64
64
|
"warning-stroke3": ["stroke-surface-warning-strong"],
|
|
65
65
|
"warning-stroke1": ["stroke-surface-warning"],
|
|
66
|
-
"error-
|
|
67
|
-
"error-
|
|
66
|
+
"error-bgFill1": ["bg-interactive-error-strong"],
|
|
67
|
+
"error-fgFill": [
|
|
68
|
+
"fg-interactive-error-strong",
|
|
69
|
+
"fg-interactive-error-strong-active"
|
|
70
|
+
],
|
|
71
|
+
"error-bgFill2": ["bg-interactive-error-strong-active"],
|
|
72
|
+
"error-surface2": [
|
|
73
|
+
"bg-interactive-error-active",
|
|
74
|
+
"bg-surface-error-weak"
|
|
75
|
+
],
|
|
76
|
+
"error-surface4": [
|
|
77
|
+
"bg-interactive-error-weak-active",
|
|
78
|
+
"bg-surface-error"
|
|
79
|
+
],
|
|
68
80
|
"error-fgSurface4": ["fg-content-error"],
|
|
69
|
-
"error-fgSurface3": [
|
|
81
|
+
"error-fgSurface3": [
|
|
82
|
+
"fg-content-error-weak",
|
|
83
|
+
"fg-interactive-error",
|
|
84
|
+
"fg-interactive-error-active"
|
|
85
|
+
],
|
|
70
86
|
"error-stroke3": [
|
|
87
|
+
"stroke-interactive-error",
|
|
71
88
|
"stroke-interactive-error-strong",
|
|
72
89
|
"stroke-surface-error-strong"
|
|
73
90
|
],
|
|
91
|
+
"error-stroke4": ["stroke-interactive-error-active"],
|
|
74
92
|
"error-stroke1": ["stroke-surface-error"],
|
|
75
93
|
"bg-surface2": ["bg-surface-neutral"],
|
|
76
94
|
"bg-surface6": [
|
|
77
95
|
"bg-interactive-brand-strong-disabled",
|
|
96
|
+
"bg-interactive-error-strong-disabled",
|
|
78
97
|
"bg-interactive-neutral-strong-disabled"
|
|
79
98
|
],
|
|
80
99
|
"bg-surface5": [
|
|
81
100
|
"bg-interactive-brand-disabled",
|
|
82
101
|
"bg-interactive-brand-weak-disabled",
|
|
102
|
+
"bg-interactive-error-disabled",
|
|
103
|
+
"bg-interactive-error-weak-disabled",
|
|
83
104
|
"bg-interactive-neutral-disabled",
|
|
84
105
|
"bg-interactive-neutral-weak-disabled"
|
|
85
106
|
],
|
|
@@ -90,17 +111,19 @@ var color_tokens_default = {
|
|
|
90
111
|
"bg-surface3": ["bg-surface-neutral-strong"],
|
|
91
112
|
"bg-fgSurface4": [
|
|
92
113
|
"fg-content-neutral",
|
|
93
|
-
"fg-interactive-neutral
|
|
94
|
-
"fg-interactive-neutral"
|
|
114
|
+
"fg-interactive-neutral",
|
|
115
|
+
"fg-interactive-neutral-active"
|
|
95
116
|
],
|
|
96
117
|
"bg-fgSurface3": [
|
|
97
118
|
"fg-content-neutral-weak",
|
|
98
119
|
"fg-interactive-brand-strong-disabled",
|
|
120
|
+
"fg-interactive-error-strong-disabled",
|
|
99
121
|
"fg-interactive-neutral-strong-disabled",
|
|
100
122
|
"fg-interactive-neutral-weak"
|
|
101
123
|
],
|
|
102
124
|
"bg-fgSurface2": [
|
|
103
125
|
"fg-interactive-brand-disabled",
|
|
126
|
+
"fg-interactive-error-disabled",
|
|
104
127
|
"fg-interactive-neutral-disabled",
|
|
105
128
|
"fg-interactive-neutral-weak-disabled"
|
|
106
129
|
],
|
|
@@ -117,7 +140,6 @@ var color_tokens_default = {
|
|
|
117
140
|
"bg-stroke2": [
|
|
118
141
|
"bg-thumb-brand-disabled",
|
|
119
142
|
"bg-track-neutral",
|
|
120
|
-
"stroke-interactive-brand-disabled",
|
|
121
143
|
"stroke-interactive-neutral-disabled",
|
|
122
144
|
"stroke-surface-neutral"
|
|
123
145
|
],
|
|
@@ -125,8 +147,8 @@ var color_tokens_default = {
|
|
|
125
147
|
"bg-bgFillInverted2": ["bg-interactive-neutral-strong-active"],
|
|
126
148
|
"bg-bgFillInverted1": ["bg-interactive-neutral-strong"],
|
|
127
149
|
"bg-fgFillInverted": [
|
|
128
|
-
"fg-interactive-neutral-strong
|
|
129
|
-
"fg-interactive-neutral-strong"
|
|
150
|
+
"fg-interactive-neutral-strong",
|
|
151
|
+
"fg-interactive-neutral-strong-active"
|
|
130
152
|
],
|
|
131
153
|
"bg-surface1": ["bg-surface-neutral-weak"],
|
|
132
154
|
"caution-surface2": ["bg-surface-caution-weak"],
|
|
@@ -134,4 +156,4 @@ var color_tokens_default = {
|
|
|
134
156
|
"caution-fgSurface4": ["fg-content-caution"],
|
|
135
157
|
"caution-fgSurface3": ["fg-content-caution-weak"]
|
|
136
158
|
};
|
|
137
|
-
//# sourceMappingURL=color-tokens.
|
|
159
|
+
//# sourceMappingURL=color-tokens.cjs.map
|