@wordpress/theme 0.3.1-next.6deb34194.0 → 0.4.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/README.md +82 -18
- package/bin/generate-primitive-tokens/index.ts +26 -33
- package/bin/terrazzo-plugin-mode-overrides/index.ts +208 -0
- package/build/prebuilt/js/design-tokens.js +17 -1
- package/build/prebuilt/js/design-tokens.js.map +2 -2
- package/build/prebuilt/ts/color-tokens.js +35 -13
- package/build/prebuilt/ts/color-tokens.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-types/prebuilt/ts/color-tokens.d.ts.map +1 -1
- package/docs/ds-tokens.md +18 -2
- package/package.json +5 -5
- 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/terrazzo.config.ts +11 -14
- package/tokens/border.json +1 -1
- package/tokens/color.json +1160 -630
- package/tokens/dimension.json +88 -90
- package/tokens/elevation.json +1 -1
- package/tokens/modes/border.high-dpi.json +15 -0
- package/tokens/modes/dimension.comfortable.json +54 -0
- package/tokens/modes/dimension.compact.json +54 -0
- package/tokens/typography.json +1 -1
- package/tsconfig.bin.tsbuildinfo +1 -1
- package/tsconfig.src.tsbuildinfo +1 -1
- 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/build/prebuilt/json/figma.json +0 -787
- package/build/token-id.js +0 -30
- 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/src/prebuilt/json/figma.json +0 -787
- package/src/test/token-id.test.ts +0 -12
- package/src/token-id.ts +0 -9
package/README.md
CHANGED
|
@@ -13,27 +13,91 @@ A theming package that's part of the WordPress Design System. It has two parts:
|
|
|
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.
|
|
25
54
|
|
|
26
|
-
| Value
|
|
27
|
-
|
|
|
28
|
-
| `
|
|
29
|
-
| `
|
|
30
|
-
| `
|
|
31
|
-
| `
|
|
32
|
-
| `
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
|
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.
|
|
64
|
+
|
|
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
|
|
|
@@ -53,9 +117,9 @@ 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.
|
|
120
|
+
| Value | Description |
|
|
121
|
+
| -------------------- | ----------------------------------------------- |
|
|
122
|
+
| `strong` | Higher contrast and/or elevated emphasis. |
|
|
59
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.
|
|
@@ -4,14 +4,7 @@
|
|
|
4
4
|
import fs from 'fs';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import { fileURLToPath } from 'url';
|
|
7
|
-
import {
|
|
8
|
-
parse,
|
|
9
|
-
to,
|
|
10
|
-
serialize,
|
|
11
|
-
OKLCH,
|
|
12
|
-
sRGB,
|
|
13
|
-
type PlainColorObject,
|
|
14
|
-
} from 'colorjs.io/fn';
|
|
7
|
+
import { parse, to, serialize, sRGB } from 'colorjs.io/fn';
|
|
15
8
|
|
|
16
9
|
/**
|
|
17
10
|
* Internal dependencies
|
|
@@ -29,29 +22,28 @@ const __dirname = path.dirname( __filename );
|
|
|
29
22
|
// Path to the color.json file
|
|
30
23
|
const colorJsonPath = path.join( __dirname, '../../tokens/color.json' );
|
|
31
24
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Rounds a given hex value (0-255) to 3 decimal places.
|
|
27
|
+
*
|
|
28
|
+
* 3 decimal places is the minimum precision for lossless hex serialization.
|
|
29
|
+
* With 3 decimal places rounding to the nearest 0.001, the maximum rounding
|
|
30
|
+
* error is 0.0005. With 256 possible hex values, 0.0005 × 256 = 0.128,
|
|
31
|
+
* guaranteeing the rounded value stays within 0.5 of the original value.
|
|
32
|
+
*
|
|
33
|
+
* @param n - The hex value to round.
|
|
34
|
+
* @return The rounded hex value.
|
|
35
|
+
*/
|
|
36
|
+
const roundHexComponent = ( n: number ) => Math.round( n * 1000 ) / 1000;
|
|
40
37
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
colorSpace: 'oklch',
|
|
44
|
-
components: [
|
|
45
|
-
Math.floor( 10000 * coords[ 0 ] ) / 10000, // l
|
|
46
|
-
coords[ 1 ], // c
|
|
47
|
-
isNaN( coords[ 2 ] ) ? 0 : coords[ 2 ], // h
|
|
48
|
-
],
|
|
49
|
-
...( parsed.alpha < 1 ? { alpha: parsed.alpha } : undefined ),
|
|
50
|
-
hex: serialize( to( parsed, sRGB ), { format: 'hex' } ),
|
|
51
|
-
};
|
|
52
|
-
}
|
|
38
|
+
const transformColorStringToDTCGValue = ( color: string ) => {
|
|
39
|
+
const parsed = to( parse( color ), sRGB );
|
|
53
40
|
|
|
54
|
-
return
|
|
41
|
+
return {
|
|
42
|
+
colorSpace: 'srgb',
|
|
43
|
+
components: parsed.coords.map( roundHexComponent ),
|
|
44
|
+
...( parsed.alpha < 1 ? { alpha: parsed.alpha } : undefined ),
|
|
45
|
+
hex: serialize( parsed, { format: 'hex' } ),
|
|
46
|
+
};
|
|
55
47
|
};
|
|
56
48
|
|
|
57
49
|
// Main function
|
|
@@ -82,13 +74,14 @@ function generatePrimitiveColorTokens() {
|
|
|
82
74
|
},
|
|
83
75
|
...accentRamps,
|
|
84
76
|
].forEach( ( { scaleName, ramp } ) => {
|
|
85
|
-
colorJson
|
|
77
|
+
colorJson[ 'wpds-color' ].primitive[ scaleName ] = {};
|
|
86
78
|
for ( const [ tokenName, tokenValue ] of Object.entries(
|
|
87
79
|
ramp.ramp
|
|
88
80
|
) ) {
|
|
89
|
-
colorJson
|
|
90
|
-
|
|
91
|
-
|
|
81
|
+
colorJson[ 'wpds-color' ].primitive[ scaleName ][ tokenName ] =
|
|
82
|
+
{
|
|
83
|
+
$value: transformColorStringToDTCGValue( tokenValue ),
|
|
84
|
+
};
|
|
92
85
|
}
|
|
93
86
|
} );
|
|
94
87
|
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { basename } from 'node:path';
|
|
5
|
+
import type { Plugin } from '@terrazzo/parser';
|
|
6
|
+
|
|
7
|
+
type DTCGPrimitiveValue =
|
|
8
|
+
| string
|
|
9
|
+
| number
|
|
10
|
+
| boolean
|
|
11
|
+
| { value: number; unit: string }
|
|
12
|
+
| { r: number; g: number; b: number; a?: number };
|
|
13
|
+
|
|
14
|
+
type DTCGValue = DTCGPrimitiveValue | Record< string, DTCGPrimitiveValue >;
|
|
15
|
+
|
|
16
|
+
interface DTCGExtensions {
|
|
17
|
+
[ key: string ]: unknown;
|
|
18
|
+
mode?: Record< string, DTCGValue >;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @see https://tr.designtokens.org/format/
|
|
23
|
+
*/
|
|
24
|
+
interface DTCGToken {
|
|
25
|
+
$value: DTCGValue;
|
|
26
|
+
$type?: string;
|
|
27
|
+
$description?: string;
|
|
28
|
+
$extensions?: DTCGExtensions;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface DTCGGroup {
|
|
32
|
+
$type?: string;
|
|
33
|
+
$description?: string;
|
|
34
|
+
$extensions?: DTCGExtensions;
|
|
35
|
+
[ key: string ]:
|
|
36
|
+
| DTCGToken
|
|
37
|
+
| DTCGGroup
|
|
38
|
+
| string
|
|
39
|
+
| DTCGExtensions
|
|
40
|
+
| undefined;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
type DTCGDocument = Record< string, DTCGGroup >;
|
|
44
|
+
|
|
45
|
+
interface ModeOverride {
|
|
46
|
+
path: string[];
|
|
47
|
+
$value: DTCGValue;
|
|
48
|
+
$type?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Type guard to check if a value is a DTCG token (has $value).
|
|
53
|
+
*
|
|
54
|
+
* @param value - The value to check.
|
|
55
|
+
* @return True if the value is a DTCG token.
|
|
56
|
+
*/
|
|
57
|
+
function isDTCGToken( value: DTCGToken | DTCGGroup ): value is DTCGToken {
|
|
58
|
+
return '$value' in value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Set a nested value in an object from a path array.
|
|
63
|
+
*
|
|
64
|
+
* @param object - The object to modify.
|
|
65
|
+
* @param pathParts - The path at which to set the value.
|
|
66
|
+
* @param value - The value to set.
|
|
67
|
+
*/
|
|
68
|
+
function setNestedValue(
|
|
69
|
+
object: Record< string, unknown >,
|
|
70
|
+
pathParts: string[],
|
|
71
|
+
value: any
|
|
72
|
+
): void {
|
|
73
|
+
let current = object;
|
|
74
|
+
|
|
75
|
+
for ( let i = 0; i < pathParts.length - 1; i++ ) {
|
|
76
|
+
const key = pathParts[ i ];
|
|
77
|
+
|
|
78
|
+
if ( ! ( key in current ) ) {
|
|
79
|
+
current[ key ] = {};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
current = current[ key ] as Record< string, unknown >;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
current[ pathParts[ pathParts.length - 1 ] ] = value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Recursively extracts mode overrides from a DTCG token tree.
|
|
90
|
+
*
|
|
91
|
+
* @param object - The DTCG group to extract from.
|
|
92
|
+
* @param currentPath - The current path in the token tree.
|
|
93
|
+
* @param currentType - The $type inherited from parent groups.
|
|
94
|
+
* @return A map of mode names to their token overrides.
|
|
95
|
+
*/
|
|
96
|
+
function getModeOverrides(
|
|
97
|
+
object: DTCGGroup,
|
|
98
|
+
currentPath: string[] = [],
|
|
99
|
+
currentType?: string
|
|
100
|
+
): Map< string, ModeOverride[] > {
|
|
101
|
+
const modeOverrides = new Map< string, ModeOverride[] >();
|
|
102
|
+
|
|
103
|
+
// Check if this group defines a $type that should be inherited by children
|
|
104
|
+
const groupType = object.$type ?? currentType;
|
|
105
|
+
|
|
106
|
+
for ( const [ key, value ] of Object.entries( object ) ) {
|
|
107
|
+
// Skip DTCG metadata keys
|
|
108
|
+
if ( key.startsWith( '$' ) ) {
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const node = value as DTCGToken | DTCGGroup;
|
|
113
|
+
|
|
114
|
+
if ( isDTCGToken( node ) ) {
|
|
115
|
+
// Extract mode-specific values from extensions
|
|
116
|
+
const modes = node.$extensions?.mode;
|
|
117
|
+
if ( modes ) {
|
|
118
|
+
for ( const [ mode, modeValue ] of Object.entries( modes ) ) {
|
|
119
|
+
modeOverrides.set( mode, [
|
|
120
|
+
...( modeOverrides.get( mode ) ?? [] ),
|
|
121
|
+
{
|
|
122
|
+
path: [ ...currentPath, key ],
|
|
123
|
+
$value: modeValue,
|
|
124
|
+
$type: node.$type ?? groupType,
|
|
125
|
+
},
|
|
126
|
+
] );
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
} else {
|
|
130
|
+
// Recurse into nested groups, passing down the type
|
|
131
|
+
const nextPath = [ ...currentPath, key ];
|
|
132
|
+
const childOverrides = getModeOverrides(
|
|
133
|
+
node,
|
|
134
|
+
nextPath,
|
|
135
|
+
groupType
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
// Merge child results
|
|
139
|
+
for ( const [ mode, overrides ] of childOverrides ) {
|
|
140
|
+
modeOverrides.set( mode, [
|
|
141
|
+
...( modeOverrides.get( mode ) ?? [] ),
|
|
142
|
+
...overrides,
|
|
143
|
+
] );
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return modeOverrides;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Terrazzo plugin that generates mode-specific DTCG override files.
|
|
153
|
+
*
|
|
154
|
+
* For each mode found in tokens (via $extensions.mode), generates a separate
|
|
155
|
+
* JSON file per source file containing tokens that have values for that mode.
|
|
156
|
+
*
|
|
157
|
+
* @return A Terrazzo plugin that generates mode-specific DTCG override files.
|
|
158
|
+
*/
|
|
159
|
+
export default function pluginModeOverrides(): Plugin {
|
|
160
|
+
return {
|
|
161
|
+
name: '@wordpress/terrazzo-plugin-mode-overrides',
|
|
162
|
+
async build( { outputFile, sources } ) {
|
|
163
|
+
for ( const { filename, src } of sources ) {
|
|
164
|
+
if ( ! filename ) {
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// Parse the source JSON file
|
|
169
|
+
let document: DTCGDocument;
|
|
170
|
+
try {
|
|
171
|
+
document = JSON.parse( src ) as DTCGDocument;
|
|
172
|
+
} catch ( error ) {
|
|
173
|
+
throw new Error(
|
|
174
|
+
`Could not parse ${ filename }\n\n${ error }`
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// Extract mode overrides from this file
|
|
179
|
+
const fileOverrides = getModeOverrides( document );
|
|
180
|
+
|
|
181
|
+
// Generate a DTCG file for each mode found in this source file
|
|
182
|
+
for ( const [ mode, overrides ] of fileOverrides ) {
|
|
183
|
+
const output: Record< string, unknown > = {};
|
|
184
|
+
|
|
185
|
+
for ( const override of overrides ) {
|
|
186
|
+
const { path, $value, $type } = override;
|
|
187
|
+
setNestedValue( output, path, { $type, $value } );
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// Output as {basename}.{mode}.json (e.g., dimension.compact.json)
|
|
191
|
+
const sourceDir = new URL( './', filename );
|
|
192
|
+
const outFileName = `${ basename(
|
|
193
|
+
filename.pathname,
|
|
194
|
+
'.json'
|
|
195
|
+
) }.${ mode }.json`;
|
|
196
|
+
const outFileUrl = new URL(
|
|
197
|
+
`modes/${ outFileName }`,
|
|
198
|
+
sourceDir
|
|
199
|
+
);
|
|
200
|
+
outputFile(
|
|
201
|
+
outFileUrl.href,
|
|
202
|
+
JSON.stringify( output, null, '\t' )
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
};
|
|
208
|
+
}
|
|
@@ -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",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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-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-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-
|
|
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;AACD;",
|
|
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
6
|
"names": []
|
|
7
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"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/prebuilt/ts/color-tokens.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * This file is generated by the @wordpress/terrazzo-plugin-inline-alias-values plugin.\n * Do not edit this file directly.\n */\n\nexport default {\n\t'primary-bgFill1': [ 'bg-interactive-brand-strong' ],\n\t'primary-fgFill': [\n\t\t'fg-interactive-brand-strong
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,IAAO,uBAAQ;AAAA,EACd,mBAAmB,CAAE,6BAA8B;AAAA,EACnD,kBAAkB;AAAA,IACjB;AAAA,IACA;AAAA,EACD;AAAA,EACA,mBAAmB,CAAE,oCAAqC;AAAA,EAC1D,oBAAoB,CAAE,6BAA8B;AAAA,EACpD,oBAAoB,CAAE,kCAAmC;AAAA,EACzD,sBAAsB;AAAA,IACrB;AAAA,IACA;AAAA,EACD;AAAA,EACA,mBAAmB;AAAA,IAClB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AAAA,EACA,mBAAmB,CAAE,iCAAkC;AAAA,EACvD,mBAAmB,CAAE,sBAAuB;AAAA,EAC5C,oBAAoB,CAAE,kBAAmB;AAAA,EACzC,iBAAiB,CAAE,sBAAuB;AAAA,EAC1C,iBAAiB,CAAE,iBAAkB;AAAA,EACrC,mBAAmB,CAAE,iBAAkB;AAAA,EACvC,mBAAmB,CAAE,sBAAuB;AAAA,EAC5C,gBAAgB,CAAE,4BAA6B;AAAA,EAC/C,gBAAgB,CAAE,qBAAsB;AAAA,EACxC,oBAAoB,CAAE,yBAA0B;AAAA,EAChD,oBAAoB,CAAE,oBAAqB;AAAA,EAC3C,sBAAsB,CAAE,oBAAqB;AAAA,EAC7C,sBAAsB,CAAE,yBAA0B;AAAA,EAClD,mBAAmB,CAAE,+BAAgC;AAAA,EACrD,mBAAmB,CAAE,wBAAyB;AAAA,EAC9C,oBAAoB,CAAE,yBAA0B;AAAA,EAChD,oBAAoB,CAAE,oBAAqB;AAAA,EAC3C,sBAAsB,CAAE,oBAAqB;AAAA,EAC7C,sBAAsB,CAAE,yBAA0B;AAAA,EAClD,mBAAmB,CAAE,+BAAgC;AAAA,EACrD,mBAAmB,CAAE,wBAAyB;AAAA,EAC9C,
|
|
4
|
+
"sourcesContent": ["/**\n * This file is generated by the @wordpress/terrazzo-plugin-inline-alias-values plugin.\n * Do not edit this file directly.\n */\n\nexport default {\n\t'primary-bgFill1': [ 'bg-interactive-brand-strong' ],\n\t'primary-fgFill': [\n\t\t'fg-interactive-brand-strong',\n\t\t'fg-interactive-brand-strong-active',\n\t],\n\t'primary-bgFill2': [ 'bg-interactive-brand-strong-active' ],\n\t'primary-surface2': [ 'bg-interactive-brand-active' ],\n\t'primary-surface4': [ 'bg-interactive-brand-weak-active' ],\n\t'primary-fgSurface3': [\n\t\t'fg-interactive-brand',\n\t\t'fg-interactive-brand-active',\n\t],\n\t'primary-stroke3': [\n\t\t'bg-thumb-brand',\n\t\t'bg-thumb-brand-active',\n\t\t'stroke-focus-brand',\n\t\t'stroke-interactive-brand',\n\t\t'stroke-surface-brand-strong',\n\t],\n\t'primary-stroke4': [ 'stroke-interactive-brand-active' ],\n\t'primary-stroke1': [ 'stroke-surface-brand' ],\n\t'primary-surface1': [ 'bg-surface-brand' ],\n\t'info-surface2': [ 'bg-surface-info-weak' ],\n\t'info-surface4': [ 'bg-surface-info' ],\n\t'info-fgSurface4': [ 'fg-content-info' ],\n\t'info-fgSurface3': [ 'fg-content-info-weak' ],\n\t'info-stroke3': [ 'stroke-surface-info-strong' ],\n\t'info-stroke1': [ 'stroke-surface-info' ],\n\t'success-surface2': [ 'bg-surface-success-weak' ],\n\t'success-surface4': [ 'bg-surface-success' ],\n\t'success-fgSurface4': [ 'fg-content-success' ],\n\t'success-fgSurface3': [ 'fg-content-success-weak' ],\n\t'success-stroke3': [ 'stroke-surface-success-strong' ],\n\t'success-stroke1': [ 'stroke-surface-success' ],\n\t'warning-surface2': [ 'bg-surface-warning-weak' ],\n\t'warning-surface4': [ 'bg-surface-warning' ],\n\t'warning-fgSurface4': [ 'fg-content-warning' ],\n\t'warning-fgSurface3': [ 'fg-content-warning-weak' ],\n\t'warning-stroke3': [ 'stroke-surface-warning-strong' ],\n\t'warning-stroke1': [ 'stroke-surface-warning' ],\n\t'error-bgFill1': [ 'bg-interactive-error-strong' ],\n\t'error-fgFill': [\n\t\t'fg-interactive-error-strong',\n\t\t'fg-interactive-error-strong-active',\n\t],\n\t'error-bgFill2': [ 'bg-interactive-error-strong-active' ],\n\t'error-surface2': [\n\t\t'bg-interactive-error-active',\n\t\t'bg-surface-error-weak',\n\t],\n\t'error-surface4': [\n\t\t'bg-interactive-error-weak-active',\n\t\t'bg-surface-error',\n\t],\n\t'error-fgSurface4': [ 'fg-content-error' ],\n\t'error-fgSurface3': [\n\t\t'fg-content-error-weak',\n\t\t'fg-interactive-error',\n\t\t'fg-interactive-error-active',\n\t],\n\t'error-stroke3': [\n\t\t'stroke-interactive-error',\n\t\t'stroke-interactive-error-strong',\n\t\t'stroke-surface-error-strong',\n\t],\n\t'error-stroke4': [ 'stroke-interactive-error-active' ],\n\t'error-stroke1': [ 'stroke-surface-error' ],\n\t'bg-surface2': [ 'bg-surface-neutral' ],\n\t'bg-surface6': [\n\t\t'bg-interactive-brand-strong-disabled',\n\t\t'bg-interactive-error-strong-disabled',\n\t\t'bg-interactive-neutral-strong-disabled',\n\t],\n\t'bg-surface5': [\n\t\t'bg-interactive-brand-disabled',\n\t\t'bg-interactive-brand-weak-disabled',\n\t\t'bg-interactive-error-disabled',\n\t\t'bg-interactive-error-weak-disabled',\n\t\t'bg-interactive-neutral-disabled',\n\t\t'bg-interactive-neutral-weak-disabled',\n\t],\n\t'bg-surface4': [\n\t\t'bg-interactive-neutral-active',\n\t\t'bg-interactive-neutral-weak-active',\n\t],\n\t'bg-surface3': [ 'bg-surface-neutral-strong' ],\n\t'bg-fgSurface4': [\n\t\t'fg-content-neutral',\n\t\t'fg-interactive-neutral',\n\t\t'fg-interactive-neutral-active',\n\t],\n\t'bg-fgSurface3': [\n\t\t'fg-content-neutral-weak',\n\t\t'fg-interactive-brand-strong-disabled',\n\t\t'fg-interactive-error-strong-disabled',\n\t\t'fg-interactive-neutral-strong-disabled',\n\t\t'fg-interactive-neutral-weak',\n\t],\n\t'bg-fgSurface2': [\n\t\t'fg-interactive-brand-disabled',\n\t\t'fg-interactive-error-disabled',\n\t\t'fg-interactive-neutral-disabled',\n\t\t'fg-interactive-neutral-weak-disabled',\n\t],\n\t'bg-stroke3': [\n\t\t'bg-thumb-neutral-weak',\n\t\t'stroke-interactive-neutral',\n\t\t'stroke-surface-neutral-strong',\n\t],\n\t'bg-stroke4': [\n\t\t'bg-thumb-neutral-weak-active',\n\t\t'stroke-interactive-neutral-active',\n\t\t'stroke-interactive-neutral-strong',\n\t],\n\t'bg-stroke2': [\n\t\t'bg-thumb-brand-disabled',\n\t\t'bg-track-neutral',\n\t\t'stroke-interactive-neutral-disabled',\n\t\t'stroke-surface-neutral',\n\t],\n\t'bg-stroke1': [ 'bg-track-neutral-weak', 'stroke-surface-neutral-weak' ],\n\t'bg-bgFillInverted2': [ 'bg-interactive-neutral-strong-active' ],\n\t'bg-bgFillInverted1': [ 'bg-interactive-neutral-strong' ],\n\t'bg-fgFillInverted': [\n\t\t'fg-interactive-neutral-strong',\n\t\t'fg-interactive-neutral-strong-active',\n\t],\n\t'bg-surface1': [ 'bg-surface-neutral-weak' ],\n\t'caution-surface2': [ 'bg-surface-caution-weak' ],\n\t'caution-surface4': [ 'bg-surface-caution' ],\n\t'caution-fgSurface4': [ 'fg-content-caution' ],\n\t'caution-fgSurface3': [ 'fg-content-caution-weak' ],\n} as Record< string, string[] >;\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|