@maxio-com/design-tokens 4.4.0 → 4.5.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/config/colors.d.ts +15 -1
- package/dist/config/colors.d.ts.map +1 -1
- package/dist/config/colors.js +1 -1
- package/dist/config/semanticColors.d.ts +1 -0
- package/dist/config/semanticColors.d.ts.map +1 -1
- package/dist/config/semanticColors.js +1 -1
- package/dist/tailwindTheme.d.ts +16 -1
- package/dist/tailwindTheme.d.ts.map +1 -1
- package/dist/theme.css +2 -0
- package/dist/variables.css +7 -0
- package/package.json +2 -2
package/dist/config/colors.d.ts
CHANGED
|
@@ -29,7 +29,21 @@ declare const colors: {
|
|
|
29
29
|
readonly 105: `var(--maxio-white-alpha-${string})`;
|
|
30
30
|
readonly DEFAULT: "var(--maxio-white-opaque)";
|
|
31
31
|
};
|
|
32
|
-
readonly gray:
|
|
32
|
+
readonly gray: {
|
|
33
|
+
readonly "05": `var(--maxio-gray-${string})`;
|
|
34
|
+
readonly 10: `var(--maxio-gray-${string})`;
|
|
35
|
+
readonly 20: `var(--maxio-gray-${string})`;
|
|
36
|
+
readonly 30: `var(--maxio-gray-${string})`;
|
|
37
|
+
readonly 40: `var(--maxio-gray-${string})`;
|
|
38
|
+
readonly 50: `var(--maxio-gray-${string})`;
|
|
39
|
+
readonly 60: `var(--maxio-gray-${string})`;
|
|
40
|
+
readonly 70: `var(--maxio-gray-${string})`;
|
|
41
|
+
readonly 80: `var(--maxio-gray-${string})`;
|
|
42
|
+
readonly 90: `var(--maxio-gray-${string})`;
|
|
43
|
+
readonly 100: `var(--maxio-gray-${string})`;
|
|
44
|
+
readonly 105: `var(--maxio-gray-${string})`;
|
|
45
|
+
readonly '02': "var(--maxio-gray-02)";
|
|
46
|
+
};
|
|
33
47
|
readonly blue: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-blue-${string})`>;
|
|
34
48
|
readonly green: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-green-${string})`>;
|
|
35
49
|
readonly purple: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-purple-${string})`>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/config/colors.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/config/colors.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBF,CAAC;AAEX,eAAe,MAAM,CAAC"}
|
package/dist/config/colors.js
CHANGED
|
@@ -2,7 +2,7 @@ import generateColorSet from '../utils/generateColorSet';
|
|
|
2
2
|
const colors = {
|
|
3
3
|
black: Object.assign({ DEFAULT: 'var(--maxio-black-opaque)' }, generateColorSet('maxio-black-alpha')),
|
|
4
4
|
white: Object.assign({ DEFAULT: 'var(--maxio-white-opaque)' }, generateColorSet('maxio-white-alpha')),
|
|
5
|
-
gray: generateColorSet('maxio-gray'),
|
|
5
|
+
gray: Object.assign({ '02': 'var(--maxio-gray-02)' }, generateColorSet('maxio-gray')),
|
|
6
6
|
blue: generateColorSet('maxio-blue'),
|
|
7
7
|
green: generateColorSet('maxio-green'),
|
|
8
8
|
purple: generateColorSet('maxio-purple'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semanticColors.d.ts","sourceRoot":"","sources":["../../src/config/semanticColors.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhE,QAAA,MAAM,cAAc;iCACW;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE
|
|
1
|
+
{"version":3,"file":"semanticColors.d.ts","sourceRoot":"","sources":["../../src/config/semanticColors.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhE,QAAA,MAAM,cAAc;iCACW;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAkC/B;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;6BAsB3B;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;2BAI7B;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgC3B;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;;;;;;;;;;;;;;;;;iCAoBrB;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;;;CAMzD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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)' })),
|
|
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)', subtle: 'var(--maxio-color-bg-subtle)', 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
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
4
|
divideColor: ({ theme }) => (Object.assign(Object.assign({}, theme('borderColor')), { DEFAULT: 'var(--maxio-color-border-primary)' })),
|
|
5
5
|
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)', info: 'var(--maxio-color-text-info)', 'icon-primary': 'var(--maxio-color-icon-primary)', 'icon-secondary': 'var(--maxio-color-icon-secondary)', 'icon-tertiary': 'var(--maxio-color-icon-tertiary)', '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-brand': 'var(--maxio-color-icon-brand)', '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)' })),
|
package/dist/tailwindTheme.d.ts
CHANGED
|
@@ -60,7 +60,21 @@ declare const _default: {
|
|
|
60
60
|
readonly 105: `var(--maxio-white-alpha-${string})`;
|
|
61
61
|
readonly DEFAULT: "var(--maxio-white-opaque)";
|
|
62
62
|
};
|
|
63
|
-
gray:
|
|
63
|
+
gray: {
|
|
64
|
+
readonly "05": `var(--maxio-gray-${string})`;
|
|
65
|
+
readonly 10: `var(--maxio-gray-${string})`;
|
|
66
|
+
readonly 20: `var(--maxio-gray-${string})`;
|
|
67
|
+
readonly 30: `var(--maxio-gray-${string})`;
|
|
68
|
+
readonly 40: `var(--maxio-gray-${string})`;
|
|
69
|
+
readonly 50: `var(--maxio-gray-${string})`;
|
|
70
|
+
readonly 60: `var(--maxio-gray-${string})`;
|
|
71
|
+
readonly 70: `var(--maxio-gray-${string})`;
|
|
72
|
+
readonly 80: `var(--maxio-gray-${string})`;
|
|
73
|
+
readonly 90: `var(--maxio-gray-${string})`;
|
|
74
|
+
readonly 100: `var(--maxio-gray-${string})`;
|
|
75
|
+
readonly 105: `var(--maxio-gray-${string})`;
|
|
76
|
+
readonly '02': "var(--maxio-gray-02)";
|
|
77
|
+
};
|
|
64
78
|
blue: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-blue-${string})`>;
|
|
65
79
|
green: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-green-${string})`>;
|
|
66
80
|
purple: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-purple-${string})`>;
|
|
@@ -77,6 +91,7 @@ declare const _default: {
|
|
|
77
91
|
primary: string;
|
|
78
92
|
'primary-hover': string;
|
|
79
93
|
'primary-active': string;
|
|
94
|
+
subtle: string;
|
|
80
95
|
secondary: string;
|
|
81
96
|
'secondary-hover': string;
|
|
82
97
|
'secondary-active': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailwindTheme.d.ts","sourceRoot":"","sources":["../src/tailwindTheme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tailwindTheme.d.ts","sourceRoot":"","sources":["../src/tailwindTheme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAyBE"}
|
package/dist/theme.css
CHANGED
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
--color-blue-105: var(--maxio-blue-105);
|
|
42
42
|
|
|
43
43
|
/* gray colors */
|
|
44
|
+
--color-gray-02: var(--maxio-gray-02);
|
|
44
45
|
--color-gray-05: var(--maxio-gray-05);
|
|
45
46
|
--color-gray-10: var(--maxio-gray-10);
|
|
46
47
|
--color-gray-20: var(--maxio-gray-20);
|
|
@@ -129,6 +130,7 @@
|
|
|
129
130
|
--background-color-primary: var(--maxio-color-bg-primary);
|
|
130
131
|
--background-color-primary-hover: var(--maxio-color-bg-primary-hover);
|
|
131
132
|
--background-color-primary-active: var(--maxio-color-bg-primary-active);
|
|
133
|
+
--background-color-subtle: var(--maxio-color-bg-subtle);
|
|
132
134
|
--background-color-secondary: var(--maxio-color-bg-secondary);
|
|
133
135
|
--background-color-secondary-hover: var(--maxio-color-bg-secondary-hover);
|
|
134
136
|
--background-color-secondary-active: var(--maxio-color-bg-secondary-active);
|
package/dist/variables.css
CHANGED
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
--maxio-white-alpha-105: hsl(0deg 0% 100% / 97%);
|
|
33
33
|
|
|
34
34
|
/* gray colors */
|
|
35
|
+
--maxio-gray-02: hsl(224deg 8% 98%);
|
|
35
36
|
--maxio-gray-05: hsl(224deg 8% 96%);
|
|
36
37
|
--maxio-gray-10: hsl(224deg 8% 91%);
|
|
37
38
|
--maxio-gray-20: hsl(224deg 8% 85%);
|
|
@@ -177,6 +178,12 @@
|
|
|
177
178
|
var(--maxio-gray-10),
|
|
178
179
|
var(--maxio-gray-100)
|
|
179
180
|
);
|
|
181
|
+
/* Softer gray for approved large areas: the page canvas and the
|
|
182
|
+
secondary Card's header and footer. */
|
|
183
|
+
--maxio-color-bg-subtle: light-dark(
|
|
184
|
+
var(--maxio-gray-02),
|
|
185
|
+
var(--maxio-gray-105)
|
|
186
|
+
);
|
|
180
187
|
--maxio-color-bg-secondary: light-dark(
|
|
181
188
|
var(--maxio-gray-05),
|
|
182
189
|
var(--maxio-gray-105)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxio-com/design-tokens",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.5.0",
|
|
5
5
|
"description": "Design Tokens definition",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "cc420c3ac31da7e470eb719df4b8323aafcedb03"
|
|
35
35
|
}
|