@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.
Files changed (71) hide show
  1. package/README.md +53 -2
  2. package/fesm2022/electra-ui-theme.mjs +1059 -0
  3. package/fesm2022/electra-ui-theme.mjs.map +1 -0
  4. package/package.json +29 -4
  5. package/src/styles/font.less +376 -0
  6. package/src/styles/fonts/Inter-Black.woff +0 -0
  7. package/src/styles/fonts/Inter-Black.woff2 +0 -0
  8. package/src/styles/fonts/Inter-BlackItalic.woff +0 -0
  9. package/src/styles/fonts/Inter-BlackItalic.woff2 +0 -0
  10. package/src/styles/fonts/Inter-Bold.woff +0 -0
  11. package/src/styles/fonts/Inter-Bold.woff2 +0 -0
  12. package/src/styles/fonts/Inter-BoldItalic.woff +0 -0
  13. package/src/styles/fonts/Inter-BoldItalic.woff2 +0 -0
  14. package/src/styles/fonts/Inter-ExtraBold.woff +0 -0
  15. package/src/styles/fonts/Inter-ExtraBold.woff2 +0 -0
  16. package/src/styles/fonts/Inter-ExtraBoldItalic.woff +0 -0
  17. package/src/styles/fonts/Inter-ExtraBoldItalic.woff2 +0 -0
  18. package/src/styles/fonts/Inter-ExtraLight-BETA.woff +0 -0
  19. package/src/styles/fonts/Inter-ExtraLight-BETA.woff2 +0 -0
  20. package/src/styles/fonts/Inter-ExtraLightItalic-BETA.woff +0 -0
  21. package/src/styles/fonts/Inter-ExtraLightItalic-BETA.woff2 +0 -0
  22. package/src/styles/fonts/Inter-Italic.woff +0 -0
  23. package/src/styles/fonts/Inter-Italic.woff2 +0 -0
  24. package/src/styles/fonts/Inter-Light-BETA.woff +0 -0
  25. package/src/styles/fonts/Inter-Light-BETA.woff2 +0 -0
  26. package/src/styles/fonts/Inter-LightItalic-BETA.woff +0 -0
  27. package/src/styles/fonts/Inter-LightItalic-BETA.woff2 +0 -0
  28. package/src/styles/fonts/Inter-Medium.woff +0 -0
  29. package/src/styles/fonts/Inter-Medium.woff2 +0 -0
  30. package/src/styles/fonts/Inter-MediumItalic.woff +0 -0
  31. package/src/styles/fonts/Inter-MediumItalic.woff2 +0 -0
  32. package/src/styles/fonts/Inter-Regular.woff +0 -0
  33. package/src/styles/fonts/Inter-Regular.woff2 +0 -0
  34. package/src/styles/fonts/Inter-SemiBold.woff +0 -0
  35. package/src/styles/fonts/Inter-SemiBold.woff2 +0 -0
  36. package/src/styles/fonts/Inter-SemiBoldItalic.woff +0 -0
  37. package/src/styles/fonts/Inter-SemiBoldItalic.woff2 +0 -0
  38. package/src/styles/fonts/Inter-Thin-BETA.woff +0 -0
  39. package/src/styles/fonts/Inter-Thin-BETA.woff2 +0 -0
  40. package/src/styles/fonts/Inter-ThinItalic-BETA.woff +0 -0
  41. package/src/styles/fonts/Inter-ThinItalic-BETA.woff2 +0 -0
  42. package/src/styles/fonts/Inter-italic.var.woff2 +0 -0
  43. package/src/styles/fonts/Inter-upright.var.woff2 +0 -0
  44. package/src/styles/fonts/Inter.var.woff2 +0 -0
  45. package/src/styles/fonts/Roboto-Bold.woff2 +0 -0
  46. package/src/styles/fonts/Roboto-Italic.woff2 +0 -0
  47. package/src/styles/fonts/Roboto-Medium.woff2 +0 -0
  48. package/src/styles/fonts/Roboto-Regular.woff2 +0 -0
  49. package/src/styles/fonts/RobotoMono-Bold.woff2 +0 -0
  50. package/src/styles/fonts/RobotoMono-Regular.woff2 +0 -0
  51. package/src/styles/fonts/fonts.css +196 -0
  52. package/src/styles/fonts/fonts.less +196 -0
  53. package/src/styles/fonts/location.less +247 -0
  54. package/src/styles/sizes/index.less +28 -0
  55. package/src/styles/styles.less +2 -0
  56. package/src/styles/styles_.less +8 -0
  57. package/src/styles/theme/component-palettes/me-button-palette.less +164 -0
  58. package/src/styles/theme/component-palettes/me-components-dark-theme-palette.less +201 -0
  59. package/src/styles/theme/component-palettes/me-components-light-theme-palette.less +196 -0
  60. package/src/styles/theme/dark-palette.less +143 -0
  61. package/src/styles/theme/dark.less +111 -0
  62. package/src/styles/theme/default-palette.less +142 -0
  63. package/src/styles/theme/default.less +111 -0
  64. package/src/styles/theme/index.less +50 -0
  65. package/src/styles/theme/me-palette.less +539 -0
  66. package/src/styles/theme/palette.less +284 -0
  67. package/src/styles/theme/shadows.less +10 -0
  68. package/src/styles/typography/typography-const.less +77 -0
  69. package/src/styles/typography/typography-em-const.less +75 -0
  70. package/src/styles/typography/typography.less +2 -0
  71. package/types/electra-ui-theme.d.ts +1367 -0
