@atom63/styles 0.1.0-beta.4 → 0.1.0-beta.5
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/generated/atom63.figma-sync.json +2 -2
- package/generated/atom63.figma-tokens.json +3 -3
- package/generated/atom63.tokens.json +3 -3
- package/package.json +11 -3
- package/src/tokens/foundation/aliases.css +17 -13
- package/src/tokens/foundation/aliases.tokens.json +105 -0
- package/src/tokens/foundation/fonts.css +8 -4
- package/src/tokens/foundation/fonts.tokens.json +40 -0
- package/src/tokens/foundation/motion.css +3 -0
- package/src/tokens/foundation/motion.tokens.json +53 -0
- package/src/tokens/foundation/palette.css +3 -0
- package/src/tokens/foundation/palette.tokens.json +1743 -0
- package/src/tokens/foundation/primitives.css +20 -13
- package/src/tokens/foundation/primitives.tokens.json +3470 -0
- package/src/tokens/semantics.css +12 -0
- package/src/tokens/surface.css +5 -19
- package/src/tokens/surface.resolver.json +657 -0
package/src/tokens/semantics.css
CHANGED
|
@@ -8,6 +8,18 @@
|
|
|
8
8
|
* reverse. See packages/styles/README.md (the mirror rule).
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
+
/*
|
|
12
|
+
* Surface tint — --a63-surface-tint (0%..100%) bends the neutrals toward the brand
|
|
13
|
+
* hue. Rather than mixing all 24 raw ramp stops, only the semantic surface and
|
|
14
|
+
* border tokens below mix toward a lightness-matched --a63-brand-* step: about
|
|
15
|
+
* 12 color-mixes instead of 144. Themes that fully re-skin surfaces (aqua and
|
|
16
|
+
* terminal) define their own surface identity and do not receive the tint.
|
|
17
|
+
* Tint 0 is neutral.
|
|
18
|
+
*/
|
|
19
|
+
:root {
|
|
20
|
+
--a63-surface-tint: 0%;
|
|
21
|
+
}
|
|
22
|
+
|
|
11
23
|
:root,
|
|
12
24
|
.light,
|
|
13
25
|
[data-a63-mode='light'] {
|
package/src/tokens/surface.css
CHANGED
|
@@ -1,25 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
2
|
+
* Generated from src/tokens/surface.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`.
|
|
3
4
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* 2. TINT — --a63-surface-tint (0%..100%) bends the neutrals toward the brand
|
|
8
|
-
* hue. Rather than mixing all 24 raw ramp stops (as a Tailwind app would), we
|
|
9
|
-
* mix only the ~6 SEMANTIC surface/border tokens the system actually consumes,
|
|
10
|
-
* in tokens/semantics.css, each toward a lightness-matched --a63-brand-* step.
|
|
11
|
-
* That's ~12 color-mixes instead of 144, and it "just works" because those
|
|
12
|
-
* tokens sit at the mode scope, co-located with surface + brand + tint on the
|
|
13
|
-
* personalization root. Themes that fully re-skin surfaces (aqua/terminal)
|
|
14
|
-
* define their own surface identity and do not receive the brand tint.
|
|
15
|
-
*
|
|
16
|
-
* n1 is the default palette (matches tokens/foundation/aliases.css); tint 0 = neutral.
|
|
5
|
+
* Surface (neutral) palette axis. [data-a63-surface="n1".."n6"] remaps the neutral ramp
|
|
6
|
+
* (--surface-light-* / --surface-dark-*) to one of the six neutral palettes; n1 is the default.
|
|
7
|
+
* The second surface knob, --a63-surface-tint, lives with the tokens it bends in semantics.css.
|
|
17
8
|
*/
|
|
18
|
-
|
|
19
|
-
:root {
|
|
20
|
-
--a63-surface-tint: 0%;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
9
|
:root,
|
|
24
10
|
[data-a63-surface='n1'] {
|
|
25
11
|
--surface-light-1: var(--color-n1-light-1);
|