@wordpress/theme 0.1.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/LICENSE.md +788 -0
- package/README.md +67 -0
- package/bin/build-tokens.js +83 -0
- package/bin/generate-primitive-tokens/index.ts +115 -0
- package/bin/terrazzo-plugin-ds-tokens-docs/index.ts +103 -0
- package/bin/terrazzo-plugin-figma-ds-token-manager/index.ts +210 -0
- package/bin/terrazzo-plugin-figma-ds-token-manager/lib.ts +1 -0
- package/bin/terrazzo-plugin-known-wpds-css-variables/index.ts +72 -0
- package/build/color-ramps/index.js +132 -0
- package/build/color-ramps/index.js.map +7 -0
- package/build/color-ramps/lib/cache-utils.js +57 -0
- package/build/color-ramps/lib/cache-utils.js.map +7 -0
- package/build/color-ramps/lib/constants.js +105 -0
- package/build/color-ramps/lib/constants.js.map +7 -0
- package/build/color-ramps/lib/find-color-with-constraints.js +141 -0
- package/build/color-ramps/lib/find-color-with-constraints.js.map +7 -0
- package/build/color-ramps/lib/index.js +264 -0
- package/build/color-ramps/lib/index.js.map +7 -0
- package/build/color-ramps/lib/ramp-configs.js +315 -0
- package/build/color-ramps/lib/ramp-configs.js.map +7 -0
- package/build/color-ramps/lib/taper-chroma.js +159 -0
- package/build/color-ramps/lib/taper-chroma.js.map +7 -0
- package/build/color-ramps/lib/types.js +17 -0
- package/build/color-ramps/lib/types.js.map +7 -0
- package/build/color-ramps/lib/utils.js +106 -0
- package/build/color-ramps/lib/utils.js.map +7 -0
- package/build/context.js +34 -0
- package/build/context.js.map +7 -0
- package/build/index.js +29 -0
- package/build/index.js.map +7 -0
- package/build/lock-unlock.js +35 -0
- package/build/lock-unlock.js.map +7 -0
- package/build/prebuilt/js/design-tokens.js +135 -0
- package/build/prebuilt/js/design-tokens.js.map +7 -0
- package/build/prebuilt/json/figma.json +1317 -0
- package/build/prebuilt/ts/design-tokens.js +354 -0
- package/build/prebuilt/ts/design-tokens.js.map +7 -0
- package/build/private-apis.js +36 -0
- package/build/private-apis.js.map +7 -0
- package/build/style.module.css.js +2 -0
- package/build/theme-provider.js +92 -0
- package/build/theme-provider.js.map +7 -0
- package/build/types/css-modules.d.js +2 -0
- package/build/types/css-modules.d.js.map +7 -0
- package/build/types.js +17 -0
- package/build/types.js.map +7 -0
- package/build/use-theme-provider-styles.js +230 -0
- package/build/use-theme-provider-styles.js.map +7 -0
- package/build-module/color-ramps/index.js +95 -0
- package/build-module/color-ramps/index.js.map +7 -0
- package/build-module/color-ramps/lib/cache-utils.js +31 -0
- package/build-module/color-ramps/lib/cache-utils.js.map +7 -0
- package/build-module/color-ramps/lib/constants.js +63 -0
- package/build-module/color-ramps/lib/constants.js.map +7 -0
- package/build-module/color-ramps/lib/find-color-with-constraints.js +112 -0
- package/build-module/color-ramps/lib/find-color-with-constraints.js.map +7 -0
- package/build-module/color-ramps/lib/index.js +235 -0
- package/build-module/color-ramps/lib/index.js.map +7 -0
- package/build-module/color-ramps/lib/ramp-configs.js +290 -0
- package/build-module/color-ramps/lib/ramp-configs.js.map +7 -0
- package/build-module/color-ramps/lib/taper-chroma.js +125 -0
- package/build-module/color-ramps/lib/taper-chroma.js.map +7 -0
- package/build-module/color-ramps/lib/types.js +1 -0
- package/build-module/color-ramps/lib/types.js.map +7 -0
- package/build-module/color-ramps/lib/utils.js +84 -0
- package/build-module/color-ramps/lib/utils.js.map +7 -0
- package/build-module/context.js +10 -0
- package/build-module/context.js.map +7 -0
- package/build-module/index.js +5 -0
- package/build-module/index.js.map +7 -0
- package/build-module/lock-unlock.js +10 -0
- package/build-module/lock-unlock.js.map +7 -0
- package/build-module/prebuilt/js/design-tokens.js +115 -0
- package/build-module/prebuilt/js/design-tokens.js.map +7 -0
- package/build-module/prebuilt/json/figma.json +1317 -0
- package/build-module/prebuilt/ts/design-tokens.js +334 -0
- package/build-module/prebuilt/ts/design-tokens.js.map +7 -0
- package/build-module/private-apis.js +12 -0
- package/build-module/private-apis.js.map +7 -0
- package/build-module/style.module.css.js +1 -0
- package/build-module/theme-provider.js +58 -0
- package/build-module/theme-provider.js.map +7 -0
- package/build-module/types/css-modules.d.js +1 -0
- package/build-module/types/css-modules.d.js.map +7 -0
- package/build-module/types.js +1 -0
- package/build-module/types.js.map +7 -0
- package/build-module/use-theme-provider-styles.js +200 -0
- package/build-module/use-theme-provider-styles.js.map +7 -0
- package/build-style/style.css +3 -0
- package/build-types/color-ramps/index.d.ts +44 -0
- package/build-types/color-ramps/index.d.ts.map +1 -0
- package/build-types/color-ramps/lib/cache-utils.d.ts +22 -0
- package/build-types/color-ramps/lib/cache-utils.d.ts.map +1 -0
- package/build-types/color-ramps/lib/constants.d.ts +38 -0
- package/build-types/color-ramps/lib/constants.d.ts.map +1 -0
- package/build-types/color-ramps/lib/find-color-with-constraints.d.ts +37 -0
- package/build-types/color-ramps/lib/find-color-with-constraints.d.ts.map +1 -0
- package/build-types/color-ramps/lib/index.d.ts +11 -0
- package/build-types/color-ramps/lib/index.d.ts.map +1 -0
- package/build-types/color-ramps/lib/ramp-configs.d.ts +7 -0
- package/build-types/color-ramps/lib/ramp-configs.d.ts.map +1 -0
- package/build-types/color-ramps/lib/taper-chroma.d.ts +32 -0
- package/build-types/color-ramps/lib/taper-chroma.d.ts.map +1 -0
- package/build-types/color-ramps/lib/types.d.ts +78 -0
- package/build-types/color-ramps/lib/types.d.ts.map +1 -0
- package/build-types/color-ramps/lib/utils.d.ts +38 -0
- package/build-types/color-ramps/lib/utils.d.ts.map +1 -0
- package/build-types/color-ramps/stories/index.story.d.ts +14 -0
- package/build-types/color-ramps/stories/index.story.d.ts.map +1 -0
- package/build-types/color-ramps/stories/ramp-table.d.ts +19 -0
- package/build-types/color-ramps/stories/ramp-table.d.ts.map +1 -0
- package/build-types/context.d.ts +10 -0
- package/build-types/context.d.ts.map +1 -0
- package/build-types/index.d.ts +2 -0
- package/build-types/index.d.ts.map +1 -0
- package/build-types/lock-unlock.d.ts +2 -0
- package/build-types/lock-unlock.d.ts.map +1 -0
- package/build-types/prebuilt/js/design-tokens.d.ts +3 -0
- package/build-types/prebuilt/js/design-tokens.d.ts.map +1 -0
- package/build-types/prebuilt/ts/design-tokens.d.ts +7 -0
- package/build-types/prebuilt/ts/design-tokens.d.ts.map +1 -0
- package/build-types/private-apis.d.ts +2 -0
- package/build-types/private-apis.d.ts.map +1 -0
- package/build-types/stories/index.story.d.ts +15 -0
- package/build-types/stories/index.story.d.ts.map +1 -0
- package/build-types/theme-provider.d.ts +3 -0
- package/build-types/theme-provider.d.ts.map +1 -0
- package/build-types/types.d.ts +42 -0
- package/build-types/types.d.ts.map +1 -0
- package/build-types/use-theme-provider-styles.d.ts +17 -0
- package/build-types/use-theme-provider-styles.d.ts.map +1 -0
- package/docs/ds-tokens.md +283 -0
- package/package.json +58 -0
- package/src/color-ramps/index.ts +155 -0
- package/src/color-ramps/lib/cache-utils.ts +56 -0
- package/src/color-ramps/lib/constants.ts +85 -0
- package/src/color-ramps/lib/find-color-with-constraints.ts +190 -0
- package/src/color-ramps/lib/index.ts +369 -0
- package/src/color-ramps/lib/ramp-configs.ts +309 -0
- package/src/color-ramps/lib/taper-chroma.ts +226 -0
- package/src/color-ramps/lib/types.ts +90 -0
- package/src/color-ramps/lib/utils.ts +161 -0
- package/src/color-ramps/stories/index.story.tsx +264 -0
- package/src/color-ramps/stories/ramp-table.tsx +212 -0
- package/src/color-ramps/test/__snapshots__/index.test.ts.snap +1280 -0
- package/src/color-ramps/test/index.test.ts +94 -0
- package/src/context.ts +19 -0
- package/src/index.ts +2 -0
- package/src/lock-unlock.ts +10 -0
- package/src/prebuilt/css/design-tokens.css +401 -0
- package/src/prebuilt/js/design-tokens.js +116 -0
- package/src/prebuilt/json/figma.json +1317 -0
- package/src/prebuilt/ts/design-tokens.ts +335 -0
- package/src/private-apis.ts +12 -0
- package/src/stories/index.story.tsx +426 -0
- package/src/style.module.css +3 -0
- package/src/theme-provider.tsx +87 -0
- package/src/types/css-modules.d.ts +4 -0
- package/src/types.ts +44 -0
- package/src/use-theme-provider-styles.ts +247 -0
- package/terrazzo.config.ts +102 -0
- package/tokens/border.json +34 -0
- package/tokens/color.json +877 -0
- package/tokens/elevation.json +201 -0
- package/tokens/spacing.json +45 -0
- package/tokens/typography.json +93 -0
- package/tsconfig.json +9 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
// Not sure why ESLint is erroring.
|
|
5
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
6
|
+
import Color from 'colorjs.io';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Internal dependencies
|
|
10
|
+
*/
|
|
11
|
+
import { buildRamp } from '../lib';
|
|
12
|
+
import { BG_RAMP_CONFIG, ACCENT_RAMP_CONFIG } from '../lib/ramp-configs';
|
|
13
|
+
import { DEFAULT_SEED_COLORS } from '../lib/constants';
|
|
14
|
+
|
|
15
|
+
describe( 'buildRamps', () => {
|
|
16
|
+
it( 'background ramp snapshots', () => {
|
|
17
|
+
// Representative sample covering edge cases and various hue/saturation/lightness combinations
|
|
18
|
+
const allBgColors = [
|
|
19
|
+
'hsl(0deg 0% 30%)', // Dark gray (desaturated)
|
|
20
|
+
'hsl(120deg 50% 60%)', // Mid-range green
|
|
21
|
+
'hsl(240deg 100% 30%)', // Dark saturated blue
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
expect(
|
|
25
|
+
allBgColors.map( ( bg ) => {
|
|
26
|
+
const ramp = buildRamp( bg, BG_RAMP_CONFIG );
|
|
27
|
+
const seedOriginal = new Color( bg )
|
|
28
|
+
.to( 'srgb' )
|
|
29
|
+
.toString( { format: 'hex', inGamut: true } );
|
|
30
|
+
const seedComputed = new Color( ramp.ramp.surface2.color )
|
|
31
|
+
.to( 'srgb' )
|
|
32
|
+
.toString( { format: 'hex', inGamut: true } );
|
|
33
|
+
|
|
34
|
+
return {
|
|
35
|
+
input: {
|
|
36
|
+
seedOriginal,
|
|
37
|
+
seedComputed,
|
|
38
|
+
seedUnchanged: seedOriginal === seedComputed,
|
|
39
|
+
},
|
|
40
|
+
output: ramp,
|
|
41
|
+
};
|
|
42
|
+
} )
|
|
43
|
+
).toMatchSnapshot();
|
|
44
|
+
} );
|
|
45
|
+
|
|
46
|
+
it( 'accent ramp snapshots', () => {
|
|
47
|
+
// Representative sample covering key option combinations
|
|
48
|
+
const options = [
|
|
49
|
+
{
|
|
50
|
+
pinLightness: { stepName: 'surface2', value: 0 },
|
|
51
|
+
mainDirection: 'lighter',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
pinLightness: { stepName: 'surface2', value: 0.5 },
|
|
55
|
+
mainDirection: 'lighter',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
pinLightness: { stepName: 'surface2', value: 1 },
|
|
59
|
+
mainDirection: 'darker',
|
|
60
|
+
},
|
|
61
|
+
] as const;
|
|
62
|
+
|
|
63
|
+
// Representative sample covering different hue ranges and saturation levels
|
|
64
|
+
const allPrimaryColors = [
|
|
65
|
+
DEFAULT_SEED_COLORS.primary, // WP blue (mid saturation)
|
|
66
|
+
DEFAULT_SEED_COLORS.error, // WP error red (saturated)
|
|
67
|
+
'#c7a589', // WP Admin "coffee" theme accent (desaturated/beige)
|
|
68
|
+
];
|
|
69
|
+
|
|
70
|
+
expect(
|
|
71
|
+
allPrimaryColors.map( ( primary ) =>
|
|
72
|
+
options.map( ( o ) => {
|
|
73
|
+
const ramp = buildRamp( primary, ACCENT_RAMP_CONFIG, o );
|
|
74
|
+
const seedOriginal = new Color( primary )
|
|
75
|
+
.to( 'srgb' )
|
|
76
|
+
.toString( { format: 'hex', inGamut: true } );
|
|
77
|
+
const seedComputed = new Color( ramp.ramp.bgFill1.color )
|
|
78
|
+
.to( 'srgb' )
|
|
79
|
+
.toString( { format: 'hex', inGamut: true } );
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
input: {
|
|
83
|
+
seedOriginal,
|
|
84
|
+
seedComputed,
|
|
85
|
+
seedUnchanged: seedOriginal === seedComputed,
|
|
86
|
+
bgInfo: o,
|
|
87
|
+
},
|
|
88
|
+
output: ramp,
|
|
89
|
+
};
|
|
90
|
+
} )
|
|
91
|
+
)
|
|
92
|
+
).toMatchSnapshot();
|
|
93
|
+
} );
|
|
94
|
+
} );
|
package/src/context.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { createContext } from '@wordpress/element';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Internal dependencies
|
|
8
|
+
*/
|
|
9
|
+
import type { ThemeProviderSettings } from './types';
|
|
10
|
+
|
|
11
|
+
interface ThemeContextType {
|
|
12
|
+
resolvedSettings: ThemeProviderSettings;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const ThemeContext = createContext< ThemeContextType >( {
|
|
16
|
+
resolvedSettings: {
|
|
17
|
+
color: {},
|
|
18
|
+
},
|
|
19
|
+
} );
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';
|
|
5
|
+
|
|
6
|
+
export const { lock, unlock } =
|
|
7
|
+
__dangerousOptInToUnstableAPIsOnlyForCoreModules(
|
|
8
|
+
'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.',
|
|
9
|
+
'@wordpress/theme'
|
|
10
|
+
);
|
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
/* -------------------------------------------
|
|
2
|
+
* Autogenerated by ⛋ Terrazzo. DO NOT EDIT!
|
|
3
|
+
* ------------------------------------------- */
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--wpds-border-radius-large: 8px; /* Large radius */
|
|
7
|
+
--wpds-border-radius-medium: 4px; /* Medium radius */
|
|
8
|
+
--wpds-border-radius-small: 2px; /* Small radius */
|
|
9
|
+
--wpds-border-radius-x-small: 1px; /* Extra small radius */
|
|
10
|
+
--wpds-border-width-focus: 2px; /* Border width for focus ring */
|
|
11
|
+
--wpds-color-bg-interactive-brand: #00000000; /* Background color for interactive elements with brand tone and normal emphasis. */
|
|
12
|
+
--wpds-color-bg-interactive-brand-active: var(
|
|
13
|
+
--wpds-color-private-primary-surface2
|
|
14
|
+
); /* Background color for interactive elements with brand tone and normal emphasis that are hovered, focused, or active. */
|
|
15
|
+
--wpds-color-bg-interactive-brand-disabled: var(
|
|
16
|
+
--wpds-color-private-bg-surface5
|
|
17
|
+
); /* Background color for interactive elements with brand tone and normal emphasis, in their disabled state. */
|
|
18
|
+
--wpds-color-bg-interactive-brand-strong: var(
|
|
19
|
+
--wpds-color-private-primary-bg-fill1
|
|
20
|
+
); /* Background color for interactive elements with brand tone and strong emphasis. */
|
|
21
|
+
--wpds-color-bg-interactive-brand-strong-active: var(
|
|
22
|
+
--wpds-color-private-primary-bg-fill2
|
|
23
|
+
); /* Background color for interactive elements with brand tone and strong emphasis that are hovered, focused, or active. */
|
|
24
|
+
--wpds-color-bg-interactive-brand-strong-disabled: var(
|
|
25
|
+
--wpds-color-private-bg-surface6
|
|
26
|
+
); /* Background color for interactive elements with brand tone and strong emphasis, in their disabled state. */
|
|
27
|
+
--wpds-color-bg-interactive-brand-weak: #00000000; /* Background color for interactive elements with brand tone and weak emphasis. */
|
|
28
|
+
--wpds-color-bg-interactive-brand-weak-active: var(
|
|
29
|
+
--wpds-color-private-primary-surface4
|
|
30
|
+
); /* Background color for interactive elements with brand tone and weak emphasis that are hovered, focused, or active. */
|
|
31
|
+
--wpds-color-bg-interactive-brand-weak-disabled: var(
|
|
32
|
+
--wpds-color-private-bg-surface5
|
|
33
|
+
); /* Background color for interactive elements with brand tone and weak emphasis, in their disabled state. */
|
|
34
|
+
--wpds-color-bg-interactive-neutral: #00000000; /* Background color for interactive elements with neutral tone and normal emphasis. */
|
|
35
|
+
--wpds-color-bg-interactive-neutral-active: var(
|
|
36
|
+
--wpds-color-private-bg-surface4
|
|
37
|
+
); /* Background color for interactive elements with neutral tone and normal emphasis that are hovered, focused, or active. */
|
|
38
|
+
--wpds-color-bg-interactive-neutral-disabled: var(
|
|
39
|
+
--wpds-color-private-bg-surface5
|
|
40
|
+
); /* Background color for interactive elements with neutral tone and normal emphasis, in their disabled state. */
|
|
41
|
+
--wpds-color-bg-interactive-neutral-strong: var(
|
|
42
|
+
--wpds-color-private-bg-bg-fill-inverted1
|
|
43
|
+
); /* Background color for interactive elements with neutral tone and strong emphasis. */
|
|
44
|
+
--wpds-color-bg-interactive-neutral-strong-active: var(
|
|
45
|
+
--wpds-color-private-bg-bg-fill-inverted2
|
|
46
|
+
); /* Background color for interactive elements with neutral tone and strong emphasis that are hovered, focused, or active. */
|
|
47
|
+
--wpds-color-bg-interactive-neutral-strong-disabled: var(
|
|
48
|
+
--wpds-color-private-bg-surface6
|
|
49
|
+
); /* Background color for interactive elements with neutral tone and strong emphasis, in their disabled state. */
|
|
50
|
+
--wpds-color-bg-interactive-neutral-weak: #00000000; /* Background color for interactive elements with neutral tone and weak emphasis. */
|
|
51
|
+
--wpds-color-bg-interactive-neutral-weak-active: var(
|
|
52
|
+
--wpds-color-private-bg-surface4
|
|
53
|
+
); /* Background color for interactive elements with neutral tone and weak emphasis that are hovered, focused, or active. */
|
|
54
|
+
--wpds-color-bg-interactive-neutral-weak-disabled: var(
|
|
55
|
+
--wpds-color-private-bg-surface5
|
|
56
|
+
); /* Background color for interactive elements with neutral tone and weak emphasis, in their disabled state. */
|
|
57
|
+
--wpds-color-bg-surface-brand: var(
|
|
58
|
+
--wpds-color-private-primary-surface1
|
|
59
|
+
); /* Background color for surfaces with brand tone and normal emphasis. */
|
|
60
|
+
--wpds-color-bg-surface-error: var(
|
|
61
|
+
--wpds-color-private-error-surface4
|
|
62
|
+
); /* Background color for surfaces with error tone and normal emphasis. */
|
|
63
|
+
--wpds-color-bg-surface-error-weak: var(
|
|
64
|
+
--wpds-color-private-error-surface2
|
|
65
|
+
); /* Background color for surfaces with error tone and weak emphasis. */
|
|
66
|
+
--wpds-color-bg-surface-info: var(
|
|
67
|
+
--wpds-color-private-info-surface4
|
|
68
|
+
); /* Background color for surfaces with info tone and normal emphasis. */
|
|
69
|
+
--wpds-color-bg-surface-info-weak: var(
|
|
70
|
+
--wpds-color-private-info-surface2
|
|
71
|
+
); /* Background color for surfaces with info tone and weak emphasis. */
|
|
72
|
+
--wpds-color-bg-surface-neutral: var(
|
|
73
|
+
--wpds-color-private-bg-surface2
|
|
74
|
+
); /* Background color for surfaces with normal emphasis. */
|
|
75
|
+
--wpds-color-bg-surface-neutral-strong: var(
|
|
76
|
+
--wpds-color-private-bg-surface3
|
|
77
|
+
); /* Background color for surfaces with strong emphasis. */
|
|
78
|
+
--wpds-color-bg-surface-neutral-weak: var(
|
|
79
|
+
--wpds-color-private-bg-surface1
|
|
80
|
+
); /* Background color for surfaces with weak emphasis. */
|
|
81
|
+
--wpds-color-bg-surface-success: var(
|
|
82
|
+
--wpds-color-private-success-surface4
|
|
83
|
+
); /* Background color for surfaces with success tone and normal emphasis. */
|
|
84
|
+
--wpds-color-bg-surface-success-weak: var(
|
|
85
|
+
--wpds-color-private-success-surface2
|
|
86
|
+
); /* Background color for surfaces with success tone and weak emphasis. */
|
|
87
|
+
--wpds-color-bg-surface-warning: var(
|
|
88
|
+
--wpds-color-private-warning-surface4
|
|
89
|
+
); /* Background color for surfaces with warning tone and normal emphasis. */
|
|
90
|
+
--wpds-color-bg-surface-warning-weak: var(
|
|
91
|
+
--wpds-color-private-warning-surface2
|
|
92
|
+
); /* Background color for surfaces with warning tone and weak emphasis. */
|
|
93
|
+
--wpds-color-bg-thumb-brand: var(
|
|
94
|
+
--wpds-color-private-primary-stroke3
|
|
95
|
+
); /* Background color for thumbs with a brand tone and normal emphasis (eg. slider thumb and filled track). */
|
|
96
|
+
--wpds-color-bg-thumb-brand-active: var(
|
|
97
|
+
--wpds-color-private-primary-stroke3
|
|
98
|
+
); /* Background color for thumbs with a brand tone and normal emphasis (eg. slider thumb and filled track) that are hovered, focused, or active. */
|
|
99
|
+
--wpds-color-bg-thumb-brand-disabled: var(
|
|
100
|
+
--wpds-color-private-bg-stroke2
|
|
101
|
+
); /* Background color for thumbs with a brand tone and normal emphasis (eg. slider thumb and filled track), in their disabled state. */
|
|
102
|
+
--wpds-color-bg-thumb-neutral-weak: var(
|
|
103
|
+
--wpds-color-private-bg-stroke3
|
|
104
|
+
); /* Background color for thumbs with a neutral tone and weak emphasis (eg. scrollbar thumb). */
|
|
105
|
+
--wpds-color-bg-thumb-neutral-weak-active: var(
|
|
106
|
+
--wpds-color-private-bg-stroke4
|
|
107
|
+
); /* Background color for thumbs with a neutral tone and weak emphasis (eg. scrollbar thumb) that are hovered, focused, or active. */
|
|
108
|
+
--wpds-color-bg-track-neutral: var(
|
|
109
|
+
--wpds-color-private-bg-stroke2
|
|
110
|
+
); /* Background color for tracks with a neutral tone and normal emphasis (eg. slider or progressbar track). */
|
|
111
|
+
--wpds-color-bg-track-neutral-weak: var(
|
|
112
|
+
--wpds-color-private-bg-stroke1
|
|
113
|
+
); /* Background color for tracks with a neutral tone and weak emphasis (eg. scrollbar track). */
|
|
114
|
+
--wpds-color-fg-content-neutral: var(
|
|
115
|
+
--wpds-color-private-bg-fg-surface4
|
|
116
|
+
); /* Foreground color for content like text with normal emphasis. */
|
|
117
|
+
--wpds-color-fg-content-neutral-weak: var(
|
|
118
|
+
--wpds-color-private-bg-fg-surface3
|
|
119
|
+
); /* Foreground color for content like text with weak emphasis. */
|
|
120
|
+
--wpds-color-fg-interactive-brand: var(
|
|
121
|
+
--wpds-color-private-primary-fg-surface3
|
|
122
|
+
); /* Foreground color for interactive elements with brand tone and normal emphasis. */
|
|
123
|
+
--wpds-color-fg-interactive-brand-active: var(
|
|
124
|
+
--wpds-color-private-primary-fg-surface3
|
|
125
|
+
); /* Foreground color for interactive elements with brand tone and normal emphasis that are hovered, focused, or active. */
|
|
126
|
+
--wpds-color-fg-interactive-brand-disabled: var(
|
|
127
|
+
--wpds-color-private-bg-fg-surface2
|
|
128
|
+
); /* Foreground color for interactive elements with brand tone and normal emphasis, in their disabled state. */
|
|
129
|
+
--wpds-color-fg-interactive-brand-strong: var(
|
|
130
|
+
--wpds-color-private-primary-fg-fill
|
|
131
|
+
); /* Foreground color for interactive elements with brand tone and strong emphasis. */
|
|
132
|
+
--wpds-color-fg-interactive-brand-strong-active: var(
|
|
133
|
+
--wpds-color-private-primary-fg-fill
|
|
134
|
+
); /* Foreground color for interactive elements with brand tone and strong emphasis that are hovered, focused, or active. */
|
|
135
|
+
--wpds-color-fg-interactive-brand-strong-disabled: var(
|
|
136
|
+
--wpds-color-private-bg-fg-surface3
|
|
137
|
+
); /* Foreground color for interactive elements with brand tone and strong emphasis, in their disabled state. */
|
|
138
|
+
--wpds-color-fg-interactive-neutral: var(
|
|
139
|
+
--wpds-color-private-bg-fg-surface4
|
|
140
|
+
); /* Foreground color for interactive elements with neutral tone and normal emphasis. */
|
|
141
|
+
--wpds-color-fg-interactive-neutral-active: var(
|
|
142
|
+
--wpds-color-private-bg-fg-surface4
|
|
143
|
+
); /* Foreground color for interactive elements with neutral tone and normal emphasis that are hovered, focused, or active. */
|
|
144
|
+
--wpds-color-fg-interactive-neutral-disabled: var(
|
|
145
|
+
--wpds-color-private-bg-fg-surface2
|
|
146
|
+
); /* Foreground color for interactive elements with neutral tone and normal emphasis, in their disabled state. */
|
|
147
|
+
--wpds-color-fg-interactive-neutral-strong: var(
|
|
148
|
+
--wpds-color-private-bg-fg-fill-inverted
|
|
149
|
+
); /* Foreground color for interactive elements with neutral tone and strong emphasis. */
|
|
150
|
+
--wpds-color-fg-interactive-neutral-strong-active: var(
|
|
151
|
+
--wpds-color-private-bg-fg-fill-inverted
|
|
152
|
+
); /* Foreground color for interactive elements with neutral tone and strong emphasis that are hovered, focused, or active. */
|
|
153
|
+
--wpds-color-fg-interactive-neutral-strong-disabled: var(
|
|
154
|
+
--wpds-color-private-bg-fg-surface3
|
|
155
|
+
); /* Foreground color for interactive elements with neutral tone and strong emphasis, in their disabled state. */
|
|
156
|
+
--wpds-color-fg-interactive-neutral-weak: var(
|
|
157
|
+
--wpds-color-private-bg-fg-surface3
|
|
158
|
+
); /* Foreground color for interactive elements with neutral tone and weak emphasis. */
|
|
159
|
+
--wpds-color-fg-interactive-neutral-weak-disabled: var(
|
|
160
|
+
--wpds-color-private-bg-fg-surface2
|
|
161
|
+
); /* Foreground color for interactive elements with neutral tone and weak emphasis, in their disabled state. */
|
|
162
|
+
--wpds-color-private-bg-bg-fill-dark: #1e1e1e;
|
|
163
|
+
--wpds-color-private-bg-bg-fill-inverted1: #2f2f2f;
|
|
164
|
+
--wpds-color-private-bg-bg-fill-inverted2: #1e1e1e;
|
|
165
|
+
--wpds-color-private-bg-bg-fill1: #555555;
|
|
166
|
+
--wpds-color-private-bg-bg-fill2: #474747;
|
|
167
|
+
--wpds-color-private-bg-fg-fill: #f0f0f0;
|
|
168
|
+
--wpds-color-private-bg-fg-fill-dark: #f0f0f0;
|
|
169
|
+
--wpds-color-private-bg-fg-fill-inverted: #f0f0f0;
|
|
170
|
+
--wpds-color-private-bg-fg-surface1: #a9a9a9;
|
|
171
|
+
--wpds-color-private-bg-fg-surface2: #898989;
|
|
172
|
+
--wpds-color-private-bg-fg-surface3: #6c6c6c;
|
|
173
|
+
--wpds-color-private-bg-fg-surface4: #1e1e1e;
|
|
174
|
+
--wpds-color-private-bg-stroke1: #d0d0d0;
|
|
175
|
+
--wpds-color-private-bg-stroke2: #aeaeae;
|
|
176
|
+
--wpds-color-private-bg-stroke3: #898989;
|
|
177
|
+
--wpds-color-private-bg-stroke4: #6a6a6a;
|
|
178
|
+
--wpds-color-private-bg-surface1: #efefef;
|
|
179
|
+
--wpds-color-private-bg-surface2: #f8f8f8;
|
|
180
|
+
--wpds-color-private-bg-surface3: #ffffff;
|
|
181
|
+
--wpds-color-private-bg-surface4: #eaeaea;
|
|
182
|
+
--wpds-color-private-bg-surface5: #dfdfdf;
|
|
183
|
+
--wpds-color-private-bg-surface6: #d0d0d0;
|
|
184
|
+
--wpds-color-private-error-bg-fill-dark: #231c1b;
|
|
185
|
+
--wpds-color-private-error-bg-fill-inverted1: #6d0000;
|
|
186
|
+
--wpds-color-private-error-bg-fill-inverted2: #231c1b;
|
|
187
|
+
--wpds-color-private-error-bg-fill1: #cc1818;
|
|
188
|
+
--wpds-color-private-error-bg-fill2: #b90000;
|
|
189
|
+
--wpds-color-private-error-fg-fill: #f2efef;
|
|
190
|
+
--wpds-color-private-error-fg-fill-dark: #f2efef;
|
|
191
|
+
--wpds-color-private-error-fg-fill-inverted: #f2efef;
|
|
192
|
+
--wpds-color-private-error-fg-surface1: #ff8070;
|
|
193
|
+
--wpds-color-private-error-fg-surface2: #f64b40;
|
|
194
|
+
--wpds-color-private-error-fg-surface3: #cc1818;
|
|
195
|
+
--wpds-color-private-error-fg-surface4: #4a0000;
|
|
196
|
+
--wpds-color-private-error-stroke1: #dc9085;
|
|
197
|
+
--wpds-color-private-error-stroke2: #cd695d;
|
|
198
|
+
--wpds-color-private-error-stroke3: #cc1818;
|
|
199
|
+
--wpds-color-private-error-stroke4: #a30000;
|
|
200
|
+
--wpds-color-private-error-surface1: #fcedea;
|
|
201
|
+
--wpds-color-private-error-surface2: #fdf6f5;
|
|
202
|
+
--wpds-color-private-error-surface3: #ffffff;
|
|
203
|
+
--wpds-color-private-error-surface4: #fae5e2;
|
|
204
|
+
--wpds-color-private-error-surface5: #f8d8d3;
|
|
205
|
+
--wpds-color-private-error-surface6: #f5c5bd;
|
|
206
|
+
--wpds-color-private-info-bg-fill-dark: #1b1e23;
|
|
207
|
+
--wpds-color-private-info-bg-fill-inverted1: #00297b;
|
|
208
|
+
--wpds-color-private-info-bg-fill-inverted2: #1b1e23;
|
|
209
|
+
--wpds-color-private-info-bg-fill1: #0090ff;
|
|
210
|
+
--wpds-color-private-info-bg-fill2: #007eec;
|
|
211
|
+
--wpds-color-private-info-fg-fill: #1b1e23;
|
|
212
|
+
--wpds-color-private-info-fg-fill-dark: #eff0f2;
|
|
213
|
+
--wpds-color-private-info-fg-fill-inverted: #eff0f2;
|
|
214
|
+
--wpds-color-private-info-fg-surface1: #4dafff;
|
|
215
|
+
--wpds-color-private-info-fg-surface2: #008bf9;
|
|
216
|
+
--wpds-color-private-info-fg-surface3: #006cd8;
|
|
217
|
+
--wpds-color-private-info-fg-surface4: #001758;
|
|
218
|
+
--wpds-color-private-info-stroke1: #8baed6;
|
|
219
|
+
--wpds-color-private-info-stroke2: #5c90c9;
|
|
220
|
+
--wpds-color-private-info-stroke3: #006cd8;
|
|
221
|
+
--wpds-color-private-info-stroke4: #004bb5;
|
|
222
|
+
--wpds-color-private-info-surface1: #e9f1fa;
|
|
223
|
+
--wpds-color-private-info-surface2: #f5f9fd;
|
|
224
|
+
--wpds-color-private-info-surface3: #ffffff;
|
|
225
|
+
--wpds-color-private-info-surface4: #e0ecf8;
|
|
226
|
+
--wpds-color-private-info-surface5: #d0e1f5;
|
|
227
|
+
--wpds-color-private-info-surface6: #b9d3f0;
|
|
228
|
+
--wpds-color-private-primary-bg-fill-dark: #1b1e26;
|
|
229
|
+
--wpds-color-private-primary-bg-fill-inverted1: #1401a5;
|
|
230
|
+
--wpds-color-private-primary-bg-fill-inverted2: #1b1e26;
|
|
231
|
+
--wpds-color-private-primary-bg-fill1: #3858e9;
|
|
232
|
+
--wpds-color-private-primary-bg-fill2: #2c47d7;
|
|
233
|
+
--wpds-color-private-primary-fg-fill: #eff0f2;
|
|
234
|
+
--wpds-color-private-primary-fg-fill-dark: #eff0f2;
|
|
235
|
+
--wpds-color-private-primary-fg-fill-inverted: #eff0f2;
|
|
236
|
+
--wpds-color-private-primary-fg-surface1: #81a6ff;
|
|
237
|
+
--wpds-color-private-primary-fg-surface2: #577fff;
|
|
238
|
+
--wpds-color-private-primary-fg-surface3: #3858e9;
|
|
239
|
+
--wpds-color-private-primary-fg-surface4: #080071;
|
|
240
|
+
--wpds-color-private-primary-stroke1: #93a4d0;
|
|
241
|
+
--wpds-color-private-primary-stroke2: #7085c0;
|
|
242
|
+
--wpds-color-private-primary-stroke3: #3858e9;
|
|
243
|
+
--wpds-color-private-primary-stroke4: #2236c7;
|
|
244
|
+
--wpds-color-private-primary-surface1: #ecf0f9;
|
|
245
|
+
--wpds-color-private-primary-surface2: #f6f8fc;
|
|
246
|
+
--wpds-color-private-primary-surface3: #ffffff;
|
|
247
|
+
--wpds-color-private-primary-surface4: #e5eaf7;
|
|
248
|
+
--wpds-color-private-primary-surface5: #d7dff3;
|
|
249
|
+
--wpds-color-private-primary-surface6: #c4d0ee;
|
|
250
|
+
--wpds-color-private-success-bg-fill-dark: #1b1f1c;
|
|
251
|
+
--wpds-color-private-success-bg-fill-inverted1: #003b00;
|
|
252
|
+
--wpds-color-private-success-bg-fill-inverted2: #1b1f1c;
|
|
253
|
+
--wpds-color-private-success-bg-fill1: #4ab866;
|
|
254
|
+
--wpds-color-private-success-bg-fill2: #34a554;
|
|
255
|
+
--wpds-color-private-success-fg-fill: #1b1f1c;
|
|
256
|
+
--wpds-color-private-success-fg-fill-dark: #edf2ed;
|
|
257
|
+
--wpds-color-private-success-fg-fill-inverted: #edf2ed;
|
|
258
|
+
--wpds-color-private-success-fg-surface1: #52bf6d;
|
|
259
|
+
--wpds-color-private-success-fg-surface2: #2a9e4d;
|
|
260
|
+
--wpds-color-private-success-fg-surface3: #008030;
|
|
261
|
+
--wpds-color-private-success-fg-surface4: #002b00;
|
|
262
|
+
--wpds-color-private-success-stroke1: #78bb84;
|
|
263
|
+
--wpds-color-private-success-stroke2: #629a6c;
|
|
264
|
+
--wpds-color-private-success-stroke3: #008030;
|
|
265
|
+
--wpds-color-private-success-stroke4: #006013;
|
|
266
|
+
--wpds-color-private-success-surface1: #ddf8e1;
|
|
267
|
+
--wpds-color-private-success-surface2: #f0fcf2;
|
|
268
|
+
--wpds-color-private-success-surface3: #ffffff;
|
|
269
|
+
--wpds-color-private-success-surface4: #cdf5d2;
|
|
270
|
+
--wpds-color-private-success-surface5: #abf0b7;
|
|
271
|
+
--wpds-color-private-success-surface6: #7be792;
|
|
272
|
+
--wpds-color-private-warning-bg-fill-dark: #1f1e1b;
|
|
273
|
+
--wpds-color-private-warning-bg-fill-inverted1: #472900;
|
|
274
|
+
--wpds-color-private-warning-bg-fill-inverted2: #1f1e1b;
|
|
275
|
+
--wpds-color-private-warning-bg-fill1: #f0b849;
|
|
276
|
+
--wpds-color-private-warning-bg-fill2: #dba32f;
|
|
277
|
+
--wpds-color-private-warning-fg-fill: #1f1e1b;
|
|
278
|
+
--wpds-color-private-warning-fg-fill-dark: #f3f0e9;
|
|
279
|
+
--wpds-color-private-warning-fg-fill-inverted: #f3f0e9;
|
|
280
|
+
--wpds-color-private-warning-fg-surface1: #d7a02b;
|
|
281
|
+
--wpds-color-private-warning-fg-surface2: #b58000;
|
|
282
|
+
--wpds-color-private-warning-fg-surface3: #966200;
|
|
283
|
+
--wpds-color-private-warning-fg-surface4: #2f1800;
|
|
284
|
+
--wpds-color-private-warning-stroke1: #c3a777;
|
|
285
|
+
--wpds-color-private-warning-stroke2: #a18a61;
|
|
286
|
+
--wpds-color-private-warning-stroke3: #966200;
|
|
287
|
+
--wpds-color-private-warning-stroke4: #724700;
|
|
288
|
+
--wpds-color-private-warning-surface1: #faefdc;
|
|
289
|
+
--wpds-color-private-warning-surface2: #fdf7ee;
|
|
290
|
+
--wpds-color-private-warning-surface3: #ffffff;
|
|
291
|
+
--wpds-color-private-warning-surface4: #f8e8cd;
|
|
292
|
+
--wpds-color-private-warning-surface5: #f5dcb2;
|
|
293
|
+
--wpds-color-private-warning-surface6: #f0cb89;
|
|
294
|
+
--wpds-color-stroke-focus-brand: var(
|
|
295
|
+
--wpds-color-private-primary-stroke3
|
|
296
|
+
); /* Accessible stroke color applied to focus rings. */
|
|
297
|
+
--wpds-color-stroke-interactive-brand: var(
|
|
298
|
+
--wpds-color-private-primary-stroke3
|
|
299
|
+
); /* Accessible stroke color used for interactive brand-toned elements with normal emphasis. */
|
|
300
|
+
--wpds-color-stroke-interactive-brand-active: var(
|
|
301
|
+
--wpds-color-private-primary-stroke4
|
|
302
|
+
); /* Accessible stroke color used for interactive brand-toned elements with normal emphasis that are hovered, focused, or active. */
|
|
303
|
+
--wpds-color-stroke-interactive-brand-disabled: var(
|
|
304
|
+
--wpds-color-private-bg-stroke2
|
|
305
|
+
); /* Accessible stroke color used for interactive brand-toned elements with normal emphasis, in their disabled state. */
|
|
306
|
+
--wpds-color-stroke-interactive-error-strong: var(
|
|
307
|
+
--wpds-color-private-error-stroke3
|
|
308
|
+
); /* Accessible stroke color used for interactive error-toned elements with strong emphasis. */
|
|
309
|
+
--wpds-color-stroke-interactive-neutral: var(
|
|
310
|
+
--wpds-color-private-bg-stroke3
|
|
311
|
+
); /* Accessible stroke color used for interactive neutrally-toned elements with normal emphasis. */
|
|
312
|
+
--wpds-color-stroke-interactive-neutral-active: var(
|
|
313
|
+
--wpds-color-private-bg-stroke4
|
|
314
|
+
); /* Accessible stroke color used for interactive neutrally-toned elements with normal emphasis that are hovered, focused, or active. */
|
|
315
|
+
--wpds-color-stroke-interactive-neutral-disabled: var(
|
|
316
|
+
--wpds-color-private-bg-stroke2
|
|
317
|
+
); /* Accessible stroke color used for interactive neutrally-toned elements with normal emphasis, in their disabled state. */
|
|
318
|
+
--wpds-color-stroke-interactive-neutral-strong: var(
|
|
319
|
+
--wpds-color-private-bg-stroke4
|
|
320
|
+
); /* Accessible stroke color used for interactive neutrally-toned elements with strong emphasis. */
|
|
321
|
+
--wpds-color-stroke-surface-brand: var(
|
|
322
|
+
--wpds-color-private-primary-stroke1
|
|
323
|
+
); /* Decorative stroke color used to define brand-toned surface boundaries with normal emphasis. */
|
|
324
|
+
--wpds-color-stroke-surface-brand-strong: var(
|
|
325
|
+
--wpds-color-private-primary-stroke3
|
|
326
|
+
); /* Decorative stroke color used to define neutrally-toned surface boundaries with strong emphasis. */
|
|
327
|
+
--wpds-color-stroke-surface-error: var(
|
|
328
|
+
--wpds-color-private-error-stroke1
|
|
329
|
+
); /* Decorative stroke color used to define error-toned surface boundaries with normal emphasis. */
|
|
330
|
+
--wpds-color-stroke-surface-error-strong: var(
|
|
331
|
+
--wpds-color-private-error-stroke3
|
|
332
|
+
); /* Decorative stroke color used to define error-toned surface boundaries with strong emphasis. */
|
|
333
|
+
--wpds-color-stroke-surface-info: var(
|
|
334
|
+
--wpds-color-private-info-stroke1
|
|
335
|
+
); /* Decorative stroke color used to define info-toned surface boundaries with normal emphasis. */
|
|
336
|
+
--wpds-color-stroke-surface-info-strong: var(
|
|
337
|
+
--wpds-color-private-info-stroke3
|
|
338
|
+
); /* Decorative stroke color used to define info-toned surface boundaries with strong emphasis. */
|
|
339
|
+
--wpds-color-stroke-surface-neutral: var(
|
|
340
|
+
--wpds-color-private-bg-stroke2
|
|
341
|
+
); /* Decorative stroke color used to define neutrally-toned surface boundaries with normal emphasis. */
|
|
342
|
+
--wpds-color-stroke-surface-neutral-strong: var(
|
|
343
|
+
--wpds-color-private-bg-stroke3
|
|
344
|
+
); /* Decorative stroke color used to define neutrally-toned surface boundaries with strong emphasis. */
|
|
345
|
+
--wpds-color-stroke-surface-neutral-weak: var(
|
|
346
|
+
--wpds-color-private-bg-stroke1
|
|
347
|
+
); /* Decorative stroke color used to define neutrally-toned surface boundaries with weak emphasis. */
|
|
348
|
+
--wpds-color-stroke-surface-success: var(
|
|
349
|
+
--wpds-color-private-success-stroke1
|
|
350
|
+
); /* Decorative stroke color used to define success-toned surface boundaries with normal emphasis. */
|
|
351
|
+
--wpds-color-stroke-surface-success-strong: var(
|
|
352
|
+
--wpds-color-private-success-stroke3
|
|
353
|
+
); /* Decorative stroke color used to define success-toned surface boundaries with strong emphasis. */
|
|
354
|
+
--wpds-color-stroke-surface-warning: var(
|
|
355
|
+
--wpds-color-private-warning-stroke1
|
|
356
|
+
); /* Decorative stroke color used to define warning-toned surface boundaries with normal emphasis. */
|
|
357
|
+
--wpds-color-stroke-surface-warning-strong: var(
|
|
358
|
+
--wpds-color-private-warning-stroke3
|
|
359
|
+
); /* Decorative stroke color used to define warning-toned surface boundaries with strong emphasis. */
|
|
360
|
+
--wpds-elevation-large: 0 5px 15px 0 #00000014, 0 15px 27px 0 #00000012,
|
|
361
|
+
0 30px 36px 0 #0000000a, 0 50px 43px 0 #00000005; /* For components that confirm decisions or handle necessary interruptions. Example: Modals. */
|
|
362
|
+
--wpds-elevation-medium: 0 2px 3px 0 #0000000d, 0 4px 5px 0 #0000000a,
|
|
363
|
+
0 12px 12px 0 #00000008, 0 16px 16px 0 #00000005; /* For components that offer additional actions. Example: Menus, Command Palette */
|
|
364
|
+
--wpds-elevation-small: 0 1px 2px 0 #0000000d, 0 2px 3px 0 #0000000a,
|
|
365
|
+
0 6px 6px 0 #00000008, 0 8px 8px 0 #00000005; /* For components that provide contextual feedback without being intrusive. Generally non-interruptive. Example: Tooltips, Snackbar. */
|
|
366
|
+
--wpds-elevation-x-small: 0 1px 1px 0 #00000008, 0 1px 2px 0 #00000005,
|
|
367
|
+
0 3px 3px 0 #00000005, 0 4px 4px 0 #00000003; /* For sections and containers that group related content and controls, which may overlap other content. Example: Preview Frame. */
|
|
368
|
+
--wpds-font-family-body: -apple-system, system-ui, 'Segoe UI', 'Roboto',
|
|
369
|
+
'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif; /* Body font family */
|
|
370
|
+
--wpds-font-family-heading: -apple-system, system-ui, 'Segoe UI', 'Roboto',
|
|
371
|
+
'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif; /* Headings font family */
|
|
372
|
+
--wpds-font-family-mono: 'Menlo', 'Consolas', monaco, monospace; /* Monospace font family */
|
|
373
|
+
--wpds-font-line-height-2x-large: 40px; /* 2X large line height */
|
|
374
|
+
--wpds-font-line-height-large: 28px; /* Large line height */
|
|
375
|
+
--wpds-font-line-height-medium: 24px; /* Medium line height */
|
|
376
|
+
--wpds-font-line-height-small: 20px; /* Small line height */
|
|
377
|
+
--wpds-font-line-height-x-large: 32px; /* Extra large line height */
|
|
378
|
+
--wpds-font-line-height-x-small: 16px; /* Extra small line height */
|
|
379
|
+
--wpds-font-size-2x-large: 32px; /* 2X large font size */
|
|
380
|
+
--wpds-font-size-large: 15px; /* Large font size */
|
|
381
|
+
--wpds-font-size-medium: 13px; /* Medium font size */
|
|
382
|
+
--wpds-font-size-small: 12px; /* Small font size */
|
|
383
|
+
--wpds-font-size-x-large: 20px; /* Extra large font size */
|
|
384
|
+
--wpds-font-size-x-small: 11px; /* Extra small font size */
|
|
385
|
+
--wpds-spacing-05: 4px; /* Extra small spacing */
|
|
386
|
+
--wpds-spacing-10: 8px; /* Small spacing */
|
|
387
|
+
--wpds-spacing-15: 12px; /* Medium spacing */
|
|
388
|
+
--wpds-spacing-20: 16px; /* Large spacing */
|
|
389
|
+
--wpds-spacing-30: 24px; /* Extra large spacing */
|
|
390
|
+
--wpds-spacing-40: 32px; /* 2X large spacing */
|
|
391
|
+
--wpds-spacing-50: 40px; /* 3X large spacing */
|
|
392
|
+
--wpds-spacing-60: 48px; /* 4X large spacing */
|
|
393
|
+
--wpds-spacing-70: 56px; /* 5X large spacing */
|
|
394
|
+
--wpds-spacing-80: 64px; /* 6X large spacing */
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
@media ( -webkit-min-device-pixel-ratio: 2 ), ( min-resolution: 192dpi ) {
|
|
398
|
+
:root {
|
|
399
|
+
--wpds-border-width-focus: 1.5px; /* Border width for focus ring */
|
|
400
|
+
}
|
|
401
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is generated by the @terrazzo/plugin-known-wpds-css-variables plugin.
|
|
3
|
+
* Do not edit this file directly.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export default [
|
|
7
|
+
'--wpds-border-radius-x-small',
|
|
8
|
+
'--wpds-border-radius-small',
|
|
9
|
+
'--wpds-border-radius-medium',
|
|
10
|
+
'--wpds-border-radius-large',
|
|
11
|
+
'--wpds-border-width-focus',
|
|
12
|
+
'--wpds-color-bg-surface-neutral',
|
|
13
|
+
'--wpds-color-bg-surface-neutral-strong',
|
|
14
|
+
'--wpds-color-bg-surface-neutral-weak',
|
|
15
|
+
'--wpds-color-bg-surface-brand',
|
|
16
|
+
'--wpds-color-bg-surface-success',
|
|
17
|
+
'--wpds-color-bg-surface-success-weak',
|
|
18
|
+
'--wpds-color-bg-surface-info',
|
|
19
|
+
'--wpds-color-bg-surface-info-weak',
|
|
20
|
+
'--wpds-color-bg-surface-warning',
|
|
21
|
+
'--wpds-color-bg-surface-warning-weak',
|
|
22
|
+
'--wpds-color-bg-surface-error',
|
|
23
|
+
'--wpds-color-bg-surface-error-weak',
|
|
24
|
+
'--wpds-color-bg-interactive-neutral',
|
|
25
|
+
'--wpds-color-bg-interactive-neutral-active',
|
|
26
|
+
'--wpds-color-bg-interactive-neutral-disabled',
|
|
27
|
+
'--wpds-color-bg-interactive-neutral-strong',
|
|
28
|
+
'--wpds-color-bg-interactive-neutral-strong-active',
|
|
29
|
+
'--wpds-color-bg-interactive-neutral-strong-disabled',
|
|
30
|
+
'--wpds-color-bg-interactive-neutral-weak',
|
|
31
|
+
'--wpds-color-bg-interactive-neutral-weak-active',
|
|
32
|
+
'--wpds-color-bg-interactive-neutral-weak-disabled',
|
|
33
|
+
'--wpds-color-bg-interactive-brand',
|
|
34
|
+
'--wpds-color-bg-interactive-brand-active',
|
|
35
|
+
'--wpds-color-bg-interactive-brand-disabled',
|
|
36
|
+
'--wpds-color-bg-interactive-brand-strong',
|
|
37
|
+
'--wpds-color-bg-interactive-brand-strong-active',
|
|
38
|
+
'--wpds-color-bg-interactive-brand-strong-disabled',
|
|
39
|
+
'--wpds-color-bg-interactive-brand-weak',
|
|
40
|
+
'--wpds-color-bg-interactive-brand-weak-active',
|
|
41
|
+
'--wpds-color-bg-interactive-brand-weak-disabled',
|
|
42
|
+
'--wpds-color-bg-track-neutral-weak',
|
|
43
|
+
'--wpds-color-bg-track-neutral',
|
|
44
|
+
'--wpds-color-bg-thumb-neutral-weak',
|
|
45
|
+
'--wpds-color-bg-thumb-neutral-weak-active',
|
|
46
|
+
'--wpds-color-bg-thumb-brand',
|
|
47
|
+
'--wpds-color-bg-thumb-brand-active',
|
|
48
|
+
'--wpds-color-bg-thumb-brand-disabled',
|
|
49
|
+
'--wpds-color-fg-content-neutral',
|
|
50
|
+
'--wpds-color-fg-content-neutral-weak',
|
|
51
|
+
'--wpds-color-fg-interactive-neutral',
|
|
52
|
+
'--wpds-color-fg-interactive-neutral-active',
|
|
53
|
+
'--wpds-color-fg-interactive-neutral-disabled',
|
|
54
|
+
'--wpds-color-fg-interactive-neutral-strong',
|
|
55
|
+
'--wpds-color-fg-interactive-neutral-strong-active',
|
|
56
|
+
'--wpds-color-fg-interactive-neutral-strong-disabled',
|
|
57
|
+
'--wpds-color-fg-interactive-neutral-weak',
|
|
58
|
+
'--wpds-color-fg-interactive-neutral-weak-disabled',
|
|
59
|
+
'--wpds-color-fg-interactive-brand',
|
|
60
|
+
'--wpds-color-fg-interactive-brand-active',
|
|
61
|
+
'--wpds-color-fg-interactive-brand-disabled',
|
|
62
|
+
'--wpds-color-fg-interactive-brand-strong',
|
|
63
|
+
'--wpds-color-fg-interactive-brand-strong-active',
|
|
64
|
+
'--wpds-color-fg-interactive-brand-strong-disabled',
|
|
65
|
+
'--wpds-color-stroke-surface-neutral',
|
|
66
|
+
'--wpds-color-stroke-surface-neutral-weak',
|
|
67
|
+
'--wpds-color-stroke-surface-neutral-strong',
|
|
68
|
+
'--wpds-color-stroke-surface-brand',
|
|
69
|
+
'--wpds-color-stroke-surface-brand-strong',
|
|
70
|
+
'--wpds-color-stroke-surface-success',
|
|
71
|
+
'--wpds-color-stroke-surface-success-strong',
|
|
72
|
+
'--wpds-color-stroke-surface-info',
|
|
73
|
+
'--wpds-color-stroke-surface-info-strong',
|
|
74
|
+
'--wpds-color-stroke-surface-warning',
|
|
75
|
+
'--wpds-color-stroke-surface-warning-strong',
|
|
76
|
+
'--wpds-color-stroke-surface-error',
|
|
77
|
+
'--wpds-color-stroke-surface-error-strong',
|
|
78
|
+
'--wpds-color-stroke-interactive-neutral',
|
|
79
|
+
'--wpds-color-stroke-interactive-neutral-active',
|
|
80
|
+
'--wpds-color-stroke-interactive-neutral-disabled',
|
|
81
|
+
'--wpds-color-stroke-interactive-neutral-strong',
|
|
82
|
+
'--wpds-color-stroke-interactive-brand',
|
|
83
|
+
'--wpds-color-stroke-interactive-brand-active',
|
|
84
|
+
'--wpds-color-stroke-interactive-brand-disabled',
|
|
85
|
+
'--wpds-color-stroke-interactive-error-strong',
|
|
86
|
+
'--wpds-color-stroke-focus-brand',
|
|
87
|
+
'--wpds-elevation-x-small',
|
|
88
|
+
'--wpds-elevation-small',
|
|
89
|
+
'--wpds-elevation-medium',
|
|
90
|
+
'--wpds-elevation-large',
|
|
91
|
+
'--wpds-spacing-05',
|
|
92
|
+
'--wpds-spacing-10',
|
|
93
|
+
'--wpds-spacing-15',
|
|
94
|
+
'--wpds-spacing-20',
|
|
95
|
+
'--wpds-spacing-30',
|
|
96
|
+
'--wpds-spacing-40',
|
|
97
|
+
'--wpds-spacing-50',
|
|
98
|
+
'--wpds-spacing-60',
|
|
99
|
+
'--wpds-spacing-70',
|
|
100
|
+
'--wpds-spacing-80',
|
|
101
|
+
'--wpds-font-family-heading',
|
|
102
|
+
'--wpds-font-family-body',
|
|
103
|
+
'--wpds-font-family-mono',
|
|
104
|
+
'--wpds-font-size-x-small',
|
|
105
|
+
'--wpds-font-size-small',
|
|
106
|
+
'--wpds-font-size-medium',
|
|
107
|
+
'--wpds-font-size-large',
|
|
108
|
+
'--wpds-font-size-x-large',
|
|
109
|
+
'--wpds-font-size-2x-large',
|
|
110
|
+
'--wpds-font-line-height-x-small',
|
|
111
|
+
'--wpds-font-line-height-small',
|
|
112
|
+
'--wpds-font-line-height-medium',
|
|
113
|
+
'--wpds-font-line-height-large',
|
|
114
|
+
'--wpds-font-line-height-x-large',
|
|
115
|
+
'--wpds-font-line-height-2x-large',
|
|
116
|
+
];
|