@maxio-com/design-tokens 3.0.0 → 3.2.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/dist/colors.js +2 -1
- package/dist/index.js +26 -1
- package/dist/semantic-colors.js +218 -0
- package/package.json +2 -2
package/dist/colors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
var colors = {
|
|
4
4
|
white: '#FFFFFF',
|
|
5
5
|
black: '#000000',
|
|
6
6
|
gray: {
|
|
@@ -88,3 +88,4 @@ exports.default = {
|
|
|
88
88
|
'105': '#26004C',
|
|
89
89
|
},
|
|
90
90
|
};
|
|
91
|
+
exports.default = colors;
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
5
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.typography = exports.colors = void 0;
|
|
29
|
+
exports.typography = exports.semanticColors = exports.colors = void 0;
|
|
7
30
|
var colors_1 = __importDefault(require("./colors"));
|
|
8
31
|
exports.colors = colors_1.default;
|
|
32
|
+
var semanticColors = __importStar(require("./semantic-colors"));
|
|
33
|
+
exports.semanticColors = semanticColors;
|
|
9
34
|
var typography_1 = __importDefault(require("./typography"));
|
|
10
35
|
exports.typography = typography_1.default;
|
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxio-com/design-tokens",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Design Tokens definition",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "507d2c784a57ce96b6138087b772d3a55ce416fb"
|
|
25
25
|
}
|