@wordpress/theme 0.1.0 → 0.2.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 +69 -9
- package/bin/generate-default-ramps/index.ts +49 -0
- package/bin/generate-primitive-tokens/index.ts +14 -9
- package/bin/terrazzo-plugin-ds-tokens-docs/index.ts +5 -24
- package/bin/terrazzo-plugin-figma-ds-token-manager/index.ts +11 -4
- package/bin/terrazzo-plugin-inline-alias-values/index.ts +84 -0
- package/bin/terrazzo-plugin-known-wpds-css-variables/index.ts +19 -39
- package/build/color-ramps/index.js +21 -39
- package/build/color-ramps/index.js.map +3 -3
- package/build/color-ramps/lib/color-utils.js +39 -0
- package/build/color-ramps/lib/color-utils.js.map +7 -0
- package/build/color-ramps/lib/constants.js +20 -27
- package/build/color-ramps/lib/constants.js.map +3 -3
- package/build/color-ramps/lib/default-ramps.js +220 -0
- package/build/color-ramps/lib/default-ramps.js.map +7 -0
- package/build/color-ramps/lib/find-color-with-constraints.js +60 -91
- package/build/color-ramps/lib/find-color-with-constraints.js.map +3 -3
- package/build/color-ramps/lib/index.js +77 -119
- package/build/color-ramps/lib/index.js.map +3 -3
- package/build/color-ramps/lib/ramp-configs.js +15 -14
- package/build/color-ramps/lib/ramp-configs.js.map +2 -2
- package/build/color-ramps/lib/register-color-spaces.js +7 -0
- package/build/color-ramps/lib/register-color-spaces.js.map +7 -0
- package/build/color-ramps/lib/taper-chroma.js +35 -27
- package/build/color-ramps/lib/taper-chroma.js.map +3 -3
- package/build/color-ramps/lib/types.js +2 -1
- package/build/color-ramps/lib/types.js.map +1 -1
- package/build/color-ramps/lib/utils.js +75 -11
- package/build/color-ramps/lib/utils.js.map +2 -2
- package/build/context.js +3 -2
- package/build/context.js.map +1 -1
- package/build/index.js +2 -1
- package/build/index.js.map +1 -1
- package/build/lock-unlock.js +3 -2
- package/build/lock-unlock.js.map +1 -1
- package/build/prebuilt/js/design-tokens.js +19 -11
- package/build/prebuilt/js/design-tokens.js.map +2 -2
- package/build/prebuilt/json/figma.json +165 -783
- package/build/prebuilt/ts/color-tokens.js +137 -0
- package/build/prebuilt/ts/color-tokens.js.map +7 -0
- package/build/private-apis.js +3 -2
- package/build/private-apis.js.map +1 -1
- package/build/theme-provider.js +19 -17
- package/build/theme-provider.js.map +4 -4
- package/build/token-id.js +30 -0
- package/build/token-id.js.map +7 -0
- package/build/types/css-modules.d.js +0 -1
- package/build/types.js +2 -1
- package/build/types.js.map +1 -1
- package/build/use-theme-provider-styles.js +67 -62
- package/build/use-theme-provider-styles.js.map +3 -3
- package/build-module/color-ramps/index.js +20 -28
- package/build-module/color-ramps/index.js.map +2 -2
- package/build-module/color-ramps/lib/color-utils.js +19 -0
- package/build-module/color-ramps/lib/color-utils.js.map +7 -0
- package/build-module/color-ramps/lib/constants.js +14 -11
- package/build-module/color-ramps/lib/constants.js.map +2 -2
- package/build-module/color-ramps/lib/default-ramps.js +196 -0
- package/build-module/color-ramps/lib/default-ramps.js.map +7 -0
- package/build-module/color-ramps/lib/find-color-with-constraints.js +61 -87
- package/build-module/color-ramps/lib/find-color-with-constraints.js.map +2 -2
- package/build-module/color-ramps/lib/index.js +85 -109
- package/build-module/color-ramps/lib/index.js.map +3 -3
- package/build-module/color-ramps/lib/ramp-configs.js +14 -13
- package/build-module/color-ramps/lib/ramp-configs.js.map +2 -2
- package/build-module/color-ramps/lib/register-color-spaces.js +7 -0
- package/build-module/color-ramps/lib/register-color-spaces.js.map +7 -0
- package/build-module/color-ramps/lib/taper-chroma.js +40 -16
- package/build-module/color-ramps/lib/taper-chroma.js.map +2 -2
- package/build-module/color-ramps/lib/utils.js +70 -6
- package/build-module/color-ramps/lib/utils.js.map +2 -2
- package/build-module/context.js +2 -1
- package/build-module/context.js.map +1 -1
- package/build-module/index.js +1 -0
- package/build-module/index.js.map +1 -1
- package/build-module/lock-unlock.js +2 -1
- package/build-module/lock-unlock.js.map +1 -1
- package/build-module/prebuilt/js/design-tokens.js +18 -10
- package/build-module/prebuilt/js/design-tokens.js.map +2 -2
- package/build-module/prebuilt/json/figma.json +165 -783
- package/build-module/prebuilt/ts/color-tokens.js +117 -0
- package/build-module/prebuilt/ts/color-tokens.js.map +7 -0
- package/build-module/private-apis.js +2 -1
- package/build-module/private-apis.js.map +1 -1
- package/build-module/theme-provider.js +18 -6
- package/build-module/theme-provider.js.map +3 -3
- package/build-module/token-id.js +6 -0
- package/build-module/token-id.js.map +7 -0
- package/build-module/use-theme-provider-styles.js +69 -57
- package/build-module/use-theme-provider-styles.js.map +2 -2
- package/build-types/color-ramps/index.d.ts +9 -16
- package/build-types/color-ramps/index.d.ts.map +1 -1
- package/build-types/color-ramps/lib/color-utils.d.ts +22 -0
- package/build-types/color-ramps/lib/color-utils.d.ts.map +1 -0
- package/build-types/color-ramps/lib/constants.d.ts +7 -9
- package/build-types/color-ramps/lib/constants.d.ts.map +1 -1
- package/build-types/color-ramps/lib/default-ramps.d.ts +7 -0
- package/build-types/color-ramps/lib/default-ramps.d.ts.map +1 -0
- package/build-types/color-ramps/lib/find-color-with-constraints.d.ts +8 -7
- package/build-types/color-ramps/lib/find-color-with-constraints.d.ts.map +1 -1
- package/build-types/color-ramps/lib/index.d.ts +5 -2
- package/build-types/color-ramps/lib/index.d.ts.map +1 -1
- package/build-types/color-ramps/lib/register-color-spaces.d.ts +2 -0
- package/build-types/color-ramps/lib/register-color-spaces.d.ts.map +1 -0
- package/build-types/color-ramps/lib/taper-chroma.d.ts +7 -3
- package/build-types/color-ramps/lib/taper-chroma.d.ts.map +1 -1
- package/build-types/color-ramps/lib/utils.d.ts +28 -5
- package/build-types/color-ramps/lib/utils.d.ts.map +1 -1
- package/build-types/color-ramps/stories/index.story.d.ts.map +1 -1
- package/build-types/prebuilt/ts/color-tokens.d.ts +7 -0
- package/build-types/prebuilt/ts/color-tokens.d.ts.map +1 -0
- package/build-types/stories/index.story.d.ts.map +1 -1
- package/build-types/theme-provider.d.ts.map +1 -1
- package/build-types/token-id.d.ts +9 -0
- package/build-types/token-id.d.ts.map +1 -0
- package/build-types/use-theme-provider-styles.d.ts +4 -0
- package/build-types/use-theme-provider-styles.d.ts.map +1 -1
- package/docs/ds-tokens.md +22 -156
- package/package.json +19 -9
- package/src/color-ramps/index.ts +24 -41
- package/src/color-ramps/lib/color-utils.ts +34 -0
- package/src/color-ramps/lib/constants.ts +13 -9
- package/src/color-ramps/lib/default-ramps.ts +200 -0
- package/src/color-ramps/lib/find-color-with-constraints.ts +83 -116
- package/src/color-ramps/lib/index.ts +107 -145
- package/src/color-ramps/lib/ramp-configs.ts +3 -3
- package/src/color-ramps/lib/register-color-spaces.ts +13 -0
- package/src/color-ramps/lib/taper-chroma.ts +47 -19
- package/src/color-ramps/lib/utils.ts +117 -14
- package/src/color-ramps/stories/index.story.tsx +16 -22
- package/src/color-ramps/test/__snapshots__/index.test.ts.snap +45722 -376
- package/src/color-ramps/test/index.test.ts +68 -29
- package/src/prebuilt/css/design-tokens.css +88 -355
- package/src/prebuilt/js/design-tokens.js +17 -10
- package/src/prebuilt/json/figma.json +165 -783
- package/src/prebuilt/ts/color-tokens.ts +117 -0
- package/src/stories/index.story.tsx +4 -18
- package/src/test/token-id.test.ts +12 -0
- package/src/token-id.ts +9 -0
- package/src/use-theme-provider-styles.ts +67 -60
- package/terrazzo.config.ts +15 -12
- package/tokens/color.json +221 -69
- package/tokens/dimension.json +75 -0
- package/tsconfig.bin.json +13 -0
- package/tsconfig.bin.tsbuildinfo +1 -0
- package/tsconfig.json +6 -4
- package/tsconfig.src.json +9 -0
- package/tsconfig.src.tsbuildinfo +1 -0
- package/bin/build-tokens.js +0 -83
- package/build/color-ramps/lib/cache-utils.js +0 -57
- package/build/color-ramps/lib/cache-utils.js.map +0 -7
- package/build/prebuilt/ts/design-tokens.js +0 -354
- package/build/prebuilt/ts/design-tokens.js.map +0 -7
- package/build/style.module.css.js +0 -2
- package/build-module/color-ramps/lib/cache-utils.js +0 -31
- package/build-module/color-ramps/lib/cache-utils.js.map +0 -7
- package/build-module/prebuilt/ts/design-tokens.js +0 -334
- package/build-module/prebuilt/ts/design-tokens.js.map +0 -7
- package/build-module/style.module.css.js +0 -1
- package/build-style/style.css +0 -3
- package/build-types/color-ramps/lib/cache-utils.d.ts +0 -22
- package/build-types/color-ramps/lib/cache-utils.d.ts.map +0 -1
- package/build-types/prebuilt/ts/design-tokens.d.ts +0 -7
- package/build-types/prebuilt/ts/design-tokens.d.ts.map +0 -1
- package/src/color-ramps/lib/cache-utils.ts +0 -56
- package/src/prebuilt/ts/design-tokens.ts +0 -335
- package/tokens/spacing.json +0 -45
- package/tsconfig.tsbuildinfo +0 -1
package/src/color-ramps/index.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import { get, OKLCH, parse, serialize } from 'colorjs.io/fn';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Internal dependencies
|
|
8
8
|
*/
|
|
9
|
+
import './lib/register-color-spaces';
|
|
9
10
|
import { buildRamp } from './lib/index';
|
|
10
11
|
import { clampAccentScaleReferenceLightness } from './lib/utils';
|
|
11
12
|
import { BG_RAMP_CONFIG, ACCENT_RAMP_CONFIG } from './lib/ramp-configs';
|
|
@@ -14,28 +15,20 @@ import type {
|
|
|
14
15
|
RampDirection,
|
|
15
16
|
Ramp,
|
|
16
17
|
} from './lib/types';
|
|
17
|
-
import {
|
|
18
|
+
import { getContrast } from './lib/color-utils';
|
|
18
19
|
import { CONTRAST_COMBINATIONS } from './lib/constants';
|
|
19
20
|
export { DEFAULT_SEED_COLORS } from './lib/constants';
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
23
|
* Creates a background ramp.
|
|
23
|
-
* @param
|
|
24
|
-
* @param params.seed
|
|
25
|
-
* @param params.debug
|
|
24
|
+
* @param seed The seed color for the background ramp.
|
|
26
25
|
*/
|
|
27
|
-
export function buildBgRamp( {
|
|
28
|
-
seed,
|
|
29
|
-
debug,
|
|
30
|
-
}: {
|
|
31
|
-
seed: string;
|
|
32
|
-
debug?: boolean;
|
|
33
|
-
} ): InternalRampResult {
|
|
26
|
+
export function buildBgRamp( seed: string ) {
|
|
34
27
|
if ( typeof seed !== 'string' || seed.trim() === '' ) {
|
|
35
28
|
throw new Error( 'Seed color must be a non-empty string' );
|
|
36
29
|
}
|
|
37
30
|
|
|
38
|
-
return buildRamp( seed, BG_RAMP_CONFIG
|
|
31
|
+
return buildRamp( seed, BG_RAMP_CONFIG );
|
|
39
32
|
}
|
|
40
33
|
|
|
41
34
|
const STEP_TO_PIN = 'surface2';
|
|
@@ -51,7 +44,7 @@ function getBgRampInfo( ramp: InternalRampResult ): {
|
|
|
51
44
|
pinLightness: {
|
|
52
45
|
stepName: STEP_TO_PIN,
|
|
53
46
|
value: clampAccentScaleReferenceLightness(
|
|
54
|
-
|
|
47
|
+
get( parse( ramp.ramp[ STEP_TO_PIN ].color ), [ OKLCH, 'l' ] ),
|
|
55
48
|
ramp.direction
|
|
56
49
|
),
|
|
57
50
|
},
|
|
@@ -61,29 +54,19 @@ function getBgRampInfo( ramp: InternalRampResult ): {
|
|
|
61
54
|
/**
|
|
62
55
|
* Creates an accent ramp (ie used by primary, success, info, warning and error
|
|
63
56
|
* ramps).
|
|
64
|
-
* @param
|
|
65
|
-
* @param
|
|
66
|
-
* @param params.bgRamp
|
|
67
|
-
* @param params.debug
|
|
57
|
+
* @param seed The seed color for the accent ramp.
|
|
58
|
+
* @param bgRamp The ramp of the background on which the accent is shown.
|
|
68
59
|
*/
|
|
69
|
-
export function buildAccentRamp(
|
|
70
|
-
seed,
|
|
71
|
-
bgRamp
|
|
72
|
-
|
|
73
|
-
}: {
|
|
74
|
-
seed: string;
|
|
75
|
-
bgRamp?: InternalRampResult;
|
|
76
|
-
debug?: boolean;
|
|
77
|
-
} ): InternalRampResult {
|
|
60
|
+
export function buildAccentRamp(
|
|
61
|
+
seed: string,
|
|
62
|
+
bgRamp?: InternalRampResult
|
|
63
|
+
): InternalRampResult {
|
|
78
64
|
if ( typeof seed !== 'string' || seed.trim() === '' ) {
|
|
79
65
|
throw new Error( 'Seed color must be a non-empty string' );
|
|
80
66
|
}
|
|
81
67
|
|
|
82
68
|
const bgRampInfo = bgRamp ? getBgRampInfo( bgRamp ) : undefined;
|
|
83
|
-
return buildRamp( seed, ACCENT_RAMP_CONFIG,
|
|
84
|
-
...bgRampInfo,
|
|
85
|
-
debug,
|
|
86
|
-
} );
|
|
69
|
+
return buildRamp( seed, ACCENT_RAMP_CONFIG, bgRampInfo );
|
|
87
70
|
}
|
|
88
71
|
|
|
89
72
|
/**
|
|
@@ -113,14 +96,14 @@ export function checkAccessibleCombinations( {
|
|
|
113
96
|
CONTRAST_COMBINATIONS.forEach( ( { bgs, fgs, target } ) => {
|
|
114
97
|
for ( const bg of bgs ) {
|
|
115
98
|
for ( const fg of fgs ) {
|
|
116
|
-
const bgColor =
|
|
117
|
-
const fgColor =
|
|
118
|
-
if (
|
|
99
|
+
const bgColor = parse( ramp.ramp[ bg ].color );
|
|
100
|
+
const fgColor = parse( ramp.ramp[ fg ].color );
|
|
101
|
+
if ( getContrast( bgColor, fgColor ) < target ) {
|
|
119
102
|
unmetTargets.push( {
|
|
120
103
|
bgName: bg,
|
|
121
|
-
bgColor: bgColor
|
|
104
|
+
bgColor: serialize( bgColor ),
|
|
122
105
|
fgName: fg,
|
|
123
|
-
fgColor: fgColor
|
|
106
|
+
fgColor: serialize( fgColor ),
|
|
124
107
|
unmetContrast: target,
|
|
125
108
|
} );
|
|
126
109
|
}
|
|
@@ -133,14 +116,14 @@ export function checkAccessibleCombinations( {
|
|
|
133
116
|
CONTRAST_COMBINATIONS.forEach( ( { bgs, fgs, target } ) => {
|
|
134
117
|
for ( const bg of bgs ) {
|
|
135
118
|
for ( const fg of fgs ) {
|
|
136
|
-
const bgColor =
|
|
137
|
-
const fgColor =
|
|
138
|
-
if (
|
|
119
|
+
const bgColor = parse( bgRamp.ramp[ bg ].color );
|
|
120
|
+
const fgColor = parse( ramp.ramp[ fg ].color );
|
|
121
|
+
if ( getContrast( bgColor, fgColor ) < target ) {
|
|
139
122
|
unmetTargets.push( {
|
|
140
123
|
bgName: bg,
|
|
141
|
-
bgColor: bgColor
|
|
124
|
+
bgColor: serialize( bgColor ),
|
|
142
125
|
fgName: fg,
|
|
143
|
-
fgColor: fgColor
|
|
126
|
+
fgColor: serialize( fgColor ),
|
|
144
127
|
unmetContrast: target,
|
|
145
128
|
} );
|
|
146
129
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import {
|
|
5
|
+
to,
|
|
6
|
+
serialize,
|
|
7
|
+
contrastWCAG21,
|
|
8
|
+
sRGB,
|
|
9
|
+
type ColorTypes,
|
|
10
|
+
} from 'colorjs.io/fn';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Internal dependencies
|
|
14
|
+
*/
|
|
15
|
+
import './register-color-spaces';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Get string representation of a color
|
|
19
|
+
* @param color Color object to stringify
|
|
20
|
+
* @return String representation
|
|
21
|
+
*/
|
|
22
|
+
export function getColorString( color: ColorTypes ): string {
|
|
23
|
+
return serialize( to( color, sRGB ), { format: 'hex', inGamut: true } );
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Get contrast value between two colors
|
|
28
|
+
* @param colorA First color
|
|
29
|
+
* @param colorB Second color
|
|
30
|
+
* @return WCAG 2.1 contrast ratio
|
|
31
|
+
*/
|
|
32
|
+
export function getContrast( colorA: ColorTypes, colorB: ColorTypes ): number {
|
|
33
|
+
return contrastWCAG21( colorA, colorB );
|
|
34
|
+
}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import { to, OKLCH } from 'colorjs.io/fn';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Internal dependencies
|
|
8
8
|
*/
|
|
9
|
+
import './register-color-spaces';
|
|
9
10
|
import type { Ramp } from './types';
|
|
10
11
|
|
|
11
|
-
export const WHITE =
|
|
12
|
-
export const BLACK =
|
|
12
|
+
export const WHITE = to( 'white', OKLCH );
|
|
13
|
+
export const BLACK = to( 'black', OKLCH );
|
|
13
14
|
|
|
14
|
-
// Margin added to target contrasts to counter for algorithm approximations
|
|
15
|
-
//
|
|
16
|
-
|
|
15
|
+
// Margin added to target contrasts to counter for algorithm approximations and rounding errors.
|
|
16
|
+
// - the `CONTRAST_EPSILON` value is 0.004, so the real contrast can be lower by this amount.
|
|
17
|
+
// - the max contrast between adjacent RGB values is 1.016, so half of the difference (0.008) can be rounding error.
|
|
18
|
+
// - the sum is 0.012: the margin we add to ensure that the target contrast is met after all the rounding.
|
|
19
|
+
export const UNIVERSAL_CONTRAST_TOPUP = 0.012;
|
|
17
20
|
|
|
18
21
|
// When enabling "lighter direction" bias, this is the amount by which
|
|
19
22
|
// black text contrast needs to be greater than white text contrast.
|
|
@@ -32,10 +35,10 @@ export const ACCENT_SCALE_BASE_LIGHTNESS_THRESHOLDS = {
|
|
|
32
35
|
darker: { min: 0.75, max: 0.98 },
|
|
33
36
|
} as const;
|
|
34
37
|
|
|
35
|
-
//
|
|
36
|
-
export const
|
|
38
|
+
// Contrast precision we aim for. Approximately 1/256, resolution of an 8-bit number.
|
|
39
|
+
export const CONTRAST_EPSILON = 4e-3;
|
|
37
40
|
|
|
38
|
-
export const MAX_BISECTION_ITERATIONS =
|
|
41
|
+
export const MAX_BISECTION_ITERATIONS = 10;
|
|
39
42
|
|
|
40
43
|
export const CONTRAST_COMBINATIONS: {
|
|
41
44
|
bgs: ( keyof Ramp )[];
|
|
@@ -80,6 +83,7 @@ export const DEFAULT_SEED_COLORS = {
|
|
|
80
83
|
primary: '#3858e9',
|
|
81
84
|
info: '#0090ff',
|
|
82
85
|
success: '#4ab866',
|
|
86
|
+
caution: '#f0d149',
|
|
83
87
|
warning: '#f0b849',
|
|
84
88
|
error: '#cc1818',
|
|
85
89
|
};
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { RampResult } from './types';
|
|
5
|
+
import type { DEFAULT_SEED_COLORS } from './constants';
|
|
6
|
+
|
|
7
|
+
export const DEFAULT_RAMPS: Record<
|
|
8
|
+
keyof typeof DEFAULT_SEED_COLORS,
|
|
9
|
+
RampResult
|
|
10
|
+
> = {
|
|
11
|
+
bg: {
|
|
12
|
+
ramp: {
|
|
13
|
+
surface2: { color: '#f8f8f8', warning: false },
|
|
14
|
+
bgFill1: { color: '#555', warning: false },
|
|
15
|
+
fgFill: { color: '#f0f0f0', warning: false },
|
|
16
|
+
bgFill2: { color: '#494949', warning: false },
|
|
17
|
+
surface6: { color: '#d3d3d3', warning: false },
|
|
18
|
+
surface5: { color: '#e3e3e3', warning: false },
|
|
19
|
+
surface4: { color: '#eaeaea', warning: false },
|
|
20
|
+
surface3: { color: '#fff', warning: false },
|
|
21
|
+
fgSurface4: { color: '#1e1e1e', warning: false },
|
|
22
|
+
fgSurface3: { color: '#6e6e6e', warning: false },
|
|
23
|
+
fgSurface2: { color: '#8b8b8b', warning: false },
|
|
24
|
+
fgSurface1: { color: '#ababab', warning: false },
|
|
25
|
+
stroke3: { color: '#8b8b8b', warning: false },
|
|
26
|
+
stroke4: { color: '#6d6d6d', warning: false },
|
|
27
|
+
stroke2: { color: '#adadad', warning: false },
|
|
28
|
+
stroke1: { color: '#cfcfcf', warning: false },
|
|
29
|
+
bgFillDark: { color: '#1e1e1e', warning: false },
|
|
30
|
+
fgFillDark: { color: '#f0f0f0', warning: false },
|
|
31
|
+
bgFillInverted2: { color: '#1e1e1e', warning: false },
|
|
32
|
+
bgFillInverted1: { color: '#2d2d2d', warning: false },
|
|
33
|
+
fgFillInverted: { color: '#f0f0f0', warning: false },
|
|
34
|
+
surface1: { color: '#f0f0f0', warning: false },
|
|
35
|
+
},
|
|
36
|
+
direction: 'darker',
|
|
37
|
+
},
|
|
38
|
+
primary: {
|
|
39
|
+
ramp: {
|
|
40
|
+
bgFill1: { color: '#3858e9', warning: false },
|
|
41
|
+
fgFill: { color: '#eff0f2', warning: false },
|
|
42
|
+
bgFill2: { color: '#2e49da', warning: false },
|
|
43
|
+
surface2: { color: '#f6f8fc', warning: false },
|
|
44
|
+
surface6: { color: '#c7d3ef', warning: false },
|
|
45
|
+
surface5: { color: '#dce3f5', warning: false },
|
|
46
|
+
surface4: { color: '#e5ebf7', warning: false },
|
|
47
|
+
surface3: { color: '#fff', warning: false },
|
|
48
|
+
fgSurface4: { color: '#080071', warning: false },
|
|
49
|
+
fgSurface3: { color: '#3858e9', warning: false },
|
|
50
|
+
fgSurface2: { color: '#5881ff', warning: false },
|
|
51
|
+
fgSurface1: { color: '#84a9ff', warning: false },
|
|
52
|
+
stroke3: { color: '#3858e9', warning: false },
|
|
53
|
+
stroke4: { color: '#2337c8', warning: false },
|
|
54
|
+
stroke2: { color: '#6d83bf', warning: false },
|
|
55
|
+
stroke1: { color: '#91a2cf', warning: false },
|
|
56
|
+
bgFillDark: { color: '#1b1e26', warning: false },
|
|
57
|
+
fgFillDark: { color: '#eff0f2', warning: false },
|
|
58
|
+
bgFillInverted2: { color: '#1b1e26', warning: false },
|
|
59
|
+
bgFillInverted1: { color: '#12009f', warning: false },
|
|
60
|
+
fgFillInverted: { color: '#eff0f2', warning: false },
|
|
61
|
+
surface1: { color: '#edf0fa', warning: false },
|
|
62
|
+
},
|
|
63
|
+
direction: 'darker',
|
|
64
|
+
},
|
|
65
|
+
info: {
|
|
66
|
+
ramp: {
|
|
67
|
+
bgFill1: { color: '#0090ff', warning: false },
|
|
68
|
+
fgFill: { color: '#1b1e23', warning: false },
|
|
69
|
+
bgFill2: { color: '#0081ef', warning: false },
|
|
70
|
+
surface2: { color: '#f5f9fd', warning: false },
|
|
71
|
+
surface6: { color: '#bed6f1', warning: false },
|
|
72
|
+
surface5: { color: '#d5e5f6', warning: false },
|
|
73
|
+
surface4: { color: '#e0ebf8', warning: false },
|
|
74
|
+
surface3: { color: '#fff', warning: false },
|
|
75
|
+
fgSurface4: { color: '#001758', warning: false },
|
|
76
|
+
fgSurface3: { color: '#006dd9', warning: false },
|
|
77
|
+
fgSurface2: { color: '#008cfb', warning: false },
|
|
78
|
+
fgSurface1: { color: '#53b1ff', warning: false },
|
|
79
|
+
stroke3: { color: '#006dd9', warning: false },
|
|
80
|
+
stroke4: { color: '#004eb8', warning: false },
|
|
81
|
+
stroke2: { color: '#5d8fc6', warning: false },
|
|
82
|
+
stroke1: { color: '#8aaed6', warning: false },
|
|
83
|
+
bgFillDark: { color: '#1b1e23', warning: false },
|
|
84
|
+
fgFillDark: { color: '#eff0f2', warning: false },
|
|
85
|
+
bgFillInverted2: { color: '#1b1e23', warning: false },
|
|
86
|
+
bgFillInverted1: { color: '#002675', warning: false },
|
|
87
|
+
fgFillInverted: { color: '#eff0f2', warning: false },
|
|
88
|
+
surface1: { color: '#eaf1fa', warning: false },
|
|
89
|
+
},
|
|
90
|
+
direction: 'darker',
|
|
91
|
+
},
|
|
92
|
+
success: {
|
|
93
|
+
ramp: {
|
|
94
|
+
bgFill1: { color: '#4ab866', warning: false },
|
|
95
|
+
fgFill: { color: '#1b1f1c', warning: false },
|
|
96
|
+
bgFill2: { color: '#37a857', warning: false },
|
|
97
|
+
surface2: { color: '#f0fcf2', warning: false },
|
|
98
|
+
surface6: { color: '#7eea95', warning: false },
|
|
99
|
+
surface5: { color: '#b7f2c1', warning: false },
|
|
100
|
+
surface4: { color: '#cdf5d3', warning: false },
|
|
101
|
+
surface3: { color: '#fff', warning: false },
|
|
102
|
+
fgSurface4: { color: '#002b00', warning: false },
|
|
103
|
+
fgSurface3: { color: '#008031', warning: false },
|
|
104
|
+
fgSurface2: { color: '#2c9f4e', warning: false },
|
|
105
|
+
fgSurface1: { color: '#54c16f', warning: false },
|
|
106
|
+
stroke3: { color: '#008031', warning: false },
|
|
107
|
+
stroke4: { color: '#006314', warning: false },
|
|
108
|
+
stroke2: { color: '#61986b', warning: false },
|
|
109
|
+
stroke1: { color: '#77ba84', warning: false },
|
|
110
|
+
bgFillDark: { color: '#1b1f1c', warning: false },
|
|
111
|
+
fgFillDark: { color: '#edf2ed', warning: false },
|
|
112
|
+
bgFillInverted2: { color: '#1b1f1c', warning: false },
|
|
113
|
+
bgFillInverted1: { color: '#003800', warning: false },
|
|
114
|
+
fgFillInverted: { color: '#edf2ed', warning: false },
|
|
115
|
+
surface1: { color: '#ddf8e1', warning: false },
|
|
116
|
+
},
|
|
117
|
+
direction: 'darker',
|
|
118
|
+
},
|
|
119
|
+
caution: {
|
|
120
|
+
ramp: {
|
|
121
|
+
bgFill1: { color: '#f0d149', warning: false },
|
|
122
|
+
fgFill: { color: '#1f1e1b', warning: false },
|
|
123
|
+
bgFill2: { color: '#ddbe30', warning: false },
|
|
124
|
+
surface2: { color: '#fdf9e7', warning: false },
|
|
125
|
+
surface6: { color: '#ecd367', warning: false },
|
|
126
|
+
surface5: { color: '#f5e399', warning: false },
|
|
127
|
+
surface4: { color: '#f8ebb5', warning: false },
|
|
128
|
+
surface3: { color: '#fff', warning: false },
|
|
129
|
+
fgSurface4: { color: '#291d00', warning: false },
|
|
130
|
+
fgSurface3: { color: '#876b00', warning: false },
|
|
131
|
+
fgSurface2: { color: '#a78900', warning: false },
|
|
132
|
+
fgSurface1: { color: '#c9aa00', warning: false },
|
|
133
|
+
stroke3: { color: '#876b00', warning: false },
|
|
134
|
+
stroke4: { color: '#675000', warning: false },
|
|
135
|
+
stroke2: { color: '#978c60', warning: false },
|
|
136
|
+
stroke1: { color: '#b8ab75', warning: false },
|
|
137
|
+
bgFillDark: { color: '#1f1e1b', warning: false },
|
|
138
|
+
fgFillDark: { color: '#f6f1da', warning: false },
|
|
139
|
+
bgFillInverted2: { color: '#1f1e1b', warning: false },
|
|
140
|
+
bgFillInverted1: { color: '#3a2b00', warning: false },
|
|
141
|
+
fgFillInverted: { color: '#f6f1da', warning: false },
|
|
142
|
+
surface1: { color: '#faf1cd', warning: false },
|
|
143
|
+
},
|
|
144
|
+
direction: 'darker',
|
|
145
|
+
},
|
|
146
|
+
warning: {
|
|
147
|
+
ramp: {
|
|
148
|
+
bgFill1: { color: '#f0b849', warning: false },
|
|
149
|
+
fgFill: { color: '#1f1e1b', warning: false },
|
|
150
|
+
bgFill2: { color: '#dea633', warning: false },
|
|
151
|
+
surface2: { color: '#fdf7ee', warning: false },
|
|
152
|
+
surface6: { color: '#f1ce90', warning: false },
|
|
153
|
+
surface5: { color: '#f6e0bb', warning: false },
|
|
154
|
+
surface4: { color: '#f8e9cd', warning: false },
|
|
155
|
+
surface3: { color: '#fff', warning: false },
|
|
156
|
+
fgSurface4: { color: '#2f1800', warning: false },
|
|
157
|
+
fgSurface3: { color: '#976300', warning: false },
|
|
158
|
+
fgSurface2: { color: '#b78100', warning: false },
|
|
159
|
+
fgSurface1: { color: '#d9a22e', warning: false },
|
|
160
|
+
stroke3: { color: '#976300', warning: false },
|
|
161
|
+
stroke4: { color: '#754900', warning: false },
|
|
162
|
+
stroke2: { color: '#9f8860', warning: false },
|
|
163
|
+
stroke1: { color: '#c2a776', warning: false },
|
|
164
|
+
bgFillDark: { color: '#1f1e1b', warning: false },
|
|
165
|
+
fgFillDark: { color: '#f3f0e9', warning: false },
|
|
166
|
+
bgFillInverted2: { color: '#1f1e1b', warning: false },
|
|
167
|
+
bgFillInverted1: { color: '#432600', warning: false },
|
|
168
|
+
fgFillInverted: { color: '#f3f0e9', warning: false },
|
|
169
|
+
surface1: { color: '#faefdc', warning: false },
|
|
170
|
+
},
|
|
171
|
+
direction: 'darker',
|
|
172
|
+
},
|
|
173
|
+
error: {
|
|
174
|
+
ramp: {
|
|
175
|
+
bgFill1: { color: '#cc1818', warning: false },
|
|
176
|
+
fgFill: { color: '#f2efef', warning: false },
|
|
177
|
+
bgFill2: { color: '#bc0001', warning: false },
|
|
178
|
+
surface2: { color: '#fdf6f5', warning: false },
|
|
179
|
+
surface6: { color: '#f5c9c2', warning: false },
|
|
180
|
+
surface5: { color: '#f9dcd8', warning: false },
|
|
181
|
+
surface4: { color: '#fae5e2', warning: false },
|
|
182
|
+
surface3: { color: '#fff', warning: false },
|
|
183
|
+
fgSurface4: { color: '#4a0000', warning: false },
|
|
184
|
+
fgSurface3: { color: '#cc1818', warning: false },
|
|
185
|
+
fgSurface2: { color: '#f84d41', warning: false },
|
|
186
|
+
fgSurface1: { color: '#ff8373', warning: false },
|
|
187
|
+
stroke3: { color: '#cc1818', warning: false },
|
|
188
|
+
stroke4: { color: '#a70000', warning: false },
|
|
189
|
+
stroke2: { color: '#ca675c', warning: false },
|
|
190
|
+
stroke1: { color: '#dc8e83', warning: false },
|
|
191
|
+
bgFillDark: { color: '#231c1b', warning: false },
|
|
192
|
+
fgFillDark: { color: '#f2efef', warning: false },
|
|
193
|
+
bgFillInverted2: { color: '#231c1b', warning: false },
|
|
194
|
+
bgFillInverted1: { color: '#680000', warning: false },
|
|
195
|
+
fgFillInverted: { color: '#f2efef', warning: false },
|
|
196
|
+
surface1: { color: '#fcedea', warning: false },
|
|
197
|
+
},
|
|
198
|
+
direction: 'darker',
|
|
199
|
+
},
|
|
200
|
+
};
|