@maxio-com/design-tokens 3.5.3 → 4.1.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 +15 -2
- package/dist/config/colors.d.ts +40 -0
- package/dist/config/colors.d.ts.map +1 -0
- package/dist/config/colors.js +23 -0
- package/dist/config/fontFamily.d.ts +8 -0
- package/dist/config/fontFamily.d.ts.map +1 -0
- package/dist/config/fontFamily.js +7 -0
- package/dist/config/fontSize.d.ts +13 -0
- package/dist/config/fontSize.d.ts.map +1 -0
- package/dist/config/fontSize.js +12 -0
- package/dist/config/index.d.ts +6 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +5 -0
- package/dist/config/lineHeight.d.ts +14 -0
- package/dist/config/lineHeight.d.ts.map +1 -0
- package/dist/config/lineHeight.js +13 -0
- package/dist/config/semanticColors.d.ts +100 -0
- package/dist/config/semanticColors.d.ts.map +1 -0
- package/dist/config/semanticColors.js +34 -0
- package/dist/config/semanticColors.spec.d.ts +2 -0
- package/dist/config/semanticColors.spec.d.ts.map +1 -0
- package/dist/config/semanticColors.spec.js +10 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -10
- package/dist/tailwindTheme.d.ts +174 -0
- package/dist/tailwindTheme.d.ts.map +1 -0
- package/dist/tailwindTheme.js +21 -0
- package/dist/tailwindTheme.spec.d.ts +2 -0
- package/dist/tailwindTheme.spec.d.ts.map +1 -0
- package/dist/tailwindTheme.spec.js +6 -0
- package/dist/utils/generateColorSet.d.ts +3 -0
- package/dist/utils/generateColorSet.d.ts.map +1 -0
- package/dist/utils/generateColorSet.js +22 -0
- package/dist/variables.css +1 -6
- package/package.json +2 -2
- package/dist/colors.d.ts +0 -90
- package/dist/colors.d.ts.map +0 -1
- package/dist/colors.js +0 -91
- package/dist/typography.d.ts +0 -54
- package/dist/typography.d.ts.map +0 -1
- package/dist/typography.js +0 -34
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Maxio UI Design Tokens
|
|
|
5
5
|
This package is used to store and maintain design tokens for Maxio UI.
|
|
6
6
|
Tokens exists in the form of CSS variables and are used to maintain a consistent design system across all Maxio UI components (used directly within our [Design System](https://github.com/maxio-com/ui-components)).
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
JavaScript variables are used only to refer to the CSS Variables with main purpose to fuel the Tailwind Theme - you should prefer using the CSS variables directly in any other case.
|
|
9
9
|
|
|
10
10
|
The source of truth is located in Figma/Notion and is exported to this package.
|
|
11
11
|
Learn more about the **Design Tokens** [here](https://www.notion.so/maxioevolution/Design-tokens-7e2081d708d6485396e3237cbb8028c7).
|
|
@@ -24,9 +24,22 @@ To use the design tokens in your project, you can import the CSS file into your
|
|
|
24
24
|
@import '@maxio-com/design-tokens/variables.css';
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
To leverage the Tailwind Theme, you can import the config file into your project:
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
import { tailwindTheme } from '@maxio/design-tokens';
|
|
31
|
+
|
|
32
|
+
// your tailwind config
|
|
33
|
+
export default {
|
|
34
|
+
...
|
|
35
|
+
theme: tailwindTheme,
|
|
36
|
+
...
|
|
37
|
+
};
|
|
38
|
+
```
|
|
39
|
+
|
|
27
40
|
## Backward compatibility
|
|
28
41
|
|
|
29
|
-
All the changes in the design tokens should be backward compatible. This means that if you change a token, you should not break any existing components that use that token. Existing components should continue to work as expected. If you need to make a breaking change, you should create a new token and deprecate the old one.
|
|
42
|
+
All the changes in the design tokens should [be backward compatible](https://www.notion.so/maxioevolution/Design-System-backwards-compatibility-deprecation-policy-5afbb6acca36446ba4009f19743449cf). This means that if you change a token, you should not break any existing components that use that token. Existing components should continue to work as expected. If you need to make a breaking change, you should create a new token and deprecate the old one.
|
|
30
43
|
|
|
31
44
|
After the deprecation period, and making sure migration has been done, you can remove the old token.
|
|
32
45
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const colors: {
|
|
2
|
+
readonly black: {
|
|
3
|
+
readonly "05": `var(--maxio-black-alpha-${string})`;
|
|
4
|
+
readonly 10: `var(--maxio-black-alpha-${string})`;
|
|
5
|
+
readonly 20: `var(--maxio-black-alpha-${string})`;
|
|
6
|
+
readonly 30: `var(--maxio-black-alpha-${string})`;
|
|
7
|
+
readonly 40: `var(--maxio-black-alpha-${string})`;
|
|
8
|
+
readonly 50: `var(--maxio-black-alpha-${string})`;
|
|
9
|
+
readonly 60: `var(--maxio-black-alpha-${string})`;
|
|
10
|
+
readonly 70: `var(--maxio-black-alpha-${string})`;
|
|
11
|
+
readonly 80: `var(--maxio-black-alpha-${string})`;
|
|
12
|
+
readonly 90: `var(--maxio-black-alpha-${string})`;
|
|
13
|
+
readonly 100: `var(--maxio-black-alpha-${string})`;
|
|
14
|
+
readonly 105: `var(--maxio-black-alpha-${string})`;
|
|
15
|
+
readonly DEFAULT: "var(--maxio-black-opaque)";
|
|
16
|
+
};
|
|
17
|
+
readonly white: {
|
|
18
|
+
readonly "05": `var(--maxio-white-alpha-${string})`;
|
|
19
|
+
readonly 10: `var(--maxio-white-alpha-${string})`;
|
|
20
|
+
readonly 20: `var(--maxio-white-alpha-${string})`;
|
|
21
|
+
readonly 30: `var(--maxio-white-alpha-${string})`;
|
|
22
|
+
readonly 40: `var(--maxio-white-alpha-${string})`;
|
|
23
|
+
readonly 50: `var(--maxio-white-alpha-${string})`;
|
|
24
|
+
readonly 60: `var(--maxio-white-alpha-${string})`;
|
|
25
|
+
readonly 70: `var(--maxio-white-alpha-${string})`;
|
|
26
|
+
readonly 80: `var(--maxio-white-alpha-${string})`;
|
|
27
|
+
readonly 90: `var(--maxio-white-alpha-${string})`;
|
|
28
|
+
readonly 100: `var(--maxio-white-alpha-${string})`;
|
|
29
|
+
readonly 105: `var(--maxio-white-alpha-${string})`;
|
|
30
|
+
readonly DEFAULT: "var(--maxio-white-opaque)";
|
|
31
|
+
};
|
|
32
|
+
readonly gray: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-gray-${string})`>;
|
|
33
|
+
readonly blue: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-blue-${string})`>;
|
|
34
|
+
readonly green: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-green-${string})`>;
|
|
35
|
+
readonly purple: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-purple-${string})`>;
|
|
36
|
+
readonly red: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-red-${string})`>;
|
|
37
|
+
readonly yellow: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-yellow-${string})`>;
|
|
38
|
+
};
|
|
39
|
+
export default colors;
|
|
40
|
+
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/config/colors.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAeF,CAAC;AAEX,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import generateColorSet from '../utils/generateColorSet';
|
|
13
|
+
var colors = {
|
|
14
|
+
black: __assign({ DEFAULT: 'var(--maxio-black-opaque)' }, generateColorSet('maxio-black-alpha')),
|
|
15
|
+
white: __assign({ DEFAULT: 'var(--maxio-white-opaque)' }, generateColorSet('maxio-white-alpha')),
|
|
16
|
+
gray: generateColorSet('maxio-gray'),
|
|
17
|
+
blue: generateColorSet('maxio-blue'),
|
|
18
|
+
green: generateColorSet('maxio-green'),
|
|
19
|
+
purple: generateColorSet('maxio-purple'),
|
|
20
|
+
red: generateColorSet('maxio-red'),
|
|
21
|
+
yellow: generateColorSet('maxio-yellow'),
|
|
22
|
+
};
|
|
23
|
+
export default colors;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fontFamily.d.ts","sourceRoot":"","sources":["../../src/config/fontFamily.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,UAAU;;;;;CAKf,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fontSize.d.ts","sourceRoot":"","sources":["../../src/config/fontSize.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ;;;;;;;;;;CAUb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var fontSize = {
|
|
2
|
+
1: 'var(--maxio-font-size-1)',
|
|
3
|
+
2: 'var(--maxio-font-size-2)',
|
|
4
|
+
3: 'var(--maxio-font-size-3)',
|
|
5
|
+
4: 'var(--maxio-font-size-4)',
|
|
6
|
+
5: 'var(--maxio-font-size-5)',
|
|
7
|
+
6: 'var(--maxio-font-size-6)',
|
|
8
|
+
7: 'var(--maxio-font-size-7)',
|
|
9
|
+
8: 'var(--maxio-font-size-8)',
|
|
10
|
+
9: 'var(--maxio-font-size-9)',
|
|
11
|
+
};
|
|
12
|
+
export default fontSize;
|
|
@@ -0,0 +1,6 @@
|
|
|
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';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lineHeight.d.ts","sourceRoot":"","sources":["../../src/config/lineHeight.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,UAAU;;;;;;;;;;;CAWf,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var lineHeight = {
|
|
2
|
+
none: 'var(--maxio-line-height-none)',
|
|
3
|
+
1: 'var(--maxio-line-height-1)',
|
|
4
|
+
2: 'var(--maxio-line-height-2)',
|
|
5
|
+
3: 'var(--maxio-line-height-3)',
|
|
6
|
+
4: 'var(--maxio-line-height-4)',
|
|
7
|
+
5: 'var(--maxio-line-height-5)',
|
|
8
|
+
6: 'var(--maxio-line-height-6)',
|
|
9
|
+
7: 'var(--maxio-line-height-7)',
|
|
10
|
+
8: 'var(--maxio-line-height-8)',
|
|
11
|
+
9: 'var(--maxio-line-height-9)',
|
|
12
|
+
};
|
|
13
|
+
export default lineHeight;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
declare type ThemePlaceholder = (key: string) => Record<string, string>;
|
|
2
|
+
declare const semanticColors: {
|
|
3
|
+
backgroundColor: ({ theme }: {
|
|
4
|
+
theme: ThemePlaceholder;
|
|
5
|
+
}) => {
|
|
6
|
+
primary: string;
|
|
7
|
+
'primary-hover': string;
|
|
8
|
+
'primary-active': string;
|
|
9
|
+
secondary: string;
|
|
10
|
+
'secondary-hover': string;
|
|
11
|
+
'secondary-active': string;
|
|
12
|
+
tertiary: string;
|
|
13
|
+
'tertiary-hover': string;
|
|
14
|
+
'tertiary-active': string;
|
|
15
|
+
inverse: string;
|
|
16
|
+
'inverse-hover': string;
|
|
17
|
+
'inverse-active': string;
|
|
18
|
+
neutral: string;
|
|
19
|
+
info: string;
|
|
20
|
+
success: string;
|
|
21
|
+
warning: string;
|
|
22
|
+
danger: string;
|
|
23
|
+
highlight: string;
|
|
24
|
+
'fill-brand': string;
|
|
25
|
+
'fill-brand-hover': string;
|
|
26
|
+
'fill-brand-active': string;
|
|
27
|
+
'fill-neutral': string;
|
|
28
|
+
'fill-info': string;
|
|
29
|
+
'fill-success': string;
|
|
30
|
+
'fill-warning': string;
|
|
31
|
+
'fill-danger': string;
|
|
32
|
+
'fill-danger-hover': string;
|
|
33
|
+
'fill-danger-active': string;
|
|
34
|
+
'fill-highlight': string;
|
|
35
|
+
'fill-disabled': string;
|
|
36
|
+
};
|
|
37
|
+
borderColor: ({ theme }: {
|
|
38
|
+
theme: ThemePlaceholder;
|
|
39
|
+
}) => {
|
|
40
|
+
DEFAULT: string;
|
|
41
|
+
primary: string;
|
|
42
|
+
secondary: string;
|
|
43
|
+
tertiary: string;
|
|
44
|
+
inverse: string;
|
|
45
|
+
focus: string;
|
|
46
|
+
'focus-inset': string;
|
|
47
|
+
brand: string;
|
|
48
|
+
info: string;
|
|
49
|
+
'info-secondary': string;
|
|
50
|
+
success: string;
|
|
51
|
+
'success-secondary': string;
|
|
52
|
+
warning: string;
|
|
53
|
+
'warning-secondary': string;
|
|
54
|
+
danger: string;
|
|
55
|
+
'danger-secondary': string;
|
|
56
|
+
highlight: string;
|
|
57
|
+
'highlight-secondary': string;
|
|
58
|
+
avatar: string;
|
|
59
|
+
};
|
|
60
|
+
textColor: ({ theme }: {
|
|
61
|
+
theme: ThemePlaceholder;
|
|
62
|
+
}) => {
|
|
63
|
+
primary: string;
|
|
64
|
+
secondary: string;
|
|
65
|
+
tertiary: string;
|
|
66
|
+
inverse: string;
|
|
67
|
+
'on-bg-fill-disabled': string;
|
|
68
|
+
disabled: string;
|
|
69
|
+
danger: string;
|
|
70
|
+
'icon-primary': string;
|
|
71
|
+
'icon-secondary': string;
|
|
72
|
+
'icon-inverse': string;
|
|
73
|
+
'icon-disabled': string;
|
|
74
|
+
'icon-on-bg-fill-disabled': string;
|
|
75
|
+
'icon-neutral': string;
|
|
76
|
+
'icon-info': string;
|
|
77
|
+
'icon-success': string;
|
|
78
|
+
'icon-warning': string;
|
|
79
|
+
'icon-danger': string;
|
|
80
|
+
'icon-highlight': string;
|
|
81
|
+
link: string;
|
|
82
|
+
'link-high-contrast': string;
|
|
83
|
+
'link-hover': string;
|
|
84
|
+
'link-active': string;
|
|
85
|
+
};
|
|
86
|
+
ringColor: ({ theme }: {
|
|
87
|
+
theme: ThemePlaceholder;
|
|
88
|
+
}) => {
|
|
89
|
+
focus: string;
|
|
90
|
+
'focus-inset': string;
|
|
91
|
+
};
|
|
92
|
+
ringOffsetColor: ({ theme }: {
|
|
93
|
+
theme: ThemePlaceholder;
|
|
94
|
+
}) => {
|
|
95
|
+
focus: string;
|
|
96
|
+
'focus-inset': string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
export default semanticColors;
|
|
100
|
+
//# sourceMappingURL=semanticColors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semanticColors.d.ts","sourceRoot":"","sources":["../../src/config/semanticColors.ts"],"names":[],"mappings":"AAAA,aAAK,gBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhE,QAAA,MAAM,cAAc;;eACoB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAiCpB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;eAsBlB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;eA6BhB,gBAAgB;;;;;;eAKV,gBAAgB;;;;;CAKvD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var semanticColors = {
|
|
13
|
+
backgroundColor: function (_a) {
|
|
14
|
+
var theme = _a.theme;
|
|
15
|
+
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)' }));
|
|
16
|
+
},
|
|
17
|
+
borderColor: function (_a) {
|
|
18
|
+
var theme = _a.theme;
|
|
19
|
+
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)' }));
|
|
20
|
+
},
|
|
21
|
+
textColor: function (_a) {
|
|
22
|
+
var theme = _a.theme;
|
|
23
|
+
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)' }));
|
|
24
|
+
},
|
|
25
|
+
ringColor: function (_a) {
|
|
26
|
+
var theme = _a.theme;
|
|
27
|
+
return (__assign(__assign({}, theme('colors')), { focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)' }));
|
|
28
|
+
},
|
|
29
|
+
ringOffsetColor: function (_a) {
|
|
30
|
+
var theme = _a.theme;
|
|
31
|
+
return (__assign(__assign({}, theme('colors')), { focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)' }));
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
export default semanticColors;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semanticColors.spec.d.ts","sourceRoot":"","sources":["../../src/config/semanticColors.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import semanticColors from './semanticColors';
|
|
2
|
+
describe('semantic colors', function () {
|
|
3
|
+
it('matches snapshot', function () {
|
|
4
|
+
expect(semanticColors.backgroundColor({ theme: function () { return ({}); } })).toMatchSnapshot();
|
|
5
|
+
expect(semanticColors.borderColor({ theme: function () { return ({}); } })).toMatchSnapshot();
|
|
6
|
+
expect(semanticColors.ringColor({ theme: function () { return ({}); } })).toMatchSnapshot();
|
|
7
|
+
expect(semanticColors.ringOffsetColor({ theme: function () { return ({}); } })).toMatchSnapshot();
|
|
8
|
+
expect(semanticColors.textColor({ theme: function () { return ({}); } })).toMatchSnapshot();
|
|
9
|
+
});
|
|
10
|
+
});
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.typography = exports.colors = void 0;
|
|
7
|
-
var colors_1 = __importDefault(require("./colors"));
|
|
8
|
-
exports.colors = colors_1.default;
|
|
9
|
-
var typography_1 = __importDefault(require("./typography"));
|
|
10
|
-
exports.typography = typography_1.default;
|
|
1
|
+
import tailwindTheme from './tailwindTheme';
|
|
2
|
+
export { tailwindTheme };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
fontFamily: {
|
|
3
|
+
sans: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
display: string;
|
|
6
|
+
mono: string;
|
|
7
|
+
};
|
|
8
|
+
fontSize: {
|
|
9
|
+
1: string;
|
|
10
|
+
2: string;
|
|
11
|
+
3: string;
|
|
12
|
+
4: string;
|
|
13
|
+
5: string;
|
|
14
|
+
6: string;
|
|
15
|
+
7: string;
|
|
16
|
+
8: string;
|
|
17
|
+
9: string;
|
|
18
|
+
};
|
|
19
|
+
lineHeight: {
|
|
20
|
+
none: string;
|
|
21
|
+
1: string;
|
|
22
|
+
2: string;
|
|
23
|
+
3: string;
|
|
24
|
+
4: string;
|
|
25
|
+
5: string;
|
|
26
|
+
6: string;
|
|
27
|
+
7: string;
|
|
28
|
+
8: string;
|
|
29
|
+
9: string;
|
|
30
|
+
};
|
|
31
|
+
colors: {
|
|
32
|
+
black: {
|
|
33
|
+
readonly "05": `var(--maxio-black-alpha-${string})`;
|
|
34
|
+
readonly 10: `var(--maxio-black-alpha-${string})`;
|
|
35
|
+
readonly 20: `var(--maxio-black-alpha-${string})`;
|
|
36
|
+
readonly 30: `var(--maxio-black-alpha-${string})`;
|
|
37
|
+
readonly 40: `var(--maxio-black-alpha-${string})`;
|
|
38
|
+
readonly 50: `var(--maxio-black-alpha-${string})`;
|
|
39
|
+
readonly 60: `var(--maxio-black-alpha-${string})`;
|
|
40
|
+
readonly 70: `var(--maxio-black-alpha-${string})`;
|
|
41
|
+
readonly 80: `var(--maxio-black-alpha-${string})`;
|
|
42
|
+
readonly 90: `var(--maxio-black-alpha-${string})`;
|
|
43
|
+
readonly 100: `var(--maxio-black-alpha-${string})`;
|
|
44
|
+
readonly 105: `var(--maxio-black-alpha-${string})`;
|
|
45
|
+
readonly DEFAULT: "var(--maxio-black-opaque)";
|
|
46
|
+
};
|
|
47
|
+
white: {
|
|
48
|
+
readonly "05": `var(--maxio-white-alpha-${string})`;
|
|
49
|
+
readonly 10: `var(--maxio-white-alpha-${string})`;
|
|
50
|
+
readonly 20: `var(--maxio-white-alpha-${string})`;
|
|
51
|
+
readonly 30: `var(--maxio-white-alpha-${string})`;
|
|
52
|
+
readonly 40: `var(--maxio-white-alpha-${string})`;
|
|
53
|
+
readonly 50: `var(--maxio-white-alpha-${string})`;
|
|
54
|
+
readonly 60: `var(--maxio-white-alpha-${string})`;
|
|
55
|
+
readonly 70: `var(--maxio-white-alpha-${string})`;
|
|
56
|
+
readonly 80: `var(--maxio-white-alpha-${string})`;
|
|
57
|
+
readonly 90: `var(--maxio-white-alpha-${string})`;
|
|
58
|
+
readonly 100: `var(--maxio-white-alpha-${string})`;
|
|
59
|
+
readonly 105: `var(--maxio-white-alpha-${string})`;
|
|
60
|
+
readonly DEFAULT: "var(--maxio-white-opaque)";
|
|
61
|
+
};
|
|
62
|
+
gray: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-gray-${string})`>;
|
|
63
|
+
blue: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-blue-${string})`>;
|
|
64
|
+
green: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-green-${string})`>;
|
|
65
|
+
purple: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-purple-${string})`>;
|
|
66
|
+
red: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-red-${string})`>;
|
|
67
|
+
yellow: Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--maxio-yellow-${string})`>;
|
|
68
|
+
current: string;
|
|
69
|
+
inherit: string;
|
|
70
|
+
transparent: string;
|
|
71
|
+
};
|
|
72
|
+
extend: {
|
|
73
|
+
backgroundColor: ({ theme }: {
|
|
74
|
+
theme: (key: string) => Record<string, string>;
|
|
75
|
+
}) => {
|
|
76
|
+
primary: string;
|
|
77
|
+
'primary-hover': string;
|
|
78
|
+
'primary-active': string;
|
|
79
|
+
secondary: string;
|
|
80
|
+
'secondary-hover': string;
|
|
81
|
+
'secondary-active': string;
|
|
82
|
+
tertiary: string;
|
|
83
|
+
'tertiary-hover': string;
|
|
84
|
+
'tertiary-active': string;
|
|
85
|
+
inverse: string;
|
|
86
|
+
'inverse-hover': string;
|
|
87
|
+
'inverse-active': string;
|
|
88
|
+
neutral: string;
|
|
89
|
+
info: string;
|
|
90
|
+
success: string;
|
|
91
|
+
warning: string;
|
|
92
|
+
danger: string;
|
|
93
|
+
highlight: string;
|
|
94
|
+
'fill-brand': string;
|
|
95
|
+
'fill-brand-hover': string;
|
|
96
|
+
'fill-brand-active': string;
|
|
97
|
+
'fill-neutral': string;
|
|
98
|
+
'fill-info': string;
|
|
99
|
+
'fill-success': string;
|
|
100
|
+
'fill-warning': string;
|
|
101
|
+
'fill-danger': string;
|
|
102
|
+
'fill-danger-hover': string;
|
|
103
|
+
'fill-danger-active': string;
|
|
104
|
+
'fill-highlight': string;
|
|
105
|
+
'fill-disabled': string;
|
|
106
|
+
};
|
|
107
|
+
borderColor: ({ theme }: {
|
|
108
|
+
theme: (key: string) => Record<string, string>;
|
|
109
|
+
}) => {
|
|
110
|
+
DEFAULT: string;
|
|
111
|
+
primary: string;
|
|
112
|
+
secondary: string;
|
|
113
|
+
tertiary: string;
|
|
114
|
+
inverse: string;
|
|
115
|
+
focus: string;
|
|
116
|
+
'focus-inset': string;
|
|
117
|
+
brand: string;
|
|
118
|
+
info: string;
|
|
119
|
+
'info-secondary': string;
|
|
120
|
+
success: string;
|
|
121
|
+
'success-secondary': string;
|
|
122
|
+
warning: string;
|
|
123
|
+
'warning-secondary': string;
|
|
124
|
+
danger: string;
|
|
125
|
+
'danger-secondary': string;
|
|
126
|
+
highlight: string;
|
|
127
|
+
'highlight-secondary': string;
|
|
128
|
+
avatar: string;
|
|
129
|
+
};
|
|
130
|
+
textColor: ({ theme }: {
|
|
131
|
+
theme: (key: string) => Record<string, string>;
|
|
132
|
+
}) => {
|
|
133
|
+
primary: string;
|
|
134
|
+
secondary: string;
|
|
135
|
+
tertiary: string;
|
|
136
|
+
inverse: string;
|
|
137
|
+
'on-bg-fill-disabled': string;
|
|
138
|
+
disabled: string;
|
|
139
|
+
danger: string;
|
|
140
|
+
'icon-primary': string;
|
|
141
|
+
'icon-secondary': string;
|
|
142
|
+
'icon-inverse': string;
|
|
143
|
+
'icon-disabled': string;
|
|
144
|
+
'icon-on-bg-fill-disabled': string;
|
|
145
|
+
'icon-neutral': string;
|
|
146
|
+
'icon-info': string;
|
|
147
|
+
'icon-success': string;
|
|
148
|
+
'icon-warning': string;
|
|
149
|
+
'icon-danger': string;
|
|
150
|
+
'icon-highlight': string;
|
|
151
|
+
link: string;
|
|
152
|
+
'link-high-contrast': string;
|
|
153
|
+
'link-hover': string;
|
|
154
|
+
'link-active': string;
|
|
155
|
+
};
|
|
156
|
+
ringColor: ({ theme }: {
|
|
157
|
+
theme: (key: string) => Record<string, string>;
|
|
158
|
+
}) => {
|
|
159
|
+
focus: string;
|
|
160
|
+
'focus-inset': string;
|
|
161
|
+
};
|
|
162
|
+
ringOffsetColor: ({ theme }: {
|
|
163
|
+
theme: (key: string) => Record<string, string>;
|
|
164
|
+
}) => {
|
|
165
|
+
focus: string;
|
|
166
|
+
'focus-inset': string;
|
|
167
|
+
};
|
|
168
|
+
boxShadow: {
|
|
169
|
+
dropdown: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
export default _default;
|
|
174
|
+
//# sourceMappingURL=tailwindTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwindTheme.d.ts","sourceRoot":"","sources":["../src/tailwindTheme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAgBE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { colors, lineHeight, fontFamily, fontSize, semanticColors, } from './config';
|
|
13
|
+
export default {
|
|
14
|
+
fontFamily: fontFamily,
|
|
15
|
+
fontSize: fontSize,
|
|
16
|
+
lineHeight: lineHeight,
|
|
17
|
+
colors: __assign({ current: 'currentColor', inherit: 'inherit', transparent: 'transparent' }, colors),
|
|
18
|
+
extend: __assign({ boxShadow: {
|
|
19
|
+
dropdown: '0px 4px 4px rgba(0, 0, 0, 0.25)',
|
|
20
|
+
} }, semanticColors),
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwindTheme.spec.d.ts","sourceRoot":"","sources":["../src/tailwindTheme.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateColorSet.d.ts","sourceRoot":"","sources":["../../src/utils/generateColorSet.ts"],"names":[],"mappings":"AAiBA,QAAA,MAAM,gBAAgB,+JAWrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var COLOR_KEYS = [
|
|
2
|
+
'05',
|
|
3
|
+
'10',
|
|
4
|
+
'20',
|
|
5
|
+
'30',
|
|
6
|
+
'40',
|
|
7
|
+
'50',
|
|
8
|
+
'60',
|
|
9
|
+
'70',
|
|
10
|
+
'80',
|
|
11
|
+
'90',
|
|
12
|
+
'100',
|
|
13
|
+
'105',
|
|
14
|
+
];
|
|
15
|
+
var generateColorSet = function (variablePrefix) {
|
|
16
|
+
var set = {};
|
|
17
|
+
COLOR_KEYS.forEach(function (key) {
|
|
18
|
+
set[key] = "var(--".concat(variablePrefix, "-").concat(key, ")");
|
|
19
|
+
});
|
|
20
|
+
return set;
|
|
21
|
+
};
|
|
22
|
+
export default generateColorSet;
|
package/dist/variables.css
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
:root, [data-maxio-mode='light'] {
|
|
2
|
-
/* privimitive colors - DEPRECATED */
|
|
3
|
-
--maxio-white: #ffffff;
|
|
4
|
-
--maxio-black: #000000;
|
|
5
|
-
|
|
6
2
|
/* primitive colors */
|
|
7
3
|
--maxio-black-opaque: hsl(0 0% 0%);
|
|
8
4
|
--maxio-black-alpha-05: hsl(0 0% 0% / 0.04);
|
|
@@ -113,7 +109,7 @@
|
|
|
113
109
|
/* typography */
|
|
114
110
|
--maxio-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, San Francisco,
|
|
115
111
|
Segoe UI, Roboto, Helvetica Neue, sans-serif;
|
|
116
|
-
--maxio-font-icons: '
|
|
112
|
+
--maxio-font-icons: 'Font Awesome Kit', sans-serif;
|
|
117
113
|
--maxio-font-display: 'Founders Grotesk', -apple-system, BlinkMacSystemFont,
|
|
118
114
|
San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif;
|
|
119
115
|
--maxio-font-mono: ui-monospace, SFMono-Regular, SF Mono, 'Segoe UI Mono',
|
|
@@ -224,7 +220,6 @@
|
|
|
224
220
|
}
|
|
225
221
|
|
|
226
222
|
/* semantic tokens for dark mode */
|
|
227
|
-
[data-maxio-dark-mode],
|
|
228
223
|
[data-maxio-mode='dark'] {
|
|
229
224
|
/* background colors */
|
|
230
225
|
--maxio-color-bg-primary: var(--maxio-black-opaque);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxio-com/design-tokens",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Design Tokens definition",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "b7bb0b7d18908d59226ca532e22bfc7fea8ab4c8"
|
|
32
32
|
}
|
package/dist/colors.d.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
declare const colors: {
|
|
2
|
-
white: string;
|
|
3
|
-
black: string;
|
|
4
|
-
gray: {
|
|
5
|
-
'05': string;
|
|
6
|
-
'10': string;
|
|
7
|
-
'20': string;
|
|
8
|
-
'30': string;
|
|
9
|
-
'40': string;
|
|
10
|
-
'50': string;
|
|
11
|
-
'60': string;
|
|
12
|
-
'70': string;
|
|
13
|
-
'80': string;
|
|
14
|
-
'90': string;
|
|
15
|
-
'100': string;
|
|
16
|
-
'105': string;
|
|
17
|
-
};
|
|
18
|
-
blue: {
|
|
19
|
-
'05': string;
|
|
20
|
-
'10': string;
|
|
21
|
-
'20': string;
|
|
22
|
-
'30': string;
|
|
23
|
-
'40': string;
|
|
24
|
-
'50': string;
|
|
25
|
-
'60': string;
|
|
26
|
-
'70': string;
|
|
27
|
-
'80': string;
|
|
28
|
-
'90': string;
|
|
29
|
-
'100': string;
|
|
30
|
-
'105': string;
|
|
31
|
-
};
|
|
32
|
-
red: {
|
|
33
|
-
'05': string;
|
|
34
|
-
'10': string;
|
|
35
|
-
'20': string;
|
|
36
|
-
'30': string;
|
|
37
|
-
'40': string;
|
|
38
|
-
'50': string;
|
|
39
|
-
'60': string;
|
|
40
|
-
'70': string;
|
|
41
|
-
'80': string;
|
|
42
|
-
'90': string;
|
|
43
|
-
'100': string;
|
|
44
|
-
'105': string;
|
|
45
|
-
};
|
|
46
|
-
green: {
|
|
47
|
-
'05': string;
|
|
48
|
-
'10': string;
|
|
49
|
-
'20': string;
|
|
50
|
-
'30': string;
|
|
51
|
-
'40': string;
|
|
52
|
-
'50': string;
|
|
53
|
-
'60': string;
|
|
54
|
-
'70': string;
|
|
55
|
-
'80': string;
|
|
56
|
-
'90': string;
|
|
57
|
-
'100': string;
|
|
58
|
-
'105': string;
|
|
59
|
-
};
|
|
60
|
-
yellow: {
|
|
61
|
-
'05': string;
|
|
62
|
-
'10': string;
|
|
63
|
-
'20': string;
|
|
64
|
-
'30': string;
|
|
65
|
-
'40': string;
|
|
66
|
-
'50': string;
|
|
67
|
-
'60': string;
|
|
68
|
-
'70': string;
|
|
69
|
-
'80': string;
|
|
70
|
-
'90': string;
|
|
71
|
-
'100': string;
|
|
72
|
-
'105': string;
|
|
73
|
-
};
|
|
74
|
-
purple: {
|
|
75
|
-
'05': string;
|
|
76
|
-
'10': string;
|
|
77
|
-
'20': string;
|
|
78
|
-
'30': string;
|
|
79
|
-
'40': string;
|
|
80
|
-
'50': string;
|
|
81
|
-
'60': string;
|
|
82
|
-
'70': string;
|
|
83
|
-
'80': string;
|
|
84
|
-
'90': string;
|
|
85
|
-
'100': string;
|
|
86
|
-
'105': string;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
export default colors;
|
|
90
|
-
//# sourceMappingURL=colors.d.ts.map
|
package/dist/colors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../src/colors.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuFX,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/colors.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var colors = {
|
|
4
|
-
white: '#FFFFFF',
|
|
5
|
-
black: '#000000',
|
|
6
|
-
gray: {
|
|
7
|
-
'05': '#F5F5F5',
|
|
8
|
-
'10': '#E9E9E9',
|
|
9
|
-
'20': '#D9D9D9',
|
|
10
|
-
'30': '#C7C7C7',
|
|
11
|
-
'40': '#B4B4B4',
|
|
12
|
-
'50': '#A2A2A2',
|
|
13
|
-
'60': '#8F8F8F',
|
|
14
|
-
'70': '#797979',
|
|
15
|
-
'80': '#636363',
|
|
16
|
-
'90': '#4A4A4A',
|
|
17
|
-
'100': '#2E2E2E',
|
|
18
|
-
'105': '#1F1F1F',
|
|
19
|
-
},
|
|
20
|
-
blue: {
|
|
21
|
-
'05': '#E7F4FD',
|
|
22
|
-
'10': '#D6EDFC',
|
|
23
|
-
'20': '#B3DFF9',
|
|
24
|
-
'30': '#8ECFF6',
|
|
25
|
-
'40': '#63BEF2',
|
|
26
|
-
'50': '#30A9F6',
|
|
27
|
-
'60': '#008EFB',
|
|
28
|
-
'70': '#006BE5',
|
|
29
|
-
'80': '#0046FF',
|
|
30
|
-
'90': '#0010DE',
|
|
31
|
-
'100': '#220084',
|
|
32
|
-
'105': '#1C0055',
|
|
33
|
-
},
|
|
34
|
-
red: {
|
|
35
|
-
'05': '#FFF0F0',
|
|
36
|
-
'10': '#FFE3E2',
|
|
37
|
-
'20': '#FFCCCB',
|
|
38
|
-
'30': '#FFB3B2',
|
|
39
|
-
'40': '#FF9798',
|
|
40
|
-
'50': '#FC787C',
|
|
41
|
-
'60': '#F5515E',
|
|
42
|
-
'70': '#E12648',
|
|
43
|
-
'80': '#BA1140',
|
|
44
|
-
'90': '#8E002B',
|
|
45
|
-
'100': '#580005',
|
|
46
|
-
'105': '#3A0000',
|
|
47
|
-
},
|
|
48
|
-
green: {
|
|
49
|
-
'05': '#E5FAC2',
|
|
50
|
-
'10': '#D6F59E',
|
|
51
|
-
'20': '#B5E95A',
|
|
52
|
-
'30': '#93D965',
|
|
53
|
-
'40': '#72C86C',
|
|
54
|
-
'50': '#54B46F',
|
|
55
|
-
'60': '#389F6E',
|
|
56
|
-
'70': '#1F8869',
|
|
57
|
-
'80': '#006F53',
|
|
58
|
-
'90': '#00543A',
|
|
59
|
-
'100': '#00341D',
|
|
60
|
-
'105': '#00240E',
|
|
61
|
-
},
|
|
62
|
-
yellow: {
|
|
63
|
-
'05': '#FFF3B8',
|
|
64
|
-
'10': '#FFEA85',
|
|
65
|
-
'20': '#FFD43E',
|
|
66
|
-
'30': '#FFBA3B',
|
|
67
|
-
'40': '#F6A236',
|
|
68
|
-
'50': '#E18F18',
|
|
69
|
-
'60': '#CB7A00',
|
|
70
|
-
'70': '#B36500',
|
|
71
|
-
'80': '#994D00',
|
|
72
|
-
'90': '#7C3200',
|
|
73
|
-
'100': '#570A00',
|
|
74
|
-
'105': '#3A0000',
|
|
75
|
-
},
|
|
76
|
-
purple: {
|
|
77
|
-
'05': '#FFEBFF',
|
|
78
|
-
'10': '#FFE0FF',
|
|
79
|
-
'20': '#FFC6FF',
|
|
80
|
-
'30': '#FFA9FF',
|
|
81
|
-
'40': '#FF86FF',
|
|
82
|
-
'50': '#F267F7',
|
|
83
|
-
'60': '#D456E5',
|
|
84
|
-
'70': '#B544D1',
|
|
85
|
-
'80': '#932FBA',
|
|
86
|
-
'90': '#6F119D',
|
|
87
|
-
'100': '#40006B',
|
|
88
|
-
'105': '#26004C',
|
|
89
|
-
},
|
|
90
|
-
};
|
|
91
|
-
exports.default = colors;
|
package/dist/typography.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export declare const fontSize: {
|
|
2
|
-
readonly 1: "0.75rem";
|
|
3
|
-
readonly 2: "0.875rem";
|
|
4
|
-
readonly 3: "1rem";
|
|
5
|
-
readonly 4: "1.25rem";
|
|
6
|
-
readonly 5: "1.5rem";
|
|
7
|
-
readonly 6: "1.875rem";
|
|
8
|
-
readonly 7: "2.25rem";
|
|
9
|
-
readonly 8: "3rem";
|
|
10
|
-
readonly 9: "3.75rem";
|
|
11
|
-
};
|
|
12
|
-
export declare const lineHeight: {
|
|
13
|
-
readonly 1: "1rem";
|
|
14
|
-
readonly 2: "1.125rem";
|
|
15
|
-
readonly 3: "1.25rem";
|
|
16
|
-
readonly 4: "1.5rem";
|
|
17
|
-
readonly 5: "1.75rem";
|
|
18
|
-
readonly 6: "2rem";
|
|
19
|
-
readonly 7: "2.25rem";
|
|
20
|
-
readonly 8: "3rem";
|
|
21
|
-
readonly 9: "3.5rem";
|
|
22
|
-
readonly none: 1;
|
|
23
|
-
};
|
|
24
|
-
declare const _default: {
|
|
25
|
-
fontSans: string;
|
|
26
|
-
fontIcons: string;
|
|
27
|
-
fontDisplay: string;
|
|
28
|
-
fontMono: string;
|
|
29
|
-
fontSize: {
|
|
30
|
-
readonly 1: "0.75rem";
|
|
31
|
-
readonly 2: "0.875rem";
|
|
32
|
-
readonly 3: "1rem";
|
|
33
|
-
readonly 4: "1.25rem";
|
|
34
|
-
readonly 5: "1.5rem";
|
|
35
|
-
readonly 6: "1.875rem";
|
|
36
|
-
readonly 7: "2.25rem";
|
|
37
|
-
readonly 8: "3rem";
|
|
38
|
-
readonly 9: "3.75rem";
|
|
39
|
-
};
|
|
40
|
-
lineHeight: {
|
|
41
|
-
readonly 1: "1rem";
|
|
42
|
-
readonly 2: "1.125rem";
|
|
43
|
-
readonly 3: "1.25rem";
|
|
44
|
-
readonly 4: "1.5rem";
|
|
45
|
-
readonly 5: "1.75rem";
|
|
46
|
-
readonly 6: "2rem";
|
|
47
|
-
readonly 7: "2.25rem";
|
|
48
|
-
readonly 8: "3rem";
|
|
49
|
-
readonly 9: "3.5rem";
|
|
50
|
-
readonly none: 1;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
export default _default;
|
|
54
|
-
//# sourceMappingURL=typography.d.ts.map
|
package/dist/typography.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../src/typography.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;CAUX,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;;CAWb,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEX,wBAUE"}
|
package/dist/typography.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.lineHeight = exports.fontSize = void 0;
|
|
4
|
-
exports.fontSize = {
|
|
5
|
-
1: '0.75rem',
|
|
6
|
-
2: '0.875rem',
|
|
7
|
-
3: '1rem',
|
|
8
|
-
4: '1.25rem',
|
|
9
|
-
5: '1.5rem',
|
|
10
|
-
6: '1.875rem',
|
|
11
|
-
7: '2.25rem',
|
|
12
|
-
8: '3rem',
|
|
13
|
-
9: '3.75rem',
|
|
14
|
-
};
|
|
15
|
-
exports.lineHeight = {
|
|
16
|
-
1: '1rem',
|
|
17
|
-
2: '1.125rem',
|
|
18
|
-
3: '1.25rem',
|
|
19
|
-
4: '1.5rem',
|
|
20
|
-
5: '1.75rem',
|
|
21
|
-
6: '2rem',
|
|
22
|
-
7: '2.25rem',
|
|
23
|
-
8: '3rem',
|
|
24
|
-
9: '3.5rem',
|
|
25
|
-
none: 1,
|
|
26
|
-
};
|
|
27
|
-
exports.default = {
|
|
28
|
-
fontSans: "'Inter', -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif",
|
|
29
|
-
fontIcons: "'maxio-icons', sans-serif",
|
|
30
|
-
fontDisplay: "'Founders Grotesk', -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif",
|
|
31
|
-
fontMono: "ui-monospace, SFMono-Regular, SF Mono, 'Segoe UI Mono', 'Roboto Mono', 'Ubuntu Mono', Menlo, Consolas, Courier, monospace",
|
|
32
|
-
fontSize: exports.fontSize,
|
|
33
|
-
lineHeight: exports.lineHeight,
|
|
34
|
-
};
|