@maxio-com/design-tokens 3.2.0-alpha.0 → 3.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 +21 -0
- package/dist/semantic-colors.d.ts +210 -0
- package/dist/semantic-colors.d.ts.map +1 -0
- package/dist/semantic-colors.js +218 -0
- package/dist/variables.css +39 -39
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,6 +32,27 @@ All the changes in the design tokens should be backward compatible. This means t
|
|
|
32
32
|
|
|
33
33
|
After the deprecation period, and making sure migration has been done, you can remove the old token.
|
|
34
34
|
|
|
35
|
+
## Dark mode
|
|
36
|
+
|
|
37
|
+
Semantic tokens are composed in a way that they can be used in both light and dark mode. This means that you can use the same tokens for both light and dark mode, and the tokens will automatically adjust to the mode.
|
|
38
|
+
|
|
39
|
+
We use data attribute (`[data-maxio-dark-mode]`) to toggle dark mode. It allows to control the dark mode per component, and it also allows to control the dark mode globally.
|
|
40
|
+
|
|
41
|
+
```css
|
|
42
|
+
.my-component {
|
|
43
|
+
background-color: var(--maxio-color-bg-primary);
|
|
44
|
+
color: var(--maxio-color-text-primary);
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
```html
|
|
49
|
+
<!-- regular component -->
|
|
50
|
+
<div class="my-component">...</div>
|
|
51
|
+
|
|
52
|
+
<!-- dark mode -->
|
|
53
|
+
<div class="my-component" data-maxio-dark-mode>...</div>
|
|
54
|
+
```
|
|
55
|
+
|
|
35
56
|
## FAQ
|
|
36
57
|
|
|
37
58
|
### How do I use these tokens?
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
declare const bg: {
|
|
2
|
+
primary: {
|
|
3
|
+
light: string;
|
|
4
|
+
dark: string;
|
|
5
|
+
hover: {
|
|
6
|
+
light: string;
|
|
7
|
+
dark: string;
|
|
8
|
+
};
|
|
9
|
+
active: {
|
|
10
|
+
light: string;
|
|
11
|
+
dark: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
secondary: {
|
|
15
|
+
light: string;
|
|
16
|
+
dark: string;
|
|
17
|
+
hover: {
|
|
18
|
+
light: string;
|
|
19
|
+
dark: string;
|
|
20
|
+
};
|
|
21
|
+
active: {
|
|
22
|
+
light: string;
|
|
23
|
+
dark: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
tertiary: {
|
|
27
|
+
light: string;
|
|
28
|
+
dark: string;
|
|
29
|
+
hover: {
|
|
30
|
+
light: string;
|
|
31
|
+
dark: string;
|
|
32
|
+
};
|
|
33
|
+
active: {
|
|
34
|
+
light: string;
|
|
35
|
+
dark: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
inverse: {
|
|
39
|
+
light: string;
|
|
40
|
+
dark: string;
|
|
41
|
+
hover: {
|
|
42
|
+
light: string;
|
|
43
|
+
dark: string;
|
|
44
|
+
};
|
|
45
|
+
active: {
|
|
46
|
+
light: string;
|
|
47
|
+
dark: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
neutral: {
|
|
51
|
+
light: string;
|
|
52
|
+
dark: string;
|
|
53
|
+
};
|
|
54
|
+
info: {
|
|
55
|
+
light: string;
|
|
56
|
+
dark: string;
|
|
57
|
+
};
|
|
58
|
+
success: {
|
|
59
|
+
light: string;
|
|
60
|
+
dark: string;
|
|
61
|
+
};
|
|
62
|
+
warning: {
|
|
63
|
+
light: string;
|
|
64
|
+
dark: string;
|
|
65
|
+
};
|
|
66
|
+
danger: {
|
|
67
|
+
light: string;
|
|
68
|
+
dark: string;
|
|
69
|
+
};
|
|
70
|
+
highlight: {
|
|
71
|
+
light: string;
|
|
72
|
+
dark: string;
|
|
73
|
+
};
|
|
74
|
+
fill: {
|
|
75
|
+
brand: {
|
|
76
|
+
light: string;
|
|
77
|
+
dark: string;
|
|
78
|
+
hover: {
|
|
79
|
+
light: string;
|
|
80
|
+
dark: string;
|
|
81
|
+
};
|
|
82
|
+
active: {
|
|
83
|
+
light: string;
|
|
84
|
+
dark: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
neutral: {
|
|
88
|
+
light: string;
|
|
89
|
+
dark: string;
|
|
90
|
+
};
|
|
91
|
+
info: {
|
|
92
|
+
light: string;
|
|
93
|
+
dark: string;
|
|
94
|
+
};
|
|
95
|
+
success: {
|
|
96
|
+
light: string;
|
|
97
|
+
dark: string;
|
|
98
|
+
};
|
|
99
|
+
warning: {
|
|
100
|
+
light: string;
|
|
101
|
+
dark: string;
|
|
102
|
+
};
|
|
103
|
+
danger: {
|
|
104
|
+
light: string;
|
|
105
|
+
dark: string;
|
|
106
|
+
hover: {
|
|
107
|
+
light: string;
|
|
108
|
+
dark: string;
|
|
109
|
+
};
|
|
110
|
+
active: {
|
|
111
|
+
light: string;
|
|
112
|
+
dark: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
highlight: {
|
|
116
|
+
light: string;
|
|
117
|
+
dark: string;
|
|
118
|
+
};
|
|
119
|
+
disabled: {
|
|
120
|
+
light: string;
|
|
121
|
+
dark: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
declare const border: {
|
|
126
|
+
primary: {
|
|
127
|
+
light: string;
|
|
128
|
+
dark: string;
|
|
129
|
+
};
|
|
130
|
+
secondary: {
|
|
131
|
+
light: string;
|
|
132
|
+
dark: string;
|
|
133
|
+
};
|
|
134
|
+
tertiary: {
|
|
135
|
+
light: string;
|
|
136
|
+
dark: string;
|
|
137
|
+
};
|
|
138
|
+
inverse: {
|
|
139
|
+
light: string;
|
|
140
|
+
dark: string;
|
|
141
|
+
};
|
|
142
|
+
focus: {
|
|
143
|
+
light: string;
|
|
144
|
+
dark: string;
|
|
145
|
+
};
|
|
146
|
+
'focus-inset': {
|
|
147
|
+
light: string;
|
|
148
|
+
dark: string;
|
|
149
|
+
};
|
|
150
|
+
brand: {
|
|
151
|
+
light: string;
|
|
152
|
+
dark: string;
|
|
153
|
+
};
|
|
154
|
+
info: {
|
|
155
|
+
light: string;
|
|
156
|
+
dark: string;
|
|
157
|
+
};
|
|
158
|
+
'info-secondary': {
|
|
159
|
+
light: string;
|
|
160
|
+
dark: string;
|
|
161
|
+
};
|
|
162
|
+
success: {
|
|
163
|
+
light: string;
|
|
164
|
+
dark: string;
|
|
165
|
+
};
|
|
166
|
+
'success-secondary': {
|
|
167
|
+
light: string;
|
|
168
|
+
dark: string;
|
|
169
|
+
};
|
|
170
|
+
warning: {
|
|
171
|
+
light: string;
|
|
172
|
+
dark: string;
|
|
173
|
+
};
|
|
174
|
+
'warning-secondary': {
|
|
175
|
+
light: string;
|
|
176
|
+
dark: string;
|
|
177
|
+
};
|
|
178
|
+
danger: {
|
|
179
|
+
light: string;
|
|
180
|
+
dark: string;
|
|
181
|
+
};
|
|
182
|
+
'danger-secondary': {
|
|
183
|
+
light: string;
|
|
184
|
+
dark: string;
|
|
185
|
+
};
|
|
186
|
+
highlight: {
|
|
187
|
+
light: string;
|
|
188
|
+
dark: string;
|
|
189
|
+
};
|
|
190
|
+
'highlight-secondary': {
|
|
191
|
+
light: string;
|
|
192
|
+
dark: string;
|
|
193
|
+
};
|
|
194
|
+
avatar: {
|
|
195
|
+
light: string;
|
|
196
|
+
dark: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
declare const icon: {
|
|
200
|
+
primary: {
|
|
201
|
+
light: string;
|
|
202
|
+
dark: string;
|
|
203
|
+
};
|
|
204
|
+
secondary: {
|
|
205
|
+
light: string;
|
|
206
|
+
dark: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
export { bg, border, icon };
|
|
210
|
+
//# sourceMappingURL=semantic-colors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semantic-colors.d.ts","sourceRoot":"","sources":["../src/semantic-colors.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4IP,CAAC;AAEF,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEX,CAAC;AAEF,QAAA,MAAM,IAAI;;;;;;;;;CAST,CAAC;AAEF,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.icon = exports.border = exports.bg = void 0;
|
|
7
|
+
var colors_1 = __importDefault(require("./colors"));
|
|
8
|
+
var bg = {
|
|
9
|
+
primary: {
|
|
10
|
+
light: 'white',
|
|
11
|
+
dark: 'black',
|
|
12
|
+
hover: {
|
|
13
|
+
light: colors_1.default.gray['05'],
|
|
14
|
+
dark: colors_1.default.gray['105'],
|
|
15
|
+
},
|
|
16
|
+
active: {
|
|
17
|
+
light: colors_1.default.gray['10'],
|
|
18
|
+
dark: colors_1.default.gray['100'],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
secondary: {
|
|
22
|
+
light: colors_1.default.gray['05'],
|
|
23
|
+
dark: colors_1.default.gray['105'],
|
|
24
|
+
hover: {
|
|
25
|
+
light: colors_1.default.gray['10'],
|
|
26
|
+
dark: colors_1.default.gray['100'],
|
|
27
|
+
},
|
|
28
|
+
active: {
|
|
29
|
+
light: colors_1.default.gray['20'],
|
|
30
|
+
dark: colors_1.default.gray['90'],
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
tertiary: {
|
|
34
|
+
light: colors_1.default.gray['10'],
|
|
35
|
+
dark: colors_1.default.gray['100'],
|
|
36
|
+
hover: {
|
|
37
|
+
light: colors_1.default.gray['20'],
|
|
38
|
+
dark: colors_1.default.gray['90'],
|
|
39
|
+
},
|
|
40
|
+
active: {
|
|
41
|
+
light: colors_1.default.gray['30'],
|
|
42
|
+
dark: colors_1.default.gray['80'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
inverse: {
|
|
46
|
+
light: 'black',
|
|
47
|
+
dark: 'white',
|
|
48
|
+
hover: {
|
|
49
|
+
light: colors_1.default.gray['105'],
|
|
50
|
+
dark: colors_1.default.gray['05'],
|
|
51
|
+
},
|
|
52
|
+
active: {
|
|
53
|
+
light: colors_1.default.gray['100'],
|
|
54
|
+
dark: colors_1.default.gray['10'],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
neutral: {
|
|
58
|
+
light: colors_1.default.gray['10'],
|
|
59
|
+
dark: colors_1.default.gray['100'],
|
|
60
|
+
},
|
|
61
|
+
info: {
|
|
62
|
+
light: colors_1.default.blue['10'],
|
|
63
|
+
dark: colors_1.default.blue['100'],
|
|
64
|
+
},
|
|
65
|
+
success: {
|
|
66
|
+
light: colors_1.default.green['10'],
|
|
67
|
+
dark: colors_1.default.green['100'],
|
|
68
|
+
},
|
|
69
|
+
warning: {
|
|
70
|
+
light: colors_1.default.yellow['10'],
|
|
71
|
+
dark: colors_1.default.yellow['100'],
|
|
72
|
+
},
|
|
73
|
+
danger: {
|
|
74
|
+
light: colors_1.default.red['10'],
|
|
75
|
+
dark: colors_1.default.red['100'],
|
|
76
|
+
},
|
|
77
|
+
highlight: {
|
|
78
|
+
light: colors_1.default.purple['10'],
|
|
79
|
+
dark: colors_1.default.purple['100'],
|
|
80
|
+
},
|
|
81
|
+
fill: {
|
|
82
|
+
brand: {
|
|
83
|
+
light: colors_1.default.blue['80'],
|
|
84
|
+
dark: colors_1.default.blue['60'],
|
|
85
|
+
hover: {
|
|
86
|
+
light: colors_1.default.blue['90'],
|
|
87
|
+
dark: colors_1.default.blue['50'],
|
|
88
|
+
},
|
|
89
|
+
active: {
|
|
90
|
+
light: colors_1.default.blue['100'],
|
|
91
|
+
dark: colors_1.default.blue['40'],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
neutral: {
|
|
95
|
+
light: colors_1.default.gray['80'],
|
|
96
|
+
dark: colors_1.default.gray['30'],
|
|
97
|
+
},
|
|
98
|
+
info: {
|
|
99
|
+
light: colors_1.default.blue['80'],
|
|
100
|
+
dark: colors_1.default.blue['60'],
|
|
101
|
+
},
|
|
102
|
+
success: {
|
|
103
|
+
light: colors_1.default.green['80'],
|
|
104
|
+
dark: colors_1.default.green['30'],
|
|
105
|
+
},
|
|
106
|
+
warning: {
|
|
107
|
+
light: colors_1.default.yellow['80'],
|
|
108
|
+
dark: colors_1.default.yellow['30'],
|
|
109
|
+
},
|
|
110
|
+
danger: {
|
|
111
|
+
light: colors_1.default.red['80'],
|
|
112
|
+
dark: colors_1.default.red['60'],
|
|
113
|
+
hover: {
|
|
114
|
+
light: colors_1.default.red['90'],
|
|
115
|
+
dark: colors_1.default.red['50'],
|
|
116
|
+
},
|
|
117
|
+
active: {
|
|
118
|
+
light: colors_1.default.red['100'],
|
|
119
|
+
dark: colors_1.default.red['40'],
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
highlight: {
|
|
123
|
+
light: colors_1.default.purple['80'],
|
|
124
|
+
dark: colors_1.default.purple['30'],
|
|
125
|
+
},
|
|
126
|
+
disabled: {
|
|
127
|
+
light: colors_1.default.gray['30'],
|
|
128
|
+
dark: colors_1.default.gray['80'],
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
exports.bg = bg;
|
|
133
|
+
var border = {
|
|
134
|
+
primary: {
|
|
135
|
+
light: colors_1.default.gray['80'],
|
|
136
|
+
dark: colors_1.default.gray['30'],
|
|
137
|
+
},
|
|
138
|
+
secondary: {
|
|
139
|
+
light: colors_1.default.gray['60'],
|
|
140
|
+
dark: colors_1.default.gray['50'],
|
|
141
|
+
},
|
|
142
|
+
tertiary: {
|
|
143
|
+
light: colors_1.default.gray['20'],
|
|
144
|
+
dark: colors_1.default.gray['90'],
|
|
145
|
+
},
|
|
146
|
+
inverse: {
|
|
147
|
+
light: 'black',
|
|
148
|
+
dark: 'white',
|
|
149
|
+
},
|
|
150
|
+
focus: {
|
|
151
|
+
light: colors_1.default.blue['80'],
|
|
152
|
+
dark: 'white',
|
|
153
|
+
},
|
|
154
|
+
'focus-inset': {
|
|
155
|
+
light: 'white',
|
|
156
|
+
dark: 'black',
|
|
157
|
+
},
|
|
158
|
+
brand: {
|
|
159
|
+
light: colors_1.default.blue['80'],
|
|
160
|
+
dark: colors_1.default.blue['60'],
|
|
161
|
+
},
|
|
162
|
+
info: {
|
|
163
|
+
light: colors_1.default.blue['80'],
|
|
164
|
+
dark: colors_1.default.blue['60'],
|
|
165
|
+
},
|
|
166
|
+
'info-secondary': {
|
|
167
|
+
light: colors_1.default.blue['20'],
|
|
168
|
+
dark: colors_1.default.blue['90'],
|
|
169
|
+
},
|
|
170
|
+
success: {
|
|
171
|
+
light: colors_1.default.green['80'],
|
|
172
|
+
dark: colors_1.default.green['30'],
|
|
173
|
+
},
|
|
174
|
+
'success-secondary': {
|
|
175
|
+
light: colors_1.default.green['20'],
|
|
176
|
+
dark: colors_1.default.green['90'],
|
|
177
|
+
},
|
|
178
|
+
warning: {
|
|
179
|
+
light: colors_1.default.yellow['80'],
|
|
180
|
+
dark: colors_1.default.yellow['30'],
|
|
181
|
+
},
|
|
182
|
+
'warning-secondary': {
|
|
183
|
+
light: colors_1.default.yellow['20'],
|
|
184
|
+
dark: colors_1.default.yellow['90'],
|
|
185
|
+
},
|
|
186
|
+
danger: {
|
|
187
|
+
light: colors_1.default.red['80'],
|
|
188
|
+
dark: colors_1.default.red['60'],
|
|
189
|
+
},
|
|
190
|
+
'danger-secondary': {
|
|
191
|
+
light: colors_1.default.red['20'],
|
|
192
|
+
dark: colors_1.default.red['90'],
|
|
193
|
+
},
|
|
194
|
+
highlight: {
|
|
195
|
+
light: colors_1.default.purple['80'],
|
|
196
|
+
dark: colors_1.default.purple['30'],
|
|
197
|
+
},
|
|
198
|
+
'highlight-secondary': {
|
|
199
|
+
light: colors_1.default.purple['20'],
|
|
200
|
+
dark: colors_1.default.purple['90'],
|
|
201
|
+
},
|
|
202
|
+
avatar: {
|
|
203
|
+
light: colors_1.default.gray['10'],
|
|
204
|
+
dark: colors_1.default.gray['100'],
|
|
205
|
+
},
|
|
206
|
+
};
|
|
207
|
+
exports.border = border;
|
|
208
|
+
var icon = {
|
|
209
|
+
primary: {
|
|
210
|
+
light: 'black',
|
|
211
|
+
dark: 'white',
|
|
212
|
+
},
|
|
213
|
+
secondary: {
|
|
214
|
+
light: colors_1.default.gray['90'],
|
|
215
|
+
dark: colors_1.default.gray['20'],
|
|
216
|
+
},
|
|
217
|
+
};
|
|
218
|
+
exports.icon = icon;
|
package/dist/variables.css
CHANGED
|
@@ -4,46 +4,46 @@
|
|
|
4
4
|
--maxio-black: #000000;
|
|
5
5
|
|
|
6
6
|
/* primitive colors */
|
|
7
|
-
--maxio-black-opaque: hsl(0 0 0%);
|
|
8
|
-
--maxio-black-alpha-05: hsl(0 0 0%
|
|
9
|
-
--maxio-black-alpha-10: hsl(0 0 0%
|
|
10
|
-
--maxio-black-alpha-20: hsl(0 0 0%
|
|
11
|
-
--maxio-black-alpha-30: hsl(0 0 0%
|
|
12
|
-
--maxio-black-alpha-40: hsl(0 0 0%
|
|
13
|
-
--maxio-black-alpha-50: hsl(0 0 0%
|
|
14
|
-
--maxio-black-alpha-60: hsl(0 0 0%
|
|
15
|
-
--maxio-black-alpha-70: hsl(0 0 0%
|
|
16
|
-
--maxio-black-alpha-80: hsl(0 0 0%
|
|
17
|
-
--maxio-black-alpha-90: hsl(0 0 0%
|
|
18
|
-
--maxio-black-alpha-100: hsl(0 0 0%
|
|
19
|
-
--maxio-black-alpha-105: hsl(0 0 0%
|
|
7
|
+
--maxio-black-opaque: hsl(0 0% 0%);
|
|
8
|
+
--maxio-black-alpha-05: hsl(0 0% 0% 0.04);
|
|
9
|
+
--maxio-black-alpha-10: hsl(0 0% 0% 0.09);
|
|
10
|
+
--maxio-black-alpha-20: hsl(0 0% 0% 0.15);
|
|
11
|
+
--maxio-black-alpha-30: hsl(0 0% 0% 0.22);
|
|
12
|
+
--maxio-black-alpha-40: hsl(0 0% 0% 0.3);
|
|
13
|
+
--maxio-black-alpha-50: hsl(0 0% 0% 0.37);
|
|
14
|
+
--maxio-black-alpha-60: hsl(0 0% 0% 0.44);
|
|
15
|
+
--maxio-black-alpha-70: hsl(0 0% 0% 0.53);
|
|
16
|
+
--maxio-black-alpha-80: hsl(0 0% 0% 0.62);
|
|
17
|
+
--maxio-black-alpha-90: hsl(0 0% 0% 0.71);
|
|
18
|
+
--maxio-black-alpha-100: hsl(0 0% 0% 0.82);
|
|
19
|
+
--maxio-black-alpha-105: hsl(0 0% 0% 0.88);
|
|
20
20
|
|
|
21
|
-
--maxio-white-opaque: hsl(0 0 100%);
|
|
22
|
-
--maxio-white-alpha-05: hsl(0 0 100%
|
|
23
|
-
--maxio-white-alpha-10: hsl(0 0 100%
|
|
24
|
-
--maxio-white-alpha-20: hsl(0 0 100%
|
|
25
|
-
--maxio-white-alpha-30: hsl(0 0 100%
|
|
26
|
-
--maxio-white-alpha-40: hsl(0 0 100%
|
|
27
|
-
--maxio-white-alpha-50: hsl(0 0 100%
|
|
28
|
-
--maxio-white-alpha-60: hsl(0 0 100%
|
|
29
|
-
--maxio-white-alpha-70: hsl(0 0 100%
|
|
30
|
-
--maxio-white-alpha-80: hsl(0 0 100%
|
|
31
|
-
--maxio-white-alpha-90: hsl(0 0 100%
|
|
32
|
-
--maxio-white-alpha-100: hsl(0 0 100%
|
|
33
|
-
--maxio-white-alpha-105: hsl(0 0 100%
|
|
21
|
+
--maxio-white-opaque: hsl(0 0% 100%);
|
|
22
|
+
--maxio-white-alpha-05: hsl(0 0% 100% 0.13);
|
|
23
|
+
--maxio-white-alpha-10: hsl(0 0% 100% 0.19);
|
|
24
|
+
--maxio-white-alpha-20: hsl(0 0% 100% 0.3);
|
|
25
|
+
--maxio-white-alpha-30: hsl(0 0% 100% 0.39);
|
|
26
|
+
--maxio-white-alpha-40: hsl(0 0% 100% 0.48);
|
|
27
|
+
--maxio-white-alpha-50: hsl(0 0% 100% 0.57);
|
|
28
|
+
--maxio-white-alpha-60: hsl(0 0% 100% 0.64);
|
|
29
|
+
--maxio-white-alpha-70: hsl(0 0% 100% 0.71);
|
|
30
|
+
--maxio-white-alpha-80: hsl(0 0% 100% 0.79);
|
|
31
|
+
--maxio-white-alpha-90: hsl(0 0% 100% 0.86);
|
|
32
|
+
--maxio-white-alpha-100: hsl(0 0% 100% 0.92);
|
|
33
|
+
--maxio-white-alpha-105: hsl(0 0% 100% 0.97);
|
|
34
34
|
|
|
35
|
-
--maxio-gray-05: hsl(0 0 96%);
|
|
36
|
-
--maxio-gray-10: hsl(0 0 91%);
|
|
37
|
-
--maxio-gray-20: hsl(0 0 85%);
|
|
38
|
-
--maxio-gray-30: hsl(0 0 78%);
|
|
39
|
-
--maxio-gray-40: hsl(0 0 71%);
|
|
40
|
-
--maxio-gray-50: hsl(0 0 64%);
|
|
41
|
-
--maxio-gray-60: hsl(0 0 56%);
|
|
42
|
-
--maxio-gray-70: hsl(0 0 47%);
|
|
43
|
-
--maxio-gray-80: hsl(0 0 39%);
|
|
44
|
-
--maxio-gray-90: hsl(0 0 29%);
|
|
45
|
-
--maxio-gray-100: hsl(0 0 18%);
|
|
46
|
-
--maxio-gray-105: hsl(0 0 12%);
|
|
35
|
+
--maxio-gray-05: hsl(0 0% 96%);
|
|
36
|
+
--maxio-gray-10: hsl(0 0% 91%);
|
|
37
|
+
--maxio-gray-20: hsl(0 0% 85%);
|
|
38
|
+
--maxio-gray-30: hsl(0 0% 78%);
|
|
39
|
+
--maxio-gray-40: hsl(0 0% 71%);
|
|
40
|
+
--maxio-gray-50: hsl(0 0% 64%);
|
|
41
|
+
--maxio-gray-60: hsl(0 0% 56%);
|
|
42
|
+
--maxio-gray-70: hsl(0 0% 47%);
|
|
43
|
+
--maxio-gray-80: hsl(0 0% 39%);
|
|
44
|
+
--maxio-gray-90: hsl(0 0% 29%);
|
|
45
|
+
--maxio-gray-100: hsl(0 0% 18%);
|
|
46
|
+
--maxio-gray-105: hsl(0 0% 12%);
|
|
47
47
|
|
|
48
48
|
--maxio-blue-05: hsl(205 88% 95%);
|
|
49
49
|
--maxio-blue-10: hsl(204 86% 91%);
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
/* semantic tokens for dark mode */
|
|
218
|
-
|
|
218
|
+
[data-maxio-dark-mode] {
|
|
219
219
|
/* background colors */
|
|
220
220
|
--maxio-color-bg-primary: var(--maxio-black-opaque);
|
|
221
221
|
--maxio-color-bg-primary-hover: var(--maxio-gray-105);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxio-com/design-tokens",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Design Tokens definition",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "25741cfe73974e64daabee5e14c33fc7ee017857"
|
|
32
32
|
}
|