@aziontech/theme 1.12.0 → 2.0.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.
Files changed (76) hide show
  1. package/README.md +1 -1
  2. package/package.json +19 -21
  3. package/src/scripts/build-tokens.mjs +391 -0
  4. package/src/scripts/compile-primitives.js +165 -0
  5. package/src/scripts/compile-theme.js +117 -0
  6. package/src/{tokens/build → scripts}/css-vars.js +10 -9
  7. package/src/{tokens/build → scripts}/resolve.js +2 -0
  8. package/src/tests/primitives.html +293 -0
  9. package/src/tests/theme.html +310 -0
  10. package/src/tests/tokens.html +84 -0
  11. package/src/tokens/README.md +306 -272
  12. package/src/tokens/index.js +4 -12
  13. package/src/tokens/primitives/animations/animate.js +8 -0
  14. package/src/tokens/primitives/animations/ease.js +7 -0
  15. package/src/tokens/primitives/border-widths.js +9 -0
  16. package/src/tokens/primitives/breakpoints.js +9 -0
  17. package/src/tokens/primitives/colors/alpha.js +104 -0
  18. package/src/tokens/primitives/colors/brand.js +40 -0
  19. package/src/tokens/primitives/colors/colors.js +142 -0
  20. package/src/tokens/primitives/effects/blur.js +11 -0
  21. package/src/tokens/primitives/effects/drop-shadow.js +10 -0
  22. package/src/tokens/primitives/effects/inset-shadow.js +7 -0
  23. package/src/tokens/primitives/effects/opacity.js +8 -0
  24. package/src/tokens/primitives/effects/perspective.js +9 -0
  25. package/src/tokens/primitives/effects/shadow.js +11 -0
  26. package/src/tokens/primitives/ring-offset.js +5 -0
  27. package/src/tokens/primitives/shape/aspect-video.js +3 -0
  28. package/src/tokens/primitives/shape/container.js +17 -0
  29. package/src/tokens/primitives/shape/height.js +32 -0
  30. package/src/tokens/primitives/shape/radius.js +13 -0
  31. package/src/tokens/primitives/shape/shape.js +12 -0
  32. package/src/tokens/primitives/shape/size.js +32 -0
  33. package/src/tokens/primitives/shape/spacing.js +33 -0
  34. package/src/tokens/primitives/shape/width.js +19 -0
  35. package/src/tokens/primitives/typography/font-family.js +7 -0
  36. package/src/tokens/primitives/typography/font-size.js +30 -0
  37. package/src/tokens/primitives/typography/font-weight.js +13 -0
  38. package/src/tokens/primitives/typography/leading.js +9 -0
  39. package/src/tokens/primitives/typography/line-height.js +13 -0
  40. package/src/tokens/primitives/typography/tracking.js +10 -0
  41. package/src/{tailwind/semantic-animations-plugin.js → tokens/semantic/animations.js} +3 -21
  42. package/src/tokens/semantic/colors.js +138 -0
  43. package/src/tokens/semantic/containers.data.js +18 -0
  44. package/src/tokens/semantic/containers.js +70 -0
  45. package/src/tokens/semantic/spacings.data.js +18 -0
  46. package/src/tokens/semantic/spacings.js +163 -0
  47. package/src/tokens/semantic/texts.data.js +103 -0
  48. package/src/{tailwind/semantic-texts-plugin.js → tokens/semantic/texts.js} +91 -70
  49. package/src/tokens/theme/accent.js +18 -0
  50. package/src/tokens/theme/background.js +32 -0
  51. package/src/tokens/theme/border.js +18 -0
  52. package/src/tokens/theme/feedback/danger.js +16 -0
  53. package/src/tokens/theme/feedback/info.js +16 -0
  54. package/src/tokens/theme/feedback/success.js +16 -0
  55. package/src/tokens/theme/feedback/warning.js +16 -0
  56. package/src/tokens/theme/primary.js +18 -0
  57. package/src/tokens/theme/ring.js +12 -0
  58. package/src/tokens/theme/secondary.js +18 -0
  59. package/src/tokens/theme/surfaces.js +23 -0
  60. package/src/tokens/theme/text.js +18 -0
  61. package/src/tokens/theme.js +32 -0
  62. package/colors-brand.js +0 -24
  63. package/src/tailwind/semantic-colors-plugin.js +0 -91
  64. package/src/tailwind/semantic-spacing-plugin.js +0 -151
  65. package/src/tailwind/tailwind-theme.js +0 -54
  66. package/src/tokens/build/preset.js +0 -62
  67. package/src/tokens/build/tailwind-flat-colors.js +0 -75
  68. package/src/tokens/build/tailwind-helper.js +0 -12
  69. package/src/tokens/build/tailwind-plugin.js +0 -175
  70. package/src/tokens/colors-brand.js +0 -24
  71. package/src/tokens/primitives/brand.js +0 -69
  72. package/src/tokens/primitives/colors.js +0 -144
  73. package/src/tokens/semantic/backgrounds.js +0 -46
  74. package/src/tokens/semantic/borders.js +0 -44
  75. package/src/tokens/semantic/text.js +0 -48
  76. /package/src/{tokens/build → scripts}/refs.js +0 -0