Binary file
@@ -0,0 +1,196 @@
1
+ @font-face {
2
+ font-family: 'Inter';
3
+ font-style: normal;
4
+ font-weight: 100;
5
+ src:
6
+ url('Inter-Thin-BETA.woff2') format('woff2'),
7
+ url('Inter-Thin-BETA.woff') format('woff');
8
+ }
9
+ @font-face {
10
+ font-family: 'Inter';
11
+ font-style: italic;
12
+ font-weight: 100;
13
+ src:
14
+ url('Inter-ThinItalic-BETA.woff2') format('woff2'),
15
+ url('Inter-ThinItalic-BETA.woff') format('woff');
16
+ }
17
+
18
+ @font-face {
19
+ font-family: 'Inter';
20
+ font-style: normal;
21
+ font-weight: 200;
22
+ src:
23
+ url('Inter-ExtraLight-BETA.woff2') format('woff2'),
24
+ url('Inter-ExtraLight-BETA.woff') format('woff');
25
+ }
26
+ @font-face {
27
+ font-family: 'Inter';
28
+ font-style: italic;
29
+ font-weight: 200;
30
+ src:
31
+ url('Inter-ExtraLightItalic-BETA.woff2') format('woff2'),
32
+ url('Inter-ExtraLightItalic-BETA.woff') format('woff');
33
+ }
34
+
35
+ @font-face {
36
+ font-family: 'Inter';
37
+ font-style: normal;
38
+ font-weight: 300;
39
+ src:
40
+ url('Inter-Light-BETA.woff2') format('woff2'),
41
+ url('Inter-Light-BETA.woff') format('woff');
42
+ }
43
+ @font-face {
44
+ font-family: 'Inter';
45
+ font-style: italic;
46
+ font-weight: 300;
47
+ src:
48
+ url('Inter-LightItalic-BETA.woff2') format('woff2'),
49
+ url('Inter-LightItalic-BETA.woff') format('woff');
50
+ }
51
+
52
+ @font-face {
53
+ font-family: 'Inter';
54
+ font-style: normal;
55
+ font-weight: 400;
56
+ src:
57
+ url('Inter-Regular.woff2') format('woff2'),
58
+ url('Inter-Regular.woff') format('woff');
59
+ }
60
+ @font-face {
61
+ font-family: 'Inter';
62
+ font-style: italic;
63
+ font-weight: 400;
64
+ src:
65
+ url('Inter-Italic.woff2') format('woff2'),
66
+ url('Inter-Italic.woff') format('woff');
67
+ }
68
+
69
+ @font-face {
70
+ font-family: 'Inter';
71
+ font-style: normal;
72
+ font-weight: 500;
73
+ src:
74
+ url('Inter-Medium.woff2') format('woff2'),
75
+ url('Inter-Medium.woff') format('woff');
76
+ }
77
+ @font-face {
78
+ font-family: 'Inter';
79
+ font-style: italic;
80
+ font-weight: 500;
81
+ src:
82
+ url('Inter-MediumItalic.woff2') format('woff2'),
83
+ url('Inter-MediumItalic.woff') format('woff');
84
+ }
85
+
86
+ @font-face {
87
+ font-family: 'Inter';
88
+ font-style: normal;
89
+ font-weight: 600;
90
+ src:
91
+ url('Inter-SemiBold.woff2') format('woff2'),
92
+ url('Inter-SemiBold.woff') format('woff');
93
+ }
94
+ @font-face {
95
+ font-family: 'Inter';
96
+ font-style: italic;
97
+ font-weight: 600;
98
+ src:
99
+ url('Inter-SemiBoldItalic.woff2') format('woff2'),
100
+ url('Inter-SemiBoldItalic.woff') format('woff');
101
+ }
102
+
103
+ @font-face {
104
+ font-family: 'Inter';
105
+ font-style: normal;
106
+ font-weight: 700;
107
+ src:
108
+ url('Inter-Bold.woff2') format('woff2'),
109
+ url('Inter-Bold.woff') format('woff');
110
+ }
111
+ @font-face {
112
+ font-family: 'Inter';
113
+ font-style: italic;
114
+ font-weight: 700;
115
+ src:
116
+ url('Inter-BoldItalic.woff2') format('woff2'),
117
+ url('Inter-BoldItalic.woff') format('woff');
118
+ }
119
+
120
+ @font-face {
121
+ font-family: 'Inter';
122
+ font-style: normal;
123
+ font-weight: 800;
124
+ src:
125
+ url('Inter-ExtraBold.woff2') format('woff2'),
126
+ url('Inter-ExtraBold.woff') format('woff');
127
+ }
128
+ @font-face {
129
+ font-family: 'Inter';
130
+ font-style: italic;
131
+ font-weight: 800;
132
+ src:
133
+ url('Inter-ExtraBoldItalic.woff2') format('woff2'),
134
+ url('Inter-ExtraBoldItalic.woff') format('woff');
135
+ }
136
+
137
+ @font-face {
138
+ font-family: 'Inter';
139
+ font-style: normal;
140
+ font-weight: 900;
141
+ src:
142
+ url('Inter-Black.woff2') format('woff2'),
143
+ url('Inter-Black.woff') format('woff');
144
+ }
145
+ @font-face {
146
+ font-family: 'Inter';
147
+ font-style: italic;
148
+ font-weight: 900;
149
+ src:
150
+ url('Inter-BlackItalic.woff2') format('woff2'),
151
+ url('Inter-BlackItalic.woff') format('woff');
152
+ }
153
+
154
+ /* -------------------------------------------------------
155
+ Variable font.
156
+ Usage:
157
+
158
+ html { font-family: 'Inter', sans-serif; }
159
+ @supports (font-variation-settings: normal) {
160
+ html { font-family: 'Inter var', sans-serif; }
161
+ }
162
+ */
163
+ @font-face {
164
+ font-family: 'Inter var';
165
+ font-weight: 100 900;
166
+ font-style: normal;
167
+ font-named-instance: 'Regular';
168
+ src: url('Inter-upright.var.woff2') format('woff2');
169
+ }
170
+ @font-face {
171
+ font-family: 'Inter var';
172
+ font-weight: 100 900;
173
+ font-style: italic;
174
+ font-named-instance: 'Italic';
175
+ src: url('Inter-italic.var.woff2') format('woff2');
176
+ }
177
+
178
+ /* --------------------------------------------------------------------------
179
+ [EXPERIMENTAL] Multi-axis, single variable font.
180
+
181
+ Slant axis is not yet widely supported (as of February 2019) and thus this
182
+ multi-axis single variable font is opt-in rather than the default.
183
+
184
+ When using this, you will probably need to set font-variation-settings
185
+ explicitly, e.g.
186
+
187
+ * { font-variation-settings: "slnt" 0deg }
188
+ .italic { font-variation-settings: "slnt" 10deg }
189
+
190
+ */
191
+ @font-face {
192
+ font-family: 'Inter var experimental';
193
+ font-weight: 100 900;
194
+ font-style: oblique 0deg 10deg;
195
+ src: url('Inter.var.woff2') format('woff2');
196
+ }
@@ -0,0 +1,196 @@
1
+ @font-face {
2
+ font-family: 'Inter';
3
+ font-style: normal;
4
+ font-weight: 100;
5
+ src:
6
+ url('Inter-Thin-BETA.woff2') format('woff2'),
7
+ url('Inter-Thin-BETA.woff') format('woff');
8
+ }
9
+ @font-face {
10
+ font-family: 'Inter';
11
+ font-style: italic;
12
+ font-weight: 100;
13
+ src:
14
+ url('Inter-ThinItalic-BETA.woff2') format('woff2'),
15
+ url('Inter-ThinItalic-BETA.woff') format('woff');
16
+ }
17
+
18
+ @font-face {
19
+ font-family: 'Inter';
20
+ font-style: normal;
21
+ font-weight: 200;
22
+ src:
23
+ url('Inter-ExtraLight-BETA.woff2') format('woff2'),
24
+ url('Inter-ExtraLight-BETA.woff') format('woff');
25
+ }
26
+ @font-face {
27
+ font-family: 'Inter';
28
+ font-style: italic;
29
+ font-weight: 200;
30
+ src:
31
+ url('Inter-ExtraLightItalic-BETA.woff2') format('woff2'),
32
+ url('Inter-ExtraLightItalic-BETA.woff') format('woff');
33
+ }
34
+
35
+ @font-face {
36
+ font-family: 'Inter';
37
+ font-style: normal;
38
+ font-weight: 300;
39
+ src:
40
+ url('Inter-Light-BETA.woff2') format('woff2'),
41
+ url('Inter-Light-BETA.woff') format('woff');
42
+ }
43
+ @font-face {
44
+ font-family: 'Inter';
45
+ font-style: italic;
46
+ font-weight: 300;
47
+ src:
48
+ url('Inter-LightItalic-BETA.woff2') format('woff2'),
49
+ url('Inter-LightItalic-BETA.woff') format('woff');
50
+ }
51
+
52
+ @font-face {
53
+ font-family: 'Inter';
54
+ font-style: normal;
55
+ font-weight: 400;
56
+ src:
57
+ url('Inter-Regular.woff2') format('woff2'),
58
+ url('Inter-Regular.woff') format('woff');
59
+ }
60
+ @font-face {
61
+ font-family: 'Inter';
62
+ font-style: italic;
63
+ font-weight: 400;
64
+ src:
65
+ url('Inter-Italic.woff2') format('woff2'),
66
+ url('Inter-Italic.woff') format('woff');
67
+ }
68
+
69
+ @font-face {
70
+ font-family: 'Inter';
71
+ font-style: normal;
72
+ font-weight: 500;
73
+ src:
74
+ url('Inter-Medium.woff2') format('woff2'),
75
+ url('Inter-Medium.woff') format('woff');
76
+ }
77
+ @font-face {
78
+ font-family: 'Inter';
79
+ font-style: italic;
80
+ font-weight: 500;
81
+ src:
82
+ url('Inter-MediumItalic.woff2') format('woff2'),
83
+ url('Inter-MediumItalic.woff') format('woff');
84
+ }
85
+
86
+ @font-face {
87
+ font-family: 'Inter';
88
+ font-style: normal;
89
+ font-weight: 600;
90
+ src:
91
+ url('Inter-SemiBold.woff2') format('woff2'),
92
+ url('Inter-SemiBold.woff') format('woff');
93
+ }
94
+ @font-face {
95
+ font-family: 'Inter';
96
+ font-style: italic;
97
+ font-weight: 600;
98
+ src:
99
+ url('Inter-SemiBoldItalic.woff2') format('woff2'),
100
+ url('Inter-SemiBoldItalic.woff') format('woff');
101
+ }
102
+
103
+ @font-face {
104
+ font-family: 'Inter';
105
+ font-style: normal;
106
+ font-weight: 700;
107
+ src:
108
+ url('Inter-Bold.woff2') format('woff2'),
109
+ url('Inter-Bold.woff') format('woff');
110
+ }
111
+ @font-face {
112
+ font-family: 'Inter';
113
+ font-style: italic;
114
+ font-weight: 700;
115
+ src:
116
+ url('Inter-BoldItalic.woff2') format('woff2'),
117
+ url('Inter-BoldItalic.woff') format('woff');
118
+ }
119
+
120
+ @font-face {
121
+ font-family: 'Inter';
122
+ font-style: normal;
123
+ font-weight: 800;
124
+ src:
125
+ url('Inter-ExtraBold.woff2') format('woff2'),
126
+ url('Inter-ExtraBold.woff') format('woff');
127
+ }
128
+ @font-face {
129
+ font-family: 'Inter';
130
+ font-style: italic;
131
+ font-weight: 800;
132
+ src:
133
+ url('Inter-ExtraBoldItalic.woff2') format('woff2'),
134
+ url('Inter-ExtraBoldItalic.woff') format('woff');
135
+ }
136
+
137
+ @font-face {
138
+ font-family: 'Inter';
139
+ font-style: normal;
140
+ font-weight: 900;
141
+ src:
142
+ url('Inter-Black.woff2') format('woff2'),
143
+ url('Inter-Black.woff') format('woff');
144
+ }
145
+ @font-face {
146
+ font-family: 'Inter';
147
+ font-style: italic;
148
+ font-weight: 900;
149
+ src:
150
+ url('Inter-BlackItalic.woff2') format('woff2'),
151
+ url('Inter-BlackItalic.woff') format('woff');
152
+ }
153
+
154
+ /* -------------------------------------------------------
155
+ Variable font.
156
+ Usage:
157
+
158
+ html { font-family: 'Inter', sans-serif; }
159
+ @supports (font-variation-settings: normal) {
160
+ html { font-family: 'Inter var', sans-serif; }
161
+ }
162
+ */
163
+ @font-face {
164
+ font-family: 'Inter var';
165
+ font-weight: 100 900;
166
+ font-style: normal;
167
+ font-named-instance: 'Regular';
168
+ src: url('Inter-upright.var.woff2') format('woff2');
169
+ }
170
+ @font-face {
171
+ font-family: 'Inter var';
172
+ font-weight: 100 900;
173
+ font-style: italic;
174
+ font-named-instance: 'Italic';
175
+ src: url('Inter-italic.var.woff2') format('woff2');
176
+ }
177
+
178
+ /* --------------------------------------------------------------------------
179
+ [EXPERIMENTAL] Multi-axis, single variable font.
180
+
181
+ Slant axis is not yet widely supported (as of February 2019) and thus this
182
+ multi-axis single variable font is opt-in rather than the default.
183
+
184
+ When using this, you will probably need to set font-variation-settings
185
+ explicitly, e.g.
186
+
187
+ * { font-variation-settings: "slnt" 0deg }
188
+ .italic { font-variation-settings: "slnt" 10deg }
189
+
190
+ */
191
+ @font-face {
192
+ font-family: 'Inter var experimental';
193
+ font-weight: 100 900;
194
+ font-style: oblique 0deg 10deg;
195
+ src: url('Inter.var.woff2') format('woff2');
196
+ }