@maxio-com/design-tokens 4.0.0 → 4.1.1

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.
Files changed (41) hide show
  1. package/README.md +15 -2
  2. package/dist/config/colors.d.ts +40 -0
  3. package/dist/config/colors.d.ts.map +1 -0
  4. package/dist/config/colors.js +28 -0
  5. package/dist/config/fontFamily.d.ts +8 -0
  6. package/dist/config/fontFamily.d.ts.map +1 -0
  7. package/dist/config/fontFamily.js +9 -0
  8. package/dist/config/fontSize.d.ts +13 -0
  9. package/dist/config/fontSize.d.ts.map +1 -0
  10. package/dist/config/fontSize.js +14 -0
  11. package/dist/config/index.d.ts +6 -0
  12. package/dist/config/index.d.ts.map +1 -0
  13. package/dist/config/index.js +16 -0
  14. package/dist/config/lineHeight.d.ts +14 -0
  15. package/dist/config/lineHeight.d.ts.map +1 -0
  16. package/dist/config/lineHeight.js +15 -0
  17. package/dist/config/semanticColors.d.ts +100 -0
  18. package/dist/config/semanticColors.d.ts.map +1 -0
  19. package/dist/config/semanticColors.js +36 -0
  20. package/dist/config/semanticColors.spec.d.ts +2 -0
  21. package/dist/config/semanticColors.spec.d.ts.map +1 -0
  22. package/dist/config/semanticColors.spec.js +15 -0
  23. package/dist/index.d.ts +2 -3
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +3 -5
  26. package/dist/tailwindTheme.d.ts +174 -0
  27. package/dist/tailwindTheme.d.ts.map +1 -0
  28. package/dist/tailwindTheme.js +23 -0
  29. package/dist/tailwindTheme.spec.d.ts +2 -0
  30. package/dist/tailwindTheme.spec.d.ts.map +1 -0
  31. package/dist/tailwindTheme.spec.js +11 -0
  32. package/dist/utils/generateColorSet.d.ts +3 -0
  33. package/dist/utils/generateColorSet.d.ts.map +1 -0
  34. package/dist/utils/generateColorSet.js +24 -0
  35. package/package.json +2 -2
  36. package/dist/colors.d.ts +0 -90
  37. package/dist/colors.d.ts.map +0 -1
  38. package/dist/colors.js +0 -91
  39. package/dist/typography.d.ts +0 -54
  40. package/dist/typography.d.ts.map +0 -1
  41. 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
