@atom63/styles 0.1.0-beta.3 → 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.
@@ -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'] {
@@ -1,25 +1,11 @@
1
1
  /*
2
- * Surface (neutral) axis.
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
- * Two personalization knobs for the neutrals:
5
- * 1. PALETTE — [data-a63-surface="n1".."n6"] remaps the neutral ramp
6
- * (--surface-light-* / --surface-dark-*) to one of the six neutral palettes.
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);