@maxio-com/design-tokens 3.3.1 → 3.3.2

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 CHANGED
@@ -36,7 +36,7 @@ After the deprecation period, and making sure migration has been done, you can r
36
36
 
37
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
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.
39
+ We use data attribute (`[data-maxio-mode="dark"]`) to toggle dark mode. It allows to control the dark mode per component, and it also allows to control the dark mode globally.
40
40
 
41
41
  ```css
42
42
  .my-component {
@@ -50,7 +50,7 @@ We use data attribute (`[data-maxio-dark-mode]`) to toggle dark mode. It allows
50
50
  <div class="my-component">...</div>
51
51
 
52
52
  <!-- dark mode -->
53
- <div class="my-component" data-maxio-dark-mode>...</div>
53
+ <div class="my-component" data-maxio-mode="dark">...</div>
54
54
  ```
55
55
 
56
56
  ## FAQ
@@ -215,7 +215,8 @@
215
215
  }
216
216
 
217
217
  /* semantic tokens for dark mode */
218
- [data-maxio-dark-mode] {
218
+ [data-maxio-dark-mode],
219
+ [data-maxio-mode='dark'] {
219
220
  /* background colors */
220
221
  --maxio-color-bg-primary: var(--maxio-black-opaque);
221
222
  --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.1",
3
+ "version": "3.3.2",
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": "828a8d013482730bc73097820a2835e533d91802"
31
+ "gitHead": "9768aba703fc2b0ab084eadabbb5b8cd523ab3d9"
32
32
  }
@@ -1,210 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,218 +0,0 @@
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;