@graftwork/tokens 0.0.0-stage → 1.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.
@@ -0,0 +1,273 @@
1
+ {
2
+ "size": {
3
+ "$type": "dimension",
4
+ "0": {
5
+ "$value": {
6
+ "value": 0,
7
+ "unit": "rem"
8
+ }
9
+ },
10
+ "0-5": {
11
+ "$value": {
12
+ "value": 0.125,
13
+ "unit": "rem"
14
+ }
15
+ },
16
+ "1": {
17
+ "$value": {
18
+ "value": 0.25,
19
+ "unit": "rem"
20
+ }
21
+ },
22
+ "1-5": {
23
+ "$value": {
24
+ "value": 0.375,
25
+ "unit": "rem"
26
+ }
27
+ },
28
+ "2": {
29
+ "$value": {
30
+ "value": 0.5,
31
+ "unit": "rem"
32
+ }
33
+ },
34
+ "3": {
35
+ "$value": {
36
+ "value": 0.75,
37
+ "unit": "rem"
38
+ }
39
+ },
40
+ "4": {
41
+ "$value": {
42
+ "value": 1,
43
+ "unit": "rem"
44
+ }
45
+ },
46
+ "5": {
47
+ "$value": {
48
+ "value": 1.25,
49
+ "unit": "rem"
50
+ }
51
+ },
52
+ "6": {
53
+ "$value": {
54
+ "value": 1.5,
55
+ "unit": "rem"
56
+ }
57
+ },
58
+ "8": {
59
+ "$value": {
60
+ "value": 2,
61
+ "unit": "rem"
62
+ }
63
+ },
64
+ "10": {
65
+ "$value": {
66
+ "value": 2.5,
67
+ "unit": "rem"
68
+ }
69
+ },
70
+ "11": {
71
+ "$value": {
72
+ "value": 2.75,
73
+ "unit": "rem"
74
+ }
75
+ },
76
+ "12": {
77
+ "$value": {
78
+ "value": 3,
79
+ "unit": "rem"
80
+ }
81
+ },
82
+ "16": {
83
+ "$value": {
84
+ "value": 4,
85
+ "unit": "rem"
86
+ }
87
+ },
88
+ "18": {
89
+ "$value": {
90
+ "value": 4.5,
91
+ "unit": "rem"
92
+ }
93
+ }
94
+ },
95
+ "radius": {
96
+ "$type": "dimension",
97
+ "$description": "Derived from a 6px base radius.",
98
+ "base": {
99
+ "$value": {
100
+ "value": 6,
101
+ "unit": "px"
102
+ }
103
+ },
104
+ "half": {
105
+ "$value": {
106
+ "value": 3,
107
+ "unit": "px"
108
+ }
109
+ },
110
+ "two-thirds": {
111
+ "$value": {
112
+ "value": 4,
113
+ "unit": "px"
114
+ }
115
+ },
116
+ "five-thirds": {
117
+ "$value": {
118
+ "value": 10,
119
+ "unit": "px"
120
+ }
121
+ },
122
+ "seven-thirds": {
123
+ "$value": {
124
+ "value": 14,
125
+ "unit": "px"
126
+ }
127
+ },
128
+ "pill": {
129
+ "$value": {
130
+ "value": 9999,
131
+ "unit": "px"
132
+ }
133
+ }
134
+ },
135
+ "font-size": {
136
+ "$type": "dimension",
137
+ "075": {
138
+ "$value": {
139
+ "value": 0.75,
140
+ "unit": "rem"
141
+ }
142
+ },
143
+ "0875": {
144
+ "$value": {
145
+ "value": 0.875,
146
+ "unit": "rem"
147
+ }
148
+ },
149
+ "100": {
150
+ "$value": {
151
+ "value": 1,
152
+ "unit": "rem"
153
+ }
154
+ },
155
+ "1125": {
156
+ "$value": {
157
+ "value": 1.125,
158
+ "unit": "rem"
159
+ }
160
+ },
161
+ "125": {
162
+ "$value": {
163
+ "value": 1.25,
164
+ "unit": "rem"
165
+ }
166
+ },
167
+ "150": {
168
+ "$value": {
169
+ "value": 1.5,
170
+ "unit": "rem"
171
+ }
172
+ },
173
+ "1875": {
174
+ "$value": {
175
+ "value": 1.875,
176
+ "unit": "rem"
177
+ }
178
+ },
179
+ "225": {
180
+ "$value": {
181
+ "value": 2.25,
182
+ "unit": "rem"
183
+ }
184
+ }
185
+ },
186
+ "line-height": {
187
+ "$type": "number",
188
+ "125": {
189
+ "$value": 1.25
190
+ },
191
+ "135": {
192
+ "$value": 1.35
193
+ },
194
+ "150": {
195
+ "$value": 1.5
196
+ }
197
+ },
198
+ "font-weight": {
199
+ "$type": "fontWeight",
200
+ "400": {
201
+ "$value": 400
202
+ },
203
+ "500": {
204
+ "$value": 500
205
+ },
206
+ "600": {
207
+ "$value": 600
208
+ },
209
+ "700": {
210
+ "$value": 700
211
+ }
212
+ },
213
+ "duration": {
214
+ "$type": "duration",
215
+ "0": {
216
+ "$value": {
217
+ "value": 0,
218
+ "unit": "ms"
219
+ }
220
+ },
221
+ "100": {
222
+ "$value": {
223
+ "value": 100,
224
+ "unit": "ms"
225
+ }
226
+ },
227
+ "150": {
228
+ "$value": {
229
+ "value": 150,
230
+ "unit": "ms"
231
+ }
232
+ },
233
+ "200": {
234
+ "$value": {
235
+ "value": 200,
236
+ "unit": "ms"
237
+ }
238
+ },
239
+ "300": {
240
+ "$value": {
241
+ "value": 300,
242
+ "unit": "ms"
243
+ }
244
+ }
245
+ },
246
+ "viewport": {
247
+ "$type": "dimension",
248
+ "640": {
249
+ "$value": {
250
+ "value": 40,
251
+ "unit": "rem"
252
+ }
253
+ },
254
+ "768": {
255
+ "$value": {
256
+ "value": 48,
257
+ "unit": "rem"
258
+ }
259
+ },
260
+ "1024": {
261
+ "$value": {
262
+ "value": 64,
263
+ "unit": "rem"
264
+ }
265
+ },
266
+ "1280": {
267
+ "$value": {
268
+ "value": 80,
269
+ "unit": "rem"
270
+ }
271
+ }
272
+ }
273
+ }
@@ -0,0 +1,214 @@
1
+ {
2
+ "radius": {
3
+ "$type": "dimension",
4
+ "sm": {
5
+ "$value": "{radius.two-thirds}"
6
+ },
7
+ "md": {
8
+ "$value": "{radius.base}",
9
+ "$description": "The base radius. Inputs, buttons, selects."
10
+ },
11
+ "lg": {
12
+ "$value": "{radius.five-thirds}",
13
+ "$description": "Cards and panels."
14
+ },
15
+ "xl": {
16
+ "$value": "{radius.seven-thirds}",
17
+ "$description": "Dialogs and large surfaces."
18
+ },
19
+ "full": {
20
+ "$value": "{radius.pill}"
21
+ }
22
+ },
23
+ "space": {
24
+ "$type": "dimension",
25
+ "3xs": {
26
+ "$value": "{size.0-5}"
27
+ },
28
+ "2xs": {
29
+ "$value": "{size.1}"
30
+ },
31
+ "xs": {
32
+ "$value": "{size.2}"
33
+ },
34
+ "sm": {
35
+ "$value": "{size.3}"
36
+ },
37
+ "md": {
38
+ "$value": "{size.4}"
39
+ },
40
+ "lg": {
41
+ "$value": "{size.6}"
42
+ },
43
+ "xl": {
44
+ "$value": "{size.8}"
45
+ },
46
+ "2xl": {
47
+ "$value": "{size.12}"
48
+ },
49
+ "3xl": {
50
+ "$value": "{size.16}"
51
+ }
52
+ },
53
+ "font": {
54
+ "family": {
55
+ "$type": "fontFamily",
56
+ "sans": {
57
+ "$value": [
58
+ "Noto Sans Variable",
59
+ "Noto Sans",
60
+ "system-ui",
61
+ "sans-serif"
62
+ ],
63
+ "$description": "Loaded from @fontsource-variable/noto-sans. Never from Google's servers."
64
+ },
65
+ "mono": {
66
+ "$value": [
67
+ "ui-monospace",
68
+ "SFMono-Regular",
69
+ "Menlo",
70
+ "monospace"
71
+ ]
72
+ }
73
+ },
74
+ "size": {
75
+ "$type": "dimension",
76
+ "xs": {
77
+ "$value": "{font-size.075}"
78
+ },
79
+ "sm": {
80
+ "$value": "{font-size.0875}"
81
+ },
82
+ "md": {
83
+ "$value": "{font-size.100}",
84
+ "$description": "Body text."
85
+ },
86
+ "lg": {
87
+ "$value": "{font-size.1125}"
88
+ },
89
+ "xl": {
90
+ "$value": "{font-size.125}"
91
+ },
92
+ "2xl": {
93
+ "$value": "{font-size.150}",
94
+ "$description": "Large text threshold (24px) for contrast."
95
+ },
96
+ "3xl": {
97
+ "$value": "{font-size.1875}"
98
+ },
99
+ "4xl": {
100
+ "$value": "{font-size.225}"
101
+ }
102
+ },
103
+ "weight": {
104
+ "$type": "fontWeight",
105
+ "regular": {
106
+ "$value": "{font-weight.400}"
107
+ },
108
+ "medium": {
109
+ "$value": "{font-weight.500}"
110
+ },
111
+ "semibold": {
112
+ "$value": "{font-weight.600}"
113
+ },
114
+ "bold": {
115
+ "$value": "{font-weight.700}"
116
+ }
117
+ },
118
+ "line-height": {
119
+ "$type": "number",
120
+ "body": {
121
+ "$value": "{line-height.150}",
122
+ "$description": "WCAG 1.4.8: at least 1.5 for body text."
123
+ },
124
+ "heading": {
125
+ "$value": "{line-height.125}"
126
+ },
127
+ "ui": {
128
+ "$value": "{line-height.135}"
129
+ }
130
+ }
131
+ },
132
+ "paragraph-spacing": {
133
+ "$type": "dimension",
134
+ "$description": "WCAG 1.4.8: at least 1.5 × the 1.5 line height of body text (2.25rem at 1rem).",
135
+ "body": {
136
+ "$value": {
137
+ "value": 2.25,
138
+ "unit": "rem"
139
+ }
140
+ }
141
+ },
142
+ "focus": {
143
+ "ring-width": {
144
+ "$type": "dimension",
145
+ "$value": {
146
+ "value": 2,
147
+ "unit": "px"
148
+ },
149
+ "$description": "WCAG 2.4.13: at least 2px."
150
+ },
151
+ "ring-offset": {
152
+ "$type": "dimension",
153
+ "$value": {
154
+ "value": 2,
155
+ "unit": "px"
156
+ }
157
+ }
158
+ },
159
+ "target": {
160
+ "$type": "dimension",
161
+ "min": {
162
+ "$value": "{size.11}",
163
+ "$description": "WCAG 2.5.5: 44 × 44px hit area."
164
+ },
165
+ "compact": {
166
+ "$value": "{size.6}",
167
+ "$description": "Dense data grids in compact density only: 24 × 24px."
168
+ }
169
+ },
170
+ "scroll-padding": {
171
+ "$type": "dimension",
172
+ "$description": "WCAG 2.4.12: keeps focused elements clear of sticky headers and footers.",
173
+ "top": {
174
+ "$value": "{size.18}"
175
+ },
176
+ "bottom": {
177
+ "$value": "{size.16}"
178
+ }
179
+ },
180
+ "motion": {
181
+ "duration": {
182
+ "$type": "duration",
183
+ "$description": "Become 0 under prefers-reduced-motion: reduce, except fade.",
184
+ "fast": {
185
+ "$value": "{duration.100}"
186
+ },
187
+ "normal": {
188
+ "$value": "{duration.200}"
189
+ },
190
+ "slow": {
191
+ "$value": "{duration.300}"
192
+ },
193
+ "fade": {
194
+ "$value": "{duration.150}",
195
+ "$description": "Opacity fades only. Kept under reduced motion."
196
+ }
197
+ }
198
+ },
199
+ "breakpoint": {
200
+ "$type": "dimension",
201
+ "sm": {
202
+ "$value": "{viewport.640}"
203
+ },
204
+ "md": {
205
+ "$value": "{viewport.768}"
206
+ },
207
+ "lg": {
208
+ "$value": "{viewport.1024}"
209
+ },
210
+ "xl": {
211
+ "$value": "{viewport.1280}"
212
+ }
213
+ }
214
+ }