@maxio-com/design-tokens 4.1.7 → 4.1.9
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/semanticColors.d.ts +5 -0
- package/dist/config/semanticColors.d.ts.map +1 -1
- package/dist/config/semanticColors.js +1 -0
- package/dist/tailwindTheme.d.ts +5 -3
- package/dist/tailwindTheme.d.ts.map +1 -1
- package/dist/tailwindTheme.js +1 -3
- package/dist/variables.css +11 -7
- package/package.json +3 -2
|
@@ -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;;eACoB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAiCpB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;
|
|
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;;eACoB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAiCpB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;eAsBhB,gBAAgB;;;;;eAIlB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;eA6BhB,gBAAgB;;;;;;eAKV,gBAAgB;;;;;CAKvD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const semanticColors = {
|
|
2
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
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
|
+
divideColor: ({ theme }) => (Object.assign(Object.assign({}, theme('borderColor')), { DEFAULT: 'var(--maxio-color-border-primary)' })),
|
|
4
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)', '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
6
|
ringColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)' })),
|
|
6
7
|
ringOffsetColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)' })),
|
package/dist/tailwindTheme.d.ts
CHANGED
|
@@ -127,6 +127,11 @@ declare const _default: {
|
|
|
127
127
|
'highlight-secondary': string;
|
|
128
128
|
avatar: string;
|
|
129
129
|
};
|
|
130
|
+
divideColor: ({ theme }: {
|
|
131
|
+
theme: (key: string) => Record<string, string>;
|
|
132
|
+
}) => {
|
|
133
|
+
DEFAULT: string;
|
|
134
|
+
};
|
|
130
135
|
textColor: ({ theme }: {
|
|
131
136
|
theme: (key: string) => Record<string, string>;
|
|
132
137
|
}) => {
|
|
@@ -165,9 +170,6 @@ declare const _default: {
|
|
|
165
170
|
focus: string;
|
|
166
171
|
'focus-inset': string;
|
|
167
172
|
};
|
|
168
|
-
boxShadow: {
|
|
169
|
-
dropdown: string;
|
|
170
|
-
};
|
|
171
173
|
};
|
|
172
174
|
};
|
|
173
175
|
export default _default;
|
|
@@ -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,wBAaE"}
|
package/dist/tailwindTheme.js
CHANGED
|
@@ -4,7 +4,5 @@ export default {
|
|
|
4
4
|
fontSize,
|
|
5
5
|
lineHeight,
|
|
6
6
|
colors: Object.assign({ current: 'currentColor', inherit: 'inherit', transparent: 'transparent' }, colors),
|
|
7
|
-
extend: Object.assign({
|
|
8
|
-
dropdown: '0px 4px 4px rgba(0, 0, 0, 0.25)',
|
|
9
|
-
} }, semanticColors),
|
|
7
|
+
extend: Object.assign({}, semanticColors),
|
|
10
8
|
};
|
package/dist/variables.css
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
:root,
|
|
1
|
+
:root,
|
|
2
|
+
[data-maxio-mode='light'] {
|
|
2
3
|
/* primitive colors */
|
|
3
4
|
--maxio-black-opaque: hsl(0 0% 0%);
|
|
4
5
|
--maxio-black-alpha-05: hsl(0 0% 0% / 0.04);
|
|
@@ -107,13 +108,16 @@
|
|
|
107
108
|
--maxio-yellow-105: hsl(0 100% 11%);
|
|
108
109
|
|
|
109
110
|
/* typography */
|
|
110
|
-
--maxio-font-sans:
|
|
111
|
-
|
|
111
|
+
--maxio-font-sans:
|
|
112
|
+
'Inter', -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto,
|
|
113
|
+
Helvetica Neue, sans-serif;
|
|
112
114
|
--maxio-font-icons: 'Font Awesome Kit', sans-serif;
|
|
113
|
-
--maxio-font-display:
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
--maxio-font-display:
|
|
116
|
+
'Founders Grotesk', -apple-system, BlinkMacSystemFont, San Francisco,
|
|
117
|
+
Segoe UI, Roboto, Helvetica Neue, sans-serif;
|
|
118
|
+
--maxio-font-mono:
|
|
119
|
+
ui-monospace, SFMono-Regular, SF Mono, 'Segoe UI Mono', 'Roboto Mono',
|
|
120
|
+
'Ubuntu Mono', Menlo, Consolas, Courier, monospace;
|
|
117
121
|
--maxio-font-size-1: 0.75rem;
|
|
118
122
|
--maxio-font-size-2: 0.875rem;
|
|
119
123
|
--maxio-font-size-3: 1rem;
|
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.9",
|
|
5
5
|
"description": "Design Tokens definition",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
],
|
|
16
16
|
"exports": {
|
|
17
17
|
".": "./dist/index.js",
|
|
18
|
+
"./dist/variables.css": "./dist/variables.css",
|
|
18
19
|
"./variables.css": "./dist/variables.css",
|
|
19
20
|
"./package.json": "./package.json"
|
|
20
21
|
},
|
|
@@ -29,5 +30,5 @@
|
|
|
29
30
|
"publishConfig": {
|
|
30
31
|
"access": "public"
|
|
31
32
|
},
|
|
32
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "44966aaf16094aeaa739dd6f60ce5add7fabad40"
|
|
33
34
|
}
|