- For backwards compatibility, some of the primitive tokens are also available as JavaScript variables - however you should prefer using the CSS variables.
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,28 @@
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
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
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;
@@ -0,0 +1,8 @@
1
+ declare const fontFamily: {
2
+ sans: string;
3
+ icon: string;
4
+ display: string;
5
+ mono: string;
6
+ };
7
+ export default fontFamily;
8
+ //# sourceMappingURL=fontFamily.d.ts.map
@@ -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,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var fontFamily = {
4
+ sans: 'var(--maxio-font-sans)',
5
+ icon: 'var(--maxio-font-icons)',
6
+ display: 'var(--maxio-font-display)',
7
+ mono: 'var(--maxio-font-mono)',
8
+ };
9
+ exports.default = fontFamily;
@@ -0,0 +1,13 @@
1
+ declare const fontSize: {
2
+ 1: string;
3
+ 2: string;
4
+ 3: string;
5
+ 4: string;
6
+ 5: string;
7
+ 6: string;
8
+ 7: string;
9
+ 8: string;
10
+ 9: string;
11
+ };
12
+ export default fontSize;
13
+ //# sourceMappingURL=fontSize.d.ts.map
@@ -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,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var fontSize = {
4
+ 1: 'var(--maxio-font-size-1)',
5
+ 2: 'var(--maxio-font-size-2)',
6
+ 3: 'var(--maxio-font-size-3)',
7
+ 4: 'var(--maxio-font-size-4)',
8
+ 5: 'var(--maxio-font-size-5)',
9
+ 6: 'var(--maxio-font-size-6)',
10
+ 7: 'var(--maxio-font-size-7)',
11
+ 8: 'var(--maxio-font-size-8)',
12
+ 9: 'var(--maxio-font-size-9)',
13
+ };
14
+ exports.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,16 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
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; } });
@@ -0,0 +1,14 @@
1
+ declare const lineHeight: {
2
+ none: string;
3
+ 1: string;
4
+ 2: string;
5
+ 3: string;
6
+ 4: string;
7
+ 5: string;
8
+ 6: string;
9
+ 7: string;
10
+ 8: string;
11
+ 9: string;
12
+ };
13
+ export default lineHeight;
14
+ //# sourceMappingURL=lineHeight.d.ts.map
@@ -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,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var lineHeight = {
4
+ none: 'var(--maxio-line-height-none)',
5
+ 1: 'var(--maxio-line-height-1)',
6
+ 2: 'var(--maxio-line-height-2)',
7
+ 3: 'var(--maxio-line-height-3)',
8
+ 4: 'var(--maxio-line-height-4)',
9
+ 5: 'var(--maxio-line-height-5)',
10
+ 6: 'var(--maxio-line-height-6)',
11
+ 7: 'var(--maxio-line-height-7)',
12
+ 8: 'var(--maxio-line-height-8)',
13
+ 9: 'var(--maxio-line-height-9)',
14
+ };
15
+ exports.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,36 @@
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
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
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;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=semanticColors.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"semanticColors.spec.d.ts","sourceRoot":"","sources":["../../src/config/semanticColors.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var semanticColors_1 = __importDefault(require("./semanticColors"));
7
+ describe('semantic colors', function () {
8
+ it('matches snapshot', function () {
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();
14
+ });
15
+ });
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import colors from './colors';
2
- import typography from './typography';
3
- export { colors, typography };
1
+ import tailwindTheme from './tailwindTheme';
2
+ export { tailwindTheme };
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC"}
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
@@ -3,8 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
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;
6
+ exports.tailwindTheme = void 0;
7
+ var tailwindTheme_1 = __importDefault(require("./tailwindTheme"));
8
+ exports.tailwindTheme = tailwindTheme_1.default;
@@ -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,23 @@
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
+ };
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: {
21
+ dropdown: '0px 4px 4px rgba(0, 0, 0, 0.25)',
22
+ } }, config_1.semanticColors),
23
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tailwindTheme.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tailwindTheme.spec.d.ts","sourceRoot":"","sources":["../src/tailwindTheme.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
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();
10
+ });
11
+ });
@@ -0,0 +1,3 @@
1
+ declare const generateColorSet: <T extends string>(variablePrefix: T) => Record<"05" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90" | "100" | "105", `var(--${T}-${string})`>;
2
+ export default generateColorSet;
3
+ //# sourceMappingURL=generateColorSet.d.ts.map
@@ -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,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var COLOR_KEYS = [
4
+ '05',
5
+ '10',
6
+ '20',
7
+ '30',
8
+ '40',
9
+ '50',
10
+ '60',
11
+ '70',
12
+ '80',
13
+ '90',
14
+ '100',
15
+ '105',
16
+ ];
17
+ var generateColorSet = function (variablePrefix) {
18
+ var set = {};
19
+ COLOR_KEYS.forEach(function (key) {
20
+ set[key] = "var(--".concat(variablePrefix, "-").concat(key, ")");
21
+ });
22
+ return set;
23
+ };
24
+ exports.default = generateColorSet;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxio-com/design-tokens",
3
- "version": "4.0.0",
3
+ "version": "4.1.1",
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": "f80f547649173a32534d0e15087a537df7d83d7e"
31
+ "gitHead": "33a4ba5fc9951439f3e965c38d5fce177ff47dfd"
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
@@ -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;
@@ -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
@@ -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"}
@@ -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: "'Font Awesome Kit', 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
- };