@wordpress/theme 0.3.0 → 0.3.1-next.6deb34194.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/build/color-ramps/lib/default-ramps.js +65 -65
- package/build/color-ramps/lib/default-ramps.js.map +1 -1
- package/build/color-ramps/lib/find-color-with-constraints.js.map +2 -2
- package/build/color-ramps/lib/index.js.map +2 -2
- package/build/color-ramps/lib/taper-chroma.js +18 -44
- package/build/color-ramps/lib/taper-chroma.js.map +2 -2
- package/build/prebuilt/js/design-tokens.js +15 -5
- package/build/prebuilt/js/design-tokens.js.map +2 -2
- package/build/prebuilt/json/figma.json +101 -29
- package/build-module/color-ramps/lib/default-ramps.js +65 -65
- package/build-module/color-ramps/lib/default-ramps.js.map +1 -1
- package/build-module/color-ramps/lib/find-color-with-constraints.js.map +2 -2
- package/build-module/color-ramps/lib/index.js.map +2 -2
- package/build-module/color-ramps/lib/taper-chroma.js +19 -46
- package/build-module/color-ramps/lib/taper-chroma.js.map +2 -2
- package/build-module/prebuilt/js/design-tokens.js +15 -5
- package/build-module/prebuilt/js/design-tokens.js.map +2 -2
- package/build-module/prebuilt/json/figma.json +101 -29
- package/build-types/color-ramps/lib/find-color-with-constraints.d.ts +3 -4
- package/build-types/color-ramps/lib/find-color-with-constraints.d.ts.map +1 -1
- package/build-types/color-ramps/lib/taper-chroma.d.ts +4 -4
- package/build-types/color-ramps/lib/taper-chroma.d.ts.map +1 -1
- package/docs/ds-tokens.md +17 -7
- package/package.json +4 -4
- package/src/color-ramps/lib/default-ramps.ts +65 -65
- package/src/color-ramps/lib/find-color-with-constraints.ts +11 -7
- package/src/color-ramps/lib/index.ts +4 -4
- package/src/color-ramps/lib/taper-chroma.ts +32 -63
- package/src/prebuilt/css/design-tokens.css +54 -26
- package/src/prebuilt/js/design-tokens.js +15 -5
- package/src/prebuilt/json/figma.json +101 -29
- package/tokens/border.json +43 -21
- package/tokens/color.json +65 -65
- package/tokens/dimension.json +62 -0
- package/tsconfig.bin.tsbuildinfo +1 -1
- package/tsconfig.src.json +1 -1
- package/tsconfig.src.tsbuildinfo +1 -1
- package/build/types/css-modules.d.js +0 -1
- package/build/types/css-modules.d.js.map +0 -7
- package/build-module/types/css-modules.d.js +0 -1
- package/build-module/types/css-modules.d.js.map +0 -7
- package/src/types/css-modules.d.ts +0 -4
|
@@ -3,19 +3,23 @@
|
|
|
3
3
|
* ------------------------------------------- */
|
|
4
4
|
|
|
5
5
|
:root {
|
|
6
|
-
--wpds-border-radius-
|
|
7
|
-
--wpds-border-radius-
|
|
8
|
-
--wpds-border-radius-
|
|
9
|
-
--wpds-border-radius-
|
|
10
|
-
--wpds-border-width-focus: 2px; /* Border width for focus ring */
|
|
6
|
+
--wpds-border-radius-surface-lg: 8px; /* Large radius for surfaces */
|
|
7
|
+
--wpds-border-radius-surface-md: 4px; /* Medium radius for surfaces */
|
|
8
|
+
--wpds-border-radius-surface-sm: 2px; /* Small radius for surfaces */
|
|
9
|
+
--wpds-border-radius-surface-xs: 1px; /* Extra small radius for surfaces */
|
|
10
|
+
--wpds-border-width-interactive-focus: 2px; /* Border width for focus ring */
|
|
11
|
+
--wpds-border-width-surface-lg: 8px; /* Large width for surfaces */
|
|
12
|
+
--wpds-border-width-surface-md: 4px; /* Medium width for surfaces */
|
|
13
|
+
--wpds-border-width-surface-sm: 2px; /* Small width for surfaces */
|
|
14
|
+
--wpds-border-width-surface-xs: 1px; /* Extra small width for surfaces */
|
|
11
15
|
--wpds-color-bg-interactive-brand: #00000000; /* Background color for interactive elements with brand tone and normal emphasis. */
|
|
12
|
-
--wpds-color-bg-interactive-brand-active: #
|
|
16
|
+
--wpds-color-bg-interactive-brand-active: #f6f8fd; /* Background color for interactive elements with brand tone and normal emphasis that are hovered, focused, or active. */
|
|
13
17
|
--wpds-color-bg-interactive-brand-disabled: #e2e2e2; /* Background color for interactive elements with brand tone and normal emphasis, in their disabled state. */
|
|
14
18
|
--wpds-color-bg-interactive-brand-strong: #3858e9; /* Background color for interactive elements with brand tone and strong emphasis. */
|
|
15
19
|
--wpds-color-bg-interactive-brand-strong-active: #2e49d9; /* Background color for interactive elements with brand tone and strong emphasis that are hovered, focused, or active. */
|
|
16
20
|
--wpds-color-bg-interactive-brand-strong-disabled: #d2d2d2; /* Background color for interactive elements with brand tone and strong emphasis, in their disabled state. */
|
|
17
21
|
--wpds-color-bg-interactive-brand-weak: #00000000; /* Background color for interactive elements with brand tone and weak emphasis. */
|
|
18
|
-
--wpds-color-bg-interactive-brand-weak-active: #
|
|
22
|
+
--wpds-color-bg-interactive-brand-weak-active: #e6eaf4; /* Background color for interactive elements with brand tone and weak emphasis that are hovered, focused, or active. */
|
|
19
23
|
--wpds-color-bg-interactive-brand-weak-disabled: #e2e2e2; /* Background color for interactive elements with brand tone and weak emphasis, in their disabled state. */
|
|
20
24
|
--wpds-color-bg-interactive-neutral: #00000000; /* Background color for interactive elements with neutral tone and normal emphasis. */
|
|
21
25
|
--wpds-color-bg-interactive-neutral-active: #eaeaea; /* Background color for interactive elements with neutral tone and normal emphasis that are hovered, focused, or active. */
|
|
@@ -27,19 +31,19 @@
|
|
|
27
31
|
--wpds-color-bg-interactive-neutral-weak-active: #eaeaea; /* Background color for interactive elements with neutral tone and weak emphasis that are hovered, focused, or active. */
|
|
28
32
|
--wpds-color-bg-interactive-neutral-weak-disabled: #e2e2e2; /* Background color for interactive elements with neutral tone and weak emphasis, in their disabled state. */
|
|
29
33
|
--wpds-color-bg-surface-brand: #ecf0f9; /* Background color for surfaces with brand tone and normal emphasis. */
|
|
30
|
-
--wpds-color-bg-surface-caution: #
|
|
31
|
-
--wpds-color-bg-surface-caution-weak: #
|
|
32
|
-
--wpds-color-bg-surface-error: #
|
|
33
|
-
--wpds-color-bg-surface-error-weak: #
|
|
34
|
-
--wpds-color-bg-surface-info: #
|
|
35
|
-
--wpds-color-bg-surface-info-weak: #
|
|
34
|
+
--wpds-color-bg-surface-caution: #fee994; /* Background color for surfaces with caution tone and normal emphasis. */
|
|
35
|
+
--wpds-color-bg-surface-caution-weak: #fff9c9; /* Background color for surfaces with caution tone and weak emphasis. */
|
|
36
|
+
--wpds-color-bg-surface-error: #f6e6e3; /* Background color for surfaces with error tone and normal emphasis. */
|
|
37
|
+
--wpds-color-bg-surface-error-weak: #fff6f4; /* Background color for surfaces with error tone and weak emphasis. */
|
|
38
|
+
--wpds-color-bg-surface-info: #deebfa; /* Background color for surfaces with info tone and normal emphasis. */
|
|
39
|
+
--wpds-color-bg-surface-info-weak: #f3f9ff; /* Background color for surfaces with info tone and weak emphasis. */
|
|
36
40
|
--wpds-color-bg-surface-neutral: #f8f8f8; /* Background color for surfaces with normal emphasis. */
|
|
37
41
|
--wpds-color-bg-surface-neutral-strong: #ffffff; /* Background color for surfaces with strong emphasis. */
|
|
38
42
|
--wpds-color-bg-surface-neutral-weak: #f0f0f0; /* Background color for surfaces with weak emphasis. */
|
|
39
|
-
--wpds-color-bg-surface-success: #
|
|
40
|
-
--wpds-color-bg-surface-success-weak: #
|
|
41
|
-
--wpds-color-bg-surface-warning: #
|
|
42
|
-
--wpds-color-bg-surface-warning-weak: #
|
|
43
|
+
--wpds-color-bg-surface-success: #c5f7cc; /* Background color for surfaces with success tone and normal emphasis. */
|
|
44
|
+
--wpds-color-bg-surface-success-weak: #eaffed; /* Background color for surfaces with success tone and weak emphasis. */
|
|
45
|
+
--wpds-color-bg-surface-warning: #fde6bd; /* Background color for surfaces with warning tone and normal emphasis. */
|
|
46
|
+
--wpds-color-bg-surface-warning-weak: #fff7e0; /* Background color for surfaces with warning tone and weak emphasis. */
|
|
43
47
|
--wpds-color-bg-thumb-brand: #3858e9; /* Background color for thumbs with a brand tone and normal emphasis (eg. slider thumb and filled track). */
|
|
44
48
|
--wpds-color-bg-thumb-brand-active: #3858e9; /* Background color for thumbs with a brand tone and normal emphasis (eg. slider thumb and filled track) that are hovered, focused, or active. */
|
|
45
49
|
--wpds-color-bg-thumb-brand-disabled: #d8d8d8; /* Background color for thumbs with a brand tone and normal emphasis (eg. slider thumb and filled track), in their disabled state. */
|
|
@@ -48,7 +52,7 @@
|
|
|
48
52
|
--wpds-color-bg-track-neutral: #d8d8d8; /* Background color for tracks with a neutral tone and normal emphasis (eg. slider or progressbar track). */
|
|
49
53
|
--wpds-color-bg-track-neutral-weak: #e0e0e0; /* Background color for tracks with a neutral tone and weak emphasis (eg. scrollbar track). */
|
|
50
54
|
--wpds-color-fg-content-caution: #281d00; /* Foreground color for content like text with caution tone and normal emphasis. */
|
|
51
|
-
--wpds-color-fg-content-caution-weak: #
|
|
55
|
+
--wpds-color-fg-content-caution-weak: #826a00; /* Foreground color for content like text with caution tone and weak emphasis. */
|
|
52
56
|
--wpds-color-fg-content-error: #470000; /* Foreground color for content like text with error tone and normal emphasis. */
|
|
53
57
|
--wpds-color-fg-content-error-weak: #cc1818; /* Foreground color for content like text with error tone and weak emphasis. */
|
|
54
58
|
--wpds-color-fg-content-info: #001b4f; /* Foreground color for content like text with info tone and normal emphasis. */
|
|
@@ -58,7 +62,7 @@
|
|
|
58
62
|
--wpds-color-fg-content-success: #002900; /* Foreground color for content like text with success tone and normal emphasis. */
|
|
59
63
|
--wpds-color-fg-content-success-weak: #007f30; /* Foreground color for content like text with success tone and weak emphasis. */
|
|
60
64
|
--wpds-color-fg-content-warning: #2e1900; /* Foreground color for content like text with warning tone and normal emphasis. */
|
|
61
|
-
--wpds-color-fg-content-warning-weak: #
|
|
65
|
+
--wpds-color-fg-content-warning-weak: #926300; /* Foreground color for content like text with warning tone and weak emphasis. */
|
|
62
66
|
--wpds-color-fg-interactive-brand: #3858e9; /* Foreground color for interactive elements with brand tone and normal emphasis. */
|
|
63
67
|
--wpds-color-fg-interactive-brand-active: #3858e9; /* Foreground color for interactive elements with brand tone and normal emphasis that are hovered, focused, or active. */
|
|
64
68
|
--wpds-color-fg-interactive-brand-disabled: #8a8a8a; /* Foreground color for interactive elements with brand tone and normal emphasis, in their disabled state. */
|
|
@@ -82,20 +86,26 @@
|
|
|
82
86
|
--wpds-color-stroke-interactive-neutral-active: #6c6c6c; /* Accessible stroke color used for interactive neutrally-toned elements with normal emphasis that are hovered, focused, or active. */
|
|
83
87
|
--wpds-color-stroke-interactive-neutral-disabled: #d8d8d8; /* Accessible stroke color used for interactive neutrally-toned elements with normal emphasis, in their disabled state. */
|
|
84
88
|
--wpds-color-stroke-interactive-neutral-strong: #6c6c6c; /* Accessible stroke color used for interactive neutrally-toned elements with strong emphasis. */
|
|
85
|
-
--wpds-color-stroke-surface-brand: #
|
|
89
|
+
--wpds-color-stroke-surface-brand: #a3b1d4; /* Decorative stroke color used to define brand-toned surface boundaries with normal emphasis. */
|
|
86
90
|
--wpds-color-stroke-surface-brand-strong: #3858e9; /* Decorative stroke color used to define neutrally-toned surface boundaries with strong emphasis. */
|
|
87
|
-
--wpds-color-stroke-surface-error: #
|
|
91
|
+
--wpds-color-stroke-surface-error: #daa39b; /* Decorative stroke color used to define error-toned surface boundaries with normal emphasis. */
|
|
88
92
|
--wpds-color-stroke-surface-error-strong: #cc1818; /* Decorative stroke color used to define error-toned surface boundaries with strong emphasis. */
|
|
89
|
-
--wpds-color-stroke-surface-info: #
|
|
93
|
+
--wpds-color-stroke-surface-info: #9fbcdc; /* Decorative stroke color used to define info-toned surface boundaries with normal emphasis. */
|
|
90
94
|
--wpds-color-stroke-surface-info-strong: #006bd7; /* Decorative stroke color used to define info-toned surface boundaries with strong emphasis. */
|
|
91
95
|
--wpds-color-stroke-surface-neutral: #d8d8d8; /* Decorative stroke color used to define neutrally-toned surface boundaries with normal emphasis. */
|
|
92
96
|
--wpds-color-stroke-surface-neutral-strong: #8a8a8a; /* Decorative stroke color used to define neutrally-toned surface boundaries with strong emphasis. */
|
|
93
97
|
--wpds-color-stroke-surface-neutral-weak: #e0e0e0; /* Decorative stroke color used to define neutrally-toned surface boundaries with weak emphasis. */
|
|
94
|
-
--wpds-color-stroke-surface-success: #
|
|
98
|
+
--wpds-color-stroke-surface-success: #8ac894; /* Decorative stroke color used to define success-toned surface boundaries with normal emphasis. */
|
|
95
99
|
--wpds-color-stroke-surface-success-strong: #007f30; /* Decorative stroke color used to define success-toned surface boundaries with strong emphasis. */
|
|
96
|
-
--wpds-color-stroke-surface-warning: #
|
|
97
|
-
--wpds-color-stroke-surface-warning-strong: #
|
|
100
|
+
--wpds-color-stroke-surface-warning: #d0b381; /* Decorative stroke color used to define warning-toned surface boundaries with normal emphasis. */
|
|
101
|
+
--wpds-color-stroke-surface-warning-strong: #926300; /* Decorative stroke color used to define warning-toned surface boundaries with strong emphasis. */
|
|
98
102
|
--wpds-dimension-base: 4px; /* Base dimension unit */
|
|
103
|
+
--wpds-dimension-gap-2xs: 4px; /* 2x extra small gap */
|
|
104
|
+
--wpds-dimension-gap-lg: 24px; /* Large gap */
|
|
105
|
+
--wpds-dimension-gap-md: 16px; /* Medium gap */
|
|
106
|
+
--wpds-dimension-gap-sm: 12px; /* Small gap */
|
|
107
|
+
--wpds-dimension-gap-xl: 40px; /* Extra large gap */
|
|
108
|
+
--wpds-dimension-gap-xs: 8px; /* Extra small gap */
|
|
99
109
|
--wpds-dimension-padding-surface-2xs: 4px; /* 2x extra small spacing for surfaces */
|
|
100
110
|
--wpds-dimension-padding-surface-lg: 32px; /* Large spacing for surfaces */
|
|
101
111
|
--wpds-dimension-padding-surface-md: 24px; /* Medium spacing for surfaces */
|
|
@@ -130,6 +140,12 @@
|
|
|
130
140
|
|
|
131
141
|
[data-wpds-theme-provider-id][data-wpds-density='default'] {
|
|
132
142
|
--wpds-dimension-base: 4px; /* Base dimension unit */
|
|
143
|
+
--wpds-dimension-gap-2xs: 4px; /* 2x extra small gap */
|
|
144
|
+
--wpds-dimension-gap-lg: 24px; /* Large gap */
|
|
145
|
+
--wpds-dimension-gap-md: 16px; /* Medium gap */
|
|
146
|
+
--wpds-dimension-gap-sm: 12px; /* Small gap */
|
|
147
|
+
--wpds-dimension-gap-xl: 40px; /* Extra large gap */
|
|
148
|
+
--wpds-dimension-gap-xs: 8px; /* Extra small gap */
|
|
133
149
|
--wpds-dimension-padding-surface-2xs: 4px; /* 2x extra small spacing for surfaces */
|
|
134
150
|
--wpds-dimension-padding-surface-lg: 32px; /* Large spacing for surfaces */
|
|
135
151
|
--wpds-dimension-padding-surface-md: 24px; /* Medium spacing for surfaces */
|
|
@@ -138,6 +154,12 @@
|
|
|
138
154
|
}
|
|
139
155
|
|
|
140
156
|
[data-wpds-theme-provider-id][data-wpds-density='compact'] {
|
|
157
|
+
--wpds-dimension-gap-2xs: 4px; /* 2x extra small gap */
|
|
158
|
+
--wpds-dimension-gap-lg: 20px; /* Large gap */
|
|
159
|
+
--wpds-dimension-gap-md: 12px; /* Medium gap */
|
|
160
|
+
--wpds-dimension-gap-sm: 8px; /* Small gap */
|
|
161
|
+
--wpds-dimension-gap-xl: 32px; /* Extra large gap */
|
|
162
|
+
--wpds-dimension-gap-xs: 4px; /* Extra small gap */
|
|
141
163
|
--wpds-dimension-padding-surface-2xs: 4px; /* 2x extra small spacing for surfaces */
|
|
142
164
|
--wpds-dimension-padding-surface-lg: 24px; /* Large spacing for surfaces */
|
|
143
165
|
--wpds-dimension-padding-surface-md: 20px; /* Medium spacing for surfaces */
|
|
@@ -146,6 +168,12 @@
|
|
|
146
168
|
}
|
|
147
169
|
|
|
148
170
|
[data-wpds-theme-provider-id][data-wpds-density='comfortable'] {
|
|
171
|
+
--wpds-dimension-gap-2xs: 8px; /* 2x extra small gap */
|
|
172
|
+
--wpds-dimension-gap-lg: 32px; /* Large gap */
|
|
173
|
+
--wpds-dimension-gap-md: 20px; /* Medium gap */
|
|
174
|
+
--wpds-dimension-gap-sm: 16px; /* Small gap */
|
|
175
|
+
--wpds-dimension-gap-xl: 48px; /* Extra large gap */
|
|
176
|
+
--wpds-dimension-gap-xs: 12px; /* Extra small gap */
|
|
149
177
|
--wpds-dimension-padding-surface-2xs: 8px; /* 2x extra small spacing for surfaces */
|
|
150
178
|
--wpds-dimension-padding-surface-lg: 40px; /* Large spacing for surfaces */
|
|
151
179
|
--wpds-dimension-padding-surface-md: 32px; /* Medium spacing for surfaces */
|
|
@@ -155,6 +183,6 @@
|
|
|
155
183
|
|
|
156
184
|
@media ( -webkit-min-device-pixel-ratio: 2 ), ( min-resolution: 192dpi ) {
|
|
157
185
|
:root {
|
|
158
|
-
--wpds-border-width-focus: 1.5px; /* Border width for focus ring */
|
|
186
|
+
--wpds-border-width-interactive-focus: 1.5px; /* Border width for focus ring */
|
|
159
187
|
}
|
|
160
188
|
}
|
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export default [
|
|
7
|
-
'--wpds-border-radius-
|
|
8
|
-
'--wpds-border-radius-
|
|
9
|
-
'--wpds-border-radius-
|
|
10
|
-
'--wpds-border-radius-
|
|
11
|
-
'--wpds-border-width-
|
|
7
|
+
'--wpds-border-radius-surface-xs',
|
|
8
|
+
'--wpds-border-radius-surface-sm',
|
|
9
|
+
'--wpds-border-radius-surface-md',
|
|
10
|
+
'--wpds-border-radius-surface-lg',
|
|
11
|
+
'--wpds-border-width-surface-xs',
|
|
12
|
+
'--wpds-border-width-surface-sm',
|
|
13
|
+
'--wpds-border-width-surface-md',
|
|
14
|
+
'--wpds-border-width-surface-lg',
|
|
15
|
+
'--wpds-border-width-interactive-focus',
|
|
12
16
|
'--wpds-color-bg-surface-neutral',
|
|
13
17
|
'--wpds-color-bg-surface-neutral-strong',
|
|
14
18
|
'--wpds-color-bg-surface-neutral-weak',
|
|
@@ -102,6 +106,12 @@ export default [
|
|
|
102
106
|
'--wpds-dimension-padding-surface-sm',
|
|
103
107
|
'--wpds-dimension-padding-surface-md',
|
|
104
108
|
'--wpds-dimension-padding-surface-lg',
|
|
109
|
+
'--wpds-dimension-gap-2xs',
|
|
110
|
+
'--wpds-dimension-gap-xs',
|
|
111
|
+
'--wpds-dimension-gap-sm',
|
|
112
|
+
'--wpds-dimension-gap-md',
|
|
113
|
+
'--wpds-dimension-gap-lg',
|
|
114
|
+
'--wpds-dimension-gap-xl',
|
|
105
115
|
'--wpds-elevation-x-small',
|
|
106
116
|
'--wpds-elevation-small',
|
|
107
117
|
'--wpds-elevation-medium',
|
|
@@ -1,29 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
"Border/radius-
|
|
2
|
+
"Border/radius-surface-xs": {
|
|
3
3
|
"value": {
|
|
4
4
|
".": "1px"
|
|
5
5
|
},
|
|
6
|
-
"description": "Extra small radius"
|
|
6
|
+
"description": "Extra small radius for surfaces"
|
|
7
7
|
},
|
|
8
|
-
"Border/radius-
|
|
8
|
+
"Border/radius-surface-sm": {
|
|
9
9
|
"value": {
|
|
10
10
|
".": "2px"
|
|
11
11
|
},
|
|
12
|
-
"description": "Small radius"
|
|
12
|
+
"description": "Small radius for surfaces"
|
|
13
13
|
},
|
|
14
|
-
"Border/radius-
|
|
14
|
+
"Border/radius-surface-md": {
|
|
15
15
|
"value": {
|
|
16
16
|
".": "4px"
|
|
17
17
|
},
|
|
18
|
-
"description": "Medium radius"
|
|
18
|
+
"description": "Medium radius for surfaces"
|
|
19
19
|
},
|
|
20
|
-
"Border/radius-
|
|
20
|
+
"Border/radius-surface-lg": {
|
|
21
21
|
"value": {
|
|
22
22
|
".": "8px"
|
|
23
23
|
},
|
|
24
|
-
"description": "Large radius"
|
|
24
|
+
"description": "Large radius for surfaces"
|
|
25
25
|
},
|
|
26
|
-
"Border/width-
|
|
26
|
+
"Border/width-surface-xs": {
|
|
27
|
+
"value": {
|
|
28
|
+
".": "1px"
|
|
29
|
+
},
|
|
30
|
+
"description": "Extra small width for surfaces"
|
|
31
|
+
},
|
|
32
|
+
"Border/width-surface-sm": {
|
|
33
|
+
"value": {
|
|
34
|
+
".": "2px"
|
|
35
|
+
},
|
|
36
|
+
"description": "Small width for surfaces"
|
|
37
|
+
},
|
|
38
|
+
"Border/width-surface-md": {
|
|
39
|
+
"value": {
|
|
40
|
+
".": "4px"
|
|
41
|
+
},
|
|
42
|
+
"description": "Medium width for surfaces"
|
|
43
|
+
},
|
|
44
|
+
"Border/width-surface-lg": {
|
|
45
|
+
"value": {
|
|
46
|
+
".": "8px"
|
|
47
|
+
},
|
|
48
|
+
"description": "Large width for surfaces"
|
|
49
|
+
},
|
|
50
|
+
"Border/width-interactive-focus": {
|
|
27
51
|
"value": {
|
|
28
52
|
".": "2px",
|
|
29
53
|
"high-dpi": "1.5px"
|
|
@@ -56,61 +80,61 @@
|
|
|
56
80
|
},
|
|
57
81
|
"Color/Semantic/Background/Success/bgSur-success": {
|
|
58
82
|
"value": {
|
|
59
|
-
".": "#
|
|
83
|
+
".": "#c5f7cc"
|
|
60
84
|
},
|
|
61
85
|
"description": "Background color for surfaces with success tone and normal emphasis."
|
|
62
86
|
},
|
|
63
87
|
"Color/Semantic/Background/Success/bgSur-success-weak": {
|
|
64
88
|
"value": {
|
|
65
|
-
".": "#
|
|
89
|
+
".": "#eaffed"
|
|
66
90
|
},
|
|
67
91
|
"description": "Background color for surfaces with success tone and weak emphasis."
|
|
68
92
|
},
|
|
69
93
|
"Color/Semantic/Background/Info/bgSur-info": {
|
|
70
94
|
"value": {
|
|
71
|
-
".": "#
|
|
95
|
+
".": "#deebfa"
|
|
72
96
|
},
|
|
73
97
|
"description": "Background color for surfaces with info tone and normal emphasis."
|
|
74
98
|
},
|
|
75
99
|
"Color/Semantic/Background/Info/bgSur-info-weak": {
|
|
76
100
|
"value": {
|
|
77
|
-
".": "#
|
|
101
|
+
".": "#f3f9ff"
|
|
78
102
|
},
|
|
79
103
|
"description": "Background color for surfaces with info tone and weak emphasis."
|
|
80
104
|
},
|
|
81
105
|
"Color/Semantic/Background/Warning/bgSur-warning": {
|
|
82
106
|
"value": {
|
|
83
|
-
".": "#
|
|
107
|
+
".": "#fde6bd"
|
|
84
108
|
},
|
|
85
109
|
"description": "Background color for surfaces with warning tone and normal emphasis."
|
|
86
110
|
},
|
|
87
111
|
"Color/Semantic/Background/Warning/bgSur-warning-weak": {
|
|
88
112
|
"value": {
|
|
89
|
-
".": "#
|
|
113
|
+
".": "#fff7e0"
|
|
90
114
|
},
|
|
91
115
|
"description": "Background color for surfaces with warning tone and weak emphasis."
|
|
92
116
|
},
|
|
93
117
|
"Color/Semantic/Background/Caution/bgSur-caution": {
|
|
94
118
|
"value": {
|
|
95
|
-
".": "#
|
|
119
|
+
".": "#fee994"
|
|
96
120
|
},
|
|
97
121
|
"description": "Background color for surfaces with caution tone and normal emphasis."
|
|
98
122
|
},
|
|
99
123
|
"Color/Semantic/Background/Caution/bgSur-caution-weak": {
|
|
100
124
|
"value": {
|
|
101
|
-
".": "#
|
|
125
|
+
".": "#fff9c9"
|
|
102
126
|
},
|
|
103
127
|
"description": "Background color for surfaces with caution tone and weak emphasis."
|
|
104
128
|
},
|
|
105
129
|
"Color/Semantic/Background/Error/bgSur-error": {
|
|
106
130
|
"value": {
|
|
107
|
-
".": "#
|
|
131
|
+
".": "#f6e6e3"
|
|
108
132
|
},
|
|
109
133
|
"description": "Background color for surfaces with error tone and normal emphasis."
|
|
110
134
|
},
|
|
111
135
|
"Color/Semantic/Background/Error/bgSur-error-weak": {
|
|
112
136
|
"value": {
|
|
113
|
-
".": "#
|
|
137
|
+
".": "#fff6f4"
|
|
114
138
|
},
|
|
115
139
|
"description": "Background color for surfaces with error tone and weak emphasis."
|
|
116
140
|
},
|
|
@@ -176,7 +200,7 @@
|
|
|
176
200
|
},
|
|
177
201
|
"Color/Semantic/Background/Brand/bgInt-brand-active": {
|
|
178
202
|
"value": {
|
|
179
|
-
".": "#
|
|
203
|
+
".": "#f6f8fd"
|
|
180
204
|
},
|
|
181
205
|
"description": "Background color for interactive elements with brand tone and normal emphasis that are hovered, focused, or active."
|
|
182
206
|
},
|
|
@@ -212,7 +236,7 @@
|
|
|
212
236
|
},
|
|
213
237
|
"Color/Semantic/Background/Brand/bgInt-brand-weak-active": {
|
|
214
238
|
"value": {
|
|
215
|
-
".": "#
|
|
239
|
+
".": "#e6eaf4"
|
|
216
240
|
},
|
|
217
241
|
"description": "Background color for interactive elements with brand tone and weak emphasis that are hovered, focused, or active."
|
|
218
242
|
},
|
|
@@ -308,7 +332,7 @@
|
|
|
308
332
|
},
|
|
309
333
|
"Color/Semantic/Foreground/Warning/fgCon-warning-weak": {
|
|
310
334
|
"value": {
|
|
311
|
-
".": "#
|
|
335
|
+
".": "#926300"
|
|
312
336
|
},
|
|
313
337
|
"description": "Foreground color for content like text with warning tone and weak emphasis."
|
|
314
338
|
},
|
|
@@ -320,7 +344,7 @@
|
|
|
320
344
|
},
|
|
321
345
|
"Color/Semantic/Foreground/Caution/fgCon-caution-weak": {
|
|
322
346
|
"value": {
|
|
323
|
-
".": "#
|
|
347
|
+
".": "#826a00"
|
|
324
348
|
},
|
|
325
349
|
"description": "Foreground color for content like text with caution tone and weak emphasis."
|
|
326
350
|
},
|
|
@@ -440,7 +464,7 @@
|
|
|
440
464
|
},
|
|
441
465
|
"Color/Semantic/Stroke/Brand/strokeSur-brand": {
|
|
442
466
|
"value": {
|
|
443
|
-
".": "#
|
|
467
|
+
".": "#a3b1d4"
|
|
444
468
|
},
|
|
445
469
|
"description": "Decorative stroke color used to define brand-toned surface boundaries with normal emphasis."
|
|
446
470
|
},
|
|
@@ -452,7 +476,7 @@
|
|
|
452
476
|
},
|
|
453
477
|
"Color/Semantic/Stroke/Success/strokeSur-success": {
|
|
454
478
|
"value": {
|
|
455
|
-
".": "#
|
|
479
|
+
".": "#8ac894"
|
|
456
480
|
},
|
|
457
481
|
"description": "Decorative stroke color used to define success-toned surface boundaries with normal emphasis."
|
|
458
482
|
},
|
|
@@ -464,7 +488,7 @@
|
|
|
464
488
|
},
|
|
465
489
|
"Color/Semantic/Stroke/Info/strokeSur-info": {
|
|
466
490
|
"value": {
|
|
467
|
-
".": "#
|
|
491
|
+
".": "#9fbcdc"
|
|
468
492
|
},
|
|
469
493
|
"description": "Decorative stroke color used to define info-toned surface boundaries with normal emphasis."
|
|
470
494
|
},
|
|
@@ -476,19 +500,19 @@
|
|
|
476
500
|
},
|
|
477
501
|
"Color/Semantic/Stroke/Warning/strokeSur-warning": {
|
|
478
502
|
"value": {
|
|
479
|
-
".": "#
|
|
503
|
+
".": "#d0b381"
|
|
480
504
|
},
|
|
481
505
|
"description": "Decorative stroke color used to define warning-toned surface boundaries with normal emphasis."
|
|
482
506
|
},
|
|
483
507
|
"Color/Semantic/Stroke/Warning/strokeSur-warning-strong": {
|
|
484
508
|
"value": {
|
|
485
|
-
".": "#
|
|
509
|
+
".": "#926300"
|
|
486
510
|
},
|
|
487
511
|
"description": "Decorative stroke color used to define warning-toned surface boundaries with strong emphasis."
|
|
488
512
|
},
|
|
489
513
|
"Color/Semantic/Stroke/Error/strokeSur-error": {
|
|
490
514
|
"value": {
|
|
491
|
-
".": "#
|
|
515
|
+
".": "#daa39b"
|
|
492
516
|
},
|
|
493
517
|
"description": "Decorative stroke color used to define error-toned surface boundaries with normal emphasis."
|
|
494
518
|
},
|
|
@@ -598,6 +622,54 @@
|
|
|
598
622
|
},
|
|
599
623
|
"description": "Large spacing for surfaces"
|
|
600
624
|
},
|
|
625
|
+
"Dimension/Semantic/gap-2xs": {
|
|
626
|
+
"value": {
|
|
627
|
+
".": "4px",
|
|
628
|
+
"compact": "4px",
|
|
629
|
+
"comfortable": "8px"
|
|
630
|
+
},
|
|
631
|
+
"description": "2x extra small gap"
|
|
632
|
+
},
|
|
633
|
+
"Dimension/Semantic/gap-xs": {
|
|
634
|
+
"value": {
|
|
635
|
+
".": "8px",
|
|
636
|
+
"compact": "4px",
|
|
637
|
+
"comfortable": "12px"
|
|
638
|
+
},
|
|
639
|
+
"description": "Extra small gap"
|
|
640
|
+
},
|
|
641
|
+
"Dimension/Semantic/gap-sm": {
|
|
642
|
+
"value": {
|
|
643
|
+
".": "12px",
|
|
644
|
+
"compact": "8px",
|
|
645
|
+
"comfortable": "16px"
|
|
646
|
+
},
|
|
647
|
+
"description": "Small gap"
|
|
648
|
+
},
|
|
649
|
+
"Dimension/Semantic/gap-md": {
|
|
650
|
+
"value": {
|
|
651
|
+
".": "16px",
|
|
652
|
+
"compact": "12px",
|
|
653
|
+
"comfortable": "20px"
|
|
654
|
+
},
|
|
655
|
+
"description": "Medium gap"
|
|
656
|
+
},
|
|
657
|
+
"Dimension/Semantic/gap-lg": {
|
|
658
|
+
"value": {
|
|
659
|
+
".": "24px",
|
|
660
|
+
"compact": "20px",
|
|
661
|
+
"comfortable": "32px"
|
|
662
|
+
},
|
|
663
|
+
"description": "Large gap"
|
|
664
|
+
},
|
|
665
|
+
"Dimension/Semantic/gap-xl": {
|
|
666
|
+
"value": {
|
|
667
|
+
".": "40px",
|
|
668
|
+
"compact": "32px",
|
|
669
|
+
"comfortable": "48px"
|
|
670
|
+
},
|
|
671
|
+
"description": "Extra large gap"
|
|
672
|
+
},
|
|
601
673
|
"Elevation/x-small": {
|
|
602
674
|
"value": {
|
|
603
675
|
".": "0 1px 1px 0 color(srgb 0 0 0 / 0.03), 0 1px 2px 0 color(srgb 0 0 0 / 0.02), 0 3px 3px 0 color(srgb 0 0 0 / 0.02), 0 4px 4px 0 color(srgb 0 0 0 / 0.01)"
|
package/tokens/border.json
CHANGED
|
@@ -2,30 +2,52 @@
|
|
|
2
2
|
"border": {
|
|
3
3
|
"$type": "dimension",
|
|
4
4
|
"radius": {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
5
|
+
"surface": {
|
|
6
|
+
"xs": {
|
|
7
|
+
"$value": { "value": 1, "unit": "px" },
|
|
8
|
+
"$description": "Extra small radius for surfaces"
|
|
9
|
+
},
|
|
10
|
+
"sm": {
|
|
11
|
+
"$value": { "value": 2, "unit": "px" },
|
|
12
|
+
"$description": "Small radius for surfaces"
|
|
13
|
+
},
|
|
14
|
+
"md": {
|
|
15
|
+
"$value": { "value": 4, "unit": "px" },
|
|
16
|
+
"$description": "Medium radius for surfaces"
|
|
17
|
+
},
|
|
18
|
+
"lg": {
|
|
19
|
+
"$value": { "value": 8, "unit": "px" },
|
|
20
|
+
"$description": "Large radius for surfaces"
|
|
21
|
+
}
|
|
20
22
|
}
|
|
21
23
|
},
|
|
22
24
|
"width": {
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
"surface": {
|
|
26
|
+
"xs": {
|
|
27
|
+
"$value": { "value": 1, "unit": "px" },
|
|
28
|
+
"$description": "Extra small width for surfaces"
|
|
29
|
+
},
|
|
30
|
+
"sm": {
|
|
31
|
+
"$value": { "value": 2, "unit": "px" },
|
|
32
|
+
"$description": "Small width for surfaces"
|
|
33
|
+
},
|
|
34
|
+
"md": {
|
|
35
|
+
"$value": { "value": 4, "unit": "px" },
|
|
36
|
+
"$description": "Medium width for surfaces"
|
|
37
|
+
},
|
|
38
|
+
"lg": {
|
|
39
|
+
"$value": { "value": 8, "unit": "px" },
|
|
40
|
+
"$description": "Large width for surfaces"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"interactive": {
|
|
44
|
+
"focus": {
|
|
45
|
+
"$value": { "value": 2, "unit": "px" },
|
|
46
|
+
"$description": "Border width for focus ring",
|
|
47
|
+
"$extensions": {
|
|
48
|
+
"mode": {
|
|
49
|
+
"high-dpi": { "value": 1.5, "unit": "px" }
|
|
50
|
+
}
|
|
29
51
|
}
|
|
30
52
|
}
|
|
31
53
|
}
|