@codacy/ui-components 0.60.8 → 0.60.9
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/lib/Button/styles.d.ts +7 -4
- package/lib/Button/styles.js +66 -63
- package/lib/Checkbox/styles.d.ts +10 -6
- package/lib/Checkbox/styles.js +22 -16
- package/lib/CloseButton/index.d.ts +1 -2
- package/lib/CloseButton/index.js +5 -6
- package/lib/Divider/Divider.styles.d.ts +10 -6
- package/lib/Divider/Divider.styles.js +4 -4
- package/lib/Dropdown/Dropdown.styles.d.ts +19 -12
- package/lib/Dropdown/Dropdown.styles.js +37 -55
- package/lib/Flexbox/Flexbox.d.ts +12 -8
- package/lib/Flexbox/Flexbox.js +5 -5
- package/lib/Group/Group.styles.d.ts +5 -3
- package/lib/Icon/Icon.styles.d.ts +5 -3
- package/lib/IconAndText/IconAndText.styles.d.ts +5 -3
- package/lib/IconAndText/IconAndText.styles.js +5 -5
- package/lib/Icons/Messages.js +10 -5
- package/lib/Img/Img.styles.d.ts +5 -3
- package/lib/Input/styles.d.ts +50 -34
- package/lib/Input/styles.js +50 -47
- package/lib/Labeled/styles.d.ts +5 -3
- package/lib/LeftMenu/LeftMenu.styles.d.ts +5 -3
- package/lib/LeftMenu/LeftMenu.styles.js +13 -10
- package/lib/Link/Link.styles.js +2 -2
- package/lib/Message/Message.styles.d.ts +5 -3
- package/lib/Message/Message.styles.js +5 -2
- package/lib/Modal/styles.d.ts +33 -21
- package/lib/Modal/styles.js +20 -20
- package/lib/Panel/styles.d.ts +7 -4
- package/lib/Panel/styles.js +12 -5
- package/lib/PillLabel/PillLabel.styles.d.ts +5 -3
- package/lib/PillLabel/PillLabel.styles.js +17 -11
- package/lib/Popup/styles.d.ts +6 -4
- package/lib/Popup/styles.js +11 -9
- package/lib/Radio/styles.d.ts +5 -3
- package/lib/Radio/styles.js +5 -5
- package/lib/ScrollableContent/ScrollableContent.styles.d.ts +5 -3
- package/lib/Skeleton/Skeleton.styles.d.ts +5 -3
- package/lib/Skeleton/Skeleton.styles.js +5 -4
- package/lib/Stepper/Stepper.styles.d.ts +18 -11
- package/lib/Stepper/Stepper.styles.js +4 -4
- package/lib/Switcher/Switcher.styles.d.ts +7 -4
- package/lib/Switcher/Switcher.styles.js +21 -18
- package/lib/Tab/Tab.styles.d.ts +5 -3
- package/lib/Tab/Tab.styles.js +24 -21
- package/lib/Table/Table.styles.d.ts +7 -4
- package/lib/Table/Table.styles.js +15 -14
- package/lib/TagsInput/style.d.ts +10 -6
- package/lib/TagsInput/style.js +32 -26
- package/lib/Textarea/Textarea.styles.d.ts +11 -9
- package/lib/Textarea/Textarea.styles.js +33 -30
- package/lib/ThemeProvider/ThemeProvider.js +1 -1
- package/lib/Toast/styles.d.ts +1 -1
- package/lib/Toast/styles.js +11 -11
- package/lib/Toggle/styles.d.ts +5 -3
- package/lib/Toggle/styles.js +8 -8
- package/lib/Tooltip/styles.js +45 -30
- package/lib/Typography/Typography.js +25 -9
- package/lib/Typography/Typography.styles.d.ts +50 -26
- package/lib/Typography/Typography.styles.js +50 -45
- package/lib/Typography/Typography.types.d.ts +3 -1
- package/lib/theme/{colors.d.ts → ColorSchemes/codacy.d.ts} +127 -122
- package/lib/theme/ColorSchemes/codacy.js +136 -0
- package/lib/theme/ColorSchemes/pulse.d.ts +2 -0
- package/lib/theme/ColorSchemes/pulse.js +54 -0
- package/lib/theme/index.d.ts +2 -1
- package/lib/theme/index.js +2 -1
- package/lib/theme/theme.d.ts +22 -17
- package/lib/theme/theme.js +158 -88
- package/package.json +3 -3
- package/lib/theme/colors.js +0 -185
|
@@ -1,4 +1,109 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
export declare const baseColors: {
|
|
2
|
+
'blue-900': string;
|
|
3
|
+
'blue-800': string;
|
|
4
|
+
'blue-700': string;
|
|
5
|
+
'blue-600': string;
|
|
6
|
+
'blue-500': string;
|
|
7
|
+
'blue-400': string;
|
|
8
|
+
'blue-300': string;
|
|
9
|
+
'blue-200': string;
|
|
10
|
+
'blue-100': string;
|
|
11
|
+
'blue-50': string;
|
|
12
|
+
'black-700': string;
|
|
13
|
+
'black-600': string;
|
|
14
|
+
'black-500': string;
|
|
15
|
+
'black-400': string;
|
|
16
|
+
'black-300': string;
|
|
17
|
+
'black-200': string;
|
|
18
|
+
'black-100': string;
|
|
19
|
+
'black-80': string;
|
|
20
|
+
'black-60': string;
|
|
21
|
+
'black-50': string;
|
|
22
|
+
white: string;
|
|
23
|
+
'purple-100': string;
|
|
24
|
+
'purple-200': string;
|
|
25
|
+
'purple-300': string;
|
|
26
|
+
'purple-400': string;
|
|
27
|
+
'purple-500': string;
|
|
28
|
+
'purple-600': string;
|
|
29
|
+
'purple-700': string;
|
|
30
|
+
'purple-800': string;
|
|
31
|
+
'purple-900': string;
|
|
32
|
+
'turquoise-700': string;
|
|
33
|
+
'turquoise-600': string;
|
|
34
|
+
'turquoise-500': string;
|
|
35
|
+
'turquoise-400': string;
|
|
36
|
+
'turquoise-300': string;
|
|
37
|
+
'turquoise-200': string;
|
|
38
|
+
'turquoise-100': string;
|
|
39
|
+
'turquoise-80': string;
|
|
40
|
+
'red-400': string;
|
|
41
|
+
'red-300': string;
|
|
42
|
+
'red-200': string;
|
|
43
|
+
'red-100': string;
|
|
44
|
+
'red-50': string;
|
|
45
|
+
'green-300': string;
|
|
46
|
+
'green-200': string;
|
|
47
|
+
'green-100': string;
|
|
48
|
+
'green-80': string;
|
|
49
|
+
'green-50': string;
|
|
50
|
+
'orange-200': string;
|
|
51
|
+
'orange-100': string;
|
|
52
|
+
'orange-50': string;
|
|
53
|
+
};
|
|
54
|
+
export declare const functionalColorsFx: (colors: {
|
|
55
|
+
white: string;
|
|
56
|
+
"blue-900": string;
|
|
57
|
+
"blue-800": string;
|
|
58
|
+
"blue-700": string;
|
|
59
|
+
"blue-600": string;
|
|
60
|
+
"blue-500": string;
|
|
61
|
+
"blue-400": string;
|
|
62
|
+
"blue-300": string;
|
|
63
|
+
"blue-200": string;
|
|
64
|
+
"blue-100": string;
|
|
65
|
+
"blue-50": string;
|
|
66
|
+
"black-700": string;
|
|
67
|
+
"black-600": string;
|
|
68
|
+
"black-500": string;
|
|
69
|
+
"black-400": string;
|
|
70
|
+
"black-300": string;
|
|
71
|
+
"black-200": string;
|
|
72
|
+
"black-100": string;
|
|
73
|
+
"black-80": string;
|
|
74
|
+
"black-60": string;
|
|
75
|
+
"black-50": string;
|
|
76
|
+
"purple-100": string;
|
|
77
|
+
"purple-200": string;
|
|
78
|
+
"purple-300": string;
|
|
79
|
+
"purple-400": string;
|
|
80
|
+
"purple-500": string;
|
|
81
|
+
"purple-600": string;
|
|
82
|
+
"purple-700": string;
|
|
83
|
+
"purple-800": string;
|
|
84
|
+
"purple-900": string;
|
|
85
|
+
"turquoise-700": string;
|
|
86
|
+
"turquoise-600": string;
|
|
87
|
+
"turquoise-500": string;
|
|
88
|
+
"turquoise-400": string;
|
|
89
|
+
"turquoise-300": string;
|
|
90
|
+
"turquoise-200": string;
|
|
91
|
+
"turquoise-100": string;
|
|
92
|
+
"turquoise-80": string;
|
|
93
|
+
"red-400": string;
|
|
94
|
+
"red-300": string;
|
|
95
|
+
"red-200": string;
|
|
96
|
+
"red-100": string;
|
|
97
|
+
"red-50": string;
|
|
98
|
+
"green-300": string;
|
|
99
|
+
"green-200": string;
|
|
100
|
+
"green-100": string;
|
|
101
|
+
"green-80": string;
|
|
102
|
+
"green-50": string;
|
|
103
|
+
"orange-200": string;
|
|
104
|
+
"orange-100": string;
|
|
105
|
+
"orange-50": string;
|
|
106
|
+
}) => {
|
|
2
107
|
'brand-primary': string;
|
|
3
108
|
'accent-primary': string;
|
|
4
109
|
'accent-primary-hover': string;
|
|
@@ -66,61 +171,8 @@ declare const themeColors: {
|
|
|
66
171
|
'neutral-100': string;
|
|
67
172
|
'neutral-50': string;
|
|
68
173
|
'neutral-0': string;
|
|
69
|
-
'blue-900': string;
|
|
70
|
-
'blue-800': string;
|
|
71
|
-
'blue-700': string;
|
|
72
|
-
'blue-600': string;
|
|
73
|
-
'blue-500': string;
|
|
74
|
-
'blue-400': string;
|
|
75
|
-
'blue-300': string;
|
|
76
|
-
'blue-200': string;
|
|
77
|
-
'blue-100': string;
|
|
78
|
-
'blue-50': string;
|
|
79
|
-
/** @deprecated Use black-50 instead */
|
|
80
|
-
'blue-0': string;
|
|
81
|
-
'turquoise-700': string;
|
|
82
|
-
'turquoise-600': string;
|
|
83
|
-
'turquoise-500': string;
|
|
84
|
-
'turquoise-400': string;
|
|
85
|
-
'turquoise-300': string;
|
|
86
|
-
'turquoise-200': string;
|
|
87
|
-
'turquoise-100': string;
|
|
88
|
-
'turquoise-80': string;
|
|
89
|
-
'black-700': string;
|
|
90
|
-
'black-600': string;
|
|
91
|
-
'black-500': string;
|
|
92
|
-
'black-400': string;
|
|
93
|
-
'black-300': string;
|
|
94
|
-
'black-200': string;
|
|
95
|
-
'black-100': string;
|
|
96
|
-
'black-80': string;
|
|
97
|
-
'black-60': string;
|
|
98
|
-
'black-50': string;
|
|
99
|
-
white: string;
|
|
100
|
-
'purple-100': string;
|
|
101
|
-
'purple-200': string;
|
|
102
|
-
'purple-300': string;
|
|
103
|
-
'purple-400': string;
|
|
104
|
-
'purple-500': string;
|
|
105
|
-
'purple-600': string;
|
|
106
|
-
'purple-700': string;
|
|
107
|
-
'purple-800': string;
|
|
108
|
-
'purple-900': string;
|
|
109
|
-
'red-400': string;
|
|
110
|
-
'red-300': string;
|
|
111
|
-
'red-200': string;
|
|
112
|
-
'red-100': string;
|
|
113
|
-
'red-50': string;
|
|
114
|
-
'green-300': string;
|
|
115
|
-
'green-200': string;
|
|
116
|
-
'green-100': string;
|
|
117
|
-
'green-80': string;
|
|
118
|
-
'green-50': string;
|
|
119
|
-
'orange-200': string;
|
|
120
|
-
'orange-100': string;
|
|
121
|
-
'orange-50': string;
|
|
122
174
|
};
|
|
123
|
-
declare const
|
|
175
|
+
declare const functionalColors: {
|
|
124
176
|
'brand-primary': string;
|
|
125
177
|
'accent-primary': string;
|
|
126
178
|
'accent-primary-hover': string;
|
|
@@ -132,7 +184,19 @@ declare const pulseThemeColors: {
|
|
|
132
184
|
'accent-subtle-focus': string;
|
|
133
185
|
'accent-subtle-active': string;
|
|
134
186
|
'accent-subtle-disabled': string;
|
|
187
|
+
'accent-success': string;
|
|
188
|
+
'accent-success-hover': string;
|
|
189
|
+
'accent-success-focus': string;
|
|
190
|
+
'accent-success-active': string;
|
|
191
|
+
'accent-success-disabled': string;
|
|
192
|
+
'accent-danger': string;
|
|
193
|
+
'accent-danger-hover': string;
|
|
194
|
+
'accent-danger-focus': string;
|
|
195
|
+
'accent-danger-active': string;
|
|
196
|
+
'accent-danger-disabled': string;
|
|
197
|
+
'accent-warning': string;
|
|
135
198
|
'accent-info': string;
|
|
199
|
+
'accent-attention': string;
|
|
136
200
|
'text-primary': string;
|
|
137
201
|
'text-secondary': string;
|
|
138
202
|
'text-complementary': string;
|
|
@@ -162,18 +226,6 @@ declare const pulseThemeColors: {
|
|
|
162
226
|
'ui-navbar-text': string;
|
|
163
227
|
'icon-primary': string;
|
|
164
228
|
'icon-info': string;
|
|
165
|
-
'accent-success': string;
|
|
166
|
-
'accent-success-hover': string;
|
|
167
|
-
'accent-success-focus': string;
|
|
168
|
-
'accent-success-active': string;
|
|
169
|
-
'accent-success-disabled': string;
|
|
170
|
-
'accent-danger': string;
|
|
171
|
-
'accent-danger-hover': string;
|
|
172
|
-
'accent-danger-focus': string;
|
|
173
|
-
'accent-danger-active': string;
|
|
174
|
-
'accent-danger-disabled': string;
|
|
175
|
-
'accent-warning': string;
|
|
176
|
-
'accent-attention': string;
|
|
177
229
|
'icon-success': string;
|
|
178
230
|
'icon-warning': string;
|
|
179
231
|
'icon-danger': string;
|
|
@@ -188,59 +240,12 @@ declare const pulseThemeColors: {
|
|
|
188
240
|
'neutral-100': string;
|
|
189
241
|
'neutral-50': string;
|
|
190
242
|
'neutral-0': string;
|
|
191
|
-
'blue-900': string;
|
|
192
|
-
'blue-800': string;
|
|
193
|
-
'blue-700': string;
|
|
194
|
-
'blue-600': string;
|
|
195
|
-
'blue-500': string;
|
|
196
|
-
'blue-400': string;
|
|
197
|
-
'blue-300': string;
|
|
198
|
-
'blue-200': string;
|
|
199
|
-
'blue-100': string;
|
|
200
|
-
'blue-50': string;
|
|
201
|
-
/** @deprecated Use black-50 instead */
|
|
202
|
-
'blue-0': string;
|
|
203
|
-
'turquoise-700': string;
|
|
204
|
-
'turquoise-600': string;
|
|
205
|
-
'turquoise-500': string;
|
|
206
|
-
'turquoise-400': string;
|
|
207
|
-
'turquoise-300': string;
|
|
208
|
-
'turquoise-200': string;
|
|
209
|
-
'turquoise-100': string;
|
|
210
|
-
'turquoise-80': string;
|
|
211
|
-
'black-700': string;
|
|
212
|
-
'black-600': string;
|
|
213
|
-
'black-500': string;
|
|
214
|
-
'black-400': string;
|
|
215
|
-
'black-300': string;
|
|
216
|
-
'black-200': string;
|
|
217
|
-
'black-100': string;
|
|
218
|
-
'black-80': string;
|
|
219
|
-
'black-60': string;
|
|
220
|
-
'black-50': string;
|
|
221
|
-
white: string;
|
|
222
|
-
'purple-100': string;
|
|
223
|
-
'purple-200': string;
|
|
224
|
-
'purple-300': string;
|
|
225
|
-
'purple-400': string;
|
|
226
|
-
'purple-500': string;
|
|
227
|
-
'purple-600': string;
|
|
228
|
-
'purple-700': string;
|
|
229
|
-
'purple-800': string;
|
|
230
|
-
'purple-900': string;
|
|
231
|
-
'red-400': string;
|
|
232
|
-
'red-300': string;
|
|
233
|
-
'red-200': string;
|
|
234
|
-
'red-100': string;
|
|
235
|
-
'red-50': string;
|
|
236
|
-
'green-300': string;
|
|
237
|
-
'green-200': string;
|
|
238
|
-
'green-100': string;
|
|
239
|
-
'green-80': string;
|
|
240
|
-
'green-50': string;
|
|
241
|
-
'orange-200': string;
|
|
242
|
-
'orange-100': string;
|
|
243
|
-
'orange-50': string;
|
|
244
243
|
};
|
|
245
|
-
export declare type
|
|
246
|
-
export
|
|
244
|
+
export declare type BaseColor = keyof typeof baseColors;
|
|
245
|
+
export declare type FunctionalColor = keyof typeof functionalColors;
|
|
246
|
+
export declare type Color = BaseColor | FunctionalColor;
|
|
247
|
+
export declare type ColorScheme = {
|
|
248
|
+
[key in Color]: string;
|
|
249
|
+
};
|
|
250
|
+
export declare const codacyThemeColors: ColorScheme;
|
|
251
|
+
export {};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
export var baseColors = {
|
|
3
|
+
// BLUE
|
|
4
|
+
'blue-900': '#0052CC',
|
|
5
|
+
'blue-800': '#2562EA',
|
|
6
|
+
'blue-700': '#286CFC',
|
|
7
|
+
'blue-600': '#3E7AFF',
|
|
8
|
+
'blue-500': '#6695FF',
|
|
9
|
+
'blue-400': '#94B4FF',
|
|
10
|
+
'blue-300': '#B9CDFD',
|
|
11
|
+
'blue-200': '#D0DDFE',
|
|
12
|
+
'blue-100': '#DDE6FF',
|
|
13
|
+
'blue-50': '#EBF1FF',
|
|
14
|
+
// BLACK
|
|
15
|
+
'black-700': '#172B4D',
|
|
16
|
+
'black-600': '#1D3660',
|
|
17
|
+
'black-500': '#354B71',
|
|
18
|
+
'black-400': '#4C6083',
|
|
19
|
+
'black-300': '#7E90B2',
|
|
20
|
+
'black-200': '#B6C6E0',
|
|
21
|
+
'black-100': '#C9D8EF',
|
|
22
|
+
'black-80': '#E5ECF5',
|
|
23
|
+
'black-60': '#F2F5FD',
|
|
24
|
+
'black-50': '#F5F8FE',
|
|
25
|
+
// WHITE
|
|
26
|
+
white: '#FFFFFF',
|
|
27
|
+
// PURPLE
|
|
28
|
+
'purple-100': '#FAF7FD',
|
|
29
|
+
'purple-200': '#DECDF4',
|
|
30
|
+
'purple-300': '#C3A3EB',
|
|
31
|
+
'purple-400': '#A77AE1',
|
|
32
|
+
'purple-500': '#8C50D8',
|
|
33
|
+
'purple-600': '#712DC8',
|
|
34
|
+
'purple-700': '#5A239E',
|
|
35
|
+
'purple-800': '#421A75',
|
|
36
|
+
'purple-900': '#2A114B',
|
|
37
|
+
// TURQUOISE
|
|
38
|
+
'turquoise-700': '#176267',
|
|
39
|
+
'turquoise-600': '#2E7D82',
|
|
40
|
+
'turquoise-500': '#2D8E94',
|
|
41
|
+
'turquoise-400': '#35ABB2',
|
|
42
|
+
'turquoise-300': '#72C8CF',
|
|
43
|
+
'turquoise-200': '#B6E4E7',
|
|
44
|
+
'turquoise-100': '#EAF6F6',
|
|
45
|
+
'turquoise-80': '#F7F8FA',
|
|
46
|
+
// REDS
|
|
47
|
+
'red-400': '#C92C22',
|
|
48
|
+
'red-300': '#E04440',
|
|
49
|
+
'red-200': '#EF5454',
|
|
50
|
+
'red-100': '#F58B8B',
|
|
51
|
+
'red-50': '#FFE6E6',
|
|
52
|
+
// GREENS
|
|
53
|
+
'green-300': '#1B7E37',
|
|
54
|
+
'green-200': '#25B14D',
|
|
55
|
+
'green-100': '#4CBE6C',
|
|
56
|
+
'green-80': '#92D8A6',
|
|
57
|
+
'green-50': '#E6F4EA',
|
|
58
|
+
// ORANGES
|
|
59
|
+
'orange-200': '#EE6002',
|
|
60
|
+
'orange-100': '#FFA101',
|
|
61
|
+
'orange-50': '#FFF2DF'
|
|
62
|
+
};
|
|
63
|
+
export var functionalColorsFx = function functionalColorsFx(colors) {
|
|
64
|
+
return {
|
|
65
|
+
'brand-primary': colors['blue-700'],
|
|
66
|
+
'accent-primary': colors['blue-700'],
|
|
67
|
+
'accent-primary-hover': colors['blue-800'],
|
|
68
|
+
'accent-primary-focus': colors['blue-800'],
|
|
69
|
+
'accent-primary-active': colors['blue-900'],
|
|
70
|
+
'accent-primary-disabled': colors['blue-400'],
|
|
71
|
+
'accent-subtle': colors['black-300'],
|
|
72
|
+
'accent-subtle-hover': colors['black-400'],
|
|
73
|
+
'accent-subtle-focus': colors['black-400'],
|
|
74
|
+
'accent-subtle-active': colors['black-500'],
|
|
75
|
+
'accent-subtle-disabled': colors['black-100'],
|
|
76
|
+
'accent-success': colors['green-100'],
|
|
77
|
+
'accent-success-hover': colors['green-200'],
|
|
78
|
+
'accent-success-focus': colors['green-200'],
|
|
79
|
+
'accent-success-active': colors['green-300'],
|
|
80
|
+
'accent-success-disabled': colors['green-80'],
|
|
81
|
+
'accent-danger': colors['red-200'],
|
|
82
|
+
'accent-danger-hover': colors['red-300'],
|
|
83
|
+
'accent-danger-focus': colors['red-300'],
|
|
84
|
+
'accent-danger-active': colors['red-400'],
|
|
85
|
+
'accent-danger-disabled': colors['red-100'],
|
|
86
|
+
'accent-warning': colors['orange-100'],
|
|
87
|
+
'accent-info': colors['blue-600'],
|
|
88
|
+
'accent-attention': colors['purple-400'],
|
|
89
|
+
'text-primary': colors['black-700'],
|
|
90
|
+
'text-secondary': colors['black-400'],
|
|
91
|
+
'text-complementary': colors['black-300'],
|
|
92
|
+
'text-invert': colors['white'],
|
|
93
|
+
'text-placeholder': colors['black-200'],
|
|
94
|
+
'text-info': colors['blue-800'],
|
|
95
|
+
'text-success': colors['green-300'],
|
|
96
|
+
'text-warning': colors['orange-200'],
|
|
97
|
+
'text-danger': colors['red-400'],
|
|
98
|
+
'text-attention': colors['purple-600'],
|
|
99
|
+
'background-primary': colors['white'],
|
|
100
|
+
'background-secondary': colors['black-50'],
|
|
101
|
+
'background-info': colors['blue-50'],
|
|
102
|
+
'background-success': colors['green-50'],
|
|
103
|
+
'background-warning': colors['orange-50'],
|
|
104
|
+
'background-danger': colors['red-50'],
|
|
105
|
+
'background-attention': colors['purple-100'],
|
|
106
|
+
'background-neutral': colors['black-80'],
|
|
107
|
+
'control-border': colors['blue-300'],
|
|
108
|
+
'control-background': colors['white'],
|
|
109
|
+
'control-active-background': colors['black-60'],
|
|
110
|
+
'control-active-border': colors['blue-700'],
|
|
111
|
+
'control-invalid-border': colors['red-200'],
|
|
112
|
+
'control-disabled': colors['blue-100'],
|
|
113
|
+
'ui-border': colors['black-80'],
|
|
114
|
+
'ui-navbar': colors['black-700'],
|
|
115
|
+
'ui-navbar-text': colors['black-100'],
|
|
116
|
+
'icon-primary': colors['black-200'],
|
|
117
|
+
'icon-info': colors['blue-700'],
|
|
118
|
+
'icon-success': colors['green-200'],
|
|
119
|
+
'icon-warning': colors['orange-100'],
|
|
120
|
+
'icon-danger': colors['red-200'],
|
|
121
|
+
// NEUTRAL
|
|
122
|
+
'neutral-900': colors['black-700'],
|
|
123
|
+
'neutral-800': colors['black-600'],
|
|
124
|
+
'neutral-700': colors['black-500'],
|
|
125
|
+
'neutral-600': colors['black-400'],
|
|
126
|
+
'neutral-500': colors['black-300'],
|
|
127
|
+
'neutral-400': colors['black-200'],
|
|
128
|
+
'neutral-300': colors['black-100'],
|
|
129
|
+
'neutral-200': colors['black-80'],
|
|
130
|
+
'neutral-100': colors['black-60'],
|
|
131
|
+
'neutral-50': colors['black-50'],
|
|
132
|
+
'neutral-0': colors['white']
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
var functionalColors = functionalColorsFx(baseColors);
|
|
136
|
+
export var codacyThemeColors = _objectSpread(_objectSpread({}, baseColors), functionalColors);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import { baseColors as codacyBaseColors, functionalColorsFx } from './codacy';
|
|
3
|
+
|
|
4
|
+
var baseColors = _objectSpread({}, codacyBaseColors);
|
|
5
|
+
|
|
6
|
+
var functionalColors = _objectSpread(_objectSpread({}, functionalColorsFx(baseColors)), {}, {
|
|
7
|
+
// UPDATE HERE FUNCTIONAL COLORS
|
|
8
|
+
'brand-primary': baseColors['turquoise-500'],
|
|
9
|
+
'accent-primary': baseColors['turquoise-500'],
|
|
10
|
+
'accent-primary-hover': baseColors['turquoise-600'],
|
|
11
|
+
'accent-primary-focus': baseColors['turquoise-600'],
|
|
12
|
+
'accent-primary-active': baseColors['turquoise-700'],
|
|
13
|
+
'accent-primary-disabled': baseColors['turquoise-200'],
|
|
14
|
+
// 'accent-subtle': baseColors['black-300'],
|
|
15
|
+
// 'accent-subtle-hover': baseColors['black-400'],
|
|
16
|
+
// 'accent-subtle-focus': baseColors['black-400'],
|
|
17
|
+
// 'accent-subtle-active': baseColors['black-500'],
|
|
18
|
+
// 'accent-subtle-disabled': baseColors['black-100'],
|
|
19
|
+
'accent-info': baseColors['turquoise-400'],
|
|
20
|
+
// 'text-primary': baseColors['black-700'],
|
|
21
|
+
// 'text-secondary': baseColors['black-400'],
|
|
22
|
+
// 'text-complementary': baseColors['black-300'],
|
|
23
|
+
// 'text-invert': baseColors['white'],
|
|
24
|
+
// 'text-placeholder': baseColors['black-200'],
|
|
25
|
+
'text-info': baseColors['turquoise-600'],
|
|
26
|
+
// 'text-success': baseColors['green-300'],
|
|
27
|
+
// 'text-warning': baseColors['orange-200'],
|
|
28
|
+
// 'text-danger': baseColors['red-400'],
|
|
29
|
+
// 'text-attention': baseColors['purple-600'],
|
|
30
|
+
// 'background-primary': baseColors['white'],
|
|
31
|
+
// 'background-secondary': baseColors['black-50'],
|
|
32
|
+
'background-info': baseColors['turquoise-80'],
|
|
33
|
+
// 'background-success': baseColors['green-50'],
|
|
34
|
+
// 'background-warning': baseColors['orange-50'],
|
|
35
|
+
// 'background-danger': baseColors['red-50'],
|
|
36
|
+
// 'background-attention': baseColors['purple-100'],
|
|
37
|
+
// 'background-neutral': baseColors['black-80'],
|
|
38
|
+
'control-border': baseColors['black-200'],
|
|
39
|
+
//'control-background': baseColors['white'],
|
|
40
|
+
'control-active-background': baseColors['white'],
|
|
41
|
+
'control-active-border': baseColors['turquoise-400'],
|
|
42
|
+
'control-invalid-border': baseColors['red-300'],
|
|
43
|
+
'control-disabled': baseColors['black-80'],
|
|
44
|
+
//'ui-border': baseColors['black-80'],
|
|
45
|
+
'ui-navbar': baseColors['turquoise-80'],
|
|
46
|
+
'ui-navbar-text': baseColors['black-500'],
|
|
47
|
+
'icon-primary': baseColors['black-300'],
|
|
48
|
+
'icon-info': baseColors['turquoise-400'] // 'icon-success': baseColors['green-200'],
|
|
49
|
+
// 'icon-warning': baseColors['orange-100'],
|
|
50
|
+
// 'icon-danger': baseColors['red-200'],
|
|
51
|
+
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export var pulseThemeColors = _objectSpread(_objectSpread({}, baseColors), functionalColors);
|
package/lib/theme/index.d.ts
CHANGED
package/lib/theme/index.js
CHANGED
package/lib/theme/theme.d.ts
CHANGED
|
@@ -1,30 +1,35 @@
|
|
|
1
|
-
import { Color } from './
|
|
1
|
+
import { Color, ColorScheme } from './';
|
|
2
2
|
export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
3
|
export declare type Speed = 'fast' | 'normal' | 'slow';
|
|
4
|
-
export declare type Fonts = 'normal';
|
|
4
|
+
export declare type Fonts = 'normal' | 'display' | 'monospace';
|
|
5
|
+
export declare type FontWeights = 'light' | 'normal' | 'bold';
|
|
5
6
|
export declare type CodacyTheme = {
|
|
6
|
-
colors: Record<Color, string>;
|
|
7
7
|
gridSize: number;
|
|
8
8
|
remScale: number;
|
|
9
|
-
borderSize: string[];
|
|
10
|
-
borderRadius: string[];
|
|
11
|
-
baseLineHeight: string;
|
|
12
|
-
fonts: {
|
|
13
|
-
[key in Fonts]: string;
|
|
14
|
-
};
|
|
15
|
-
fontSizes: string[];
|
|
16
9
|
space: string[];
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
colors: Record<Color, string>;
|
|
11
|
+
fonts: Record<Fonts, string>;
|
|
12
|
+
fontSizes: string[];
|
|
13
|
+
fontWeights: string[] & Record<FontWeights, string>;
|
|
14
|
+
lineHeights: string[];
|
|
15
|
+
letterSpacings: string[];
|
|
16
|
+
borders: string[];
|
|
17
|
+
borderWidths: string[];
|
|
18
|
+
radii: string[];
|
|
20
19
|
shadows: string[];
|
|
21
|
-
transitions:
|
|
22
|
-
[key in Speed]: string;
|
|
23
|
-
};
|
|
20
|
+
transitions: string[] & Record<Speed, string>;
|
|
24
21
|
breakpoints: string[];
|
|
22
|
+
controlSize: Record<Size, string>;
|
|
23
|
+
/** @deprecated Use borders or borderWidths instead */
|
|
24
|
+
borderSize: string[];
|
|
25
|
+
/** @deprecated Use radii instead */
|
|
26
|
+
borderRadius: string[];
|
|
27
|
+
/** @deprecated Use lineHeights instead */
|
|
28
|
+
baseLineHeight: string;
|
|
25
29
|
};
|
|
30
|
+
export declare const transition: (properties: string[], speed?: Speed, refTheme?: Pick<CodacyTheme, 'transitions'>) => string;
|
|
31
|
+
export declare const generateTheme: (scheme: ColorScheme) => CodacyTheme;
|
|
26
32
|
export declare const codacyTheme: CodacyTheme;
|
|
27
33
|
export declare const pulseTheme: CodacyTheme;
|
|
28
34
|
/** @deprecated Use codacyTheme instead */
|
|
29
35
|
export declare const theme: CodacyTheme;
|
|
30
|
-
export declare const transition: (properties: string[], speed?: Speed) => string;
|