@electra-ui/theme 0.0.0-stage → 1.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/README.md +53 -2
- package/fesm2022/electra-ui-theme.mjs +1059 -0
- package/fesm2022/electra-ui-theme.mjs.map +1 -0
- package/package.json +29 -4
- package/src/styles/font.less +376 -0
- package/src/styles/fonts/Inter-Black.woff +0 -0
- package/src/styles/fonts/Inter-Black.woff2 +0 -0
- package/src/styles/fonts/Inter-BlackItalic.woff +0 -0
- package/src/styles/fonts/Inter-BlackItalic.woff2 +0 -0
- package/src/styles/fonts/Inter-Bold.woff +0 -0
- package/src/styles/fonts/Inter-Bold.woff2 +0 -0
- package/src/styles/fonts/Inter-BoldItalic.woff +0 -0
- package/src/styles/fonts/Inter-BoldItalic.woff2 +0 -0
- package/src/styles/fonts/Inter-ExtraBold.woff +0 -0
- package/src/styles/fonts/Inter-ExtraBold.woff2 +0 -0
- package/src/styles/fonts/Inter-ExtraBoldItalic.woff +0 -0
- package/src/styles/fonts/Inter-ExtraBoldItalic.woff2 +0 -0
- package/src/styles/fonts/Inter-ExtraLight-BETA.woff +0 -0
- package/src/styles/fonts/Inter-ExtraLight-BETA.woff2 +0 -0
- package/src/styles/fonts/Inter-ExtraLightItalic-BETA.woff +0 -0
- package/src/styles/fonts/Inter-ExtraLightItalic-BETA.woff2 +0 -0
- package/src/styles/fonts/Inter-Italic.woff +0 -0
- package/src/styles/fonts/Inter-Italic.woff2 +0 -0
- package/src/styles/fonts/Inter-Light-BETA.woff +0 -0
- package/src/styles/fonts/Inter-Light-BETA.woff2 +0 -0
- package/src/styles/fonts/Inter-LightItalic-BETA.woff +0 -0
- package/src/styles/fonts/Inter-LightItalic-BETA.woff2 +0 -0
- package/src/styles/fonts/Inter-Medium.woff +0 -0
- package/src/styles/fonts/Inter-Medium.woff2 +0 -0
- package/src/styles/fonts/Inter-MediumItalic.woff +0 -0
- package/src/styles/fonts/Inter-MediumItalic.woff2 +0 -0
- package/src/styles/fonts/Inter-Regular.woff +0 -0
- package/src/styles/fonts/Inter-Regular.woff2 +0 -0
- package/src/styles/fonts/Inter-SemiBold.woff +0 -0
- package/src/styles/fonts/Inter-SemiBold.woff2 +0 -0
- package/src/styles/fonts/Inter-SemiBoldItalic.woff +0 -0
- package/src/styles/fonts/Inter-SemiBoldItalic.woff2 +0 -0
- package/src/styles/fonts/Inter-Thin-BETA.woff +0 -0
- package/src/styles/fonts/Inter-Thin-BETA.woff2 +0 -0
- package/src/styles/fonts/Inter-ThinItalic-BETA.woff +0 -0
- package/src/styles/fonts/Inter-ThinItalic-BETA.woff2 +0 -0
- package/src/styles/fonts/Inter-italic.var.woff2 +0 -0
- package/src/styles/fonts/Inter-upright.var.woff2 +0 -0
- package/src/styles/fonts/Inter.var.woff2 +0 -0
- package/src/styles/fonts/Roboto-Bold.woff2 +0 -0
- package/src/styles/fonts/Roboto-Italic.woff2 +0 -0
- package/src/styles/fonts/Roboto-Medium.woff2 +0 -0
- package/src/styles/fonts/Roboto-Regular.woff2 +0 -0
- package/src/styles/fonts/RobotoMono-Bold.woff2 +0 -0
- package/src/styles/fonts/RobotoMono-Regular.woff2 +0 -0
- package/src/styles/fonts/fonts.css +196 -0
- package/src/styles/fonts/fonts.less +196 -0
- package/src/styles/fonts/location.less +247 -0
- package/src/styles/sizes/index.less +28 -0
- package/src/styles/styles.less +2 -0
- package/src/styles/styles_.less +8 -0
- package/src/styles/theme/component-palettes/me-button-palette.less +164 -0
- package/src/styles/theme/component-palettes/me-components-dark-theme-palette.less +201 -0
- package/src/styles/theme/component-palettes/me-components-light-theme-palette.less +196 -0
- package/src/styles/theme/dark-palette.less +143 -0
- package/src/styles/theme/dark.less +111 -0
- package/src/styles/theme/default-palette.less +142 -0
- package/src/styles/theme/default.less +111 -0
- package/src/styles/theme/index.less +50 -0
- package/src/styles/theme/me-palette.less +539 -0
- package/src/styles/theme/palette.less +284 -0
- package/src/styles/theme/shadows.less +10 -0
- package/src/styles/typography/typography-const.less +77 -0
- package/src/styles/typography/typography-em-const.less +75 -0
- package/src/styles/typography/typography.less +2 -0
- package/types/electra-ui-theme.d.ts +1367 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Link - https://www.figma.com/file/lR03OmslN1ngsyglw65gKK/%F0%9F%8E%A8-Light-theme-V2?node-id=1407%3A16584&t=ITRL3bjTR3nj2syW-0
|
|
3
|
+
*/
|
|
4
|
+
.eDefaultThemeV3() {
|
|
5
|
+
--e-text-icon-primary: var(--e-palette-1200);
|
|
6
|
+
--e-text-icon-secondary: var(--e-palette-gray-800);
|
|
7
|
+
--e-text-icon-tertiary: var(--e-palette-gray-600);
|
|
8
|
+
--e-text-icon-disable: var(--e-palette-gray-400);
|
|
9
|
+
--e-text-icon-link: var(--e-palette-blue-600);
|
|
10
|
+
--e-text-icon-link-hover: var(--e-palette-blue-h650);
|
|
11
|
+
--e-text-icon-link-visited: var(--e-palette-blue-400);
|
|
12
|
+
--e-text-icon-reverse: var(--e-palette-0);
|
|
13
|
+
--e-text-icon-exception: var(--e-palette-0);
|
|
14
|
+
|
|
15
|
+
--e-background-fill-primary: var(--e-palette-0);
|
|
16
|
+
--e-background-fill-secondary: var(--e-palette-gray-100);
|
|
17
|
+
--e-background-fill-panel: var(--e-palette-0);
|
|
18
|
+
--e-background-fill-overlay: var(--e-palette-0);
|
|
19
|
+
--e-background-fill-blanket: #0f11157f;
|
|
20
|
+
--e-background-fill-reverse: var(--e-palette-gray-1100);
|
|
21
|
+
--e-background-stroke: var(--e-palette-gray-200);
|
|
22
|
+
--e-background-stroke-focus: var(--e-palette-blue-400);
|
|
23
|
+
|
|
24
|
+
--e-table-fill-header-default: var(--e-palette-gray-100);
|
|
25
|
+
--e-table-fill-header-hover: var(--e-palette-gray-h150);
|
|
26
|
+
--e-table-fill-row-zebra_default: var(--e-palette-gray-100);
|
|
27
|
+
--e-table-fill-row-hover: var(--e-palette-gray-h150);
|
|
28
|
+
--e-table-fill-row-active: var(--e-palette-blue-200);
|
|
29
|
+
--e-table-fill-cell-disable: var(--e-palette-gray-200);
|
|
30
|
+
--e-table-stroke-cell-default: var(--e-palette-gray-200);
|
|
31
|
+
--e-table-stroke-cell-hover: var(--e-palette-gray-h450);
|
|
32
|
+
--e-table-stroke-cell-active: var(--e-palette-blue-600);
|
|
33
|
+
|
|
34
|
+
--e-status-info-primary-default: var(--e-palette-blue-600);
|
|
35
|
+
--e-status-info-primary-hover: var(--e-palette-blue-h650);
|
|
36
|
+
--e-status-info-secondary-default: var(--e-palette-blue-200);
|
|
37
|
+
--e-status-info-secondary-hover: var(--e-palette-blue-h250);
|
|
38
|
+
--e-status-none-primary-default: var(--e-palette-gray-600);
|
|
39
|
+
--e-status-none-primary-hover: var(--e-palette-gray-h650);
|
|
40
|
+
--e-status-none-secondary-default: var(--e-palette-gray-200);
|
|
41
|
+
--e-status-none-secondary-hover: var(--e-palette-gray-h250);
|
|
42
|
+
--e-status-success-primary-default: var(--e-palette-green-600);
|
|
43
|
+
--e-status-success-primary-hover: var(--e-palette-green-h650);
|
|
44
|
+
--e-status-success-secondary-default: var(--e-palette-green-200);
|
|
45
|
+
--e-status-success-secondary-hover: var(--e-palette-green-h250);
|
|
46
|
+
--e-status-attention-primary-default: var(--e-palette-yellow-300);
|
|
47
|
+
--e-status-attention-primary-hover: var(--e-palette-yellow-h350);
|
|
48
|
+
--e-status-attention-secondary-default: var(--e-palette-yellow-100);
|
|
49
|
+
--e-status-attention-secondary-hover: var(--e-palette-yellow-h150);
|
|
50
|
+
--e-status-warning-primary-default: var(--e-palette-orange-400);
|
|
51
|
+
--e-status-warning-primary-hover: var(--e-palette-orange-h450);
|
|
52
|
+
--e-status-warning-secondary-default: var(--e-palette-orange-100);
|
|
53
|
+
--e-status-warning-secondary-hover: var(--e-palette-orange-h150);
|
|
54
|
+
--e-status-alarm-primary-default: var(--e-palette-red-600);
|
|
55
|
+
--e-status-alarm-primary-hover: var(--e-palette-red-h650);
|
|
56
|
+
--e-status-alarm-secondary-default: var(--e-palette-red-200);
|
|
57
|
+
--e-status-alarm-secondary-hover: var(--e-palette-red-h250);
|
|
58
|
+
|
|
59
|
+
--e-index-plan: #0033ff;
|
|
60
|
+
--e-index-fact: #20222b;
|
|
61
|
+
--e-index-prognosis: var(--e-palette-gray-600);
|
|
62
|
+
|
|
63
|
+
--e-button-primary-solid-default: var(--e-palette-blue-600);
|
|
64
|
+
--e-button-primary-solid-hover: var(--e-palette-blue-h650);
|
|
65
|
+
--e-button-primary-solid-active: var(--e-palette-blue-700);
|
|
66
|
+
--e-button-primary-ghost-active: var(--e-palette-blue-200);
|
|
67
|
+
--e-button-secondary-solid-default: var(--e-palette-gray-600);
|
|
68
|
+
--e-button-secondary-solid-hover: var(--e-palette-gray-h650);
|
|
69
|
+
--e-button-secondary-solid-active: var(--e-palette-gray-700);
|
|
70
|
+
--e-button-secondary-ghost-active: var(--e-palette-gray-200);
|
|
71
|
+
--e-button-success-solid-default: var(--e-palette-green-600);
|
|
72
|
+
--e-button-success-solid-hover: var(--e-palette-green-h650);
|
|
73
|
+
--e-button-success-solid-active: var(--e-palette-green-700);
|
|
74
|
+
--e-button-success-ghost-active: var(--e-palette-green-200);
|
|
75
|
+
--e-button-warning-solid-default: var(--e-palette-orange-400);
|
|
76
|
+
--e-button-warning-solid-hover: var(--e-palette-orange-h450);
|
|
77
|
+
--e-button-warning-solid-active: var(--e-palette-orange-500);
|
|
78
|
+
--e-button-warning-ghost-active: var(--e-palette-orange-200);
|
|
79
|
+
--e-button-alarm-solid-default: var(--e-palette-red-600);
|
|
80
|
+
--e-button-alarm-solid-hover: var(--e-palette-red-h650);
|
|
81
|
+
--e-button-alarm-solid-active: var(--e-palette-red-700);
|
|
82
|
+
--e-button-alarm-ghost-active: var(--e-palette-red-200);
|
|
83
|
+
--e-button-ghost-hover: var(--e-palette-gray-h150);
|
|
84
|
+
--e-button-disable: var(--e-palette-gray-100);
|
|
85
|
+
|
|
86
|
+
--e-form-fill-default: var(--e-palette-gray-100);
|
|
87
|
+
--e-form-fill-disable: var(--e-palette-gray-100);
|
|
88
|
+
--e-form-stroke-default: var(--e-palette-gray-300);
|
|
89
|
+
--e-form-stroke-hover: var(--e-palette-gray-h450);
|
|
90
|
+
--e-form-stroke-disable: var(--e-palette-gray-100);
|
|
91
|
+
--e-form-active: var(--e-palette-blue-600);
|
|
92
|
+
--e-form-active-hover: var(--e-palette-blue-h650);
|
|
93
|
+
--e-form-active-disable: var(--e-palette-blue-400);
|
|
94
|
+
|
|
95
|
+
--e-chart-axis-default: var(--e-palette-gray-300);
|
|
96
|
+
--e-chart-axis-line-hover: var(--e-palette-1200);
|
|
97
|
+
--e-chart-axis-line-active: var(--e-palette-blue-600);
|
|
98
|
+
--e-chart-axis-area-hover: #8a91a233;
|
|
99
|
+
--e-chart-axis-area-active: #436cee33;
|
|
100
|
+
--e-chart-fill-blanket: #8a91a233;
|
|
101
|
+
|
|
102
|
+
--e-shadow-color: var(--e-palette-shadow-light);
|
|
103
|
+
--e-shadow-big-top: 0px -8px 32px 0px var(--e-shadow-color);
|
|
104
|
+
--e-shadow-big-right: 8px 0px 32px 0px var(--e-shadow-color);
|
|
105
|
+
--e-shadow-big-left: -8px 0px 32px 0px var(--e-shadow-color);
|
|
106
|
+
--e-shadow-big-bottom: 0px 8px 32px 0px var(--e-shadow-color);
|
|
107
|
+
--e-shadow-mini-top: 0px -2px 4px 0px var(--e-shadow-color);
|
|
108
|
+
--e-shadow-mini-right: 2px 0px 4px 0px var(--e-shadow-color);
|
|
109
|
+
--e-shadow-mini-left: -2px 0px 4px 0px var(--e-shadow-color);
|
|
110
|
+
--e-shadow-mini-bottom: 0px 2px 4px 0px var(--e-shadow-color);
|
|
111
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@import './palette.less';
|
|
2
|
+
@import './default.less';
|
|
3
|
+
@import './default-palette.less';
|
|
4
|
+
@import './dark.less';
|
|
5
|
+
@import './dark-palette.less';
|
|
6
|
+
|
|
7
|
+
// Base pallet
|
|
8
|
+
@import './me-palette.less';
|
|
9
|
+
|
|
10
|
+
// Shadows
|
|
11
|
+
@import './shadows.less';
|
|
12
|
+
|
|
13
|
+
// Component Pallets
|
|
14
|
+
@import './component-palettes/me-components-light-theme-palette.less';
|
|
15
|
+
@import './component-palettes/me-components-dark-theme-palette.less';
|
|
16
|
+
|
|
17
|
+
// Button palette
|
|
18
|
+
@import './component-palettes/me-button-palette.less';
|
|
19
|
+
|
|
20
|
+
:root {
|
|
21
|
+
/* Fonts */
|
|
22
|
+
--font: 'Roboto', sans-serif;
|
|
23
|
+
--font-mono: 'Roboto Mono', monospace;
|
|
24
|
+
|
|
25
|
+
.eV3Palette();
|
|
26
|
+
.shadows();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:root,
|
|
30
|
+
*[data-e-theme='light'] {
|
|
31
|
+
.eV3ThemeDefaultPalette();
|
|
32
|
+
.eDefaultThemeV3();
|
|
33
|
+
.meLightThemePalette();
|
|
34
|
+
|
|
35
|
+
.meComponentsLightThemePalette();
|
|
36
|
+
.buttonPalette();
|
|
37
|
+
|
|
38
|
+
--e-palette-0: var(--me-background-content);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
*[data-e-theme='dark'] {
|
|
42
|
+
.meDarkThemePalette();
|
|
43
|
+
.eV3ThemeDarkPalette();
|
|
44
|
+
.eDarkThemeV3();
|
|
45
|
+
|
|
46
|
+
.meComponentsDarkThemePalette();
|
|
47
|
+
.buttonPalette();
|
|
48
|
+
|
|
49
|
+
--e-palette-0: var(--me-background-content);
|
|
50
|
+
}
|