@atom63/styles 0.1.0-beta.5 → 0.1.0-beta.7
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/README.md +16 -10
- package/generated/atom63.figma-sync.json +12897 -6323
- package/generated/atom63.tokens.json +8778 -3550
- package/package.json +8 -7
- package/src/compat/a63-from-shadcn.css +10 -0
- package/src/compat/shadcn.browser.test.ts +23 -0
- package/src/compat/shadcn.css +118 -16
- package/src/contracts/action.css +4 -3
- package/src/contracts/action.native.css +11 -0
- package/src/contracts/action.tokens.json +66 -0
- package/src/contracts/badge.css +83 -58
- package/src/contracts/badge.resolver.json +449 -0
- package/src/contracts/choice.css +4 -1
- package/src/contracts/choice.native.css +9 -0
- package/src/contracts/choice.tokens.json +66 -0
- package/src/contracts/control.css +43 -52
- package/src/contracts/control.native.css +13 -0
- package/src/contracts/control.tokens.json +245 -0
- package/src/contracts/environment.css +45 -49
- package/src/contracts/environment.native.css +23 -0
- package/src/contracts/environment.resolver.json +569 -0
- package/src/contracts/field.css +3 -1
- package/src/contracts/field.tokens.json +40 -0
- package/src/contracts/marker.css +6 -4
- package/src/contracts/marker.tokens.json +15 -0
- package/src/contracts/menu.css +25 -61
- package/src/contracts/menu.native.css +10 -0
- package/src/contracts/menu.resolver.json +122 -0
- package/src/contracts/overlay.css +11 -13
- package/src/contracts/overlay.native.css +13 -0
- package/src/contracts/overlay.tokens.json +103 -0
- package/src/contracts/segment.css +22 -68
- package/src/contracts/segment.tokens.json +19 -0
- package/src/contracts/selection.css +3 -1
- package/src/contracts/selection.tokens.json +37 -0
- package/src/contracts/skeleton.css +3 -0
- package/src/contracts/skeleton.resolver.json +66 -0
- package/src/contracts/surface.css +13 -24
- package/src/contracts/surface.native.css +17 -0
- package/src/contracts/surface.tokens.json +97 -0
- package/src/contracts/toggle.css +3 -1
- package/src/contracts/toggle.tokens.json +49 -0
- package/src/contracts/track.css +3 -1
- package/src/contracts/track.tokens.json +39 -0
- package/src/contracts/trigger.css +5 -2
- package/src/contracts/trigger.native.css +9 -0
- package/src/contracts/trigger.tokens.json +58 -0
- package/src/contracts/widget.css +41 -51
- package/src/contracts/widget.native.css +23 -0
- package/src/contracts/widget.resolver.json +1104 -0
- package/src/tailwind/roles.json +172 -0
- package/src/tailwind/theme.css +107 -23
- package/src/themes/aqua.css +24 -89
- package/src/themes/aqua.native.css +80 -0
- package/src/themes/aqua.resolver.json +1292 -0
- package/src/themes/modern.css +10 -14
- package/src/themes/modern.native.css +16 -0
- package/src/themes/modern.resolver.json +350 -0
- package/src/themes/retro.css +21 -26
- package/src/themes/retro.native.css +16 -0
- package/src/themes/retro.resolver.json +788 -0
- package/src/themes/terminal.css +34 -41
- package/src/themes/terminal.native.css +22 -0
- package/src/themes/terminal.resolver.json +517 -0
- package/src/tokens/brand-action.css +61 -0
- package/src/tokens/brand-action.resolver.json +137 -0
- package/src/tokens/brand-ramp.css +108 -0
- package/src/tokens/brand-ramp.resolver.json +418 -0
- package/src/tokens/brand.css +6 -146
- package/src/tokens/color-mix-space.browser.test.ts +79 -0
- package/src/tokens/contrast.browser.test.ts +82 -3
- package/src/tokens/figma-parity.browser.test.ts +270 -0
- package/src/tokens/font.css +6 -0
- package/src/tokens/font.resolver.json +107 -0
- package/src/tokens/foundation/effects.css +13 -13
- package/src/tokens/foundation/effects.resolver.json +433 -0
- package/src/tokens/foundation/fonts.css +3 -1
- package/src/tokens/foundation/fonts.tokens.json +6 -1
- package/src/tokens/foundation/radius.css +6 -9
- package/src/tokens/foundation/radius.tokens.json +100 -0
- package/src/tokens/foundation/typography.css +25 -12
- package/src/tokens/foundation/typography.native.css +11 -0
- package/src/tokens/foundation/typography.resolver.json +936 -0
- package/src/tokens/foundation.css +0 -1
- package/src/tokens/motion.css +3 -1
- package/src/tokens/motion.resolver.json +135 -0
- package/src/tokens/native-values.json +38 -0
- package/src/tokens/personalization-axes.browser.test.ts +5 -3
- package/src/tokens/radius.css +12 -8
- package/src/tokens/radius.resolver.json +138 -0
- package/src/tokens/semantics.css +211 -47
- package/src/tokens/semantics.resolver.json +1296 -0
- package/src/tokens/space.css +8 -6
- package/src/tokens/space.tokens.json +78 -0
- package/src/tokens/swift-parity.browser.test.ts +141 -0
- package/src/tokens/type-scale.css +6 -0
- package/src/tokens/type-scale.resolver.json +67 -0
- package/generated/atom63.figma-tokens.json +0 -21661
- package/src/tokens/foundation/aliases.css +0 -32
- package/src/tokens/foundation/aliases.tokens.json +0 -105
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2025.10",
|
|
3
|
+
"description": "Font personalization axis.\n\n--a63-font-app is the active application font stack; a consumer applies it on\nthe app root (e.g. `font-family: var(--a63-font-app)` on body). [data-a63-font]\nremaps it to one of the four foundation family stacks (foundation/fonts.css).\nDefaults to the sans stack.",
|
|
4
|
+
"sets": {
|
|
5
|
+
"base": {
|
|
6
|
+
"sources": [
|
|
7
|
+
{
|
|
8
|
+
"a63": {
|
|
9
|
+
"font": {
|
|
10
|
+
"app": {
|
|
11
|
+
"$type": "fontFamily",
|
|
12
|
+
"$value": "{font.family.sans}"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"font": {
|
|
17
|
+
"weight": {
|
|
18
|
+
"medium": {
|
|
19
|
+
"$type": "fontWeight",
|
|
20
|
+
"$value": 500
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"$extensions": {
|
|
27
|
+
"io.atom63.css": {
|
|
28
|
+
"selector": ":root"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"modifiers": {
|
|
34
|
+
"font": {
|
|
35
|
+
"default": "sans",
|
|
36
|
+
"contexts": {
|
|
37
|
+
"sans": [
|
|
38
|
+
{
|
|
39
|
+
"a63": {
|
|
40
|
+
"font": {
|
|
41
|
+
"app": {
|
|
42
|
+
"$type": "fontFamily",
|
|
43
|
+
"$value": "{font.family.sans}"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"serif": [
|
|
50
|
+
{
|
|
51
|
+
"a63": {
|
|
52
|
+
"font": {
|
|
53
|
+
"app": {
|
|
54
|
+
"$type": "fontFamily",
|
|
55
|
+
"$value": "{font.family.serif}"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"mono": [
|
|
62
|
+
{
|
|
63
|
+
"a63": {
|
|
64
|
+
"font": {
|
|
65
|
+
"app": {
|
|
66
|
+
"$type": "fontFamily",
|
|
67
|
+
"$value": "{font.family.mono}"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"pixel": [
|
|
74
|
+
{
|
|
75
|
+
"a63": {
|
|
76
|
+
"font": {
|
|
77
|
+
"app": {
|
|
78
|
+
"$type": "fontFamily",
|
|
79
|
+
"$value": "{font.family.pixel}"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"resolutionOrder": [
|
|
89
|
+
{
|
|
90
|
+
"$ref": "#/sets/base"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"$ref": "#/modifiers/font"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"$extensions": {
|
|
97
|
+
"io.atom63.css": {
|
|
98
|
+
"attribute": "data-a63-font",
|
|
99
|
+
"selectors": {
|
|
100
|
+
"sans": "[data-a63-font='sans']",
|
|
101
|
+
"serif": "[data-a63-font='serif']",
|
|
102
|
+
"mono": "[data-a63-font='mono']",
|
|
103
|
+
"pixel": "[data-a63-font='pixel']"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Generated from src/tokens/foundation/effects.resolver.json by scripts/build-css-from-dtcg.mjs. Do not edit;
|
|
3
|
+
* change the DTCG source and run `pnpm --filter @atom63/styles generate:tokens`.
|
|
4
|
+
*
|
|
5
|
+
* Effects — shared shadow + blur scales
|
|
6
|
+
*
|
|
7
|
+
* Shadows override Tailwind's defaults so values match Figma tokens
|
|
8
|
+
*
|
|
9
|
+
* Usage: shadow-md → var(--shadow-md) → var(--effect-shadow-md)
|
|
10
|
+
*
|
|
11
|
+
* Shadow utilities read effect aliases at runtime so generated themes can swap
|
|
12
|
+
* visual depth without rebuilding Tailwind classes.
|
|
13
|
+
*/
|
|
7
14
|
:root,
|
|
8
15
|
.light {
|
|
9
16
|
--effect-shadow-2xs: 0px 1px 1px 0px rgb(0 0 0 / 0.04);
|
|
@@ -13,7 +20,6 @@
|
|
|
13
20
|
--effect-shadow-lg: 0px 8px 14px -4px rgb(0 0 0 / 0.07), 0px 18px 32px -12px rgb(0 0 0 / 0.1);
|
|
14
21
|
--effect-shadow-xl: 0px 14px 22px -6px rgb(0 0 0 / 0.08), 0px 34px 64px -16px rgb(0 0 0 / 0.13);
|
|
15
22
|
--effect-shadow-2xl: 0px 20px 32px -8px rgb(0 0 0 / 0.1), 0px 52px 96px -18px rgb(0 0 0 / 0.14);
|
|
16
|
-
|
|
17
23
|
/* Blur scale — canonical shared steps; Tailwind adapter re-references. */
|
|
18
24
|
--blur-xs: 4px;
|
|
19
25
|
--blur-sm: 8px;
|
|
@@ -23,9 +29,3 @@
|
|
|
23
29
|
--blur-2xl: 40px;
|
|
24
30
|
--blur-3xl: 64px;
|
|
25
31
|
}
|
|
26
|
-
|
|
27
|
-
/*
|
|
28
|
-
* Theme-private material (gel stacks, bevels, CRT glows, skin-only blur stops)
|
|
29
|
-
* lives under `[data-a63-theme]` in themes/*.css — not here. Promote into this
|
|
30
|
-
* file only when a second theme or an adapter needs the same stop.
|
|
31
|
-
*/
|
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2025.10",
|
|
3
|
+
"description": "Effects — shared shadow + blur scales\n\nShadows override Tailwind's defaults so values match Figma tokens\n\nUsage: shadow-md → var(--shadow-md) → var(--effect-shadow-md)\n\nShadow utilities read effect aliases at runtime so generated themes can swap\n visual depth without rebuilding Tailwind classes.",
|
|
4
|
+
"sets": {
|
|
5
|
+
"01-root-light": {
|
|
6
|
+
"sources": [
|
|
7
|
+
{
|
|
8
|
+
"effect": {
|
|
9
|
+
"shadow": {
|
|
10
|
+
"2xs": {
|
|
11
|
+
"$type": "shadow",
|
|
12
|
+
"$value": [
|
|
13
|
+
{
|
|
14
|
+
"color": {
|
|
15
|
+
"colorSpace": "srgb",
|
|
16
|
+
"components": [0.0, 0.0, 0.0],
|
|
17
|
+
"alpha": 0.04
|
|
18
|
+
},
|
|
19
|
+
"offsetX": {
|
|
20
|
+
"value": 0,
|
|
21
|
+
"unit": "px"
|
|
22
|
+
},
|
|
23
|
+
"offsetY": {
|
|
24
|
+
"value": 1,
|
|
25
|
+
"unit": "px"
|
|
26
|
+
},
|
|
27
|
+
"blur": {
|
|
28
|
+
"value": 1,
|
|
29
|
+
"unit": "px"
|
|
30
|
+
},
|
|
31
|
+
"spread": {
|
|
32
|
+
"value": 0,
|
|
33
|
+
"unit": "px"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"$extensions": {
|
|
38
|
+
"io.atom63.derive": "0px 1px 1px 0px rgb(0 0 0 / 0.04)"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"xs": {
|
|
42
|
+
"$type": "shadow",
|
|
43
|
+
"$value": [
|
|
44
|
+
{
|
|
45
|
+
"color": {
|
|
46
|
+
"colorSpace": "srgb",
|
|
47
|
+
"components": [0.0, 0.0, 0.0],
|
|
48
|
+
"alpha": 0.05
|
|
49
|
+
},
|
|
50
|
+
"offsetX": {
|
|
51
|
+
"value": 0,
|
|
52
|
+
"unit": "px"
|
|
53
|
+
},
|
|
54
|
+
"offsetY": {
|
|
55
|
+
"value": 1,
|
|
56
|
+
"unit": "px"
|
|
57
|
+
},
|
|
58
|
+
"blur": {
|
|
59
|
+
"value": 2,
|
|
60
|
+
"unit": "px"
|
|
61
|
+
},
|
|
62
|
+
"spread": {
|
|
63
|
+
"value": 0,
|
|
64
|
+
"unit": "px"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"color": {
|
|
69
|
+
"colorSpace": "srgb",
|
|
70
|
+
"components": [0.0, 0.0, 0.0],
|
|
71
|
+
"alpha": 0.08
|
|
72
|
+
},
|
|
73
|
+
"offsetX": {
|
|
74
|
+
"value": 0,
|
|
75
|
+
"unit": "px"
|
|
76
|
+
},
|
|
77
|
+
"offsetY": {
|
|
78
|
+
"value": 2,
|
|
79
|
+
"unit": "px"
|
|
80
|
+
},
|
|
81
|
+
"blur": {
|
|
82
|
+
"value": 4,
|
|
83
|
+
"unit": "px"
|
|
84
|
+
},
|
|
85
|
+
"spread": {
|
|
86
|
+
"value": -2,
|
|
87
|
+
"unit": "px"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"$extensions": {
|
|
92
|
+
"io.atom63.derive": "0px 1px 2px 0px rgb(0 0 0 / 0.05), 0px 2px 4px -2px rgb(0 0 0 / 0.08)"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"sm": {
|
|
96
|
+
"$type": "shadow",
|
|
97
|
+
"$value": [
|
|
98
|
+
{
|
|
99
|
+
"color": {
|
|
100
|
+
"colorSpace": "srgb",
|
|
101
|
+
"components": [0.0, 0.0, 0.0],
|
|
102
|
+
"alpha": 0.06
|
|
103
|
+
},
|
|
104
|
+
"offsetX": {
|
|
105
|
+
"value": 0,
|
|
106
|
+
"unit": "px"
|
|
107
|
+
},
|
|
108
|
+
"offsetY": {
|
|
109
|
+
"value": 2,
|
|
110
|
+
"unit": "px"
|
|
111
|
+
},
|
|
112
|
+
"blur": {
|
|
113
|
+
"value": 4,
|
|
114
|
+
"unit": "px"
|
|
115
|
+
},
|
|
116
|
+
"spread": {
|
|
117
|
+
"value": -1,
|
|
118
|
+
"unit": "px"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"color": {
|
|
123
|
+
"colorSpace": "srgb",
|
|
124
|
+
"components": [0.0, 0.0, 0.0],
|
|
125
|
+
"alpha": 0.08
|
|
126
|
+
},
|
|
127
|
+
"offsetX": {
|
|
128
|
+
"value": 0,
|
|
129
|
+
"unit": "px"
|
|
130
|
+
},
|
|
131
|
+
"offsetY": {
|
|
132
|
+
"value": 6,
|
|
133
|
+
"unit": "px"
|
|
134
|
+
},
|
|
135
|
+
"blur": {
|
|
136
|
+
"value": 10,
|
|
137
|
+
"unit": "px"
|
|
138
|
+
},
|
|
139
|
+
"spread": {
|
|
140
|
+
"value": -4,
|
|
141
|
+
"unit": "px"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"$extensions": {
|
|
146
|
+
"io.atom63.derive": "0px 2px 4px -1px rgb(0 0 0 / 0.06), 0px 6px 10px -4px rgb(0 0 0 / 0.08)"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"md": {
|
|
150
|
+
"$type": "shadow",
|
|
151
|
+
"$value": [
|
|
152
|
+
{
|
|
153
|
+
"color": {
|
|
154
|
+
"colorSpace": "srgb",
|
|
155
|
+
"components": [0.0, 0.0, 0.0],
|
|
156
|
+
"alpha": 0.06
|
|
157
|
+
},
|
|
158
|
+
"offsetX": {
|
|
159
|
+
"value": 0,
|
|
160
|
+
"unit": "px"
|
|
161
|
+
},
|
|
162
|
+
"offsetY": {
|
|
163
|
+
"value": 4,
|
|
164
|
+
"unit": "px"
|
|
165
|
+
},
|
|
166
|
+
"blur": {
|
|
167
|
+
"value": 8,
|
|
168
|
+
"unit": "px"
|
|
169
|
+
},
|
|
170
|
+
"spread": {
|
|
171
|
+
"value": -2,
|
|
172
|
+
"unit": "px"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"color": {
|
|
177
|
+
"colorSpace": "srgb",
|
|
178
|
+
"components": [0.0, 0.0, 0.0],
|
|
179
|
+
"alpha": 0.09
|
|
180
|
+
},
|
|
181
|
+
"offsetX": {
|
|
182
|
+
"value": 0,
|
|
183
|
+
"unit": "px"
|
|
184
|
+
},
|
|
185
|
+
"offsetY": {
|
|
186
|
+
"value": 12,
|
|
187
|
+
"unit": "px"
|
|
188
|
+
},
|
|
189
|
+
"blur": {
|
|
190
|
+
"value": 18,
|
|
191
|
+
"unit": "px"
|
|
192
|
+
},
|
|
193
|
+
"spread": {
|
|
194
|
+
"value": -8,
|
|
195
|
+
"unit": "px"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"$extensions": {
|
|
200
|
+
"io.atom63.derive": "0px 4px 8px -2px rgb(0 0 0 / 0.06), 0px 12px 18px -8px rgb(0 0 0 / 0.09)"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"lg": {
|
|
204
|
+
"$type": "shadow",
|
|
205
|
+
"$value": [
|
|
206
|
+
{
|
|
207
|
+
"color": {
|
|
208
|
+
"colorSpace": "srgb",
|
|
209
|
+
"components": [0.0, 0.0, 0.0],
|
|
210
|
+
"alpha": 0.07
|
|
211
|
+
},
|
|
212
|
+
"offsetX": {
|
|
213
|
+
"value": 0,
|
|
214
|
+
"unit": "px"
|
|
215
|
+
},
|
|
216
|
+
"offsetY": {
|
|
217
|
+
"value": 8,
|
|
218
|
+
"unit": "px"
|
|
219
|
+
},
|
|
220
|
+
"blur": {
|
|
221
|
+
"value": 14,
|
|
222
|
+
"unit": "px"
|
|
223
|
+
},
|
|
224
|
+
"spread": {
|
|
225
|
+
"value": -4,
|
|
226
|
+
"unit": "px"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"color": {
|
|
231
|
+
"colorSpace": "srgb",
|
|
232
|
+
"components": [0.0, 0.0, 0.0],
|
|
233
|
+
"alpha": 0.1
|
|
234
|
+
},
|
|
235
|
+
"offsetX": {
|
|
236
|
+
"value": 0,
|
|
237
|
+
"unit": "px"
|
|
238
|
+
},
|
|
239
|
+
"offsetY": {
|
|
240
|
+
"value": 18,
|
|
241
|
+
"unit": "px"
|
|
242
|
+
},
|
|
243
|
+
"blur": {
|
|
244
|
+
"value": 32,
|
|
245
|
+
"unit": "px"
|
|
246
|
+
},
|
|
247
|
+
"spread": {
|
|
248
|
+
"value": -12,
|
|
249
|
+
"unit": "px"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"$extensions": {
|
|
254
|
+
"io.atom63.derive": "0px 8px 14px -4px rgb(0 0 0 / 0.07), 0px 18px 32px -12px rgb(0 0 0 / 0.1)"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"xl": {
|
|
258
|
+
"$type": "shadow",
|
|
259
|
+
"$value": [
|
|
260
|
+
{
|
|
261
|
+
"color": {
|
|
262
|
+
"colorSpace": "srgb",
|
|
263
|
+
"components": [0.0, 0.0, 0.0],
|
|
264
|
+
"alpha": 0.08
|
|
265
|
+
},
|
|
266
|
+
"offsetX": {
|
|
267
|
+
"value": 0,
|
|
268
|
+
"unit": "px"
|
|
269
|
+
},
|
|
270
|
+
"offsetY": {
|
|
271
|
+
"value": 14,
|
|
272
|
+
"unit": "px"
|
|
273
|
+
},
|
|
274
|
+
"blur": {
|
|
275
|
+
"value": 22,
|
|
276
|
+
"unit": "px"
|
|
277
|
+
},
|
|
278
|
+
"spread": {
|
|
279
|
+
"value": -6,
|
|
280
|
+
"unit": "px"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"color": {
|
|
285
|
+
"colorSpace": "srgb",
|
|
286
|
+
"components": [0.0, 0.0, 0.0],
|
|
287
|
+
"alpha": 0.13
|
|
288
|
+
},
|
|
289
|
+
"offsetX": {
|
|
290
|
+
"value": 0,
|
|
291
|
+
"unit": "px"
|
|
292
|
+
},
|
|
293
|
+
"offsetY": {
|
|
294
|
+
"value": 34,
|
|
295
|
+
"unit": "px"
|
|
296
|
+
},
|
|
297
|
+
"blur": {
|
|
298
|
+
"value": 64,
|
|
299
|
+
"unit": "px"
|
|
300
|
+
},
|
|
301
|
+
"spread": {
|
|
302
|
+
"value": -16,
|
|
303
|
+
"unit": "px"
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"$extensions": {
|
|
308
|
+
"io.atom63.derive": "0px 14px 22px -6px rgb(0 0 0 / 0.08), 0px 34px 64px -16px rgb(0 0 0 / 0.13)"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"2xl": {
|
|
312
|
+
"$type": "shadow",
|
|
313
|
+
"$value": [
|
|
314
|
+
{
|
|
315
|
+
"color": {
|
|
316
|
+
"colorSpace": "srgb",
|
|
317
|
+
"components": [0.0, 0.0, 0.0],
|
|
318
|
+
"alpha": 0.1
|
|
319
|
+
},
|
|
320
|
+
"offsetX": {
|
|
321
|
+
"value": 0,
|
|
322
|
+
"unit": "px"
|
|
323
|
+
},
|
|
324
|
+
"offsetY": {
|
|
325
|
+
"value": 20,
|
|
326
|
+
"unit": "px"
|
|
327
|
+
},
|
|
328
|
+
"blur": {
|
|
329
|
+
"value": 32,
|
|
330
|
+
"unit": "px"
|
|
331
|
+
},
|
|
332
|
+
"spread": {
|
|
333
|
+
"value": -8,
|
|
334
|
+
"unit": "px"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"color": {
|
|
339
|
+
"colorSpace": "srgb",
|
|
340
|
+
"components": [0.0, 0.0, 0.0],
|
|
341
|
+
"alpha": 0.14
|
|
342
|
+
},
|
|
343
|
+
"offsetX": {
|
|
344
|
+
"value": 0,
|
|
345
|
+
"unit": "px"
|
|
346
|
+
},
|
|
347
|
+
"offsetY": {
|
|
348
|
+
"value": 52,
|
|
349
|
+
"unit": "px"
|
|
350
|
+
},
|
|
351
|
+
"blur": {
|
|
352
|
+
"value": 96,
|
|
353
|
+
"unit": "px"
|
|
354
|
+
},
|
|
355
|
+
"spread": {
|
|
356
|
+
"value": -18,
|
|
357
|
+
"unit": "px"
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"$extensions": {
|
|
362
|
+
"io.atom63.derive": "0px 20px 32px -8px rgb(0 0 0 / 0.1), 0px 52px 96px -18px rgb(0 0 0 / 0.14)"
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"blur": {
|
|
368
|
+
"xs": {
|
|
369
|
+
"$type": "dimension",
|
|
370
|
+
"$value": {
|
|
371
|
+
"value": 4,
|
|
372
|
+
"unit": "px"
|
|
373
|
+
},
|
|
374
|
+
"$description": "Blur scale — canonical shared steps; Tailwind adapter re-references."
|
|
375
|
+
},
|
|
376
|
+
"sm": {
|
|
377
|
+
"$type": "dimension",
|
|
378
|
+
"$value": {
|
|
379
|
+
"value": 8,
|
|
380
|
+
"unit": "px"
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"md": {
|
|
384
|
+
"$type": "dimension",
|
|
385
|
+
"$value": {
|
|
386
|
+
"value": 12,
|
|
387
|
+
"unit": "px"
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
"lg": {
|
|
391
|
+
"$type": "dimension",
|
|
392
|
+
"$value": {
|
|
393
|
+
"value": 16,
|
|
394
|
+
"unit": "px"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"xl": {
|
|
398
|
+
"$type": "dimension",
|
|
399
|
+
"$value": {
|
|
400
|
+
"value": 24,
|
|
401
|
+
"unit": "px"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"2xl": {
|
|
405
|
+
"$type": "dimension",
|
|
406
|
+
"$value": {
|
|
407
|
+
"value": 40,
|
|
408
|
+
"unit": "px"
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
"3xl": {
|
|
412
|
+
"$type": "dimension",
|
|
413
|
+
"$value": {
|
|
414
|
+
"value": 64,
|
|
415
|
+
"unit": "px"
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
"$extensions": {
|
|
422
|
+
"io.atom63.css": {
|
|
423
|
+
"selector": ":root,\n.light"
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"resolutionOrder": [
|
|
429
|
+
{
|
|
430
|
+
"$ref": "#/sets/01-root-light"
|
|
431
|
+
}
|
|
432
|
+
]
|
|
433
|
+
}
|
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
--font-family-sans:
|
|
9
9
|
'Geist', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
10
10
|
--font-family-serif: 'Brawler', ui-serif, 'Georgia', 'Cambria', 'Times New Roman', 'Times', serif;
|
|
11
|
+
/* Latin monospace faces first, then one Simplified Chinese face per platform before the generic family. Without them, CJK text in monospace falls back to whichever CJK font the system picks, which differs between runs on Linux. */
|
|
11
12
|
--font-family-mono:
|
|
12
13
|
'Geist Mono', ui-monospace, 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono',
|
|
13
|
-
'Courier New',
|
|
14
|
+
'Courier New', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans Mono CJK SC',
|
|
15
|
+
'WenQuanYi Zen Hei Mono', monospace;
|
|
14
16
|
--font-family-pixel: 'Doto', 'Geist Mono', ui-monospace, monospace;
|
|
15
17
|
}
|
|
@@ -28,8 +28,13 @@
|
|
|
28
28
|
"Consolas",
|
|
29
29
|
"Liberation Mono",
|
|
30
30
|
"Courier New",
|
|
31
|
+
"PingFang SC",
|
|
32
|
+
"Microsoft YaHei",
|
|
33
|
+
"Noto Sans Mono CJK SC",
|
|
34
|
+
"WenQuanYi Zen Hei Mono",
|
|
31
35
|
"monospace"
|
|
32
|
-
]
|
|
36
|
+
],
|
|
37
|
+
"$description": "Latin monospace faces first, then one Simplified Chinese face per platform before the generic family. Without them, CJK text in monospace falls back to whichever CJK font the system picks, which differs between runs on Linux."
|
|
33
38
|
},
|
|
34
39
|
"pixel": {
|
|
35
40
|
"$type": "fontFamily",
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Generated from src/tokens/foundation/radius.tokens.json by scripts/build-css-from-dtcg.mjs. Do not edit;
|
|
3
|
+
* change the DTCG source and run `pnpm --filter @atom63/styles generate:tokens`.
|
|
4
|
+
*
|
|
2
5
|
* Radius foundation.
|
|
3
6
|
*
|
|
4
7
|
* The anchor (--corner-radius) and --radius-multiplier drive a derived scale.
|
|
@@ -9,28 +12,22 @@
|
|
|
9
12
|
:root {
|
|
10
13
|
--corner-radius: 10px;
|
|
11
14
|
--radius-multiplier: 1;
|
|
12
|
-
|
|
13
15
|
/* Tailwind default: `rounded` class (matches md) */
|
|
14
16
|
--radius: calc(var(--corner-radius) * 0.8 * var(--radius-multiplier));
|
|
15
|
-
|
|
16
17
|
/* Lower scale */
|
|
17
18
|
--radius-2xs: calc(var(--corner-radius) * 0.2 * var(--radius-multiplier));
|
|
18
19
|
--radius-xs: calc(var(--corner-radius) * 0.4 * var(--radius-multiplier));
|
|
19
20
|
--radius-sm: calc(var(--corner-radius) * 0.6 * var(--radius-multiplier));
|
|
20
21
|
--radius-md: calc(var(--corner-radius) * 0.8 * var(--radius-multiplier));
|
|
21
|
-
|
|
22
22
|
/* The anchor */
|
|
23
23
|
--radius-lg: calc(var(--corner-radius) * var(--radius-multiplier));
|
|
24
|
-
|
|
25
24
|
/* Upper scale */
|
|
26
25
|
--radius-xl: calc(var(--corner-radius) * 1.4 * var(--radius-multiplier));
|
|
27
26
|
--radius-2xl: calc(var(--corner-radius) * 1.8 * var(--radius-multiplier));
|
|
28
27
|
--radius-3xl: calc(var(--corner-radius) * 2.2 * var(--radius-multiplier));
|
|
29
28
|
--radius-4xl: calc(var(--corner-radius) * 2.6 * var(--radius-multiplier));
|
|
30
|
-
/*
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
* pill that ignores subtle/none/round wrap.
|
|
34
|
-
*/
|
|
29
|
+
/* Soft “full” = 2× md (already includes the multiplier). Stays on the same
|
|
30
|
+
personalization curve as the rest of the scale instead of a fixed 9999px
|
|
31
|
+
pill that ignores subtle/none/round wrap. */
|
|
35
32
|
--radius-full: calc(var(--radius-xl) * 2);
|
|
36
33
|
}
|