@@ -2,15 +2,7 @@
2
2
  * Tokens public exports.
3
3
  */
4
4
 
5
- export * from './primitives/colors.js';
6
- export * from './primitives/brand.js';
7
- export * from './colors-brand.js';
8
- export * from './semantic/text.js';
9
- export * from './semantic/backgrounds.js';
10
- export * from './semantic/borders.js';
11
- export * from './build/refs.js';
12
- export * from './build/resolve.js';
13
- export * from './build/css-vars.js';
14
- export * from './build/preset.js';
15
- export * from './build/tailwind-helper.js';
16
- export * from './build/tailwind-plugin.js';
5
+ export { createCssVars, cssVarsString, injectCssVars } from '../scripts/css-vars.js';
6
+ export * from './primitives/colors/colors.js';
7
+ export * from './semantic/colors.js';
8
+ export * from './theme.js';
@@ -0,0 +1,8 @@
1
+ export const animate = {
2
+ spin: 'spin 1s linear infinite',
3
+ ping: 'ping 1s cubic-bezier(0, 0, 0.2, 1) infinite',
4
+ pulse: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
5
+ bounce: 'bounce 1s infinite',
6
+ };
7
+
8
+ export default { animate };
@@ -0,0 +1,7 @@
1
+ export const ease = {
2
+ in: 'cubic-bezier(0.4, 0, 1, 1)',
3
+ out: 'cubic-bezier(0, 0, 0.2, 1)',
4
+ 'in-out': 'cubic-bezier(0.4, 0, 0.2, 1)',
5
+ };
6
+
7
+ export default { ease };
@@ -0,0 +1,9 @@
1
+ export const borderWidths = {
2
+ 0: '0',
3
+ 1: '0.8px',
4
+ 2: '2px',
5
+ 3: '3px',
6
+ 4: '4px',
7
+ };
8
+
9
+ export default { borderWidths };
@@ -0,0 +1,9 @@
1
+ export const breakpoints = {
2
+ sm: '640px',
3
+ md: '768px',
4
+ lg: '1024px',
5
+ xl: '1280px',
6
+ '2xl': '1536px',
7
+ };
8
+
9
+ export default { breakpoints };
@@ -0,0 +1,104 @@
1
+ export const alpha = {
2
+ violet: {
3
+ '50': '#8A84EC0D',
4
+ '100': '#8A84EC1A',
5
+ '200': '#8A84EC33',
6
+ '300': '#8A84EC4D',
7
+ '400': '#8A84EC66',
8
+ '500': '#8A84EC80',
9
+ '600': '#8A84EC99',
10
+ '700': '#8A84ECB2',
11
+ '800': '#8A84ECCC',
12
+ '900': '#8A84ECE5',
13
+ },
14
+ orange: {
15
+ '50': '#FE601F0D',
16
+ '100': '#FE601F1A',
17
+ '200': '#FE601F33',
18
+ '300': '#FE601F4D',
19
+ '400': '#FE601F66',
20
+ '500': '#FE601F80',
21
+ '600': '#FE601F99',
22
+ '700': '#FE601FB2',
23
+ '800': '#FE601FCC',
24
+ '900': '#FE601FE5',
25
+ },
26
+ white: {
27
+ '50': '#FFFFFF0D',
28
+ '100': '#FFFFFF1A',
29
+ '200': '#FFFFFF33',
30
+ '300': '#FFFFFF4D',
31
+ '400': '#FFFFFF66',
32
+ '500': '#FFFFFF80',
33
+ '600': '#FFFFFF99',
34
+ '700': '#FFFFFFB2',
35
+ '800': '#FFFFFFCC',
36
+ '900': '#FFFFFFE5',
37
+ },
38
+ black: {
39
+ '50': '#00000005',
40
+ '100': '#0000000D',
41
+ '200': '#00000033',
42
+ '300': '#0000004D',
43
+ '400': '#00000066',
44
+ '500': '#00000080',
45
+ '600': '#00000099',
46
+ '700': '#000000B2',
47
+ '800': '#000000CC',
48
+ '900': '#000000E5',
49
+ },
50
+ green: {
51
+ '50': '#22C55E0D',
52
+ '100': '#22C55E1A',
53
+ '200': '#22C55E33',
54
+ '300': '#22C55E4D',
55
+ '400': '#22C55E66',
56
+ '500': '#22C55E80',
57
+ '600': '#22C55E99',
58
+ '700': '#22C55EB2',
59
+ '800': '#22C55ECC',
60
+ '900': '#22C55EE5',
61
+ },
62
+ red: {
63
+ '50': '#EF44440D',
64
+ '100': '#EF44441A',
65
+ '200': '#EF444433',
66
+ '300': '#EF44444D',
67
+ '400': '#EF444466',
68
+ '500': '#EF444480',
69
+ '600': '#EF444499',
70
+ '700': '#EF4444B2',
71
+ '800': '#EF4444CC',
72
+ '900': '#EF4444E5',
73
+ },
74
+ yellow: {
75
+ '50': '#F7BD080D',
76
+ '100': '#F7BD081A',
77
+ '200': '#F7BD0833',
78
+ '300': '#F7BD084D',
79
+ '400': '#F7BD0866',
80
+ '500': '#F7BD0880',
81
+ '600': '#F7BD0899',
82
+ '700': '#F7BD08B2',
83
+ '800': '#F7BD08CC',
84
+ '900': '#F7BD08E5',
85
+ },
86
+ blue: {
87
+ '50': '#E5F1FF0D',
88
+ '100': '#CCE4FF1A',
89
+ '200': '#99C9FF33',
90
+ '300': '#66ADFF4D',
91
+ '400': '#3392FF66',
92
+ '500': '#0072F580',
93
+ '600': '#005FCC99',
94
+ '700': '#004799B2',
95
+ '800': '#003066CC',
96
+ '900': '#001833E5',
97
+ },
98
+ absolute: {
99
+ black: '#000000E5',
100
+ white: '#FFFFFFE5',
101
+ },
102
+ };
103
+
104
+ export default { alpha };
@@ -0,0 +1,40 @@
1
+ export const brand = {
2
+ primary: {
3
+ '50': '#FFF5EF',
4
+ '100': '#FFE7D8',
5
+ '200': '#FFCFB3',
6
+ '300': '#FFB180',
7
+ '400': '#FF8E4D',
8
+ '500': '#FE601F',
9
+ '600': '#D94A03',
10
+ '700': '#B03C02',
11
+ '800': '#8A2F02',
12
+ '900': '#692402',
13
+ '950': '#401602',
14
+ },
15
+ accent: {
16
+ '50': '#F6F6FF',
17
+ '100': '#ECECFF',
18
+ '200': '#D9D7FA',
19
+ '300': '#B5B1F4',
20
+ '400': '#9F9AF1',
21
+ '500': '#8A84EC',
22
+ '600': '#756FE5',
23
+ '700': '#625BD5',
24
+ '800': '#524BBB',
25
+ '900': '#423F99',
26
+ '950': '#0B0A19',
27
+ },
28
+ absolute: {
29
+ black: '#0A0A0A',
30
+ white: '#FCFCFC',
31
+ },
32
+ };
33
+
34
+ export const brandPrimitives = {
35
+ primary: brand.primary,
36
+ accent: brand.accent,
37
+ absolute: brand.absolute,
38
+ };
39
+
40
+ export default { brand, brandPrimitives };
@@ -0,0 +1,142 @@
1
+ import { alpha } from './alpha.js';
2
+ import { brand, brandPrimitives } from './brand.js';
3
+
4
+ export { brandPrimitives };
5
+
6
+ export const primitives = {
7
+ base: {
8
+ white: '#FFFFFF',
9
+ black: '#000000',
10
+ },
11
+ blue: {
12
+ '50': '#E5F1FF',
13
+ '100': '#CCE4FF',
14
+ '200': '#99C9FF',
15
+ '300': '#66ADFF',
16
+ '400': '#3392FF',
17
+ '500': '#0072F5',
18
+ '600': '#005FCC',
19
+ '700': '#004799',
20
+ '800': '#003066',
21
+ '900': '#001833',
22
+ '950': '#000C1A',
23
+ },
24
+ gray: {
25
+ '50': '#FCFCFC',
26
+ '100': '#F2F2F2',
27
+ '200': '#E5E5E5',
28
+ '300': '#B2B2B2',
29
+ '400': '#999999',
30
+ '500': '#808080',
31
+ '600': '#666666',
32
+ '700': '#4D4D4D',
33
+ '800': '#333333',
34
+ '900': '#1A1A1A',
35
+ '950': '#0A0A0A',
36
+ },
37
+ violet: {
38
+ '50': '#F6F6FF',
39
+ '100': '#ECECFF',
40
+ '200': '#D9D7FA',
41
+ '300': '#B5B1F4',
42
+ '400': '#9F9AF1',
43
+ '500': '#8A84EC',
44
+ '600': '#756FE5',
45
+ '700': '#625BD5',
46
+ '800': '#524BBB',
47
+ '900': '#423F99',
48
+ '950': '#0B0A19',
49
+ },
50
+ orange: {
51
+ '50': '#FFF5EF',
52
+ '100': '#FFE7D8',
53
+ '200': '#FFCFB3',
54
+ '300': '#FFB180',
55
+ '400': '#FF8E4D',
56
+ '500': '#FE601F',
57
+ '600': '#D94A03',
58
+ '700': '#B03C02',
59
+ '800': '#8A2F02',
60
+ '900': '#692402',
61
+ '950': '#401602',
62
+ },
63
+ slate: {
64
+ '50': '#F8F7FC',
65
+ '100': '#F0EFF8',
66
+ '200': '#E3E1F0',
67
+ '300': '#D3D2E6',
68
+ '400': '#BEBBD6',
69
+ '500': '#A39FBE',
70
+ '600': '#8884A4',
71
+ '700': '#6D698B',
72
+ '800': '#534F70',
73
+ '900': '#353040',
74
+ '950': '#13131A',
75
+ },
76
+ yellow: {
77
+ '50': '#FEF8E6',
78
+ '100': '#FDF2CE',
79
+ '200': '#FCE49C',
80
+ '300': '#FAD76B',
81
+ '400': '#F8CA3A',
82
+ '500': '#F7BD08',
83
+ '600': '#C59707',
84
+ '700': '#947105',
85
+ '800': '#634B03',
86
+ '900': '#312602',
87
+ '950': '#191301',
88
+ },
89
+ green: {
90
+ '50': '#F0FDF4',
91
+ '100': '#D0FBDF',
92
+ '200': '#A4F4C0',
93
+ '300': '#78EDA2',
94
+ '400': '#52E086',
95
+ '500': '#26D968',
96
+ '600': '#18B452',
97
+ '700': '#16833F',
98
+ '800': '#12542B',
99
+ '900': '#0A2916',
100
+ '950': '#03170B',
101
+ },
102
+
103
+ red: {
104
+ '50': '#FFE5E5',
105
+ '100': '#FFCCCC',
106
+ '200': '#FECACA',
107
+ '300': '#FCA5A5',
108
+ '400': '#F87171',
109
+ '500': '#EF4444',
110
+ '600': '#DC2626',
111
+ '700': '#B91C1C',
112
+ '800': '#991B1B',
113
+ '900': '#7F1D1D',
114
+ '950': '#240505',
115
+ },
116
+ brand,
117
+ surface: {
118
+ 0: '#FFFFFF',
119
+ 50: '#FAFAFA',
120
+ 100: '#F5F5F5',
121
+ 200: '#E5E5E5',
122
+ 300: '#D4D4D4',
123
+ 400: '#A3A3A3',
124
+ 500: '#737373',
125
+ 600: '#525252',
126
+ 700: '#404040',
127
+ 800: '#262626',
128
+ 900: '#171717',
129
+ 950: '#0A0A0A',
130
+ },
131
+ alpha,
132
+ };
133
+
134
+ export const surfacePrimitives = {
135
+ surface: primitives.surface,
136
+ };
137
+
138
+ export default {
139
+ primitives,
140
+ surfacePrimitives,
141
+ brandPrimitives,
142
+ };
@@ -0,0 +1,11 @@
1
+ export const blur = {
2
+ xs: '4px',
3
+ sm: '8px',
4
+ md: '12px',
5
+ lg: '16px',
6
+ xl: '24px',
7
+ '2xl': '40px',
8
+ '3xl': '64px',
9
+ };
10
+
11
+ export default { blur };
@@ -0,0 +1,10 @@
1
+ export const dropShadow = {
2
+ xs: '0 1px 1px rgb(0 0 0 / 0.05)',
3
+ sm: '0 1px 2px rgb(0 0 0 / 0.15)',
4
+ md: '0 3px 3px rgb(0 0 0 / 0.12)',
5
+ lg: '0 4px 4px rgb(0 0 0 / 0.15)',
6
+ xl: '0 9px 7px rgb(0 0 0 / 0.1)',
7
+ '2xl': '0 25px 25px rgb(0 0 0 / 0.15)',
8
+ };
9
+
10
+ export default { dropShadow };
@@ -0,0 +1,7 @@
1
+ export const insetShadow = {
2
+ '2xs': 'inset 0 1px rgb(0 0 0 / 0.05)',
3
+ xs: 'inset 0 1px 1px rgb(0 0 0 / 0.05)',
4
+ sm: 'inset 0 2px 4px rgb(0 0 0 / 0.05)',
5
+ };
6
+
7
+ export default { insetShadow };
@@ -0,0 +1,8 @@
1
+ export const opacity = {
2
+ 25: '0.25',
3
+ 50: '0.5',
4
+ 75: '0.75',
5
+ 100: '1',
6
+ };
7
+
8
+ export default { opacity };
@@ -0,0 +1,9 @@
1
+ export const perspective = {
2
+ dramatic: '100px',
3
+ near: '300px',
4
+ normal: '500px',
5
+ midrange: '800px',
6
+ distant: '1200px',
7
+ };
8
+
9
+ export default { perspective };
@@ -0,0 +1,11 @@
1
+ export const shadow = {
2
+ '2xs': '0 1px rgb(0 0 0 / 0.05)',
3
+ xs: '0 1px 2px 0 rgb(0 0 0 / 0.05)',
4
+ sm: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
5
+ md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
6
+ lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
7
+ xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',
8
+ '2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',
9
+ };
10
+
11
+ export default { shadow };
@@ -0,0 +1,5 @@
1
+ export const ringOffset = {
2
+ 'ring-offset': '0.5px',
3
+ };
4
+
5
+ export default { ringOffset };
@@ -0,0 +1,3 @@
1
+ export const aspectVideo = '16 / 9';
2
+
3
+ export default { aspectVideo };
@@ -0,0 +1,17 @@
1
+ export const container = {
2
+ '3xs': '256px',
3
+ '2xs': '288px',
4
+ xs: '320px',
5
+ sm: '384px',
6
+ md: '448px',
7
+ lg: '512px',
8
+ xl: '576px',
9
+ '2xl': '672px',
10
+ '3xl': '768px',
11
+ '4xl': '896px',
12
+ '5xl': '1024px',
13
+ '6xl': '1152px',
14
+ '7xl': '1280px',
15
+ };
16
+
17
+ export default { container };
@@ -0,0 +1,32 @@
1
+ export const height = {
2
+ 2: '8px',
3
+ 3: '12px',
4
+ 4: '16px',
5
+ 5: '20px',
6
+ 6: '24px',
7
+ 7: '28px',
8
+ 8: '32px',
9
+ 9: '36px',
10
+ 10: '40px',
11
+ 11: '44px',
12
+ 12: '48px',
13
+ 14: '56px',
14
+ 16: '64px',
15
+ 20: '80px',
16
+ 24: '96px',
17
+ 28: '112px',
18
+ 32: '128px',
19
+ 36: '144px',
20
+ 40: '160px',
21
+ 44: '176px',
22
+ 48: '192px',
23
+ 52: '208px',
24
+ 56: '224px',
25
+ 60: '240px',
26
+ 64: '256px',
27
+ 72: '288px',
28
+ 80: '320px',
29
+ 96: '384px',
30
+ };
31
+
32
+ export default { height };
@@ -0,0 +1,13 @@
1
+ export const radius = {
2
+ none: '0',
3
+ sm: '2px',
4
+ DEFAULT: '4px',
5
+ md: '6px',
6
+ lg: '8px',
7
+ xl: '12px',
8
+ '2xl': '16px',
9
+ '3xl': '24px',
10
+ full: '9999px',
11
+ };
12
+
13
+ export default { radius };
@@ -0,0 +1,12 @@
1
+ import { radius } from './radius.js';
2
+ import { borderWidths } from '../border-widths.js';
3
+
4
+ export const shape = {
5
+ 'shape-flat': radius.none,
6
+ 'shape-card': radius.DEFAULT,
7
+ 'shape-button': radius.DEFAULT,
8
+ 'shape-elements': radius.DEFAULT,
9
+ 'border-width-default': borderWidths[1],
10
+ };
11
+
12
+ export default { shape };
@@ -0,0 +1,32 @@
1
+ export const size = {
2
+ 2: '8px',
3
+ 3: '12px',
4
+ 4: '16px',
5
+ 5: '20px',
6
+ 6: '24px',
7
+ 7: '28px',
8
+ 8: '32px',
9
+ 9: '36px',
10
+ 10: '40px',
11
+ 11: '44px',
12
+ 12: '48px',
13
+ 14: '56px',
14
+ 16: '64px',
15
+ 20: '80px',
16
+ 24: '96px',
17
+ 28: '112px',
18
+ 32: '128px',
19
+ 36: '144px',
20
+ 40: '160px',
21
+ 44: '176px',
22
+ 48: '192px',
23
+ 52: '208px',
24
+ 56: '224px',
25
+ 60: '240px',
26
+ 64: '256px',
27
+ 72: '288px',
28
+ 80: '320px',
29
+ 96: '384px',
30
+ };
31
+
32
+ export default { size };
@@ -0,0 +1,33 @@
1
+ export const spacing = {
2
+ 1: '4px',
3
+ 2: '8px',
4
+ 3: '12px',
5
+ 4: '16px',
6
+ 5: '20px',
7
+ 6: '24px',
8
+ 7: '28px',
9
+ 8: '32px',
10
+ 9: '36px',
11
+ 10: '40px',
12
+ 11: '44px',
13
+ 12: '48px',
14
+ 14: '56px',
15
+ 16: '64px',
16
+ 20: '80px',
17
+ 24: '96px',
18
+ 28: '112px',
19
+ 32: '128px',
20
+ 36: '144px',
21
+ 40: '160px',
22
+ 44: '176px',
23
+ 48: '192px',
24
+ 52: '208px',
25
+ 56: '224px',
26
+ 60: '240px',
27
+ 64: '256px',
28
+ 72: '288px',
29
+ 80: '320px',
30
+ 96: '384px',
31
+ };
32
+
33
+ export default { spacing };
@@ -0,0 +1,19 @@
1
+ import { tokenRef } from '../../../scripts/refs.js';
2
+
3
+ export const width = {
4
+ '3xs': tokenRef('shape.container.3xs'),
5
+ '2xs': tokenRef('shape.container.2xs'),
6
+ xs: tokenRef('shape.container.xs'),
7
+ sm: tokenRef('shape.container.sm'),
8
+ md: tokenRef('shape.container.md'),
9
+ lg: tokenRef('shape.container.lg'),
10
+ xl: tokenRef('shape.container.xl'),
11
+ '2xl': tokenRef('shape.container.2xl'),
12
+ '3xl': tokenRef('shape.container.3xl'),
13
+ '4xl': tokenRef('shape.container.4xl'),
14
+ '5xl': tokenRef('shape.container.5xl'),
15
+ '6xl': tokenRef('shape.container.6xl'),
16
+ '7xl': tokenRef('shape.container.7xl'),
17
+ };
18
+
19
+ export default { width };
@@ -0,0 +1,7 @@
1
+ export const fontFamily = {
2
+ sans: 'Sora',
3
+ code: 'Roboto Mono',
4
+ display: 'Proto Mono',
5
+ };
6
+
7
+ export default { fontFamily };
@@ -0,0 +1,30 @@
1
+ export const fontSize = {
2
+ xs: '0.75rem',
3
+ 'xs--line-height': 'calc(1 / 0.75)',
4
+ sm: '0.875rem',
5
+ 'sm--line-height': 'calc(1.25 / 0.875)',
6
+ base: '1rem',
7
+ 'base--line-height': 'calc(1.5 / 1)',
8
+ lg: '1.125rem',
9
+ 'lg--line-height': 'calc(1.75 / 1.125)',
10
+ xl: '1.25rem',
11
+ 'xl--line-height': 'calc(1.75 / 1.25)',
12
+ '2xl': '1.5rem',
13
+ '2xl--line-height': 'calc(2 / 1.5)',
14
+ '3xl': '1.875rem',
15
+ '3xl--line-height': 'calc(2.25 / 1.875)',
16
+ '4xl': '2.25rem',
17
+ '4xl--line-height': 'calc(2.5 / 2.25)',
18
+ '5xl': '3rem',
19
+ '5xl--line-height': '1',
20
+ '6xl': '3.75rem',
21
+ '6xl--line-height': '1',
22
+ '7xl': '4.5rem',
23
+ '7xl--line-height': '1',
24
+ '8xl': '6rem',
25
+ '8xl--line-height': '1',
26
+ '9xl': '8rem',
27
+ '9xl--line-height': '1',
28
+ };
29
+
30
+ export default { fontSize };
@@ -0,0 +1,13 @@
1
+ export const fontWeight = {
2
+ thin: 100,
3
+ extralight: 200,
4
+ light: 300,
5
+ normal: 400,
6
+ medium: 500,
7
+ semibold: 600,
8
+ bold: 700,
9
+ extrabold: 800,
10
+ black: 900,
11
+ };
12
+
13
+ export default { fontWeight };
@@ -0,0 +1,9 @@
1
+ export const leading = {
2
+ tight: 1.25,
3
+ snug: 1.375,
4
+ normal: 1.5,
5
+ relaxed: 1.625,
6
+ loose: 2,
7
+ };
8
+
9
+ export default { leading };
@@ -0,0 +1,13 @@
1
+ export const lineHeight = {
2
+ none: '0',
3
+ 3: '12px',
4
+ 4: '16px',
5
+ 5: '20px',
6
+ 6: '24px',
7
+ 7: '28px',
8
+ 8: '32px',
9
+ 9: '36px',
10
+ 10: '40px',
11
+ };
12
+
13
+ export default { lineHeight };