oneslash-design-system 1.8.5 → 2.0.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 +20 -6
- package/dist/components/alert.jsx +10 -10
- package/dist/components/button.jsx +22 -22
- package/dist/components/checkBox.jsx +10 -10
- package/dist/components/emptyBox.jsx +2 -2
- package/dist/components/icon.jsx +8 -8
- package/dist/components/iconButton.jsx +16 -16
- package/dist/components/line.jsx +1 -1
- package/dist/components/link.jsx +13 -13
- package/dist/components/loadingScreen.jsx +1 -1
- package/dist/components/menu.jsx +2 -1
- package/dist/components/menuItem.jsx +8 -8
- package/dist/components/modal.jsx +7 -6
- package/dist/components/navigation.jsx +1 -1
- package/dist/components/popover.jsx +3 -2
- package/dist/components/radioGroup.jsx +6 -6
- package/dist/components/select.jsx +10 -10
- package/dist/components/sharedStyles.d.ts +5 -5
- package/dist/components/sharedStyles.jsx +5 -5
- package/dist/components/tab.jsx +4 -4
- package/dist/components/tableCell.jsx +1 -1
- package/dist/components/tableContainer.jsx +1 -1
- package/dist/components/tableHeader.jsx +1 -1
- package/dist/components/tableHeaderCell.jsx +1 -1
- package/dist/components/tabsContainer.jsx +2 -2
- package/dist/components/tag.jsx +36 -36
- package/dist/components/textField.jsx +9 -9
- package/dist/components/textarea.jsx +8 -8
- package/dist/components/timeStamp.jsx +2 -2
- package/dist/components/tooltip.jsx +1 -1
- package/dist/components/useDarkMode.d.ts +3 -0
- package/dist/components/useDarkMode.js +25 -9
- package/dist/components/userImage.jsx +6 -3
- package/dist/designTokens.d.ts +619 -269
- package/dist/designTokens.js +103 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/stories/EmptyBox.stories.jsx +1 -0
- package/dist/tailwind-preset-auto.js +402 -0
- package/dist/tailwind-preset.js +396 -0
- package/dist/theme-auto.css +256 -0
- package/dist/theme.css +251 -0
- package/dist/themes/default-auto.css +248 -0
- package/dist/themes/default.css +165 -0
- package/dist/themes/forest-auto.css +248 -0
- package/dist/themes/forest.css +165 -0
- package/dist/tokens.css +19 -0
- package/dist/typography.css +81 -0
- package/package.json +18 -5
- package/dist/output.css +0 -2021
- package/dist/tailwind.config.d.ts +0 -3
- package/dist/tailwind.config.js +0 -222
- package/dist/tsconfig.tsbuildinfo +0 -1
package/dist/designTokens.js
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
// design tokens definitions
|
|
3
|
-
|
|
14
|
+
var base = {
|
|
4
15
|
colors: {
|
|
5
16
|
// light
|
|
6
17
|
light: {
|
|
@@ -82,6 +93,8 @@ module.exports = {
|
|
|
82
93
|
misc: {
|
|
83
94
|
divider: '#D1D1D1',
|
|
84
95
|
scrim: '#000000',
|
|
96
|
+
tooltipBg: '#4F4F4F',
|
|
97
|
+
tooltipText: '#EEEEEE',
|
|
85
98
|
},
|
|
86
99
|
},
|
|
87
100
|
// dark
|
|
@@ -164,6 +177,8 @@ module.exports = {
|
|
|
164
177
|
misc: {
|
|
165
178
|
divider: '#404040',
|
|
166
179
|
scrim: '#000000',
|
|
180
|
+
tooltipBg: '#FFFFFF',
|
|
181
|
+
tooltipText: '#000000',
|
|
167
182
|
},
|
|
168
183
|
},
|
|
169
184
|
},
|
|
@@ -247,4 +262,91 @@ module.exports = {
|
|
|
247
262
|
justify: 'justify',
|
|
248
263
|
},
|
|
249
264
|
},
|
|
265
|
+
radius: {
|
|
266
|
+
inline: '2px',
|
|
267
|
+
control: '8px',
|
|
268
|
+
container: '12px',
|
|
269
|
+
full: '9999px',
|
|
270
|
+
},
|
|
271
|
+
shadow: {
|
|
272
|
+
overlay: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
|
|
273
|
+
},
|
|
274
|
+
zIndex: {
|
|
275
|
+
overlay: '50',
|
|
276
|
+
tooltip: '1000',
|
|
277
|
+
},
|
|
278
|
+
motion: {
|
|
279
|
+
duration: {
|
|
280
|
+
fast: '150ms',
|
|
281
|
+
slide: '200ms',
|
|
282
|
+
pop: '220ms',
|
|
283
|
+
},
|
|
284
|
+
easing: {
|
|
285
|
+
out: 'cubic-bezier(0, 0, 0.2, 1)',
|
|
286
|
+
emphasized: 'cubic-bezier(0.16, 1, 0.3, 1)',
|
|
287
|
+
spring: 'cubic-bezier(0.34, 1.56, 0.64, 1)',
|
|
288
|
+
},
|
|
289
|
+
},
|
|
250
290
|
};
|
|
291
|
+
// Adds the semantic keys that are derived from a set's own groups, so the
|
|
292
|
+
// rule lives once and applies to every set (default and themes, light and dark).
|
|
293
|
+
/**
|
|
294
|
+
* @template {typeof base.colors.light} S
|
|
295
|
+
* @param {S} set
|
|
296
|
+
* @param {'light' | 'dark'} mode
|
|
297
|
+
*/
|
|
298
|
+
function withSemanticKeys(set, mode) {
|
|
299
|
+
var isLight = mode === 'light';
|
|
300
|
+
/** @param {typeof set.error} g @param {boolean} isError */
|
|
301
|
+
var status = function (g, isError) { return (__assign(__assign({}, g), { fill: isLight ? g.dark : g.main, onFill: isLight ? '#FFFFFF' : '#000000', text: isLight ? g.dark : isError ? g.light : g.main, textHover: isLight ? g.dark : g.light, tint: isLight ? g.light : g.dark })); };
|
|
302
|
+
return __assign(__assign({}, set), { primary: __assign(__assign({}, set.primary), { contrast: isLight ? '#ffffff' : '#000000' }), background: __assign(__assign({}, set.background), { elevated: isLight ? set.background.default : set.background.accent100, overlay: isLight ? set.background.accent300 : set.background.accent100 }), error: status(set.error, true), warning: status(set.warning, false), info: status(set.info, false), success: status(set.success, false) });
|
|
303
|
+
}
|
|
304
|
+
// Forest: the default set with these values replaced (group by group).
|
|
305
|
+
/**
|
|
306
|
+
* @template T
|
|
307
|
+
* @param {T} set
|
|
308
|
+
* @param {{ [K in keyof T]?: Partial<T[K]> }} changes
|
|
309
|
+
* @returns {T}
|
|
310
|
+
*/
|
|
311
|
+
function override(set, changes) {
|
|
312
|
+
var out = __assign({}, set);
|
|
313
|
+
for (var _i = 0, /** @type {(keyof T)[]} */ _a = (Object.keys(changes)); _i < _a.length; _i++) {
|
|
314
|
+
var group = _a[_i];
|
|
315
|
+
out[group] = __assign(__assign({}, set[group]), changes[group]);
|
|
316
|
+
}
|
|
317
|
+
return out;
|
|
318
|
+
}
|
|
319
|
+
var baseColors = base.colors;
|
|
320
|
+
var forestLight = override(baseColors.light, {
|
|
321
|
+
text: { primary: '#1C2213', secondary: '#515E3C', disabled: '#8A9670' },
|
|
322
|
+
accent: { main: '#1C2213', dark: '#2A331E', light: '#3A472B', contrast: '#E7ECDA' },
|
|
323
|
+
secondary: { main: '#6E7A5A', dark: '#5D6849', light: '#828D6B' },
|
|
324
|
+
background: { default: '#D9E5C7', accent100: '#E2ECD4', accent200: '#EBF1E0', accent300: '#F4F7EC' },
|
|
325
|
+
});
|
|
326
|
+
var forestDark = override(baseColors.dark, {
|
|
327
|
+
text: { primary: '#D9E5C7', secondary: '#9DAA85', disabled: '#6D7956' },
|
|
328
|
+
accent: { main: '#E7ECDA', dark: '#D6DEC3', light: '#F2F5EA', contrast: '#1C2213' },
|
|
329
|
+
secondary: { main: '#6E7A5A', dark: '#5D6849', light: '#828D6B' },
|
|
330
|
+
background: { default: '#1C2213', accent100: '#27301B', accent200: '#364228', accent300: '#424F34' },
|
|
331
|
+
});
|
|
332
|
+
// The derived light info.text (#006BAB) is 4.33:1 on forest's background; #0068A3 is the lightest step that reaches 4.5.
|
|
333
|
+
/**
|
|
334
|
+
* @template {typeof base.colors.light} S
|
|
335
|
+
* @param {S} set
|
|
336
|
+
* @returns {S}
|
|
337
|
+
*/
|
|
338
|
+
var withForestInfoText = function (set) { return (__assign(__assign({}, set), { info: __assign(__assign({}, set.info), { text: '#0068A3', textHover: '#0068A3' }) })); };
|
|
339
|
+
// Tooltips are inverted surfaces: each mode takes the other mode's accent300 and text.primary of the same theme.
|
|
340
|
+
/**
|
|
341
|
+
* @template {typeof base.colors.light} S
|
|
342
|
+
* @param {S} light
|
|
343
|
+
* @param {S} dark
|
|
344
|
+
* @returns {{ light: S, dark: S }}
|
|
345
|
+
*/
|
|
346
|
+
var withTooltips = function (light, dark) { return ({
|
|
347
|
+
light: __assign(__assign({}, light), { misc: __assign(__assign({}, light.misc), { tooltipBg: dark.background.accent300, tooltipText: dark.text.primary }) }),
|
|
348
|
+
dark: __assign(__assign({}, dark), { misc: __assign(__assign({}, dark.misc), { tooltipBg: light.background.accent300, tooltipText: light.text.primary }) }),
|
|
349
|
+
}); };
|
|
350
|
+
var defaultSets = withTooltips(withSemanticKeys(baseColors.light, 'light'), withSemanticKeys(baseColors.dark, 'dark'));
|
|
351
|
+
var forestSets = withTooltips(withForestInfoText(withSemanticKeys(forestLight, 'light')), withSemanticKeys(forestDark, 'dark'));
|
|
352
|
+
module.exports = __assign(__assign({}, base), { colors: defaultSets, themes: { forest: forestSets } });
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
/* Generated from designTokens.js by scripts/build-tokens.js. Do not edit. */
|
|
2
|
+
/* dark: .dark class, or the OS setting unless .light is set; pair with themes/*-auto.css */
|
|
3
|
+
module.exports = {
|
|
4
|
+
"darkMode": [
|
|
5
|
+
"variant",
|
|
6
|
+
[
|
|
7
|
+
"&:where(.dark, .dark *)",
|
|
8
|
+
"@media (prefers-color-scheme: dark) { &:where(:not(.light, .light *)) }"
|
|
9
|
+
]
|
|
10
|
+
],
|
|
11
|
+
"theme": {
|
|
12
|
+
"extend": {
|
|
13
|
+
"colors": {
|
|
14
|
+
"fg-primary": "rgb(var(--os-color-text-primary) / <alpha-value>)",
|
|
15
|
+
"light-text-primary": "rgb(var(--os-color-text-primary) / <alpha-value>)",
|
|
16
|
+
"dark-text-primary": "rgb(var(--os-color-text-primary) / <alpha-value>)",
|
|
17
|
+
"fg-secondary": "rgb(var(--os-color-text-secondary) / <alpha-value>)",
|
|
18
|
+
"light-text-secondary": "rgb(var(--os-color-text-secondary) / <alpha-value>)",
|
|
19
|
+
"dark-text-secondary": "rgb(var(--os-color-text-secondary) / <alpha-value>)",
|
|
20
|
+
"fg-disabled": "rgb(var(--os-color-text-disabled) / <alpha-value>)",
|
|
21
|
+
"light-text-disabled": "rgb(var(--os-color-text-disabled) / <alpha-value>)",
|
|
22
|
+
"dark-text-disabled": "rgb(var(--os-color-text-disabled) / <alpha-value>)",
|
|
23
|
+
"fg-contrast": "rgb(var(--os-color-text-contrast) / <alpha-value>)",
|
|
24
|
+
"light-text-contrast": "rgb(var(--os-color-text-contrast) / <alpha-value>)",
|
|
25
|
+
"dark-text-contrast": "rgb(var(--os-color-text-contrast) / <alpha-value>)",
|
|
26
|
+
"accent-main": "rgb(var(--os-color-accent-main) / <alpha-value>)",
|
|
27
|
+
"light-accent-main": "rgb(var(--os-color-accent-main) / <alpha-value>)",
|
|
28
|
+
"dark-accent-main": "rgb(var(--os-color-accent-main) / <alpha-value>)",
|
|
29
|
+
"accent-dark": "rgb(var(--os-color-accent-dark) / <alpha-value>)",
|
|
30
|
+
"light-accent-dark": "rgb(var(--os-color-accent-dark) / <alpha-value>)",
|
|
31
|
+
"dark-accent-dark": "rgb(var(--os-color-accent-dark) / <alpha-value>)",
|
|
32
|
+
"accent-light": "rgb(var(--os-color-accent-light) / <alpha-value>)",
|
|
33
|
+
"light-accent-light": "rgb(var(--os-color-accent-light) / <alpha-value>)",
|
|
34
|
+
"dark-accent-light": "rgb(var(--os-color-accent-light) / <alpha-value>)",
|
|
35
|
+
"accent-contrast": "rgb(var(--os-color-accent-contrast) / <alpha-value>)",
|
|
36
|
+
"light-accent-contrast": "rgb(var(--os-color-accent-contrast) / <alpha-value>)",
|
|
37
|
+
"dark-accent-contrast": "rgb(var(--os-color-accent-contrast) / <alpha-value>)",
|
|
38
|
+
"primary-main": "rgb(var(--os-color-primary-main) / <alpha-value>)",
|
|
39
|
+
"light-primary-main": "rgb(var(--os-color-primary-main) / <alpha-value>)",
|
|
40
|
+
"dark-primary-main": "rgb(var(--os-color-primary-main) / <alpha-value>)",
|
|
41
|
+
"primary-dark": "rgb(var(--os-color-primary-dark) / <alpha-value>)",
|
|
42
|
+
"light-primary-dark": "rgb(var(--os-color-primary-dark) / <alpha-value>)",
|
|
43
|
+
"dark-primary-dark": "rgb(var(--os-color-primary-dark) / <alpha-value>)",
|
|
44
|
+
"primary-light": "rgb(var(--os-color-primary-light) / <alpha-value>)",
|
|
45
|
+
"light-primary-light": "rgb(var(--os-color-primary-light) / <alpha-value>)",
|
|
46
|
+
"dark-primary-light": "rgb(var(--os-color-primary-light) / <alpha-value>)",
|
|
47
|
+
"primary-contrast": "rgb(var(--os-color-primary-contrast) / <alpha-value>)",
|
|
48
|
+
"light-primary-contrast": "rgb(var(--os-color-primary-contrast) / <alpha-value>)",
|
|
49
|
+
"dark-primary-contrast": "rgb(var(--os-color-primary-contrast) / <alpha-value>)",
|
|
50
|
+
"secondary-main": "rgb(var(--os-color-secondary-main) / <alpha-value>)",
|
|
51
|
+
"light-secondary-main": "rgb(var(--os-color-secondary-main) / <alpha-value>)",
|
|
52
|
+
"dark-secondary-main": "rgb(var(--os-color-secondary-main) / <alpha-value>)",
|
|
53
|
+
"secondary-dark": "rgb(var(--os-color-secondary-dark) / <alpha-value>)",
|
|
54
|
+
"light-secondary-dark": "rgb(var(--os-color-secondary-dark) / <alpha-value>)",
|
|
55
|
+
"dark-secondary-dark": "rgb(var(--os-color-secondary-dark) / <alpha-value>)",
|
|
56
|
+
"secondary-light": "rgb(var(--os-color-secondary-light) / <alpha-value>)",
|
|
57
|
+
"light-secondary-light": "rgb(var(--os-color-secondary-light) / <alpha-value>)",
|
|
58
|
+
"dark-secondary-light": "rgb(var(--os-color-secondary-light) / <alpha-value>)",
|
|
59
|
+
"error-main": "rgb(var(--os-color-error-main) / <alpha-value>)",
|
|
60
|
+
"light-error-main": "rgb(var(--os-color-error-main) / <alpha-value>)",
|
|
61
|
+
"dark-error-main": "rgb(var(--os-color-error-main) / <alpha-value>)",
|
|
62
|
+
"error-dark": "rgb(var(--os-color-error-dark) / <alpha-value>)",
|
|
63
|
+
"light-error-dark": "rgb(var(--os-color-error-dark) / <alpha-value>)",
|
|
64
|
+
"dark-error-dark": "rgb(var(--os-color-error-dark) / <alpha-value>)",
|
|
65
|
+
"error-light": "rgb(var(--os-color-error-light) / <alpha-value>)",
|
|
66
|
+
"light-error-light": "rgb(var(--os-color-error-light) / <alpha-value>)",
|
|
67
|
+
"dark-error-light": "rgb(var(--os-color-error-light) / <alpha-value>)",
|
|
68
|
+
"error-alertBg": "rgb(var(--os-color-error-alertBg) / <alpha-value>)",
|
|
69
|
+
"light-error-alertBg": "rgb(var(--os-color-error-alertBg) / <alpha-value>)",
|
|
70
|
+
"dark-error-alertBg": "rgb(var(--os-color-error-alertBg) / <alpha-value>)",
|
|
71
|
+
"error-contrast": "rgb(var(--os-color-error-contrast) / <alpha-value>)",
|
|
72
|
+
"light-error-contrast": "rgb(var(--os-color-error-contrast) / <alpha-value>)",
|
|
73
|
+
"dark-error-contrast": "rgb(var(--os-color-error-contrast) / <alpha-value>)",
|
|
74
|
+
"error-fill": "rgb(var(--os-color-error-fill) / <alpha-value>)",
|
|
75
|
+
"light-error-fill": "rgb(var(--os-color-error-fill) / <alpha-value>)",
|
|
76
|
+
"dark-error-fill": "rgb(var(--os-color-error-fill) / <alpha-value>)",
|
|
77
|
+
"error-onFill": "rgb(var(--os-color-error-onFill) / <alpha-value>)",
|
|
78
|
+
"light-error-onFill": "rgb(var(--os-color-error-onFill) / <alpha-value>)",
|
|
79
|
+
"dark-error-onFill": "rgb(var(--os-color-error-onFill) / <alpha-value>)",
|
|
80
|
+
"error-text": "rgb(var(--os-color-error-text) / <alpha-value>)",
|
|
81
|
+
"light-error-text": "rgb(var(--os-color-error-text) / <alpha-value>)",
|
|
82
|
+
"dark-error-text": "rgb(var(--os-color-error-text) / <alpha-value>)",
|
|
83
|
+
"error-textHover": "rgb(var(--os-color-error-textHover) / <alpha-value>)",
|
|
84
|
+
"light-error-textHover": "rgb(var(--os-color-error-textHover) / <alpha-value>)",
|
|
85
|
+
"dark-error-textHover": "rgb(var(--os-color-error-textHover) / <alpha-value>)",
|
|
86
|
+
"error-tint": "rgb(var(--os-color-error-tint) / <alpha-value>)",
|
|
87
|
+
"light-error-tint": "rgb(var(--os-color-error-tint) / <alpha-value>)",
|
|
88
|
+
"dark-error-tint": "rgb(var(--os-color-error-tint) / <alpha-value>)",
|
|
89
|
+
"warning-main": "rgb(var(--os-color-warning-main) / <alpha-value>)",
|
|
90
|
+
"light-warning-main": "rgb(var(--os-color-warning-main) / <alpha-value>)",
|
|
91
|
+
"dark-warning-main": "rgb(var(--os-color-warning-main) / <alpha-value>)",
|
|
92
|
+
"warning-dark": "rgb(var(--os-color-warning-dark) / <alpha-value>)",
|
|
93
|
+
"light-warning-dark": "rgb(var(--os-color-warning-dark) / <alpha-value>)",
|
|
94
|
+
"dark-warning-dark": "rgb(var(--os-color-warning-dark) / <alpha-value>)",
|
|
95
|
+
"warning-light": "rgb(var(--os-color-warning-light) / <alpha-value>)",
|
|
96
|
+
"light-warning-light": "rgb(var(--os-color-warning-light) / <alpha-value>)",
|
|
97
|
+
"dark-warning-light": "rgb(var(--os-color-warning-light) / <alpha-value>)",
|
|
98
|
+
"warning-alertBg": "rgb(var(--os-color-warning-alertBg) / <alpha-value>)",
|
|
99
|
+
"light-warning-alertBg": "rgb(var(--os-color-warning-alertBg) / <alpha-value>)",
|
|
100
|
+
"dark-warning-alertBg": "rgb(var(--os-color-warning-alertBg) / <alpha-value>)",
|
|
101
|
+
"warning-contrast": "rgb(var(--os-color-warning-contrast) / <alpha-value>)",
|
|
102
|
+
"light-warning-contrast": "rgb(var(--os-color-warning-contrast) / <alpha-value>)",
|
|
103
|
+
"dark-warning-contrast": "rgb(var(--os-color-warning-contrast) / <alpha-value>)",
|
|
104
|
+
"warning-fill": "rgb(var(--os-color-warning-fill) / <alpha-value>)",
|
|
105
|
+
"light-warning-fill": "rgb(var(--os-color-warning-fill) / <alpha-value>)",
|
|
106
|
+
"dark-warning-fill": "rgb(var(--os-color-warning-fill) / <alpha-value>)",
|
|
107
|
+
"warning-onFill": "rgb(var(--os-color-warning-onFill) / <alpha-value>)",
|
|
108
|
+
"light-warning-onFill": "rgb(var(--os-color-warning-onFill) / <alpha-value>)",
|
|
109
|
+
"dark-warning-onFill": "rgb(var(--os-color-warning-onFill) / <alpha-value>)",
|
|
110
|
+
"warning-text": "rgb(var(--os-color-warning-text) / <alpha-value>)",
|
|
111
|
+
"light-warning-text": "rgb(var(--os-color-warning-text) / <alpha-value>)",
|
|
112
|
+
"dark-warning-text": "rgb(var(--os-color-warning-text) / <alpha-value>)",
|
|
113
|
+
"warning-textHover": "rgb(var(--os-color-warning-textHover) / <alpha-value>)",
|
|
114
|
+
"light-warning-textHover": "rgb(var(--os-color-warning-textHover) / <alpha-value>)",
|
|
115
|
+
"dark-warning-textHover": "rgb(var(--os-color-warning-textHover) / <alpha-value>)",
|
|
116
|
+
"warning-tint": "rgb(var(--os-color-warning-tint) / <alpha-value>)",
|
|
117
|
+
"light-warning-tint": "rgb(var(--os-color-warning-tint) / <alpha-value>)",
|
|
118
|
+
"dark-warning-tint": "rgb(var(--os-color-warning-tint) / <alpha-value>)",
|
|
119
|
+
"info-main": "rgb(var(--os-color-info-main) / <alpha-value>)",
|
|
120
|
+
"light-info-main": "rgb(var(--os-color-info-main) / <alpha-value>)",
|
|
121
|
+
"dark-info-main": "rgb(var(--os-color-info-main) / <alpha-value>)",
|
|
122
|
+
"info-dark": "rgb(var(--os-color-info-dark) / <alpha-value>)",
|
|
123
|
+
"light-info-dark": "rgb(var(--os-color-info-dark) / <alpha-value>)",
|
|
124
|
+
"dark-info-dark": "rgb(var(--os-color-info-dark) / <alpha-value>)",
|
|
125
|
+
"info-light": "rgb(var(--os-color-info-light) / <alpha-value>)",
|
|
126
|
+
"light-info-light": "rgb(var(--os-color-info-light) / <alpha-value>)",
|
|
127
|
+
"dark-info-light": "rgb(var(--os-color-info-light) / <alpha-value>)",
|
|
128
|
+
"info-alertBg": "rgb(var(--os-color-info-alertBg) / <alpha-value>)",
|
|
129
|
+
"light-info-alertBg": "rgb(var(--os-color-info-alertBg) / <alpha-value>)",
|
|
130
|
+
"dark-info-alertBg": "rgb(var(--os-color-info-alertBg) / <alpha-value>)",
|
|
131
|
+
"info-contrast": "rgb(var(--os-color-info-contrast) / <alpha-value>)",
|
|
132
|
+
"light-info-contrast": "rgb(var(--os-color-info-contrast) / <alpha-value>)",
|
|
133
|
+
"dark-info-contrast": "rgb(var(--os-color-info-contrast) / <alpha-value>)",
|
|
134
|
+
"info-fill": "rgb(var(--os-color-info-fill) / <alpha-value>)",
|
|
135
|
+
"light-info-fill": "rgb(var(--os-color-info-fill) / <alpha-value>)",
|
|
136
|
+
"dark-info-fill": "rgb(var(--os-color-info-fill) / <alpha-value>)",
|
|
137
|
+
"info-onFill": "rgb(var(--os-color-info-onFill) / <alpha-value>)",
|
|
138
|
+
"light-info-onFill": "rgb(var(--os-color-info-onFill) / <alpha-value>)",
|
|
139
|
+
"dark-info-onFill": "rgb(var(--os-color-info-onFill) / <alpha-value>)",
|
|
140
|
+
"info-text": "rgb(var(--os-color-info-text) / <alpha-value>)",
|
|
141
|
+
"light-info-text": "rgb(var(--os-color-info-text) / <alpha-value>)",
|
|
142
|
+
"dark-info-text": "rgb(var(--os-color-info-text) / <alpha-value>)",
|
|
143
|
+
"info-textHover": "rgb(var(--os-color-info-textHover) / <alpha-value>)",
|
|
144
|
+
"light-info-textHover": "rgb(var(--os-color-info-textHover) / <alpha-value>)",
|
|
145
|
+
"dark-info-textHover": "rgb(var(--os-color-info-textHover) / <alpha-value>)",
|
|
146
|
+
"info-tint": "rgb(var(--os-color-info-tint) / <alpha-value>)",
|
|
147
|
+
"light-info-tint": "rgb(var(--os-color-info-tint) / <alpha-value>)",
|
|
148
|
+
"dark-info-tint": "rgb(var(--os-color-info-tint) / <alpha-value>)",
|
|
149
|
+
"success-main": "rgb(var(--os-color-success-main) / <alpha-value>)",
|
|
150
|
+
"light-success-main": "rgb(var(--os-color-success-main) / <alpha-value>)",
|
|
151
|
+
"dark-success-main": "rgb(var(--os-color-success-main) / <alpha-value>)",
|
|
152
|
+
"success-dark": "rgb(var(--os-color-success-dark) / <alpha-value>)",
|
|
153
|
+
"light-success-dark": "rgb(var(--os-color-success-dark) / <alpha-value>)",
|
|
154
|
+
"dark-success-dark": "rgb(var(--os-color-success-dark) / <alpha-value>)",
|
|
155
|
+
"success-light": "rgb(var(--os-color-success-light) / <alpha-value>)",
|
|
156
|
+
"light-success-light": "rgb(var(--os-color-success-light) / <alpha-value>)",
|
|
157
|
+
"dark-success-light": "rgb(var(--os-color-success-light) / <alpha-value>)",
|
|
158
|
+
"success-alertBg": "rgb(var(--os-color-success-alertBg) / <alpha-value>)",
|
|
159
|
+
"light-success-alertBg": "rgb(var(--os-color-success-alertBg) / <alpha-value>)",
|
|
160
|
+
"dark-success-alertBg": "rgb(var(--os-color-success-alertBg) / <alpha-value>)",
|
|
161
|
+
"success-contrast": "rgb(var(--os-color-success-contrast) / <alpha-value>)",
|
|
162
|
+
"light-success-contrast": "rgb(var(--os-color-success-contrast) / <alpha-value>)",
|
|
163
|
+
"dark-success-contrast": "rgb(var(--os-color-success-contrast) / <alpha-value>)",
|
|
164
|
+
"success-fill": "rgb(var(--os-color-success-fill) / <alpha-value>)",
|
|
165
|
+
"light-success-fill": "rgb(var(--os-color-success-fill) / <alpha-value>)",
|
|
166
|
+
"dark-success-fill": "rgb(var(--os-color-success-fill) / <alpha-value>)",
|
|
167
|
+
"success-onFill": "rgb(var(--os-color-success-onFill) / <alpha-value>)",
|
|
168
|
+
"light-success-onFill": "rgb(var(--os-color-success-onFill) / <alpha-value>)",
|
|
169
|
+
"dark-success-onFill": "rgb(var(--os-color-success-onFill) / <alpha-value>)",
|
|
170
|
+
"success-text": "rgb(var(--os-color-success-text) / <alpha-value>)",
|
|
171
|
+
"light-success-text": "rgb(var(--os-color-success-text) / <alpha-value>)",
|
|
172
|
+
"dark-success-text": "rgb(var(--os-color-success-text) / <alpha-value>)",
|
|
173
|
+
"success-textHover": "rgb(var(--os-color-success-textHover) / <alpha-value>)",
|
|
174
|
+
"light-success-textHover": "rgb(var(--os-color-success-textHover) / <alpha-value>)",
|
|
175
|
+
"dark-success-textHover": "rgb(var(--os-color-success-textHover) / <alpha-value>)",
|
|
176
|
+
"success-tint": "rgb(var(--os-color-success-tint) / <alpha-value>)",
|
|
177
|
+
"light-success-tint": "rgb(var(--os-color-success-tint) / <alpha-value>)",
|
|
178
|
+
"dark-success-tint": "rgb(var(--os-color-success-tint) / <alpha-value>)",
|
|
179
|
+
"background-default": "rgb(var(--os-color-background-default) / <alpha-value>)",
|
|
180
|
+
"light-background-default": "rgb(var(--os-color-background-default) / <alpha-value>)",
|
|
181
|
+
"dark-background-default": "rgb(var(--os-color-background-default) / <alpha-value>)",
|
|
182
|
+
"background-accent100": "rgb(var(--os-color-background-accent100) / <alpha-value>)",
|
|
183
|
+
"light-background-accent100": "rgb(var(--os-color-background-accent100) / <alpha-value>)",
|
|
184
|
+
"dark-background-accent100": "rgb(var(--os-color-background-accent100) / <alpha-value>)",
|
|
185
|
+
"background-accent200": "rgb(var(--os-color-background-accent200) / <alpha-value>)",
|
|
186
|
+
"light-background-accent200": "rgb(var(--os-color-background-accent200) / <alpha-value>)",
|
|
187
|
+
"dark-background-accent200": "rgb(var(--os-color-background-accent200) / <alpha-value>)",
|
|
188
|
+
"background-accent300": "rgb(var(--os-color-background-accent300) / <alpha-value>)",
|
|
189
|
+
"light-background-accent300": "rgb(var(--os-color-background-accent300) / <alpha-value>)",
|
|
190
|
+
"dark-background-accent300": "rgb(var(--os-color-background-accent300) / <alpha-value>)",
|
|
191
|
+
"background-elevated": "rgb(var(--os-color-background-elevated) / <alpha-value>)",
|
|
192
|
+
"light-background-elevated": "rgb(var(--os-color-background-elevated) / <alpha-value>)",
|
|
193
|
+
"dark-background-elevated": "rgb(var(--os-color-background-elevated) / <alpha-value>)",
|
|
194
|
+
"background-overlay": "rgb(var(--os-color-background-overlay) / <alpha-value>)",
|
|
195
|
+
"light-background-overlay": "rgb(var(--os-color-background-overlay) / <alpha-value>)",
|
|
196
|
+
"dark-background-overlay": "rgb(var(--os-color-background-overlay) / <alpha-value>)",
|
|
197
|
+
"action-active": "rgb(var(--os-color-action-active) / <alpha-value>)",
|
|
198
|
+
"light-action-active": "rgb(var(--os-color-action-active) / <alpha-value>)",
|
|
199
|
+
"dark-action-active": "rgb(var(--os-color-action-active) / <alpha-value>)",
|
|
200
|
+
"action-hover": "rgb(var(--os-color-action-hover) / <alpha-value>)",
|
|
201
|
+
"light-action-hover": "rgb(var(--os-color-action-hover) / <alpha-value>)",
|
|
202
|
+
"dark-action-hover": "rgb(var(--os-color-action-hover) / <alpha-value>)",
|
|
203
|
+
"action-selected": "rgb(var(--os-color-action-selected) / <alpha-value>)",
|
|
204
|
+
"light-action-selected": "rgb(var(--os-color-action-selected) / <alpha-value>)",
|
|
205
|
+
"dark-action-selected": "rgb(var(--os-color-action-selected) / <alpha-value>)",
|
|
206
|
+
"action-disabledBackground": "rgb(var(--os-color-action-disabledBackground) / <alpha-value>)",
|
|
207
|
+
"light-action-disabledBackground": "rgb(var(--os-color-action-disabledBackground) / <alpha-value>)",
|
|
208
|
+
"dark-action-disabledBackground": "rgb(var(--os-color-action-disabledBackground) / <alpha-value>)",
|
|
209
|
+
"action-disabled": "rgb(var(--os-color-action-disabled) / <alpha-value>)",
|
|
210
|
+
"light-action-disabled": "rgb(var(--os-color-action-disabled) / <alpha-value>)",
|
|
211
|
+
"dark-action-disabled": "rgb(var(--os-color-action-disabled) / <alpha-value>)",
|
|
212
|
+
"actionBackground-enabled": "rgb(var(--os-color-actionBackground-enabled) / <alpha-value>)",
|
|
213
|
+
"light-actionBackground-enabled": "rgb(var(--os-color-actionBackground-enabled) / <alpha-value>)",
|
|
214
|
+
"dark-actionBackground-enabled": "rgb(var(--os-color-actionBackground-enabled) / <alpha-value>)",
|
|
215
|
+
"actionBackground-hovered": "rgb(var(--os-color-actionBackground-hovered) / <alpha-value>)",
|
|
216
|
+
"light-actionBackground-hovered": "rgb(var(--os-color-actionBackground-hovered) / <alpha-value>)",
|
|
217
|
+
"dark-actionBackground-hovered": "rgb(var(--os-color-actionBackground-hovered) / <alpha-value>)",
|
|
218
|
+
"actionBackground-selected": "rgb(var(--os-color-actionBackground-selected) / <alpha-value>)",
|
|
219
|
+
"light-actionBackground-selected": "rgb(var(--os-color-actionBackground-selected) / <alpha-value>)",
|
|
220
|
+
"dark-actionBackground-selected": "rgb(var(--os-color-actionBackground-selected) / <alpha-value>)",
|
|
221
|
+
"actionBackground-disabled": "rgb(var(--os-color-actionBackground-disabled) / <alpha-value>)",
|
|
222
|
+
"light-actionBackground-disabled": "rgb(var(--os-color-actionBackground-disabled) / <alpha-value>)",
|
|
223
|
+
"dark-actionBackground-disabled": "rgb(var(--os-color-actionBackground-disabled) / <alpha-value>)",
|
|
224
|
+
"actionOutlinedBorder-enabled": "rgb(var(--os-color-actionOutlinedBorder-enabled) / <alpha-value>)",
|
|
225
|
+
"light-actionOutlinedBorder-enabled": "rgb(var(--os-color-actionOutlinedBorder-enabled) / <alpha-value>)",
|
|
226
|
+
"dark-actionOutlinedBorder-enabled": "rgb(var(--os-color-actionOutlinedBorder-enabled) / <alpha-value>)",
|
|
227
|
+
"actionOutlinedBorder-hovered": "rgb(var(--os-color-actionOutlinedBorder-hovered) / <alpha-value>)",
|
|
228
|
+
"light-actionOutlinedBorder-hovered": "rgb(var(--os-color-actionOutlinedBorder-hovered) / <alpha-value>)",
|
|
229
|
+
"dark-actionOutlinedBorder-hovered": "rgb(var(--os-color-actionOutlinedBorder-hovered) / <alpha-value>)",
|
|
230
|
+
"actionOutlinedBorder-selected": "rgb(var(--os-color-actionOutlinedBorder-selected) / <alpha-value>)",
|
|
231
|
+
"light-actionOutlinedBorder-selected": "rgb(var(--os-color-actionOutlinedBorder-selected) / <alpha-value>)",
|
|
232
|
+
"dark-actionOutlinedBorder-selected": "rgb(var(--os-color-actionOutlinedBorder-selected) / <alpha-value>)",
|
|
233
|
+
"actionOutlinedBorder-disabled": "rgb(var(--os-color-actionOutlinedBorder-disabled) / <alpha-value>)",
|
|
234
|
+
"light-actionOutlinedBorder-disabled": "rgb(var(--os-color-actionOutlinedBorder-disabled) / <alpha-value>)",
|
|
235
|
+
"dark-actionOutlinedBorder-disabled": "rgb(var(--os-color-actionOutlinedBorder-disabled) / <alpha-value>)",
|
|
236
|
+
"misc-divider": "rgb(var(--os-color-misc-divider) / <alpha-value>)",
|
|
237
|
+
"light-misc-divider": "rgb(var(--os-color-misc-divider) / <alpha-value>)",
|
|
238
|
+
"dark-misc-divider": "rgb(var(--os-color-misc-divider) / <alpha-value>)",
|
|
239
|
+
"misc-scrim": "rgb(var(--os-color-misc-scrim) / <alpha-value>)",
|
|
240
|
+
"light-misc-scrim": "rgb(var(--os-color-misc-scrim) / <alpha-value>)",
|
|
241
|
+
"dark-misc-scrim": "rgb(var(--os-color-misc-scrim) / <alpha-value>)",
|
|
242
|
+
"misc-tooltipBg": "rgb(var(--os-color-misc-tooltipBg) / <alpha-value>)",
|
|
243
|
+
"light-misc-tooltipBg": "rgb(var(--os-color-misc-tooltipBg) / <alpha-value>)",
|
|
244
|
+
"dark-misc-tooltipBg": "rgb(var(--os-color-misc-tooltipBg) / <alpha-value>)",
|
|
245
|
+
"misc-tooltipText": "rgb(var(--os-color-misc-tooltipText) / <alpha-value>)",
|
|
246
|
+
"light-misc-tooltipText": "rgb(var(--os-color-misc-tooltipText) / <alpha-value>)",
|
|
247
|
+
"dark-misc-tooltipText": "rgb(var(--os-color-misc-tooltipText) / <alpha-value>)"
|
|
248
|
+
},
|
|
249
|
+
"borderRadius": {
|
|
250
|
+
"inline": "var(--os-radius-inline)",
|
|
251
|
+
"control": "var(--os-radius-control)",
|
|
252
|
+
"container": "var(--os-radius-container)",
|
|
253
|
+
"full": "var(--os-radius-full)"
|
|
254
|
+
},
|
|
255
|
+
"boxShadow": {
|
|
256
|
+
"overlay": "var(--os-shadow-overlay)"
|
|
257
|
+
},
|
|
258
|
+
"transitionTimingFunction": {
|
|
259
|
+
"out": "var(--os-ease-out)",
|
|
260
|
+
"emphasized": "var(--os-ease-emphasized)",
|
|
261
|
+
"spring": "var(--os-ease-spring)"
|
|
262
|
+
},
|
|
263
|
+
"spacing": {
|
|
264
|
+
"small": "var(--os-spacing-small)",
|
|
265
|
+
"medium": "var(--os-spacing-medium)",
|
|
266
|
+
"large": "var(--os-spacing-large)"
|
|
267
|
+
},
|
|
268
|
+
"fontSize": {
|
|
269
|
+
"h1": [
|
|
270
|
+
"96px",
|
|
271
|
+
{
|
|
272
|
+
"lineHeight": "115px",
|
|
273
|
+
"letterSpacing": "-1.5px",
|
|
274
|
+
"fontWeight": "400"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"h2": [
|
|
278
|
+
"60px",
|
|
279
|
+
{
|
|
280
|
+
"lineHeight": "72px",
|
|
281
|
+
"letterSpacing": "-0.5px",
|
|
282
|
+
"fontWeight": "400"
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
"h3": [
|
|
286
|
+
"48px",
|
|
287
|
+
{
|
|
288
|
+
"lineHeight": "58px",
|
|
289
|
+
"letterSpacing": "0px",
|
|
290
|
+
"fontWeight": "400"
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
"h4": [
|
|
294
|
+
"34px",
|
|
295
|
+
{
|
|
296
|
+
"lineHeight": "41px",
|
|
297
|
+
"letterSpacing": "0.3px",
|
|
298
|
+
"fontWeight": "400"
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"h5": [
|
|
302
|
+
"24px",
|
|
303
|
+
{
|
|
304
|
+
"lineHeight": "29px",
|
|
305
|
+
"letterSpacing": "0px",
|
|
306
|
+
"fontWeight": "400"
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"h6": [
|
|
310
|
+
"20px",
|
|
311
|
+
{
|
|
312
|
+
"lineHeight": "30px",
|
|
313
|
+
"letterSpacing": "0.2px",
|
|
314
|
+
"fontWeight": "400"
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"subtitle1": [
|
|
318
|
+
"16px",
|
|
319
|
+
{
|
|
320
|
+
"lineHeight": "24px",
|
|
321
|
+
"letterSpacing": "0.2px",
|
|
322
|
+
"fontWeight": "400"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"subtitle2": [
|
|
326
|
+
"14px",
|
|
327
|
+
{
|
|
328
|
+
"lineHeight": "21px",
|
|
329
|
+
"letterSpacing": "0.1px",
|
|
330
|
+
"fontWeight": "400"
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
"body1": [
|
|
334
|
+
"16px",
|
|
335
|
+
{
|
|
336
|
+
"lineHeight": "24px",
|
|
337
|
+
"letterSpacing": "0.2px",
|
|
338
|
+
"fontWeight": "400"
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
"body2": [
|
|
342
|
+
"14px",
|
|
343
|
+
{
|
|
344
|
+
"lineHeight": "21px",
|
|
345
|
+
"letterSpacing": "0.2px",
|
|
346
|
+
"fontWeight": "400"
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"caption": [
|
|
350
|
+
"12px",
|
|
351
|
+
{
|
|
352
|
+
"lineHeight": "18px",
|
|
353
|
+
"letterSpacing": "0.5px",
|
|
354
|
+
"fontWeight": "400"
|
|
355
|
+
}
|
|
356
|
+
]
|
|
357
|
+
},
|
|
358
|
+
"fontFamily": {
|
|
359
|
+
"inter": "Inter, sans-serif"
|
|
360
|
+
},
|
|
361
|
+
"fontWeight": {
|
|
362
|
+
"h1": "400",
|
|
363
|
+
"h2": "400",
|
|
364
|
+
"h3": "400",
|
|
365
|
+
"h4": "400",
|
|
366
|
+
"h5": "400",
|
|
367
|
+
"h6": "400",
|
|
368
|
+
"subtitle1": "400",
|
|
369
|
+
"subtitle2": "400",
|
|
370
|
+
"body1": "400",
|
|
371
|
+
"body2": "400",
|
|
372
|
+
"caption": "400"
|
|
373
|
+
},
|
|
374
|
+
"letterSpacing": {
|
|
375
|
+
"h1": "-1.5px",
|
|
376
|
+
"h2": "-0.5px",
|
|
377
|
+
"h3": "0px",
|
|
378
|
+
"h4": "0.3px",
|
|
379
|
+
"h5": "0px",
|
|
380
|
+
"h6": "0.2px",
|
|
381
|
+
"subtitle1": "0.2px",
|
|
382
|
+
"subtitle2": "0.1px",
|
|
383
|
+
"body1": "0.2px",
|
|
384
|
+
"body2": "0.2px",
|
|
385
|
+
"caption": "0.5px"
|
|
386
|
+
},
|
|
387
|
+
"lineHeight": {
|
|
388
|
+
"h1": "115px",
|
|
389
|
+
"h2": "72px",
|
|
390
|
+
"h3": "58px",
|
|
391
|
+
"h4": "41px",
|
|
392
|
+
"h5": "29px",
|
|
393
|
+
"h6": "30px",
|
|
394
|
+
"subtitle1": "24px",
|
|
395
|
+
"subtitle2": "21px",
|
|
396
|
+
"body1": "24px",
|
|
397
|
+
"body2": "21px",
|
|
398
|
+
"caption": "18px"
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
};
|