@okja/chi-tokens 0.3.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/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@okja/chi-tokens",
3
+ "version": "0.3.0",
4
+ "description": "Design tokens - colors, typography, spacing, radius, shadow, motion",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": {
8
+ "name": "Matthew Van Dusen",
9
+ "url": "https://github.com/matthewvandusen"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/okja-engineering/chi-tokens"
14
+ },
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "exports": {
19
+ ".": "./src/tokens.json",
20
+ "./tokens": "./src/tokens.json",
21
+ "./tokens.json": "./src/tokens.json",
22
+ "./colors/grayscale": "./src/colors/grayscale.json",
23
+ "./colors/grayscale.json": "./src/colors/grayscale.json",
24
+ "./colors/blue": "./src/colors/blue.json",
25
+ "./colors/blue.json": "./src/colors/blue.json",
26
+ "./colors/purple": "./src/colors/purple.json",
27
+ "./colors/purple.json": "./src/colors/purple.json",
28
+ "./package.json": "./package.json"
29
+ },
30
+ "files": [
31
+ "src"
32
+ ],
33
+ "scripts": {
34
+ "check": "prettier --check 'src/**/*.json'",
35
+ "fix": "prettier --write 'src/**/*.json'"
36
+ },
37
+ "devDependencies": {
38
+ "prettier": "^3.4.0"
39
+ }
40
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "blue",
3
+ "light": {
4
+ "primary": "oklch(52% 0.14 250)",
5
+ "on-primary": "oklch(100% 0 0)",
6
+ "primary-container": "oklch(85% 0.08 250)",
7
+ "on-primary-container": "oklch(20% 0.14 250)",
8
+ "secondary": "oklch(50% 0.05 245)",
9
+ "on-secondary": "oklch(100% 0 0)",
10
+ "secondary-container": "oklch(88% 0.03 245)",
11
+ "on-secondary-container": "oklch(20% 0.05 245)",
12
+ "tertiary": "oklch(58% 0.12 195)",
13
+ "on-tertiary": "oklch(100% 0 0)",
14
+ "tertiary-container": "oklch(88% 0.06 195)",
15
+ "on-tertiary-container": "oklch(22% 0.12 195)",
16
+ "error": "oklch(66.4% 0.195 29)",
17
+ "on-error": "oklch(20% 0.05 29)",
18
+ "error-container": "oklch(92% 0.05 29)",
19
+ "on-error-container": "oklch(20% 0.05 29)",
20
+ "background": "oklch(99% 0.003 245)",
21
+ "on-background": "oklch(12% 0.003 245)",
22
+ "surface": "oklch(99% 0.003 245)",
23
+ "on-surface": "oklch(12% 0.003 245)",
24
+ "surface-variant": "oklch(92% 0.01 245)",
25
+ "on-surface-variant": "oklch(32% 0.02 245)",
26
+ "surface-0": "oklch(100% 0 0)",
27
+ "surface-1": "oklch(98% 0.005 245)",
28
+ "surface-2": "oklch(96% 0.005 245)",
29
+ "surface-3": "oklch(94% 0.005 245)",
30
+ "surface-4": "oklch(92% 0.005 245)",
31
+ "surface-5": "oklch(92% 0.005 245)",
32
+ "surface-container": "oklch(96% 0.005 245)",
33
+ "surface-container-low": "oklch(98% 0.003 245)",
34
+ "surface-container-high": "oklch(94% 0.005 245)",
35
+ "surface-container-highest": "oklch(92% 0.005 245)",
36
+ "inverse-surface": "oklch(20% 0 0)",
37
+ "inverse-on-surface": "oklch(96% 0.003 245)",
38
+ "inverse-primary": "oklch(80% 0.08 250)",
39
+ "outline": "oklch(48% 0.01 245)",
40
+ "outline-variant": "oklch(92% 0.01 245)",
41
+ "divider": "oklch(48% 0.01 245)",
42
+ "scrim": "oklch(0% 0 0)",
43
+ "shadow": "oklch(0% 0 0)"
44
+ },
45
+ "dark": {
46
+ "primary": "oklch(75% 0.1 250)",
47
+ "on-primary": "oklch(15% 0.14 250)",
48
+ "primary-container": "oklch(30% 0.14 250)",
49
+ "on-primary-container": "oklch(88% 0.08 250)",
50
+ "secondary": "oklch(68% 0.04 245)",
51
+ "on-secondary": "oklch(12% 0.05 245)",
52
+ "secondary-container": "oklch(28% 0.05 245)",
53
+ "on-secondary-container": "oklch(88% 0.03 245)",
54
+ "tertiary": "oklch(72% 0.09 195)",
55
+ "on-tertiary": "oklch(18% 0.12 195)",
56
+ "tertiary-container": "oklch(32% 0.12 195)",
57
+ "on-tertiary-container": "oklch(90% 0.06 195)",
58
+ "error": "oklch(68.5% 0.195 29)",
59
+ "on-error": "oklch(20% 0.05 29)",
60
+ "error-container": "oklch(66.4% 0.195 29)",
61
+ "on-error-container": "oklch(92% 0.05 29)",
62
+ "background": "oklch(9% 0.003 245)",
63
+ "on-background": "oklch(92% 0.003 245)",
64
+ "surface": "oklch(7% 0.003 245)",
65
+ "on-surface": "oklch(92% 0.003 245)",
66
+ "surface-variant": "oklch(30% 0.02 245)",
67
+ "on-surface-variant": "oklch(82% 0.01 245)",
68
+ "surface-0": "oklch(7% 0.003 245)",
69
+ "surface-1": "oklch(12% 0.003 245)",
70
+ "surface-2": "oklch(15% 0.003 245)",
71
+ "surface-3": "oklch(18% 0.003 245)",
72
+ "surface-4": "oklch(22% 0.003 245)",
73
+ "surface-5": "oklch(22% 0.003 245)",
74
+ "surface-container": "oklch(15% 0.003 245)",
75
+ "surface-container-low": "oklch(12% 0.003 245)",
76
+ "surface-container-high": "oklch(18% 0.003 245)",
77
+ "surface-container-highest": "oklch(22% 0.003 245)",
78
+ "inverse-surface": "oklch(92% 0.003 245)",
79
+ "inverse-on-surface": "oklch(20% 0.003 245)",
80
+ "inverse-primary": "oklch(52% 0.14 250)",
81
+ "outline": "oklch(60% 0.01 245)",
82
+ "outline-variant": "oklch(30% 0.02 245)",
83
+ "divider": "oklch(60% 0.01 245)"
84
+ }
85
+ }
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "grayscale",
3
+ "light": {
4
+ "primary": "oklch(49.4% 0.163 264.05)",
5
+ "on-primary": "oklch(100% 0 0)",
6
+ "primary-container": "oklch(79.7% 0.105 264.05)",
7
+ "on-primary-container": "oklch(20% 0.163 264.05)",
8
+ "secondary": "oklch(61.8% 0.15 314.05)",
9
+ "on-secondary": "oklch(100% 0 0)",
10
+ "secondary-container": "oklch(85.1% 0.08 314.05)",
11
+ "on-secondary-container": "oklch(25.1% 0.15 314.05)",
12
+ "tertiary": "oklch(70.4% 0.15 29.23)",
13
+ "on-tertiary": "oklch(100% 0 0)",
14
+ "tertiary-container": "oklch(90.2% 0.08 29.23)",
15
+ "on-tertiary-container": "oklch(30.2% 0.15 29.23)",
16
+ "error": "oklch(62.8% 0.258 29.23)",
17
+ "on-error": "oklch(100% 0 0)",
18
+ "error-container": "oklch(90.2% 0.08 29.23)",
19
+ "on-error-container": "oklch(30.2% 0.15 29.23)",
20
+ "surface": "oklch(99.1% 0.005 264.05)",
21
+ "on-surface": "oklch(20% 0.005 264.05)",
22
+ "surface-variant": "oklch(92.5% 0.02 264.05)",
23
+ "on-surface-variant": "oklch(30% 0.02 264.05)",
24
+ "surface-container": "oklch(96.1% 0.01 264.05)",
25
+ "surface-container-low": "oklch(98.1% 0.005 264.05)",
26
+ "surface-container-high": "oklch(94.1% 0.01 264.05)",
27
+ "surface-container-highest": "oklch(92.1% 0.01 264.05)",
28
+ "surface-1": "oklch(97.1% 0.01 264.05)",
29
+ "surface-3": "oklch(92.1% 0.01 264.05)",
30
+ "surface-4": "oklch(91.1% 0.01 264.05)",
31
+ "surface-5": "oklch(90.1% 0.01 264.05)",
32
+ "outline": "oklch(50% 0.02 264.05)",
33
+ "outline-variant": "oklch(80% 0.02 264.05)",
34
+ "inverse-surface": "oklch(25% 0.01 264.05)",
35
+ "inverse-on-surface": "oklch(95% 0.005 264.05)",
36
+ "inverse-primary": "oklch(79.7% 0.105 264.05)",
37
+ "scrim": "oklch(0% 0 0)",
38
+ "shadow": "oklch(0% 0 0)"
39
+ },
40
+ "dark": {
41
+ "primary": "oklch(79.7% 0.105 264.05)",
42
+ "on-primary": "oklch(30% 0.163 264.05)",
43
+ "primary-container": "oklch(35% 0.163 264.05)",
44
+ "on-primary-container": "oklch(90% 0.105 264.05)",
45
+ "secondary": "oklch(75.1% 0.08 314.05)",
46
+ "on-secondary": "oklch(35.1% 0.15 314.05)",
47
+ "secondary-container": "oklch(40.1% 0.15 314.05)",
48
+ "on-secondary-container": "oklch(90.1% 0.08 314.05)",
49
+ "tertiary": "oklch(80.2% 0.08 29.23)",
50
+ "on-tertiary": "oklch(40.2% 0.15 29.23)",
51
+ "tertiary-container": "oklch(45.2% 0.15 29.23)",
52
+ "on-tertiary-container": "oklch(95.2% 0.08 29.23)",
53
+ "error": "oklch(80.2% 0.15 29.23)",
54
+ "on-error": "oklch(40.2% 0.258 29.23)",
55
+ "error-container": "oklch(45.2% 0.258 29.23)",
56
+ "on-error-container": "oklch(95.2% 0.15 29.23)",
57
+ "surface": "oklch(15% 0.005 264.05)",
58
+ "on-surface": "oklch(90% 0.005 264.05)",
59
+ "surface-variant": "oklch(25% 0.02 264.05)",
60
+ "on-surface-variant": "oklch(75% 0.02 264.05)",
61
+ "surface-container": "oklch(20% 0.01 264.05)",
62
+ "surface-container-low": "oklch(17% 0.005 264.05)",
63
+ "surface-container-high": "oklch(25% 0.01 264.05)",
64
+ "surface-container-highest": "oklch(30% 0.01 264.05)",
65
+ "surface-1": "oklch(18% 0.01 264.05)",
66
+ "surface-2": "oklch(21% 0.01 264.05)",
67
+ "surface-3": "oklch(24% 0.01 264.05)",
68
+ "surface-4": "oklch(26% 0.01 264.05)",
69
+ "surface-5": "oklch(28% 0.01 264.05)",
70
+ "outline": "oklch(60% 0.02 264.05)",
71
+ "outline-variant": "oklch(35% 0.02 264.05)",
72
+ "inverse-surface": "oklch(90% 0.005 264.05)",
73
+ "inverse-on-surface": "oklch(25% 0.01 264.05)",
74
+ "inverse-primary": "oklch(49.4% 0.163 264.05)"
75
+ }
76
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "purple",
3
+ "light": {
4
+ "primary": "oklch(49.4% 0.163 264)",
5
+ "on-primary": "oklch(100% 0 0)",
6
+ "primary-container": "oklch(79.7% 0.105 264)",
7
+ "on-primary-container": "oklch(20% 0.163 264)",
8
+ "secondary": "oklch(43.8% 0.029 270)",
9
+ "on-secondary": "oklch(100% 0 0)",
10
+ "secondary-container": "oklch(88.5% 0.029 270)",
11
+ "on-secondary-container": "oklch(15.8% 0.029 270)",
12
+ "tertiary": "oklch(60% 0.12 320)",
13
+ "on-tertiary": "oklch(100% 0 0)",
14
+ "tertiary-container": "oklch(90% 0.08 320)",
15
+ "on-tertiary-container": "oklch(20% 0.12 320)",
16
+ "error": "oklch(66.4% 0.195 29)",
17
+ "on-error": "oklch(20% 0.05 29)",
18
+ "error-container": "oklch(92% 0.05 29)",
19
+ "on-error-container": "oklch(20% 0.05 29)",
20
+ "background": "oklch(99% 0.005 300)",
21
+ "on-background": "oklch(12.5% 0.005 300)",
22
+ "surface": "oklch(99% 0.005 300)",
23
+ "on-surface": "oklch(12.5% 0.005 300)",
24
+ "surface-variant": "oklch(91.8% 0.015 300)",
25
+ "on-surface-variant": "oklch(33.5% 0.025 270)",
26
+ "surface-0": "oklch(100% 0 0)",
27
+ "surface-1": "oklch(97.5% 0.01 300)",
28
+ "surface-2": "oklch(95.5% 0.01 300)",
29
+ "surface-3": "oklch(93.5% 0.01 300)",
30
+ "surface-4": "oklch(91.5% 0.01 300)",
31
+ "surface-5": "oklch(91.5% 0.01 300)",
32
+ "surface-container": "oklch(95.5% 0.01 300)",
33
+ "surface-container-low": "oklch(97.5% 0.005 300)",
34
+ "surface-container-high": "oklch(93.5% 0.01 300)",
35
+ "surface-container-highest": "oklch(91.5% 0.01 300)",
36
+ "inverse-surface": "oklch(22% 0 0)",
37
+ "inverse-on-surface": "oklch(96% 0.005 300)",
38
+ "inverse-primary": "oklch(79.7% 0.105 264)",
39
+ "outline": "oklch(50% 0.01 300)",
40
+ "outline-variant": "oklch(91.8% 0.015 300)",
41
+ "divider": "oklch(50% 0.01 300)",
42
+ "scrim": "oklch(0% 0 0)",
43
+ "shadow": "oklch(0% 0 0)"
44
+ },
45
+ "dark": {
46
+ "primary": "oklch(79.7% 0.105 264)",
47
+ "on-primary": "oklch(15% 0.163 264)",
48
+ "primary-container": "oklch(44.5% 0.163 264)",
49
+ "on-primary-container": "oklch(91% 0.105 264)",
50
+ "secondary": "oklch(67.5% 0.029 270)",
51
+ "on-secondary": "oklch(12% 0.029 270)",
52
+ "secondary-container": "oklch(32% 0.029 270)",
53
+ "on-secondary-container": "oklch(90% 0.029 270)",
54
+ "tertiary": "oklch(70% 0.08 320)",
55
+ "on-tertiary": "oklch(25% 0.12 320)",
56
+ "tertiary-container": "oklch(38% 0.08 320)",
57
+ "on-tertiary-container": "oklch(93% 0.08 320)",
58
+ "error": "oklch(68.5% 0.195 29)",
59
+ "on-error": "oklch(20% 0.05 29)",
60
+ "error-container": "oklch(66.4% 0.195 29)",
61
+ "on-error-container": "oklch(92% 0.05 29)",
62
+ "background": "oklch(9.5% 0.005 300)",
63
+ "on-background": "oklch(91.5% 0.005 300)",
64
+ "surface": "oklch(7% 0.005 300)",
65
+ "on-surface": "oklch(91.5% 0.005 300)",
66
+ "surface-variant": "oklch(33.5% 0.025 270)",
67
+ "on-surface-variant": "oklch(82% 0.015 300)",
68
+ "surface-0": "oklch(7% 0.005 300)",
69
+ "surface-1": "oklch(12.5% 0.005 300)",
70
+ "surface-2": "oklch(15% 0.005 300)",
71
+ "surface-3": "oklch(19% 0.005 300)",
72
+ "surface-4": "oklch(24% 0.005 300)",
73
+ "surface-5": "oklch(24% 0.005 300)",
74
+ "surface-container": "oklch(15% 0.005 300)",
75
+ "surface-container-low": "oklch(12.5% 0.005 300)",
76
+ "surface-container-high": "oklch(19% 0.005 300)",
77
+ "surface-container-highest": "oklch(24% 0.005 300)",
78
+ "inverse-surface": "oklch(91.5% 0.005 300)",
79
+ "inverse-on-surface": "oklch(22.5% 0.005 300)",
80
+ "inverse-primary": "oklch(49.4% 0.163 264)",
81
+ "outline": "oklch(61% 0.01 300)",
82
+ "outline-variant": "oklch(33.5% 0.025 270)",
83
+ "divider": "oklch(61% 0.01 300)"
84
+ }
85
+ }
@@ -0,0 +1,135 @@
1
+ {
2
+ "font-family": {
3
+ "sans": "system-ui, -apple-system, 'Segoe UI', sans-serif",
4
+ "serif": "georgia, 'Times New Roman', serif",
5
+ "mono": "'SF Mono', monaco, 'Courier New', monospace"
6
+ },
7
+ "font-size": {
8
+ "1": "12px",
9
+ "2": "14px",
10
+ "3": "16px",
11
+ "4": "18px",
12
+ "5": "20px",
13
+ "6": "24px",
14
+ "7": "28px",
15
+ "8": "35px",
16
+ "9": "60px"
17
+ },
18
+ "font-weight": {
19
+ "light": "300",
20
+ "regular": "400",
21
+ "medium": "500",
22
+ "bold": "700"
23
+ },
24
+ "line-height": {
25
+ "1": "16px",
26
+ "2": "20px",
27
+ "3": "24px",
28
+ "4": "26px",
29
+ "5": "28px",
30
+ "6": "30px",
31
+ "7": "36px",
32
+ "8": "40px",
33
+ "9": "60px"
34
+ },
35
+ "letter-spacing": {
36
+ "1": "0.0025em",
37
+ "2": "0",
38
+ "3": "-0.0025em"
39
+ },
40
+ "spacing": {
41
+ "1": "4px",
42
+ "2": "8px",
43
+ "3": "12px",
44
+ "4": "16px",
45
+ "5": "24px",
46
+ "6": "32px",
47
+ "7": "40px",
48
+ "8": "48px",
49
+ "9": "64px"
50
+ },
51
+ "radius": {
52
+ "none": "0",
53
+ "xs": "4px",
54
+ "sm": "8px",
55
+ "md": "12px",
56
+ "lg": "16px",
57
+ "xl": "28px",
58
+ "full": "9999px"
59
+ },
60
+ "shadow": {
61
+ "light": {
62
+ "none": "none",
63
+ "1": "0px 1px 2px 0px rgb(0 0 0 / 30%), 0px 1px 3px 1px rgb(0 0 0 / 15%)",
64
+ "2": "0px 1px 2px 0px rgb(0 0 0 / 30%), 0px 2px 6px 2px rgb(0 0 0 / 15%)",
65
+ "3": "0px 1px 3px 0px rgb(0 0 0 / 30%), 0px 4px 8px 3px rgb(0 0 0 / 15%)",
66
+ "4": "0px 2px 3px 0px rgb(0 0 0 / 30%), 0px 6px 10px 4px rgb(0 0 0 / 15%)",
67
+ "5": "0px 4px 4px 0px rgb(0 0 0 / 30%), 0px 8px 12px 6px rgb(0 0 0 / 15%)"
68
+ },
69
+ "dark": {
70
+ "none": "none",
71
+ "1": "0px 1px 2px 0px rgb(0 0 0 / 50%), 0px 1px 3px 1px rgb(0 0 0 / 25%)",
72
+ "2": "0px 1px 2px 0px rgb(0 0 0 / 50%), 0px 2px 6px 2px rgb(0 0 0 / 25%)",
73
+ "3": "0px 1px 3px 0px rgb(0 0 0 / 50%), 0px 4px 8px 3px rgb(0 0 0 / 25%)",
74
+ "4": "0px 2px 3px 0px rgb(0 0 0 / 50%), 0px 6px 10px 4px rgb(0 0 0 / 25%)",
75
+ "5": "0px 4px 4px 0px rgb(0 0 0 / 50%), 0px 8px 12px 6px rgb(0 0 0 / 25%)"
76
+ }
77
+ },
78
+ "duration": {
79
+ "instant": "0ms",
80
+ "short1": "50ms",
81
+ "short2": "100ms",
82
+ "short3": "150ms",
83
+ "short4": "200ms",
84
+ "medium1": "250ms",
85
+ "medium2": "300ms",
86
+ "medium3": "350ms",
87
+ "medium4": "400ms",
88
+ "long1": "450ms",
89
+ "long2": "500ms",
90
+ "long3": "550ms",
91
+ "long4": "600ms",
92
+ "extra-long1": "700ms",
93
+ "extra-long2": "800ms",
94
+ "extra-long3": "900ms",
95
+ "extra-long4": "1000ms"
96
+ },
97
+ "easing": {
98
+ "linear": "linear",
99
+ "ease": "ease",
100
+ "ease-in": "cubic-bezier(0.4, 0, 1, 1)",
101
+ "ease-out": "cubic-bezier(0, 0, 0.2, 1)",
102
+ "ease-in-out": "cubic-bezier(0.4, 0, 0.2, 1)",
103
+ "standard": "cubic-bezier(0.2, 0, 0, 1)",
104
+ "standard-accelerate": "cubic-bezier(0.3, 0, 1, 1)",
105
+ "standard-decelerate": "cubic-bezier(0, 0, 0, 1)",
106
+ "emphasized": "cubic-bezier(0.2, 0, 0, 1)",
107
+ "emphasized-accelerate": "cubic-bezier(0.3, 0, 0.8, 0.15)",
108
+ "emphasized-decelerate": "cubic-bezier(0.05, 0.7, 0.1, 1)"
109
+ },
110
+ "container": {
111
+ "1": "448px",
112
+ "2": "688px",
113
+ "3": "880px",
114
+ "4": "1136px"
115
+ },
116
+ "icon-size": {
117
+ "sm": "18px",
118
+ "md": "24px",
119
+ "lg": "36px",
120
+ "xl": "48px"
121
+ },
122
+ "scaling": {
123
+ "90": 0.9,
124
+ "95": 0.95,
125
+ "100": 1,
126
+ "105": 1.05,
127
+ "110": 1.1
128
+ },
129
+ "radius-factor": {
130
+ "none": 0,
131
+ "small": 0.75,
132
+ "medium": 1,
133
+ "large": 1.5
134
+ }
135
+ }