@redis-ui/styles 21.6.0 → 21.7.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/dist/index.js +3645 -3616
- package/dist/index.umd.cjs +13 -13
- package/dist/themes/themeDarkNext/theme/components/actionIconButton.js +13 -11
- package/dist/themes/themeDarkNext/theme/components/appBar.js +12 -12
- package/dist/themes/themeDarkNext/theme/components/appSelectionMenu.js +8 -8
- package/dist/themes/themeDarkNext/theme/components/badge.js +36 -35
- package/dist/themes/themeDarkNext/theme/components/boxSelectionGroup.js +20 -19
- package/dist/themes/themeDarkNext/theme/components/breadcrumbs.js +6 -6
- package/dist/themes/themeDarkNext/theme/components/button.js +35 -33
- package/dist/themes/themeDarkNext/theme/components/buttonGroup.js +17 -17
- package/dist/themes/themeDarkNext/theme/components/card.js +13 -12
- package/dist/themes/themeDarkNext/theme/components/checkbox.js +26 -22
- package/dist/themes/themeDarkNext/theme/components/chip.js +10 -10
- package/dist/themes/themeDarkNext/theme/components/chipList.js +3 -3
- package/dist/themes/themeDarkNext/theme/components/drawer.js +8 -8
- package/dist/themes/themeDarkNext/theme/components/filters.js +4 -4
- package/dist/themes/themeDarkNext/theme/components/formField.js +2 -2
- package/dist/themes/themeDarkNext/theme/components/gauge.js +9 -9
- package/dist/themes/themeDarkNext/theme/components/highlightedIcon.js +15 -14
- package/dist/themes/themeDarkNext/theme/components/icon.js +7 -7
- package/dist/themes/themeDarkNext/theme/components/iconButton.js +6 -6
- package/dist/themes/themeDarkNext/theme/components/input.js +16 -16
- package/dist/themes/themeDarkNext/theme/components/keyValueList.js +4 -4
- package/dist/themes/themeDarkNext/theme/components/label.js +5 -5
- package/dist/themes/themeDarkNext/theme/components/layouts.js +1 -1
- package/dist/themes/themeDarkNext/theme/components/link.js +9 -9
- package/dist/themes/themeDarkNext/theme/components/loader.js +9 -9
- package/dist/themes/themeDarkNext/theme/components/menu.js +13 -13
- package/dist/themes/themeDarkNext/theme/components/modal.js +9 -9
- package/dist/themes/themeDarkNext/theme/components/moreInfoIcon.js +1 -1
- package/dist/themes/themeDarkNext/theme/components/popover.js +2 -2
- package/dist/themes/themeDarkNext/theme/components/popupCard.js +3 -3
- package/dist/themes/themeDarkNext/theme/components/progressBar.js +9 -9
- package/dist/themes/themeDarkNext/theme/components/radio.js +10 -10
- package/dist/themes/themeDarkNext/theme/components/searchBar.js +3 -3
- package/dist/themes/themeDarkNext/theme/components/section.js +9 -9
- package/dist/themes/themeDarkNext/theme/components/select.js +17 -17
- package/dist/themes/themeDarkNext/theme/components/semanticButton.js +21 -21
- package/dist/themes/themeDarkNext/theme/components/semanticContainer.js +16 -15
- package/dist/themes/themeDarkNext/theme/components/semanticIcon.js +5 -5
- package/dist/themes/themeDarkNext/theme/components/sideBar.js +20 -19
- package/dist/themes/themeDarkNext/theme/components/skeleton.js +6 -6
- package/dist/themes/themeDarkNext/theme/components/slider.js +12 -12
- package/dist/themes/themeDarkNext/theme/components/stepper.js +10 -10
- package/dist/themes/themeDarkNext/theme/components/switch.js +18 -18
- package/dist/themes/themeDarkNext/theme/components/table.js +9 -9
- package/dist/themes/themeDarkNext/theme/components/tableHeading.js +2 -2
- package/dist/themes/themeDarkNext/theme/components/tabs.js +13 -13
- package/dist/themes/themeDarkNext/theme/components/textButton.js +30 -29
- package/dist/themes/themeDarkNext/theme/components/themeModeSwitch.js +3 -3
- package/dist/themes/themeDarkNext/theme/components/toggleButton.js +17 -14
- package/dist/themes/themeDarkNext/theme/components/tooltip.js +7 -7
- package/dist/themes/themeDarkNext/theme/components/treeView.js +2 -2
- package/dist/themes/themeDarkNext/theme/components/typography.js +7 -7
- package/dist/themes/themeDarkNext/theme/components/windowBar.js +28 -27
- package/dist/themes/themeDarkNext/theme/globals/body.js +2 -2
- package/dist/themes/themeDarkNext/theme/globals/scrollbar.js +2 -2
- package/dist/themes/themeDarkNext/tokens.js +3 -3
- package/dist/themes/themeLightNext/theme/components/actionIconButton.js +12 -10
- package/dist/themes/themeLightNext/theme/components/appBar.js +8 -8
- package/dist/themes/themeLightNext/theme/components/appSelectionMenu.js +4 -4
- package/dist/themes/themeLightNext/theme/components/badge.js +30 -29
- package/dist/themes/themeLightNext/theme/components/boxSelectionGroup.js +16 -15
- package/dist/themes/themeLightNext/theme/components/breadcrumbs.js +2 -2
- package/dist/themes/themeLightNext/theme/components/button.js +43 -41
- package/dist/themes/themeLightNext/theme/components/buttonGroup.js +14 -14
- package/dist/themes/themeLightNext/theme/components/card.js +10 -9
- package/dist/themes/themeLightNext/theme/components/checkbox.js +21 -17
- package/dist/themes/themeLightNext/theme/components/chip.js +8 -8
- package/dist/themes/themeLightNext/theme/components/chipList.js +3 -3
- package/dist/themes/themeLightNext/theme/components/countryFlag.js +1 -1
- package/dist/themes/themeLightNext/theme/components/drawer.js +7 -7
- package/dist/themes/themeLightNext/theme/components/filters.js +2 -2
- package/dist/themes/themeLightNext/theme/components/formField.js +2 -2
- package/dist/themes/themeLightNext/theme/components/gauge.js +8 -8
- package/dist/themes/themeLightNext/theme/components/highlightedIcon.js +13 -12
- package/dist/themes/themeLightNext/theme/components/icon.js +6 -6
- package/dist/themes/themeLightNext/theme/components/iconButton.js +4 -4
- package/dist/themes/themeLightNext/theme/components/input.js +11 -11
- package/dist/themes/themeLightNext/theme/components/keyValueList.js +4 -4
- package/dist/themes/themeLightNext/theme/components/label.js +3 -3
- package/dist/themes/themeLightNext/theme/components/layouts.js +1 -1
- package/dist/themes/themeLightNext/theme/components/link.js +10 -10
- package/dist/themes/themeLightNext/theme/components/loader.js +9 -9
- package/dist/themes/themeLightNext/theme/components/menu.js +13 -13
- package/dist/themes/themeLightNext/theme/components/modal.js +7 -7
- package/dist/themes/themeLightNext/theme/components/moreInfoIcon.js +1 -1
- package/dist/themes/themeLightNext/theme/components/popover.js +2 -2
- package/dist/themes/themeLightNext/theme/components/popupCard.js +3 -3
- package/dist/themes/themeLightNext/theme/components/progressBar.js +8 -8
- package/dist/themes/themeLightNext/theme/components/radio.js +10 -10
- package/dist/themes/themeLightNext/theme/components/searchBar.js +3 -3
- package/dist/themes/themeLightNext/theme/components/section.js +7 -7
- package/dist/themes/themeLightNext/theme/components/select.js +15 -15
- package/dist/themes/themeLightNext/theme/components/semanticButton.js +25 -25
- package/dist/themes/themeLightNext/theme/components/semanticContainer.js +13 -12
- package/dist/themes/themeLightNext/theme/components/semanticIcon.js +5 -5
- package/dist/themes/themeLightNext/theme/components/sideBar.js +20 -19
- package/dist/themes/themeLightNext/theme/components/skeleton.js +6 -6
- package/dist/themes/themeLightNext/theme/components/slider.js +8 -8
- package/dist/themes/themeLightNext/theme/components/stepper.js +9 -9
- package/dist/themes/themeLightNext/theme/components/switch.js +18 -18
- package/dist/themes/themeLightNext/theme/components/table.js +6 -6
- package/dist/themes/themeLightNext/theme/components/tableHeading.js +2 -2
- package/dist/themes/themeLightNext/theme/components/tabs.js +10 -10
- package/dist/themes/themeLightNext/theme/components/textButton.js +26 -26
- package/dist/themes/themeLightNext/theme/components/themeModeSwitch.js +3 -3
- package/dist/themes/themeLightNext/theme/components/toggleButton.js +12 -9
- package/dist/themes/themeLightNext/theme/components/tooltip.js +6 -6
- package/dist/themes/themeLightNext/theme/components/treeView.js +2 -2
- package/dist/themes/themeLightNext/theme/components/typography.js +6 -6
- package/dist/themes/themeLightNext/theme/components/windowBar.js +28 -27
- package/dist/themes/themeLightNext/theme/globals/body.js +1 -1
- package/dist/themes/themeLightNext/theme/globals/scrollbar.js +2 -2
- package/dist/themes/themeLightNext/tokens.js +3 -3
- package/package.json +1 -1
|
@@ -44,19 +44,19 @@ const theme = {
|
|
|
44
44
|
states: {
|
|
45
45
|
normal: {
|
|
46
46
|
bgColor: transparent,
|
|
47
|
-
textColor:
|
|
47
|
+
textColor: '#0F6FB8'
|
|
48
48
|
},
|
|
49
49
|
hover: {
|
|
50
|
-
bgColor:
|
|
51
|
-
textColor:
|
|
50
|
+
bgColor: transparent,
|
|
51
|
+
textColor: '#0F6FB8'
|
|
52
52
|
},
|
|
53
53
|
active: {
|
|
54
|
-
bgColor:
|
|
55
|
-
textColor:
|
|
54
|
+
bgColor: transparent,
|
|
55
|
+
textColor: '#0F6FB8'
|
|
56
56
|
},
|
|
57
57
|
disabled: {
|
|
58
58
|
bgColor: transparent,
|
|
59
|
-
textColor: tokens.semantic.color.text.
|
|
59
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
},
|
|
@@ -67,16 +67,16 @@ const theme = {
|
|
|
67
67
|
textColor: tokens.semantic.color.text.danger500
|
|
68
68
|
},
|
|
69
69
|
hover: {
|
|
70
|
-
bgColor:
|
|
70
|
+
bgColor: transparent,
|
|
71
71
|
textColor: tokens.semantic.color.text.danger500
|
|
72
72
|
},
|
|
73
73
|
active: {
|
|
74
|
-
bgColor:
|
|
75
|
-
textColor: tokens.semantic.color.text.
|
|
74
|
+
bgColor: transparent,
|
|
75
|
+
textColor: tokens.semantic.color.text.danger500
|
|
76
76
|
},
|
|
77
77
|
disabled: {
|
|
78
78
|
bgColor: transparent,
|
|
79
|
-
textColor: tokens.semantic.color.text.
|
|
79
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
},
|
|
@@ -84,19 +84,19 @@ const theme = {
|
|
|
84
84
|
states: {
|
|
85
85
|
normal: {
|
|
86
86
|
bgColor: transparent,
|
|
87
|
-
textColor: tokens.semantic.color.text.
|
|
87
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
88
88
|
},
|
|
89
89
|
hover: {
|
|
90
|
-
bgColor:
|
|
90
|
+
bgColor: transparent,
|
|
91
91
|
textColor: tokens.semantic.color.text.secondary950
|
|
92
92
|
},
|
|
93
93
|
active: {
|
|
94
|
-
bgColor:
|
|
94
|
+
bgColor: transparent,
|
|
95
95
|
textColor: tokens.semantic.color.text.secondary950
|
|
96
96
|
},
|
|
97
97
|
disabled: {
|
|
98
98
|
bgColor: transparent,
|
|
99
|
-
textColor: tokens.semantic.color.text.
|
|
99
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
},
|
|
@@ -104,19 +104,19 @@ const theme = {
|
|
|
104
104
|
states: {
|
|
105
105
|
normal: {
|
|
106
106
|
bgColor: transparent,
|
|
107
|
-
textColor:
|
|
107
|
+
textColor: '#0F6FB8'
|
|
108
108
|
},
|
|
109
109
|
hover: {
|
|
110
110
|
bgColor: transparent,
|
|
111
|
-
textColor:
|
|
111
|
+
textColor: '#0F6FB8'
|
|
112
112
|
},
|
|
113
113
|
active: {
|
|
114
114
|
bgColor: transparent,
|
|
115
|
-
textColor:
|
|
115
|
+
textColor: '#0F6FB8'
|
|
116
116
|
},
|
|
117
117
|
disabled: {
|
|
118
118
|
bgColor: transparent,
|
|
119
|
-
textColor: tokens.semantic.color.text.
|
|
119
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
},
|
|
@@ -128,15 +128,15 @@ const theme = {
|
|
|
128
128
|
},
|
|
129
129
|
hover: {
|
|
130
130
|
bgColor: transparent,
|
|
131
|
-
textColor: tokens.semantic.color.text.
|
|
131
|
+
textColor: tokens.semantic.color.text.danger500
|
|
132
132
|
},
|
|
133
133
|
active: {
|
|
134
134
|
bgColor: transparent,
|
|
135
|
-
textColor: tokens.semantic.color.text.
|
|
135
|
+
textColor: tokens.semantic.color.text.danger500
|
|
136
136
|
},
|
|
137
137
|
disabled: {
|
|
138
138
|
bgColor: transparent,
|
|
139
|
-
textColor: tokens.semantic.color.text.
|
|
139
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
},
|
|
@@ -144,11 +144,11 @@ const theme = {
|
|
|
144
144
|
states: {
|
|
145
145
|
normal: {
|
|
146
146
|
bgColor: transparent,
|
|
147
|
-
textColor: tokens.semantic.color.text.
|
|
147
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
148
148
|
},
|
|
149
149
|
hover: {
|
|
150
150
|
bgColor: transparent,
|
|
151
|
-
textColor: tokens.semantic.color.text.
|
|
151
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
152
152
|
},
|
|
153
153
|
active: {
|
|
154
154
|
bgColor: transparent,
|
|
@@ -156,7 +156,7 @@ const theme = {
|
|
|
156
156
|
},
|
|
157
157
|
disabled: {
|
|
158
158
|
bgColor: transparent,
|
|
159
|
-
textColor: tokens.semantic.color.text.
|
|
159
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
},
|
|
@@ -176,7 +176,7 @@ const theme = {
|
|
|
176
176
|
},
|
|
177
177
|
disabled: {
|
|
178
178
|
bgColor: transparent,
|
|
179
|
-
textColor: tokens.semantic.color.text.
|
|
179
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
},
|
|
@@ -194,7 +194,7 @@ const theme = {
|
|
|
194
194
|
},
|
|
195
195
|
disabled: {
|
|
196
196
|
bgColor: transparent,
|
|
197
|
-
textColor: tokens.semantic.color.text.
|
|
197
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { tokens } from '../../tokens';
|
|
2
1
|
import sunIcon from '../assets/Sun.svg';
|
|
3
2
|
import moonIcon from '../assets/Moon.svg';
|
|
3
|
+
import { tokens } from '../../tokens';
|
|
4
4
|
const theme = {
|
|
5
5
|
width: '3.6rem',
|
|
6
6
|
height: '2.2rem',
|
|
7
7
|
padding: '0.1rem',
|
|
8
8
|
borderRadius: '10rem',
|
|
9
9
|
borderWidth: '0.1rem',
|
|
10
|
-
borderColor: tokens.semantic.color.border.
|
|
11
|
-
bgColor: tokens.semantic.color.background.
|
|
10
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
11
|
+
bgColor: tokens.semantic.color.background.secondary50,
|
|
12
12
|
thumb: {
|
|
13
13
|
icon: `url("${sunIcon}")`,
|
|
14
14
|
iconAspectRatio: '1/1',
|
|
@@ -9,43 +9,46 @@ const theme = {
|
|
|
9
9
|
toggleStates: {
|
|
10
10
|
on: {
|
|
11
11
|
normal: {
|
|
12
|
-
bgColor: tokens.semantic.color.background.
|
|
12
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
13
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
13
14
|
textColor: tokens.semantic.color.text.secondary950
|
|
14
15
|
},
|
|
15
16
|
hover: {
|
|
16
|
-
bgColor: tokens.semantic.color.background.
|
|
17
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
18
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
17
19
|
textColor: tokens.semantic.color.text.secondary950
|
|
18
20
|
},
|
|
19
21
|
active: {
|
|
20
|
-
bgColor:
|
|
22
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
23
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
21
24
|
textColor: tokens.semantic.color.text.secondary950
|
|
22
25
|
},
|
|
23
26
|
disabled: {
|
|
24
27
|
bgColor: transparent,
|
|
25
|
-
textColor: tokens.semantic.color.text.
|
|
28
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
26
29
|
}
|
|
27
30
|
},
|
|
28
31
|
off: {
|
|
29
32
|
normal: {
|
|
30
33
|
bgColor: transparent,
|
|
31
|
-
textColor: tokens.semantic.color.text.
|
|
34
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
32
35
|
},
|
|
33
36
|
hover: {
|
|
34
|
-
bgColor: tokens.semantic.color.background.
|
|
37
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
35
38
|
textColor: tokens.semantic.color.text.secondary950
|
|
36
39
|
},
|
|
37
40
|
active: {
|
|
38
|
-
bgColor: tokens.semantic.color.background.
|
|
41
|
+
bgColor: tokens.semantic.color.background.secondary50,
|
|
39
42
|
textColor: tokens.semantic.color.text.secondary950
|
|
40
43
|
},
|
|
41
44
|
disabled: {
|
|
42
45
|
bgColor: transparent,
|
|
43
|
-
textColor: tokens.semantic.color.text.
|
|
46
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
49
|
},
|
|
47
50
|
counter: {
|
|
48
|
-
bgColor: tokens.semantic.color.background.
|
|
51
|
+
bgColor: tokens.semantic.color.background.secondary950,
|
|
49
52
|
textColor: tokens.semantic.color.text.secondary0,
|
|
50
53
|
disabledOpacity: '0.3',
|
|
51
54
|
padding: '0.1rem 0.4rem',
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
2
|
const theme = {
|
|
3
|
-
textColor: tokens.semantic.color.text.
|
|
3
|
+
textColor: tokens.semantic.color.text.secondary500,
|
|
4
4
|
bgColor: tokens.semantic.color.background.secondary0,
|
|
5
|
-
shadow: tokens.core.shadow.shadow400
|
|
6
|
-
borderRadius: '0.
|
|
5
|
+
shadow: `0 0 0 1px ${tokens.semantic.color.border.secondary400}, ${tokens.core.shadow.shadow400}`,
|
|
6
|
+
borderRadius: '0.5rem',
|
|
7
7
|
minWidth: 'initial',
|
|
8
8
|
maxWidth: '30rem',
|
|
9
|
-
blockPadding: '
|
|
10
|
-
inlinePadding: '1.
|
|
9
|
+
blockPadding: '0.9rem',
|
|
10
|
+
inlinePadding: '1.1rem',
|
|
11
11
|
arrow: {
|
|
12
12
|
width: '16px',
|
|
13
13
|
height: '8px',
|
|
14
|
-
shadow:
|
|
14
|
+
shadow: `0 1px 0 ${tokens.semantic.color.border.secondary400}`
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
export default theme;
|
|
@@ -5,11 +5,11 @@ const theme = {
|
|
|
5
5
|
inlinePadding: '0.8rem 1.6rem',
|
|
6
6
|
blockPadding: '0.5rem',
|
|
7
7
|
checkboxGap: '0.8rem',
|
|
8
|
-
selectedBgColor: tokens.semantic.color.background.
|
|
8
|
+
selectedBgColor: tokens.semantic.color.background.neutral100,
|
|
9
9
|
height: '3rem'
|
|
10
10
|
},
|
|
11
11
|
arrow: {
|
|
12
|
-
iconColor: tokens.semantic.color.icon.
|
|
12
|
+
iconColor: tokens.semantic.color.icon.secondary500,
|
|
13
13
|
gap: '0.4rem'
|
|
14
14
|
}
|
|
15
15
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
2
|
const theme = {
|
|
3
3
|
colors: {
|
|
4
|
-
primary: tokens.semantic.color.
|
|
5
|
-
secondary: tokens.semantic.color.
|
|
6
|
-
notice:
|
|
7
|
-
success:
|
|
8
|
-
attention:
|
|
4
|
+
primary: tokens.semantic.color.background.secondary950,
|
|
5
|
+
secondary: tokens.semantic.color.background.secondary500,
|
|
6
|
+
notice: '#B45309',
|
|
7
|
+
success: '#15803D',
|
|
8
|
+
attention: '#B45309',
|
|
9
9
|
danger: tokens.semantic.color.text.danger500,
|
|
10
10
|
upsell: tokens.semantic.color.text.discovery500,
|
|
11
|
-
informative:
|
|
11
|
+
informative: '#0F6FB8'
|
|
12
12
|
},
|
|
13
13
|
heading: {
|
|
14
14
|
fontFamily: tokens.core.font.fontFamily.regular,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { withOpacity } from '../../../../utils';
|
|
1
2
|
import { tokens } from '../../tokens';
|
|
2
3
|
const theme = {
|
|
3
4
|
gap: '1.6rem',
|
|
@@ -6,49 +7,49 @@ const theme = {
|
|
|
6
7
|
},
|
|
7
8
|
variants: {
|
|
8
9
|
white: {
|
|
9
|
-
backgroundColor: tokens.semantic.color.background.
|
|
10
|
-
color: tokens.semantic.color.text.
|
|
11
|
-
borderColor: tokens.semantic.color.border.
|
|
10
|
+
backgroundColor: tokens.semantic.color.background.secondary0,
|
|
11
|
+
color: tokens.semantic.color.text.secondary950,
|
|
12
|
+
borderColor: tokens.semantic.color.border.secondary200
|
|
12
13
|
},
|
|
13
14
|
light: {
|
|
14
|
-
backgroundColor: tokens.semantic.color.background.
|
|
15
|
-
color: tokens.semantic.color.text.
|
|
16
|
-
borderColor: tokens.semantic.color.border.
|
|
15
|
+
backgroundColor: tokens.semantic.color.background.neutral100,
|
|
16
|
+
color: tokens.semantic.color.text.secondary950,
|
|
17
|
+
borderColor: tokens.semantic.color.border.secondary200
|
|
17
18
|
},
|
|
18
19
|
default: {
|
|
19
|
-
backgroundColor: tokens.semantic.color.background.
|
|
20
|
-
color: tokens.semantic.color.text.
|
|
21
|
-
borderColor: tokens.semantic.color.border.
|
|
20
|
+
backgroundColor: tokens.semantic.color.background.secondary50,
|
|
21
|
+
color: tokens.semantic.color.text.secondary950,
|
|
22
|
+
borderColor: tokens.semantic.color.border.secondary400
|
|
22
23
|
},
|
|
23
24
|
informative: {
|
|
24
|
-
backgroundColor: tokens.semantic.color.background.
|
|
25
|
-
color:
|
|
26
|
-
borderColor: tokens.semantic.color.border.informative300
|
|
25
|
+
backgroundColor: tokens.semantic.color.background.informative0,
|
|
26
|
+
color: '#0F6FB8',
|
|
27
|
+
borderColor: withOpacity(tokens.semantic.color.border.informative300, 0.24)
|
|
27
28
|
},
|
|
28
29
|
success: {
|
|
29
|
-
backgroundColor: tokens.semantic.color.background.
|
|
30
|
-
color:
|
|
31
|
-
borderColor: tokens.semantic.color.border.
|
|
30
|
+
backgroundColor: tokens.semantic.color.background.success0,
|
|
31
|
+
color: '#15803D',
|
|
32
|
+
borderColor: withOpacity(tokens.semantic.color.border.success500, 0.24)
|
|
32
33
|
},
|
|
33
34
|
notice: {
|
|
34
|
-
backgroundColor: tokens.semantic.color.background.
|
|
35
|
-
color:
|
|
36
|
-
borderColor: tokens.semantic.color.border.
|
|
35
|
+
backgroundColor: tokens.semantic.color.background.notice0,
|
|
36
|
+
color: '#B45309',
|
|
37
|
+
borderColor: withOpacity(tokens.semantic.color.border.notice400, 0.24)
|
|
37
38
|
},
|
|
38
39
|
danger: {
|
|
39
|
-
backgroundColor: tokens.semantic.color.background.
|
|
40
|
-
color: tokens.semantic.color.text.
|
|
41
|
-
borderColor: tokens.semantic.color.border.
|
|
40
|
+
backgroundColor: tokens.semantic.color.background.primary0,
|
|
41
|
+
color: tokens.semantic.color.text.danger500,
|
|
42
|
+
borderColor: withOpacity(tokens.semantic.color.border.primary400, 0.24)
|
|
42
43
|
},
|
|
43
44
|
attention: {
|
|
44
|
-
backgroundColor: tokens.semantic.color.background.
|
|
45
|
-
color:
|
|
46
|
-
borderColor: tokens.semantic.color.border.
|
|
45
|
+
backgroundColor: tokens.semantic.color.background.notice0,
|
|
46
|
+
color: '#B45309',
|
|
47
|
+
borderColor: withOpacity(tokens.semantic.color.border.notice400, 0.24)
|
|
47
48
|
},
|
|
48
49
|
disabled: {
|
|
49
|
-
backgroundColor: tokens.semantic.color.background.
|
|
50
|
-
color: tokens.semantic.color.text.
|
|
51
|
-
borderColor: tokens.semantic.color.border.
|
|
50
|
+
backgroundColor: tokens.semantic.color.background.secondary200,
|
|
51
|
+
color: tokens.semantic.color.text.secondary500,
|
|
52
|
+
borderColor: tokens.semantic.color.border.secondary200
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tokens } from '../../tokens';
|
|
2
2
|
const theme = {
|
|
3
3
|
bgColor: tokens.semantic.color.background.secondary0,
|
|
4
|
-
textColor: tokens.semantic.color.
|
|
4
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
5
5
|
fontFamily: tokens.core.font.fontFamily.regular,
|
|
6
6
|
fontSize: tokens.core.font.fontSize.s14,
|
|
7
7
|
lineHeight: '1.5'
|
|
@@ -2,10 +2,10 @@ import { tokens } from '../../tokens';
|
|
|
2
2
|
const theme = {
|
|
3
3
|
width: '0.5rem',
|
|
4
4
|
height: '0.5rem',
|
|
5
|
-
bgColor:
|
|
5
|
+
bgColor: 'transparent',
|
|
6
6
|
padding: '0.1rem',
|
|
7
7
|
thumb: {
|
|
8
|
-
bgColor: tokens.semantic.color.background.
|
|
8
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
9
9
|
borderRadius: '99rem'
|
|
10
10
|
}
|
|
11
11
|
};
|
|
@@ -138,9 +138,9 @@ export const tokens = {
|
|
|
138
138
|
shadow100: '0 1px 2px rgba(9, 26, 35, 0.06)',
|
|
139
139
|
shadow200: '0 4px 12px rgba(9, 26, 35, 0.08)',
|
|
140
140
|
shadow300: '0 4px 12px rgba(9, 26, 35, 0.10)',
|
|
141
|
-
shadow400: '0
|
|
141
|
+
shadow400: '0 12px 28px rgba(9, 26, 35, 0.18)',
|
|
142
142
|
shadow500: '0 24px 48px rgba(9, 26, 35, 0.16)',
|
|
143
|
-
shadow600: '0 24px 48px rgba(9, 26, 35, 0.
|
|
143
|
+
shadow600: '0 24px 48px rgba(9, 26, 35, 0.25)',
|
|
144
144
|
shadow700: '0 4px 12px rgba(9, 26, 35, 0.08), 0 24px 48px rgba(9, 26, 35, 0.14)'
|
|
145
145
|
},
|
|
146
146
|
zIndex: {
|
|
@@ -205,7 +205,7 @@ export const tokens = {
|
|
|
205
205
|
focus: {
|
|
206
206
|
margin: '2px',
|
|
207
207
|
size: '2px',
|
|
208
|
-
color: semanticColors.
|
|
208
|
+
color: semanticColors.primary400
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
};
|