@maxio-com/design-tokens 4.1.3 → 4.1.5
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/config/colors.js +11 -27
- package/dist/config/fontFamily.js +2 -4
- package/dist/config/fontSize.js +2 -4
- package/dist/config/index.js +5 -16
- package/dist/config/lineHeight.js +2 -4
- package/dist/config/semanticColors.js +7 -35
- package/dist/config/semanticColors.spec.js +8 -13
- package/dist/index.js +2 -8
- package/dist/tailwindTheme.js +8 -21
- package/dist/tailwindTheme.spec.js +4 -9
- package/dist/utils/generateColorSet.js +6 -8
- package/package.json +2 -2
package/dist/config/colors.js
CHANGED
|
@@ -1,28 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
1
|
+
import generateColorSet from '../utils/generateColorSet';
|
|
2
|
+
const colors = {
|
|
3
|
+
black: Object.assign({ DEFAULT: 'var(--maxio-black-opaque)' }, generateColorSet('maxio-black-alpha')),
|
|
4
|
+
white: Object.assign({ DEFAULT: 'var(--maxio-white-opaque)' }, generateColorSet('maxio-white-alpha')),
|
|
5
|
+
gray: generateColorSet('maxio-gray'),
|
|
6
|
+
blue: generateColorSet('maxio-blue'),
|
|
7
|
+
green: generateColorSet('maxio-green'),
|
|
8
|
+
purple: generateColorSet('maxio-purple'),
|
|
9
|
+
red: generateColorSet('maxio-red'),
|
|
10
|
+
yellow: generateColorSet('maxio-yellow'),
|
|
12
11
|
};
|
|
13
|
-
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
var generateColorSet_1 = __importDefault(require("../utils/generateColorSet"));
|
|
18
|
-
var colors = {
|
|
19
|
-
black: __assign({ DEFAULT: 'var(--maxio-black-opaque)' }, (0, generateColorSet_1.default)('maxio-black-alpha')),
|
|
20
|
-
white: __assign({ DEFAULT: 'var(--maxio-white-opaque)' }, (0, generateColorSet_1.default)('maxio-white-alpha')),
|
|
21
|
-
gray: (0, generateColorSet_1.default)('maxio-gray'),
|
|
22
|
-
blue: (0, generateColorSet_1.default)('maxio-blue'),
|
|
23
|
-
green: (0, generateColorSet_1.default)('maxio-green'),
|
|
24
|
-
purple: (0, generateColorSet_1.default)('maxio-purple'),
|
|
25
|
-
red: (0, generateColorSet_1.default)('maxio-red'),
|
|
26
|
-
yellow: (0, generateColorSet_1.default)('maxio-yellow'),
|
|
27
|
-
};
|
|
28
|
-
exports.default = colors;
|
|
12
|
+
export default colors;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var fontFamily = {
|
|
1
|
+
const fontFamily = {
|
|
4
2
|
sans: 'var(--maxio-font-sans)',
|
|
5
3
|
icon: 'var(--maxio-font-icons)',
|
|
6
4
|
display: 'var(--maxio-font-display)',
|
|
7
5
|
mono: 'var(--maxio-font-mono)',
|
|
8
6
|
};
|
|
9
|
-
|
|
7
|
+
export default fontFamily;
|
package/dist/config/fontSize.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var fontSize = {
|
|
1
|
+
const fontSize = {
|
|
4
2
|
1: 'var(--maxio-font-size-1)',
|
|
5
3
|
2: 'var(--maxio-font-size-2)',
|
|
6
4
|
3: 'var(--maxio-font-size-3)',
|
|
@@ -11,4 +9,4 @@ var fontSize = {
|
|
|
11
9
|
8: 'var(--maxio-font-size-8)',
|
|
12
10
|
9: 'var(--maxio-font-size-9)',
|
|
13
11
|
};
|
|
14
|
-
|
|
12
|
+
export default fontSize;
|
package/dist/config/index.js
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
exports.semanticColors = exports.fontSize = exports.fontFamily = exports.lineHeight = exports.colors = void 0;
|
|
7
|
-
var colors_1 = require("./colors");
|
|
8
|
-
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return __importDefault(colors_1).default; } });
|
|
9
|
-
var lineHeight_1 = require("./lineHeight");
|
|
10
|
-
Object.defineProperty(exports, "lineHeight", { enumerable: true, get: function () { return __importDefault(lineHeight_1).default; } });
|
|
11
|
-
var fontFamily_1 = require("./fontFamily");
|
|
12
|
-
Object.defineProperty(exports, "fontFamily", { enumerable: true, get: function () { return __importDefault(fontFamily_1).default; } });
|
|
13
|
-
var fontSize_1 = require("./fontSize");
|
|
14
|
-
Object.defineProperty(exports, "fontSize", { enumerable: true, get: function () { return __importDefault(fontSize_1).default; } });
|
|
15
|
-
var semanticColors_1 = require("./semanticColors");
|
|
16
|
-
Object.defineProperty(exports, "semanticColors", { enumerable: true, get: function () { return __importDefault(semanticColors_1).default; } });
|
|
1
|
+
export { default as colors } from './colors';
|
|
2
|
+
export { default as lineHeight } from './lineHeight';
|
|
3
|
+
export { default as fontFamily } from './fontFamily';
|
|
4
|
+
export { default as fontSize } from './fontSize';
|
|
5
|
+
export { default as semanticColors } from './semanticColors';
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var lineHeight = {
|
|
1
|
+
const lineHeight = {
|
|
4
2
|
none: 'var(--maxio-line-height-none)',
|
|
5
3
|
1: 'var(--maxio-line-height-1)',
|
|
6
4
|
2: 'var(--maxio-line-height-2)',
|
|
@@ -12,4 +10,4 @@ var lineHeight = {
|
|
|
12
10
|
8: 'var(--maxio-line-height-8)',
|
|
13
11
|
9: 'var(--maxio-line-height-9)',
|
|
14
12
|
};
|
|
15
|
-
|
|
13
|
+
export default lineHeight;
|
|
@@ -1,36 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
1
|
+
const semanticColors = {
|
|
2
|
+
backgroundColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { primary: 'var(--maxio-color-bg-primary)', 'primary-hover': 'var(--maxio-color-bg-primary-hover)', 'primary-active': 'var(--maxio-color-bg-primary-active)', secondary: 'var(--maxio-color-bg-secondary)', 'secondary-hover': 'var(--maxio-color-bg-secondary-hover)', 'secondary-active': 'var(--maxio-color-bg-secondary-active)', tertiary: 'var(--maxio-color-bg-tertiary)', 'tertiary-hover': 'var(--maxio-color-bg-tertiary-hover)', 'tertiary-active': 'var(--maxio-color-bg-tertiary-active)', inverse: 'var(--maxio-color-bg-inverse)', 'inverse-hover': 'var(--maxio-color-bg-inverse-hover)', 'inverse-active': 'var(--maxio-color-bg-inverse-active)', neutral: 'var(--maxio-color-bg-neutral)', info: 'var(--maxio-color-bg-info)', success: 'var(--maxio-color-bg-success)', warning: 'var(--maxio-color-bg-warning)', danger: 'var(--maxio-color-bg-danger)', highlight: 'var(--maxio-color-bg-highlight)', 'fill-brand': 'var(--maxio-color-bg-fill-brand)', 'fill-brand-hover': 'var(--maxio-color-bg-fill-brand-hover)', 'fill-brand-active': 'var(--maxio-color-bg-fill-brand-active)', 'fill-neutral': 'var(--maxio-color-bg-fill-neutral)', 'fill-info': 'var(--maxio-color-bg-fill-info)', 'fill-success': 'var(--maxio-color-bg-fill-success)', 'fill-warning': 'var(--maxio-color-bg-fill-warning)', 'fill-danger': 'var(--maxio-color-bg-fill-danger)', 'fill-danger-hover': 'var(--maxio-color-bg-fill-danger-hover)', 'fill-danger-active': 'var(--maxio-color-bg-fill-danger-active)', 'fill-highlight': 'var(--maxio-color-bg-fill-highlight)', 'fill-disabled': 'var(--maxio-color-bg-fill-disabled)' })),
|
|
3
|
+
borderColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { DEFAULT: 'var(--maxio-color-border-primary)', primary: 'var(--maxio-color-border-primary)', secondary: 'var(--maxio-color-border-secondary)', tertiary: 'var(--maxio-color-border-tertiary)', inverse: 'var(--maxio-color-border-inverse)', focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)', brand: 'var(--maxio-color-border-brand)', info: 'var(--maxio-color-border-info)', 'info-secondary': 'var(--maxio-color-border-info-secondary)', success: 'var(--maxio-color-border-success)', 'success-secondary': 'var(--maxio-color-border-success-secondary)', warning: 'var(--maxio-color-border-warning)', 'warning-secondary': 'var(--maxio-color-border-warning-secondary)', danger: 'var(--maxio-color-border-danger)', 'danger-secondary': 'var(--maxio-color-border-danger-secondary)', highlight: 'var(--maxio-color-border-highlight)', 'highlight-secondary': 'var(--maxio-color-border-highlight-secondary)', avatar: 'var(--maxio-color-border-avatar)' })),
|
|
4
|
+
textColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { primary: 'var(--maxio-color-text-primary)', secondary: 'var(--maxio-color-text-secondary)', tertiary: 'var(--maxio-color-text-tertiary)', inverse: 'var(--maxio-color-text-inverse)', 'on-bg-fill-disabled': 'var(--maxio-color-text-on-bg-fill-disabled)', disabled: 'var(--maxio-color-text-disabled)', danger: 'var(--maxio-color-text-danger)', 'icon-primary': 'var(--maxio-color-icon-primary)', 'icon-secondary': 'var(--maxio-color-icon-secondary)', 'icon-inverse': 'var(--maxio-color-icon-inverse)', 'icon-disabled': 'var(--maxio-color-icon-disabled)', 'icon-on-bg-fill-disabled': 'var(--maxio-color-icon-on-bg-fill-disabled)', 'icon-neutral': 'var(--maxio-color-icon-neutral)', 'icon-info': 'var(--maxio-color-icon-info)', 'icon-success': 'var(--maxio-color-icon-success)', 'icon-warning': 'var(--maxio-color-icon-warning)', 'icon-danger': 'var(--maxio-color-icon-danger)', 'icon-highlight': 'var(--maxio-color-icon-highlight)', link: 'var(--maxio-color-link)', 'link-high-contrast': 'var(--maxio-color-link-high-contrast)', 'link-hover': 'var(--maxio-color-link-hover)', 'link-active': 'var(--maxio-color-link-active)' })),
|
|
5
|
+
ringColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)' })),
|
|
6
|
+
ringOffsetColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)' })),
|
|
12
7
|
};
|
|
13
|
-
|
|
14
|
-
var semanticColors = {
|
|
15
|
-
backgroundColor: function (_a) {
|
|
16
|
-
var theme = _a.theme;
|
|
17
|
-
return (__assign(__assign({}, theme('colors')), { primary: 'var(--maxio-color-bg-primary)', 'primary-hover': 'var(--maxio-color-bg-primary-hover)', 'primary-active': 'var(--maxio-color-bg-primary-active)', secondary: 'var(--maxio-color-bg-secondary)', 'secondary-hover': 'var(--maxio-color-bg-secondary-hover)', 'secondary-active': 'var(--maxio-color-bg-secondary-active)', tertiary: 'var(--maxio-color-bg-tertiary)', 'tertiary-hover': 'var(--maxio-color-bg-tertiary-hover)', 'tertiary-active': 'var(--maxio-color-bg-tertiary-active)', inverse: 'var(--maxio-color-bg-inverse)', 'inverse-hover': 'var(--maxio-color-bg-inverse-hover)', 'inverse-active': 'var(--maxio-color-bg-inverse-active)', neutral: 'var(--maxio-color-bg-neutral)', info: 'var(--maxio-color-bg-info)', success: 'var(--maxio-color-bg-success)', warning: 'var(--maxio-color-bg-warning)', danger: 'var(--maxio-color-bg-danger)', highlight: 'var(--maxio-color-bg-highlight)', 'fill-brand': 'var(--maxio-color-bg-fill-brand)', 'fill-brand-hover': 'var(--maxio-color-bg-fill-brand-hover)', 'fill-brand-active': 'var(--maxio-color-bg-fill-brand-active)', 'fill-neutral': 'var(--maxio-color-bg-fill-neutral)', 'fill-info': 'var(--maxio-color-bg-fill-info)', 'fill-success': 'var(--maxio-color-bg-fill-success)', 'fill-warning': 'var(--maxio-color-bg-fill-warning)', 'fill-danger': 'var(--maxio-color-bg-fill-danger)', 'fill-danger-hover': 'var(--maxio-color-bg-fill-danger-hover)', 'fill-danger-active': 'var(--maxio-color-bg-fill-danger-active)', 'fill-highlight': 'var(--maxio-color-bg-fill-highlight)', 'fill-disabled': 'var(--maxio-color-bg-fill-disabled)' }));
|
|
18
|
-
},
|
|
19
|
-
borderColor: function (_a) {
|
|
20
|
-
var theme = _a.theme;
|
|
21
|
-
return (__assign(__assign({}, theme('colors')), { DEFAULT: 'var(--maxio-color-border-primary)', primary: 'var(--maxio-color-border-primary)', secondary: 'var(--maxio-color-border-secondary)', tertiary: 'var(--maxio-color-border-tertiary)', inverse: 'var(--maxio-color-border-inverse)', focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)', brand: 'var(--maxio-color-border-brand)', info: 'var(--maxio-color-border-info)', 'info-secondary': 'var(--maxio-color-border-info-secondary)', success: 'var(--maxio-color-border-success)', 'success-secondary': 'var(--maxio-color-border-success-secondary)', warning: 'var(--maxio-color-border-warning)', 'warning-secondary': 'var(--maxio-color-border-warning-secondary)', danger: 'var(--maxio-color-border-danger)', 'danger-secondary': 'var(--maxio-color-border-danger-secondary)', highlight: 'var(--maxio-color-border-highlight)', 'highlight-secondary': 'var(--maxio-color-border-highlight-secondary)', avatar: 'var(--maxio-color-border-avatar)' }));
|
|
22
|
-
},
|
|
23
|
-
textColor: function (_a) {
|
|
24
|
-
var theme = _a.theme;
|
|
25
|
-
return (__assign(__assign({}, theme('colors')), { primary: 'var(--maxio-color-text-primary)', secondary: 'var(--maxio-color-text-secondary)', tertiary: 'var(--maxio-color-text-tertiary)', inverse: 'var(--maxio-color-text-inverse)', 'on-bg-fill-disabled': 'var(--maxio-color-text-on-bg-fill-disabled)', disabled: 'var(--maxio-color-text-disabled)', danger: 'var(--maxio-color-text-danger)', 'icon-primary': 'var(--maxio-color-icon-primary)', 'icon-secondary': 'var(--maxio-color-icon-secondary)', 'icon-inverse': 'var(--maxio-color-icon-inverse)', 'icon-disabled': 'var(--maxio-color-icon-disabled)', 'icon-on-bg-fill-disabled': 'var(--maxio-color-icon-on-bg-fill-disabled)', 'icon-neutral': 'var(--maxio-color-icon-neutral)', 'icon-info': 'var(--maxio-color-icon-info)', 'icon-success': 'var(--maxio-color-icon-success)', 'icon-warning': 'var(--maxio-color-icon-warning)', 'icon-danger': 'var(--maxio-color-icon-danger)', 'icon-highlight': 'var(--maxio-color-icon-highlight)', link: 'var(--maxio-color-link)', 'link-high-contrast': 'var(--maxio-color-link-high-contrast)', 'link-hover': 'var(--maxio-color-link-hover)', 'link-active': 'var(--maxio-color-link-active)' }));
|
|
26
|
-
},
|
|
27
|
-
ringColor: function (_a) {
|
|
28
|
-
var theme = _a.theme;
|
|
29
|
-
return (__assign(__assign({}, theme('colors')), { focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)' }));
|
|
30
|
-
},
|
|
31
|
-
ringOffsetColor: function (_a) {
|
|
32
|
-
var theme = _a.theme;
|
|
33
|
-
return (__assign(__assign({}, theme('colors')), { focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)' }));
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
exports.default = semanticColors;
|
|
8
|
+
export default semanticColors;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
expect(semanticColors_1.default.backgroundColor({ theme: function () { return ({}); } })).toMatchSnapshot();
|
|
10
|
-
expect(semanticColors_1.default.borderColor({ theme: function () { return ({}); } })).toMatchSnapshot();
|
|
11
|
-
expect(semanticColors_1.default.ringColor({ theme: function () { return ({}); } })).toMatchSnapshot();
|
|
12
|
-
expect(semanticColors_1.default.ringOffsetColor({ theme: function () { return ({}); } })).toMatchSnapshot();
|
|
13
|
-
expect(semanticColors_1.default.textColor({ theme: function () { return ({}); } })).toMatchSnapshot();
|
|
1
|
+
import semanticColors from './semanticColors';
|
|
2
|
+
describe('semantic colors', () => {
|
|
3
|
+
it('matches snapshot', () => {
|
|
4
|
+
expect(semanticColors.backgroundColor({ theme: () => ({}) })).toMatchSnapshot();
|
|
5
|
+
expect(semanticColors.borderColor({ theme: () => ({}) })).toMatchSnapshot();
|
|
6
|
+
expect(semanticColors.ringColor({ theme: () => ({}) })).toMatchSnapshot();
|
|
7
|
+
expect(semanticColors.ringOffsetColor({ theme: () => ({}) })).toMatchSnapshot();
|
|
8
|
+
expect(semanticColors.textColor({ theme: () => ({}) })).toMatchSnapshot();
|
|
14
9
|
});
|
|
15
10
|
});
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.tailwindTheme = void 0;
|
|
7
|
-
var tailwindTheme_1 = __importDefault(require("./tailwindTheme"));
|
|
8
|
-
exports.tailwindTheme = tailwindTheme_1.default;
|
|
1
|
+
import tailwindTheme from './tailwindTheme';
|
|
2
|
+
export { tailwindTheme };
|
package/dist/tailwindTheme.js
CHANGED
|
@@ -1,23 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var config_1 = require("./config");
|
|
15
|
-
exports.default = {
|
|
16
|
-
fontFamily: config_1.fontFamily,
|
|
17
|
-
fontSize: config_1.fontSize,
|
|
18
|
-
lineHeight: config_1.lineHeight,
|
|
19
|
-
colors: __assign({ current: 'currentColor', inherit: 'inherit', transparent: 'transparent' }, config_1.colors),
|
|
20
|
-
extend: __assign({ boxShadow: {
|
|
1
|
+
import { colors, lineHeight, fontFamily, fontSize, semanticColors, } from './config';
|
|
2
|
+
export default {
|
|
3
|
+
fontFamily,
|
|
4
|
+
fontSize,
|
|
5
|
+
lineHeight,
|
|
6
|
+
colors: Object.assign({ current: 'currentColor', inherit: 'inherit', transparent: 'transparent' }, colors),
|
|
7
|
+
extend: Object.assign({ boxShadow: {
|
|
21
8
|
dropdown: '0px 4px 4px rgba(0, 0, 0, 0.25)',
|
|
22
|
-
} },
|
|
9
|
+
} }, semanticColors),
|
|
23
10
|
};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var tailwindTheme_1 = __importDefault(require("./tailwindTheme"));
|
|
7
|
-
describe('tailwind theme', function () {
|
|
8
|
-
it('matches snapshot', function () {
|
|
9
|
-
expect(tailwindTheme_1.default).toMatchSnapshot();
|
|
1
|
+
import tailwindTheme from './tailwindTheme';
|
|
2
|
+
describe('tailwind theme', () => {
|
|
3
|
+
it('matches snapshot', () => {
|
|
4
|
+
expect(tailwindTheme).toMatchSnapshot();
|
|
10
5
|
});
|
|
11
6
|
});
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var COLOR_KEYS = [
|
|
1
|
+
const COLOR_KEYS = [
|
|
4
2
|
'05',
|
|
5
3
|
'10',
|
|
6
4
|
'20',
|
|
@@ -14,11 +12,11 @@ var COLOR_KEYS = [
|
|
|
14
12
|
'100',
|
|
15
13
|
'105',
|
|
16
14
|
];
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
COLOR_KEYS.forEach(
|
|
20
|
-
set[key] =
|
|
15
|
+
const generateColorSet = (variablePrefix) => {
|
|
16
|
+
const set = {};
|
|
17
|
+
COLOR_KEYS.forEach((key) => {
|
|
18
|
+
set[key] = `var(--${variablePrefix}-${key})`;
|
|
21
19
|
});
|
|
22
20
|
return set;
|
|
23
21
|
};
|
|
24
|
-
|
|
22
|
+
export default generateColorSet;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxio-com/design-tokens",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.5",
|
|
5
5
|
"description": "Design Tokens definition",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "9469b38bd1b32aa28b1e5d119c6b38283184081d"
|
|
33
33
|
}
|