@leement/tokens 0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lee Yoonsu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,4 @@
1
+ import tokens from "./tokens.json";
2
+ /** Canonical, platform independent Leement design decisions. */
3
+ export { tokens };
4
+ export type LeementTokens = typeof tokens;
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import tokens from "./tokens.json" with { type: "json" };
2
+ /** Canonical, platform independent Leement design decisions. */
3
+ export { tokens };
@@ -0,0 +1,243 @@
1
+ {
2
+ "primitive": {
3
+ "color": {
4
+ "neutral": {
5
+ "0": "#ffffff",
6
+ "50": "#fafafa",
7
+ "100": "#f5f5f5",
8
+ "200": "#e5e5e5",
9
+ "400": "#a3a3a3",
10
+ "500": "#737373",
11
+ "700": "#404040",
12
+ "750": "#303033",
13
+ "800": "#242427",
14
+ "900": "#1a1a1d",
15
+ "950": "#111113"
16
+ },
17
+ "blue": {
18
+ "300": "#8bc1f6",
19
+ "500": "#347ff4"
20
+ },
21
+ "violet": {
22
+ "400": "oklch(0.69 0.135 284)",
23
+ "500": "#7554c8",
24
+ "800": "oklch(0.34 0.12 282)"
25
+ },
26
+ "red": {
27
+ "500": "#dc3d4c",
28
+ "600": "#b42332"
29
+ },
30
+ "green": {
31
+ "100": "oklch(0.91 0.045 153)",
32
+ "300": "oklch(0.82 0.11 151)",
33
+ "800": "oklch(0.38 0.105 151)",
34
+ "950": "oklch(0.29 0.055 153)"
35
+ },
36
+ "amber": {
37
+ "100": "oklch(0.94 0.055 83)",
38
+ "300": "oklch(0.86 0.12 83)",
39
+ "800": "oklch(0.42 0.095 65)",
40
+ "950": "oklch(0.31 0.055 70)"
41
+ }
42
+ },
43
+ "typography": {
44
+ "family": {
45
+ "sans": "\"Pretendard Variable\", Pretendard, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif",
46
+ "brand": "Paperlogy, \"Pretendard Variable\", Pretendard, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif",
47
+ "mono": "D2Coding, ui-monospace, SFMono-Regular, Menlo, monospace"
48
+ },
49
+ "size": {
50
+ "xs": "0.75rem",
51
+ "sm": "0.875rem",
52
+ "base": "1rem",
53
+ "lg": "1.125rem",
54
+ "xl": "1.25rem",
55
+ "2xl": "1.5rem"
56
+ },
57
+ "weight": {
58
+ "regular": "400",
59
+ "medium": "500",
60
+ "semibold": "600",
61
+ "bold": "700"
62
+ },
63
+ "lineHeight": {
64
+ "tight": "1.25",
65
+ "normal": "1.5",
66
+ "relaxed": "1.65"
67
+ }
68
+ },
69
+ "spacing": {
70
+ "0": "0",
71
+ "1": "0.25rem",
72
+ "2": "0.5rem",
73
+ "3": "0.75rem",
74
+ "4": "1rem",
75
+ "5": "1.25rem",
76
+ "6": "1.5rem",
77
+ "8": "2rem",
78
+ "10": "2.5rem",
79
+ "12": "3rem"
80
+ },
81
+ "radius": {
82
+ "none": "0",
83
+ "sm": "0.375rem",
84
+ "md": "0.5rem",
85
+ "lg": "0.625rem",
86
+ "xl": "0.75rem",
87
+ "full": "9999px"
88
+ },
89
+ "shadow": {
90
+ "sm": "0 1px 2px rgb(0 0 0 / 0.06)",
91
+ "md": "0 8px 24px rgb(0 0 0 / 0.10)",
92
+ "lg": "0 16px 48px rgb(0 0 0 / 0.16)"
93
+ },
94
+ "motion": {
95
+ "duration": {
96
+ "fast": "120ms",
97
+ "normal": "180ms",
98
+ "slow": "260ms",
99
+ "reveal": "700ms",
100
+ "expand": "400ms",
101
+ "media": "400ms"
102
+ },
103
+ "easing": {
104
+ "standard": "cubic-bezier(0.2, 0, 0, 1)",
105
+ "reveal": "cubic-bezier(0.22, 1, 0.36, 1)"
106
+ },
107
+ "delay": {
108
+ "stagger": "70ms"
109
+ },
110
+ "cycle": {
111
+ "brandText": "1500ms",
112
+ "brandSurface": "3500ms",
113
+ "rotate": "1800ms"
114
+ }
115
+ }
116
+ },
117
+ "semantic": {
118
+ "light": {
119
+ "color": {
120
+ "background": {
121
+ "default": "{color.neutral.0}",
122
+ "subtle": "{color.neutral.50}"
123
+ },
124
+ "surface": {
125
+ "default": "{color.neutral.0}",
126
+ "raised": "{color.neutral.0}",
127
+ "muted": "{color.neutral.100}"
128
+ },
129
+ "foreground": {
130
+ "default": "{color.neutral.900}",
131
+ "muted": "{color.neutral.500}",
132
+ "inverse": "{color.neutral.0}"
133
+ },
134
+ "border": {
135
+ "default": "{color.neutral.200}",
136
+ "strong": "{color.neutral.400}"
137
+ },
138
+ "action": {
139
+ "primary": "{color.neutral.900}",
140
+ "primaryHover": "{color.neutral.700}",
141
+ "secondary": "{color.neutral.100}",
142
+ "secondaryHover": "{color.neutral.200}",
143
+ "danger": "{color.red.600}",
144
+ "dangerHover": "{color.red.500}"
145
+ },
146
+ "brand": {
147
+ "accent": "{color.violet.400}",
148
+ "accentForeground": "{color.neutral.950}",
149
+ "text": "{color.violet.500}",
150
+ "focus": "{color.violet.500}",
151
+ "gradientStart": "oklch(0.55 0.24 293)",
152
+ "gradientMiddle": "oklch(0.59 0.18 260)",
153
+ "gradientEnd": "oklch(0.67 0.17 330)"
154
+ },
155
+ "focus": {
156
+ "ring": "{color.brand.focus}"
157
+ },
158
+ "status": {
159
+ "success": "{color.green.100}",
160
+ "successForeground": "{color.green.800}",
161
+ "warning": "{color.amber.100}",
162
+ "warningForeground": "{color.amber.800}"
163
+ },
164
+ "data": {
165
+ "accent": "{color.brand.accent}",
166
+ "accentForeground": "{color.brand.accentForeground}"
167
+ },
168
+ "media": {
169
+ "foreground": "{color.neutral.0}",
170
+ "scrim": "#00000099"
171
+ },
172
+ "syntax": {
173
+ "keyword": "{color.violet.500}",
174
+ "string": "{color.green.800}",
175
+ "number": "{color.red.600}",
176
+ "comment": "{color.neutral.500}"
177
+ }
178
+ }
179
+ },
180
+ "dark": {
181
+ "color": {
182
+ "background": {
183
+ "default": "{color.neutral.950}",
184
+ "subtle": "{color.neutral.900}"
185
+ },
186
+ "surface": {
187
+ "default": "{color.neutral.900}",
188
+ "raised": "{color.neutral.800}",
189
+ "muted": "{color.neutral.750}"
190
+ },
191
+ "foreground": {
192
+ "default": "{color.neutral.50}",
193
+ "muted": "{color.neutral.400}",
194
+ "inverse": "{color.neutral.950}"
195
+ },
196
+ "border": {
197
+ "default": "#ffffff1a",
198
+ "strong": "#ffffff33"
199
+ },
200
+ "action": {
201
+ "primary": "{color.neutral.50}",
202
+ "primaryHover": "{color.neutral.200}",
203
+ "secondary": "{color.neutral.800}",
204
+ "secondaryHover": "{color.neutral.700}",
205
+ "danger": "#f27882",
206
+ "dangerHover": "#ff949c"
207
+ },
208
+ "brand": {
209
+ "accent": "{color.blue.500}",
210
+ "accentForeground": "{color.neutral.950}",
211
+ "text": "{color.blue.300}",
212
+ "focus": "{color.blue.500}",
213
+ "gradientStart": "{color.blue.500}",
214
+ "gradientMiddle": "#a4d8ff",
215
+ "gradientEnd": "{color.blue.500}"
216
+ },
217
+ "focus": {
218
+ "ring": "{color.brand.focus}"
219
+ },
220
+ "status": {
221
+ "success": "{color.green.950}",
222
+ "successForeground": "{color.green.300}",
223
+ "warning": "{color.amber.950}",
224
+ "warningForeground": "{color.amber.300}"
225
+ },
226
+ "data": {
227
+ "accent": "{color.brand.accent}",
228
+ "accentForeground": "{color.brand.accentForeground}"
229
+ },
230
+ "media": {
231
+ "foreground": "{color.neutral.0}",
232
+ "scrim": "#00000099"
233
+ },
234
+ "syntax": {
235
+ "keyword": "{color.blue.300}",
236
+ "string": "{color.green.300}",
237
+ "number": "{color.amber.300}",
238
+ "comment": "{color.neutral.400}"
239
+ }
240
+ }
241
+ }
242
+ }
243
+ }
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@leement/tokens",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "description": "Framework independent Leement design decisions",
6
+ "license": "MIT",
7
+ "files": [
8
+ "dist",
9
+ "src"
10
+ ],
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/index.js"
15
+ },
16
+ "./tokens.json": "./src/tokens.json"
17
+ },
18
+ "scripts": {
19
+ "build": "tsc -p tsconfig.build.json",
20
+ "typecheck": "tsc --noEmit",
21
+ "lint": "eslint src"
22
+ }
23
+ }
package/src/index.ts ADDED
@@ -0,0 +1,4 @@
1
+ import tokens from "./tokens.json" with { type: "json" };
2
+ /** Canonical, platform independent Leement design decisions. */
3
+ export { tokens };
4
+ export type LeementTokens = typeof tokens;
@@ -0,0 +1,243 @@
1
+ {
2
+ "primitive": {
3
+ "color": {
4
+ "neutral": {
5
+ "0": "#ffffff",
6
+ "50": "#fafafa",
7
+ "100": "#f5f5f5",
8
+ "200": "#e5e5e5",
9
+ "400": "#a3a3a3",
10
+ "500": "#737373",
11
+ "700": "#404040",
12
+ "750": "#303033",
13
+ "800": "#242427",
14
+ "900": "#1a1a1d",
15
+ "950": "#111113"
16
+ },
17
+ "blue": {
18
+ "300": "#8bc1f6",
19
+ "500": "#347ff4"
20
+ },
21
+ "violet": {
22
+ "400": "oklch(0.69 0.135 284)",
23
+ "500": "#7554c8",
24
+ "800": "oklch(0.34 0.12 282)"
25
+ },
26
+ "red": {
27
+ "500": "#dc3d4c",
28
+ "600": "#b42332"
29
+ },
30
+ "green": {
31
+ "100": "oklch(0.91 0.045 153)",
32
+ "300": "oklch(0.82 0.11 151)",
33
+ "800": "oklch(0.38 0.105 151)",
34
+ "950": "oklch(0.29 0.055 153)"
35
+ },
36
+ "amber": {
37
+ "100": "oklch(0.94 0.055 83)",
38
+ "300": "oklch(0.86 0.12 83)",
39
+ "800": "oklch(0.42 0.095 65)",
40
+ "950": "oklch(0.31 0.055 70)"
41
+ }
42
+ },
43
+ "typography": {
44
+ "family": {
45
+ "sans": "\"Pretendard Variable\", Pretendard, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif",
46
+ "brand": "Paperlogy, \"Pretendard Variable\", Pretendard, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif",
47
+ "mono": "D2Coding, ui-monospace, SFMono-Regular, Menlo, monospace"
48
+ },
49
+ "size": {
50
+ "xs": "0.75rem",
51
+ "sm": "0.875rem",
52
+ "base": "1rem",
53
+ "lg": "1.125rem",
54
+ "xl": "1.25rem",
55
+ "2xl": "1.5rem"
56
+ },
57
+ "weight": {
58
+ "regular": "400",
59
+ "medium": "500",
60
+ "semibold": "600",
61
+ "bold": "700"
62
+ },
63
+ "lineHeight": {
64
+ "tight": "1.25",
65
+ "normal": "1.5",
66
+ "relaxed": "1.65"
67
+ }
68
+ },
69
+ "spacing": {
70
+ "0": "0",
71
+ "1": "0.25rem",
72
+ "2": "0.5rem",
73
+ "3": "0.75rem",
74
+ "4": "1rem",
75
+ "5": "1.25rem",
76
+ "6": "1.5rem",
77
+ "8": "2rem",
78
+ "10": "2.5rem",
79
+ "12": "3rem"
80
+ },
81
+ "radius": {
82
+ "none": "0",
83
+ "sm": "0.375rem",
84
+ "md": "0.5rem",
85
+ "lg": "0.625rem",
86
+ "xl": "0.75rem",
87
+ "full": "9999px"
88
+ },
89
+ "shadow": {
90
+ "sm": "0 1px 2px rgb(0 0 0 / 0.06)",
91
+ "md": "0 8px 24px rgb(0 0 0 / 0.10)",
92
+ "lg": "0 16px 48px rgb(0 0 0 / 0.16)"
93
+ },
94
+ "motion": {
95
+ "duration": {
96
+ "fast": "120ms",
97
+ "normal": "180ms",
98
+ "slow": "260ms",
99
+ "reveal": "700ms",
100
+ "expand": "400ms",
101
+ "media": "400ms"
102
+ },
103
+ "easing": {
104
+ "standard": "cubic-bezier(0.2, 0, 0, 1)",
105
+ "reveal": "cubic-bezier(0.22, 1, 0.36, 1)"
106
+ },
107
+ "delay": {
108
+ "stagger": "70ms"
109
+ },
110
+ "cycle": {
111
+ "brandText": "1500ms",
112
+ "brandSurface": "3500ms",
113
+ "rotate": "1800ms"
114
+ }
115
+ }
116
+ },
117
+ "semantic": {
118
+ "light": {
119
+ "color": {
120
+ "background": {
121
+ "default": "{color.neutral.0}",
122
+ "subtle": "{color.neutral.50}"
123
+ },
124
+ "surface": {
125
+ "default": "{color.neutral.0}",
126
+ "raised": "{color.neutral.0}",
127
+ "muted": "{color.neutral.100}"
128
+ },
129
+ "foreground": {
130
+ "default": "{color.neutral.900}",
131
+ "muted": "{color.neutral.500}",
132
+ "inverse": "{color.neutral.0}"
133
+ },
134
+ "border": {
135
+ "default": "{color.neutral.200}",
136
+ "strong": "{color.neutral.400}"
137
+ },
138
+ "action": {
139
+ "primary": "{color.neutral.900}",
140
+ "primaryHover": "{color.neutral.700}",
141
+ "secondary": "{color.neutral.100}",
142
+ "secondaryHover": "{color.neutral.200}",
143
+ "danger": "{color.red.600}",
144
+ "dangerHover": "{color.red.500}"
145
+ },
146
+ "brand": {
147
+ "accent": "{color.violet.400}",
148
+ "accentForeground": "{color.neutral.950}",
149
+ "text": "{color.violet.500}",
150
+ "focus": "{color.violet.500}",
151
+ "gradientStart": "oklch(0.55 0.24 293)",
152
+ "gradientMiddle": "oklch(0.59 0.18 260)",
153
+ "gradientEnd": "oklch(0.67 0.17 330)"
154
+ },
155
+ "focus": {
156
+ "ring": "{color.brand.focus}"
157
+ },
158
+ "status": {
159
+ "success": "{color.green.100}",
160
+ "successForeground": "{color.green.800}",
161
+ "warning": "{color.amber.100}",
162
+ "warningForeground": "{color.amber.800}"
163
+ },
164
+ "data": {
165
+ "accent": "{color.brand.accent}",
166
+ "accentForeground": "{color.brand.accentForeground}"
167
+ },
168
+ "media": {
169
+ "foreground": "{color.neutral.0}",
170
+ "scrim": "#00000099"
171
+ },
172
+ "syntax": {
173
+ "keyword": "{color.violet.500}",
174
+ "string": "{color.green.800}",
175
+ "number": "{color.red.600}",
176
+ "comment": "{color.neutral.500}"
177
+ }
178
+ }
179
+ },
180
+ "dark": {
181
+ "color": {
182
+ "background": {
183
+ "default": "{color.neutral.950}",
184
+ "subtle": "{color.neutral.900}"
185
+ },
186
+ "surface": {
187
+ "default": "{color.neutral.900}",
188
+ "raised": "{color.neutral.800}",
189
+ "muted": "{color.neutral.750}"
190
+ },
191
+ "foreground": {
192
+ "default": "{color.neutral.50}",
193
+ "muted": "{color.neutral.400}",
194
+ "inverse": "{color.neutral.950}"
195
+ },
196
+ "border": {
197
+ "default": "#ffffff1a",
198
+ "strong": "#ffffff33"
199
+ },
200
+ "action": {
201
+ "primary": "{color.neutral.50}",
202
+ "primaryHover": "{color.neutral.200}",
203
+ "secondary": "{color.neutral.800}",
204
+ "secondaryHover": "{color.neutral.700}",
205
+ "danger": "#f27882",
206
+ "dangerHover": "#ff949c"
207
+ },
208
+ "brand": {
209
+ "accent": "{color.blue.500}",
210
+ "accentForeground": "{color.neutral.950}",
211
+ "text": "{color.blue.300}",
212
+ "focus": "{color.blue.500}",
213
+ "gradientStart": "{color.blue.500}",
214
+ "gradientMiddle": "#a4d8ff",
215
+ "gradientEnd": "{color.blue.500}"
216
+ },
217
+ "focus": {
218
+ "ring": "{color.brand.focus}"
219
+ },
220
+ "status": {
221
+ "success": "{color.green.950}",
222
+ "successForeground": "{color.green.300}",
223
+ "warning": "{color.amber.950}",
224
+ "warningForeground": "{color.amber.300}"
225
+ },
226
+ "data": {
227
+ "accent": "{color.brand.accent}",
228
+ "accentForeground": "{color.brand.accentForeground}"
229
+ },
230
+ "media": {
231
+ "foreground": "{color.neutral.0}",
232
+ "scrim": "#00000099"
233
+ },
234
+ "syntax": {
235
+ "keyword": "{color.blue.300}",
236
+ "string": "{color.green.300}",
237
+ "number": "{color.amber.300}",
238
+ "comment": "{color.neutral.400}"
239
+ }
240
+ }
241
+ }
242
+ }
243
+ }