@wordpress/theme 0.2.1-next.16d95556a.0 → 0.3.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/bin/terrazzo-plugin-inline-alias-values/index.ts +43 -14
- package/build/color-ramps/index.js +16 -12
- package/build/color-ramps/index.js.map +2 -2
- package/build/color-ramps/lib/color-utils.js +5 -0
- package/build/color-ramps/lib/color-utils.js.map +2 -2
- package/build/color-ramps/lib/constants.js +1 -1
- package/build/color-ramps/lib/constants.js.map +1 -1
- package/build/color-ramps/lib/default-ramps.js +88 -88
- package/build/color-ramps/lib/default-ramps.js.map +1 -1
- package/build/color-ramps/lib/find-color-with-constraints.js +1 -1
- package/build/color-ramps/lib/find-color-with-constraints.js.map +2 -2
- package/build/color-ramps/lib/index.js +2 -2
- package/build/color-ramps/lib/index.js.map +2 -2
- package/build/color-ramps/lib/ramp-configs.js +2 -2
- package/build/color-ramps/lib/ramp-configs.js.map +1 -1
- package/build/color-ramps/lib/utils.js +4 -8
- package/build/color-ramps/lib/utils.js.map +2 -2
- package/build/prebuilt/js/design-tokens.js +5 -4
- package/build/prebuilt/js/design-tokens.js.map +2 -2
- package/build/prebuilt/json/figma.json +75 -59
- package/build/theme-provider.js +3 -1
- package/build/theme-provider.js.map +2 -2
- package/build/types.js.map +1 -1
- package/build-module/color-ramps/index.js +17 -13
- package/build-module/color-ramps/index.js.map +2 -2
- package/build-module/color-ramps/lib/color-utils.js +7 -1
- package/build-module/color-ramps/lib/color-utils.js.map +2 -2
- package/build-module/color-ramps/lib/constants.js +1 -1
- package/build-module/color-ramps/lib/constants.js.map +1 -1
- package/build-module/color-ramps/lib/default-ramps.js +88 -88
- package/build-module/color-ramps/lib/default-ramps.js.map +1 -1
- package/build-module/color-ramps/lib/find-color-with-constraints.js +2 -2
- package/build-module/color-ramps/lib/find-color-with-constraints.js.map +2 -2
- package/build-module/color-ramps/lib/index.js +1 -2
- package/build-module/color-ramps/lib/index.js.map +2 -2
- package/build-module/color-ramps/lib/ramp-configs.js +2 -2
- package/build-module/color-ramps/lib/ramp-configs.js.map +1 -1
- package/build-module/color-ramps/lib/utils.js +0 -3
- package/build-module/color-ramps/lib/utils.js.map +2 -2
- package/build-module/prebuilt/js/design-tokens.js +5 -4
- package/build-module/prebuilt/js/design-tokens.js.map +2 -2
- package/build-module/prebuilt/json/figma.json +75 -59
- package/build-module/theme-provider.js +3 -1
- package/build-module/theme-provider.js.map +2 -2
- package/build-types/color-ramps/index.d.ts +1 -0
- package/build-types/color-ramps/index.d.ts.map +1 -1
- package/build-types/color-ramps/lib/color-utils.d.ts +5 -0
- package/build-types/color-ramps/lib/color-utils.d.ts.map +1 -1
- package/build-types/color-ramps/lib/constants.d.ts +1 -1
- package/build-types/color-ramps/lib/constants.d.ts.map +1 -1
- package/build-types/color-ramps/lib/index.d.ts.map +1 -1
- package/build-types/color-ramps/lib/utils.d.ts +0 -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/stories/index.story.d.ts +1 -0
- package/build-types/stories/index.story.d.ts.map +1 -1
- package/build-types/theme-provider.d.ts +1 -1
- package/build-types/theme-provider.d.ts.map +1 -1
- package/build-types/types.d.ts +8 -0
- package/build-types/types.d.ts.map +1 -1
- package/docs/ds-tokens.md +8 -7
- package/package.json +4 -4
- package/src/color-ramps/index.ts +16 -11
- package/src/color-ramps/lib/color-utils.ts +11 -0
- package/src/color-ramps/lib/constants.ts +3 -3
- package/src/color-ramps/lib/default-ramps.ts +88 -88
- package/src/color-ramps/lib/find-color-with-constraints.ts +2 -2
- package/src/color-ramps/lib/index.ts +1 -2
- package/src/color-ramps/lib/ramp-configs.ts +2 -2
- package/src/color-ramps/lib/utils.ts +1 -8
- package/src/color-ramps/stories/index.story.tsx +7 -4
- package/src/prebuilt/css/design-tokens.css +81 -55
- package/src/prebuilt/js/design-tokens.js +5 -4
- package/src/prebuilt/json/figma.json +75 -59
- package/src/stories/index.story.tsx +23 -9
- package/src/theme-provider.tsx +2 -0
- package/src/types.ts +9 -0
- package/terrazzo.config.ts +21 -0
- package/tokens/color.json +88 -88
- package/tokens/dimension.json +44 -10
- package/tsconfig.bin.tsbuildinfo +1 -1
- package/tsconfig.src.tsbuildinfo +1 -1
|
@@ -10,96 +10,97 @@
|
|
|
10
10
|
--wpds-border-width-focus: 2px; /* Border width for focus ring */
|
|
11
11
|
--wpds-color-bg-interactive-brand: #00000000; /* Background color for interactive elements with brand tone and normal emphasis. */
|
|
12
12
|
--wpds-color-bg-interactive-brand-active: #f6f8fc; /* Background color for interactive elements with brand tone and normal emphasis that are hovered, focused, or active. */
|
|
13
|
-
--wpds-color-bg-interactive-brand-disabled: #
|
|
13
|
+
--wpds-color-bg-interactive-brand-disabled: #e2e2e2; /* Background color for interactive elements with brand tone and normal emphasis, in their disabled state. */
|
|
14
14
|
--wpds-color-bg-interactive-brand-strong: #3858e9; /* Background color for interactive elements with brand tone and strong emphasis. */
|
|
15
|
-
--wpds-color-bg-interactive-brand-strong-active: #
|
|
16
|
-
--wpds-color-bg-interactive-brand-strong-disabled: #
|
|
15
|
+
--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
|
+
--wpds-color-bg-interactive-brand-strong-disabled: #d2d2d2; /* Background color for interactive elements with brand tone and strong emphasis, in their disabled state. */
|
|
17
17
|
--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: #
|
|
19
|
-
--wpds-color-bg-interactive-brand-weak-disabled: #
|
|
18
|
+
--wpds-color-bg-interactive-brand-weak-active: #e4eaf7; /* Background color for interactive elements with brand tone and weak emphasis that are hovered, focused, or active. */
|
|
19
|
+
--wpds-color-bg-interactive-brand-weak-disabled: #e2e2e2; /* Background color for interactive elements with brand tone and weak emphasis, in their disabled state. */
|
|
20
20
|
--wpds-color-bg-interactive-neutral: #00000000; /* Background color for interactive elements with neutral tone and normal emphasis. */
|
|
21
21
|
--wpds-color-bg-interactive-neutral-active: #eaeaea; /* Background color for interactive elements with neutral tone and normal emphasis that are hovered, focused, or active. */
|
|
22
|
-
--wpds-color-bg-interactive-neutral-disabled: #
|
|
22
|
+
--wpds-color-bg-interactive-neutral-disabled: #e2e2e2; /* Background color for interactive elements with neutral tone and normal emphasis, in their disabled state. */
|
|
23
23
|
--wpds-color-bg-interactive-neutral-strong: #2d2d2d; /* Background color for interactive elements with neutral tone and strong emphasis. */
|
|
24
24
|
--wpds-color-bg-interactive-neutral-strong-active: #1e1e1e; /* Background color for interactive elements with neutral tone and strong emphasis that are hovered, focused, or active. */
|
|
25
|
-
--wpds-color-bg-interactive-neutral-strong-disabled: #
|
|
25
|
+
--wpds-color-bg-interactive-neutral-strong-disabled: #d2d2d2; /* Background color for interactive elements with neutral tone and strong emphasis, in their disabled state. */
|
|
26
26
|
--wpds-color-bg-interactive-neutral-weak: #00000000; /* Background color for interactive elements with neutral tone and weak emphasis. */
|
|
27
27
|
--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
|
-
--wpds-color-bg-interactive-neutral-weak-disabled: #
|
|
29
|
-
--wpds-color-bg-surface-brand: #
|
|
30
|
-
--wpds-color-bg-surface-caution: #
|
|
28
|
+
--wpds-color-bg-interactive-neutral-weak-disabled: #e2e2e2; /* Background color for interactive elements with neutral tone and weak emphasis, in their disabled state. */
|
|
29
|
+
--wpds-color-bg-surface-brand: #ecf0f9; /* Background color for surfaces with brand tone and normal emphasis. */
|
|
30
|
+
--wpds-color-bg-surface-caution: #f7eab3; /* Background color for surfaces with caution tone and normal emphasis. */
|
|
31
31
|
--wpds-color-bg-surface-caution-weak: #fdf9e7; /* Background color for surfaces with caution tone and weak emphasis. */
|
|
32
|
-
--wpds-color-bg-surface-error: #
|
|
32
|
+
--wpds-color-bg-surface-error: #fae4e1; /* Background color for surfaces with error tone and normal emphasis. */
|
|
33
33
|
--wpds-color-bg-surface-error-weak: #fdf6f5; /* Background color for surfaces with error tone and weak emphasis. */
|
|
34
|
-
--wpds-color-bg-surface-info: #
|
|
34
|
+
--wpds-color-bg-surface-info: #dfebf8; /* Background color for surfaces with info tone and normal emphasis. */
|
|
35
35
|
--wpds-color-bg-surface-info-weak: #f5f9fd; /* Background color for surfaces with info tone and weak emphasis. */
|
|
36
36
|
--wpds-color-bg-surface-neutral: #f8f8f8; /* Background color for surfaces with normal emphasis. */
|
|
37
37
|
--wpds-color-bg-surface-neutral-strong: #ffffff; /* Background color for surfaces with strong emphasis. */
|
|
38
38
|
--wpds-color-bg-surface-neutral-weak: #f0f0f0; /* Background color for surfaces with weak emphasis. */
|
|
39
|
-
--wpds-color-bg-surface-success: #
|
|
39
|
+
--wpds-color-bg-surface-success: #cbf5d1; /* Background color for surfaces with success tone and normal emphasis. */
|
|
40
40
|
--wpds-color-bg-surface-success-weak: #f0fcf2; /* Background color for surfaces with success tone and weak emphasis. */
|
|
41
|
-
--wpds-color-bg-surface-warning: #
|
|
41
|
+
--wpds-color-bg-surface-warning: #f8e8cc; /* Background color for surfaces with warning tone and normal emphasis. */
|
|
42
42
|
--wpds-color-bg-surface-warning-weak: #fdf7ee; /* Background color for surfaces with warning tone and weak emphasis. */
|
|
43
43
|
--wpds-color-bg-thumb-brand: #3858e9; /* Background color for thumbs with a brand tone and normal emphasis (eg. slider thumb and filled track). */
|
|
44
44
|
--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
|
-
--wpds-color-bg-thumb-brand-disabled: #
|
|
46
|
-
--wpds-color-bg-thumb-neutral-weak: #
|
|
47
|
-
--wpds-color-bg-thumb-neutral-weak-active: #
|
|
48
|
-
--wpds-color-bg-track-neutral: #
|
|
49
|
-
--wpds-color-bg-track-neutral-weak: #
|
|
50
|
-
--wpds-color-fg-content-caution: #
|
|
51
|
-
--wpds-color-fg-content-caution-weak: #
|
|
52
|
-
--wpds-color-fg-content-error: #
|
|
45
|
+
--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. */
|
|
46
|
+
--wpds-color-bg-thumb-neutral-weak: #8a8a8a; /* Background color for thumbs with a neutral tone and weak emphasis (eg. scrollbar thumb). */
|
|
47
|
+
--wpds-color-bg-thumb-neutral-weak-active: #6c6c6c; /* Background color for thumbs with a neutral tone and weak emphasis (eg. scrollbar thumb) that are hovered, focused, or active. */
|
|
48
|
+
--wpds-color-bg-track-neutral: #d8d8d8; /* Background color for tracks with a neutral tone and normal emphasis (eg. slider or progressbar track). */
|
|
49
|
+
--wpds-color-bg-track-neutral-weak: #e0e0e0; /* Background color for tracks with a neutral tone and weak emphasis (eg. scrollbar track). */
|
|
50
|
+
--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: #836b00; /* Foreground color for content like text with caution tone and weak emphasis. */
|
|
52
|
+
--wpds-color-fg-content-error: #470000; /* Foreground color for content like text with error tone and normal emphasis. */
|
|
53
53
|
--wpds-color-fg-content-error-weak: #cc1818; /* Foreground color for content like text with error tone and weak emphasis. */
|
|
54
|
-
--wpds-color-fg-content-info: #
|
|
55
|
-
--wpds-color-fg-content-info-weak: #
|
|
54
|
+
--wpds-color-fg-content-info: #001b4f; /* Foreground color for content like text with info tone and normal emphasis. */
|
|
55
|
+
--wpds-color-fg-content-info-weak: #006bd7; /* Foreground color for content like text with info tone and weak emphasis. */
|
|
56
56
|
--wpds-color-fg-content-neutral: #1e1e1e; /* Foreground color for content like text with normal emphasis. */
|
|
57
|
-
--wpds-color-fg-content-neutral-weak: #
|
|
58
|
-
--wpds-color-fg-content-success: #
|
|
59
|
-
--wpds-color-fg-content-success-weak: #
|
|
60
|
-
--wpds-color-fg-content-warning: #
|
|
61
|
-
--wpds-color-fg-content-warning-weak: #
|
|
57
|
+
--wpds-color-fg-content-neutral-weak: #6d6d6d; /* Foreground color for content like text with weak emphasis. */
|
|
58
|
+
--wpds-color-fg-content-success: #002900; /* Foreground color for content like text with success tone and normal emphasis. */
|
|
59
|
+
--wpds-color-fg-content-success-weak: #007f30; /* Foreground color for content like text with success tone and weak emphasis. */
|
|
60
|
+
--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: #936400; /* Foreground color for content like text with warning tone and weak emphasis. */
|
|
62
62
|
--wpds-color-fg-interactive-brand: #3858e9; /* Foreground color for interactive elements with brand tone and normal emphasis. */
|
|
63
63
|
--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
|
-
--wpds-color-fg-interactive-brand-disabled: #
|
|
64
|
+
--wpds-color-fg-interactive-brand-disabled: #8a8a8a; /* Foreground color for interactive elements with brand tone and normal emphasis, in their disabled state. */
|
|
65
65
|
--wpds-color-fg-interactive-brand-strong: #eff0f2; /* Foreground color for interactive elements with brand tone and strong emphasis. */
|
|
66
66
|
--wpds-color-fg-interactive-brand-strong-active: #eff0f2; /* Foreground color for interactive elements with brand tone and strong emphasis that are hovered, focused, or active. */
|
|
67
|
-
--wpds-color-fg-interactive-brand-strong-disabled: #
|
|
67
|
+
--wpds-color-fg-interactive-brand-strong-disabled: #6d6d6d; /* Foreground color for interactive elements with brand tone and strong emphasis, in their disabled state. */
|
|
68
68
|
--wpds-color-fg-interactive-neutral: #1e1e1e; /* Foreground color for interactive elements with neutral tone and normal emphasis. */
|
|
69
69
|
--wpds-color-fg-interactive-neutral-active: #1e1e1e; /* Foreground color for interactive elements with neutral tone and normal emphasis that are hovered, focused, or active. */
|
|
70
|
-
--wpds-color-fg-interactive-neutral-disabled: #
|
|
70
|
+
--wpds-color-fg-interactive-neutral-disabled: #8a8a8a; /* Foreground color for interactive elements with neutral tone and normal emphasis, in their disabled state. */
|
|
71
71
|
--wpds-color-fg-interactive-neutral-strong: #f0f0f0; /* Foreground color for interactive elements with neutral tone and strong emphasis. */
|
|
72
72
|
--wpds-color-fg-interactive-neutral-strong-active: #f0f0f0; /* Foreground color for interactive elements with neutral tone and strong emphasis that are hovered, focused, or active. */
|
|
73
|
-
--wpds-color-fg-interactive-neutral-strong-disabled: #
|
|
74
|
-
--wpds-color-fg-interactive-neutral-weak: #
|
|
75
|
-
--wpds-color-fg-interactive-neutral-weak-disabled: #
|
|
73
|
+
--wpds-color-fg-interactive-neutral-strong-disabled: #6d6d6d; /* Foreground color for interactive elements with neutral tone and strong emphasis, in their disabled state. */
|
|
74
|
+
--wpds-color-fg-interactive-neutral-weak: #6d6d6d; /* Foreground color for interactive elements with neutral tone and weak emphasis. */
|
|
75
|
+
--wpds-color-fg-interactive-neutral-weak-disabled: #8a8a8a; /* Foreground color for interactive elements with neutral tone and weak emphasis, in their disabled state. */
|
|
76
76
|
--wpds-color-stroke-focus-brand: #3858e9; /* Accessible stroke color applied to focus rings. */
|
|
77
77
|
--wpds-color-stroke-interactive-brand: #3858e9; /* Accessible stroke color used for interactive brand-toned elements with normal emphasis. */
|
|
78
78
|
--wpds-color-stroke-interactive-brand-active: #2337c8; /* Accessible stroke color used for interactive brand-toned elements with normal emphasis that are hovered, focused, or active. */
|
|
79
|
-
--wpds-color-stroke-interactive-brand-disabled: #
|
|
79
|
+
--wpds-color-stroke-interactive-brand-disabled: #d8d8d8; /* Accessible stroke color used for interactive brand-toned elements with normal emphasis, in their disabled state. */
|
|
80
80
|
--wpds-color-stroke-interactive-error-strong: #cc1818; /* Accessible stroke color used for interactive error-toned elements with strong emphasis. */
|
|
81
|
-
--wpds-color-stroke-interactive-neutral: #
|
|
82
|
-
--wpds-color-stroke-interactive-neutral-active: #
|
|
83
|
-
--wpds-color-stroke-interactive-neutral-disabled: #
|
|
84
|
-
--wpds-color-stroke-interactive-neutral-strong: #
|
|
85
|
-
--wpds-color-stroke-surface-brand: #
|
|
81
|
+
--wpds-color-stroke-interactive-neutral: #8a8a8a; /* Accessible stroke color used for interactive neutrally-toned elements with normal emphasis. */
|
|
82
|
+
--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
|
+
--wpds-color-stroke-interactive-neutral-disabled: #d8d8d8; /* Accessible stroke color used for interactive neutrally-toned elements with normal emphasis, in their disabled state. */
|
|
84
|
+
--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: #a2b1d6; /* Decorative stroke color used to define brand-toned surface boundaries with normal emphasis. */
|
|
86
86
|
--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: #
|
|
87
|
+
--wpds-color-stroke-surface-error: #e1a198; /* Decorative stroke color used to define error-toned surface boundaries with normal emphasis. */
|
|
88
88
|
--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: #
|
|
90
|
-
--wpds-color-stroke-surface-info-strong: #
|
|
91
|
-
--wpds-color-stroke-surface-neutral: #
|
|
92
|
-
--wpds-color-stroke-surface-neutral-strong: #
|
|
93
|
-
--wpds-color-stroke-surface-neutral-weak: #
|
|
94
|
-
--wpds-color-stroke-surface-success: #
|
|
95
|
-
--wpds-color-stroke-surface-success-strong: #
|
|
96
|
-
--wpds-color-stroke-surface-warning: #
|
|
97
|
-
--wpds-color-stroke-surface-warning-strong: #
|
|
89
|
+
--wpds-color-stroke-surface-info: #9fbcdd; /* Decorative stroke color used to define info-toned surface boundaries with normal emphasis. */
|
|
90
|
+
--wpds-color-stroke-surface-info-strong: #006bd7; /* Decorative stroke color used to define info-toned surface boundaries with strong emphasis. */
|
|
91
|
+
--wpds-color-stroke-surface-neutral: #d8d8d8; /* Decorative stroke color used to define neutrally-toned surface boundaries with normal emphasis. */
|
|
92
|
+
--wpds-color-stroke-surface-neutral-strong: #8a8a8a; /* Decorative stroke color used to define neutrally-toned surface boundaries with strong emphasis. */
|
|
93
|
+
--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: #82c98f; /* Decorative stroke color used to define success-toned surface boundaries with normal emphasis. */
|
|
95
|
+
--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: #d2b581; /* Decorative stroke color used to define warning-toned surface boundaries with normal emphasis. */
|
|
97
|
+
--wpds-color-stroke-surface-warning-strong: #936400; /* Decorative stroke color used to define warning-toned surface boundaries with strong emphasis. */
|
|
98
98
|
--wpds-dimension-base: 4px; /* Base dimension unit */
|
|
99
|
-
--wpds-dimension-padding-surface-
|
|
100
|
-
--wpds-dimension-padding-surface-
|
|
101
|
-
--wpds-dimension-padding-surface-
|
|
102
|
-
--wpds-dimension-padding-surface-
|
|
99
|
+
--wpds-dimension-padding-surface-2xs: 4px; /* 2x extra small spacing for surfaces */
|
|
100
|
+
--wpds-dimension-padding-surface-lg: 32px; /* Large spacing for surfaces */
|
|
101
|
+
--wpds-dimension-padding-surface-md: 24px; /* Medium spacing for surfaces */
|
|
102
|
+
--wpds-dimension-padding-surface-sm: 16px; /* Small spacing for surfaces */
|
|
103
|
+
--wpds-dimension-padding-surface-xs: 8px; /* Extra small spacing for surfaces */
|
|
103
104
|
--wpds-elevation-large: 0 5px 15px 0 #00000014, 0 15px 27px 0 #00000012,
|
|
104
105
|
0 30px 36px 0 #0000000a, 0 50px 43px 0 #00000005; /* For components that confirm decisions or handle necessary interruptions. Example: Modals. */
|
|
105
106
|
--wpds-elevation-medium: 0 2px 3px 0 #0000000d, 0 4px 5px 0 #0000000a,
|
|
@@ -127,6 +128,31 @@
|
|
|
127
128
|
--wpds-font-size-x-small: 11px; /* Extra small font size */
|
|
128
129
|
}
|
|
129
130
|
|
|
131
|
+
[data-wpds-theme-provider-id][data-wpds-density='default'] {
|
|
132
|
+
--wpds-dimension-base: 4px; /* Base dimension unit */
|
|
133
|
+
--wpds-dimension-padding-surface-2xs: 4px; /* 2x extra small spacing for surfaces */
|
|
134
|
+
--wpds-dimension-padding-surface-lg: 32px; /* Large spacing for surfaces */
|
|
135
|
+
--wpds-dimension-padding-surface-md: 24px; /* Medium spacing for surfaces */
|
|
136
|
+
--wpds-dimension-padding-surface-sm: 16px; /* Small spacing for surfaces */
|
|
137
|
+
--wpds-dimension-padding-surface-xs: 8px; /* Extra small spacing for surfaces */
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
[data-wpds-theme-provider-id][data-wpds-density='compact'] {
|
|
141
|
+
--wpds-dimension-padding-surface-2xs: 4px; /* 2x extra small spacing for surfaces */
|
|
142
|
+
--wpds-dimension-padding-surface-lg: 24px; /* Large spacing for surfaces */
|
|
143
|
+
--wpds-dimension-padding-surface-md: 20px; /* Medium spacing for surfaces */
|
|
144
|
+
--wpds-dimension-padding-surface-sm: 12px; /* Small spacing for surfaces */
|
|
145
|
+
--wpds-dimension-padding-surface-xs: 4px; /* Extra small spacing for surfaces */
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
[data-wpds-theme-provider-id][data-wpds-density='comfortable'] {
|
|
149
|
+
--wpds-dimension-padding-surface-2xs: 8px; /* 2x extra small spacing for surfaces */
|
|
150
|
+
--wpds-dimension-padding-surface-lg: 40px; /* Large spacing for surfaces */
|
|
151
|
+
--wpds-dimension-padding-surface-md: 32px; /* Medium spacing for surfaces */
|
|
152
|
+
--wpds-dimension-padding-surface-sm: 20px; /* Small spacing for surfaces */
|
|
153
|
+
--wpds-dimension-padding-surface-xs: 12px; /* Extra small spacing for surfaces */
|
|
154
|
+
}
|
|
155
|
+
|
|
130
156
|
@media ( -webkit-min-device-pixel-ratio: 2 ), ( min-resolution: 192dpi ) {
|
|
131
157
|
:root {
|
|
132
158
|
--wpds-border-width-focus: 1.5px; /* Border width for focus ring */
|
|
@@ -97,10 +97,11 @@ export default [
|
|
|
97
97
|
'--wpds-color-stroke-interactive-error-strong',
|
|
98
98
|
'--wpds-color-stroke-focus-brand',
|
|
99
99
|
'--wpds-dimension-base',
|
|
100
|
-
'--wpds-dimension-padding-surface-
|
|
101
|
-
'--wpds-dimension-padding-surface-
|
|
102
|
-
'--wpds-dimension-padding-surface-
|
|
103
|
-
'--wpds-dimension-padding-surface-
|
|
100
|
+
'--wpds-dimension-padding-surface-2xs',
|
|
101
|
+
'--wpds-dimension-padding-surface-xs',
|
|
102
|
+
'--wpds-dimension-padding-surface-sm',
|
|
103
|
+
'--wpds-dimension-padding-surface-md',
|
|
104
|
+
'--wpds-dimension-padding-surface-lg',
|
|
104
105
|
'--wpds-elevation-x-small',
|
|
105
106
|
'--wpds-elevation-small',
|
|
106
107
|
'--wpds-elevation-medium',
|