@atom63/styles 0.1.0-beta.6 → 0.1.0-beta.8
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 +7 -4
- package/generated/atom63.figma-sync.json +10559 -5138
- package/generated/atom63.tokens.json +13034 -7792
- package/package.json +6 -4
- package/src/compat/a63-from-shadcn.css +5 -1
- package/src/compat/shadcn.browser.test.ts +23 -0
- package/src/compat/shadcn.css +133 -17
- package/src/contracts/badge.css +81 -65
- package/src/contracts/badge.resolver.json +145 -62
- package/src/contracts/choice.css +1 -1
- package/src/contracts/choice.tokens.json +1 -1
- package/src/contracts/control.css +14 -8
- package/src/contracts/control.tokens.json +57 -8
- package/src/contracts/environment.css +134 -12
- package/src/contracts/environment.resolver.json +664 -23
- package/src/contracts/field.css +1 -1
- package/src/contracts/field.tokens.json +1 -1
- package/src/contracts/selection.css +2 -0
- package/src/contracts/selection.tokens.json +5 -0
- package/src/contracts/surface.css +4 -0
- package/src/contracts/surface.tokens.json +57 -0
- package/src/tailwind/roles.json +189 -0
- package/src/tailwind/theme.css +210 -22
- package/src/tailwind/utilities.css +17 -0
- package/src/themes/aqua.css +1 -0
- package/src/themes/aqua.resolver.json +6 -0
- package/src/themes/retro.css +1 -0
- package/src/themes/retro.resolver.json +6 -0
- package/src/themes/terminal.css +8 -0
- package/src/themes/terminal.resolver.json +37 -0
- package/src/tokens/brand-action.css +16 -1
- package/src/tokens/brand-action.resolver.json +42 -5
- package/src/tokens/contrast.browser.test.ts +59 -0
- package/src/tokens/density.browser.test.ts +167 -0
- package/src/tokens/figma-parity.browser.test.ts +27 -14
- package/src/tokens/form-factor.browser.test.ts +129 -0
- package/src/tokens/foundation/primitives.css +0 -30
- package/src/tokens/foundation/primitives.tokens.json +0 -212
- package/src/tokens/foundation/radius.css +5 -0
- package/src/tokens/foundation/radius.tokens.json +8 -0
- package/src/tokens/foundation/typography.css +24 -0
- package/src/tokens/foundation/typography.native.css +12 -2
- package/src/tokens/foundation/typography.resolver.json +72 -0
- package/src/tokens/index.css +1 -0
- package/src/tokens/personalization-axes.browser.test.ts +13 -0
- package/src/tokens/semantics.css +251 -4
- package/src/tokens/semantics.resolver.json +1148 -12
- package/src/tokens/surface.css +8 -0
- package/src/tokens/surface.resolver.json +49 -0
- package/src/tokens/swift-parity.browser.test.ts +4 -0
- package/src/tokens/type-roles.css +75 -0
- package/src/tokens/type-roles.resolver.json +366 -0
package/README.md
CHANGED
|
@@ -126,8 +126,11 @@ Primitive → Semantic (--a63-*) → Design Language → Mode → Theme → OS
|
|
|
126
126
|
```
|
|
127
127
|
|
|
128
128
|
- **Primitive / Semantic** — `tokens/foundation/*`, `tokens/semantics.css`
|
|
129
|
-
- **Design Language / Input / Density** — `contracts/environment.css`
|
|
130
|
-
(`[data-a63-design-language]`, `[data-a63-input]`, `[data-a63-density]
|
|
129
|
+
- **Design Language / Input / Density / Form factor** — `contracts/environment.css`
|
|
130
|
+
(`[data-a63-design-language]`, `[data-a63-input]`, `[data-a63-density]`,
|
|
131
|
+
`[data-a63-form-factor='phone']`). The phone form factor sets the type steps
|
|
132
|
+
to the iOS text sizes (body 17px) and the iOS control ramp inside a phone
|
|
133
|
+
screen; `AppView layout="phone"` stamps it, viewport width does not.
|
|
131
134
|
- **Mode** — `.light` / `.dark` (`[data-a63-mode]`) on the semantic layer
|
|
132
135
|
- **Theme** — `themes/*.css` under `[data-a63-theme]` (visual skin / paint)
|
|
133
136
|
- **OS** — `os/*.css` under `[data-a63-os]` (chrome structure + chrome paint
|
|
@@ -169,9 +172,9 @@ ramp). Together these are the single source of semantic truth.
|
|
|
169
172
|
| Surface | `--a63-surface-page`, `--a63-surface-panel`, `--a63-surface-overlay`, `--a63-surface-muted`, `--a63-surface-control`, `--a63-surface-control-hover` | `semantics.css` |
|
|
170
173
|
| Text | `--a63-text-primary`, `--a63-text-secondary`, `--a63-text-danger` (error and destructive text; `--a63-action-danger` is the fill) | `semantics.css` |
|
|
171
174
|
| Border | `--a63-border-subtle`, `--a63-border-control` | `semantics.css` |
|
|
172
|
-
| Action | `--a63-action-primary` (+ `-hover`, `-foreground`), `--a63-action-danger` (+ `-hover`, `-foreground`), `--a63-action-neutral` (+ `-foreground`) | primary
|
|
175
|
+
| Action | `--a63-action-primary` (+ `-hover`, `-foreground`), `--a63-action-danger` (+ `-hover`, `-foreground`), `--a63-action-neutral` (+ `-foreground`) | primary in `brand-action.css`; danger/neutral in `semantics.css` |
|
|
173
176
|
| Status | `--a63-status-info`, `--a63-status-success`, `--a63-status-warning` (+ `-foreground`) | `semantics.css` |
|
|
174
|
-
| Focus | `--a63-focus-ring` | `
|
|
177
|
+
| Focus | `--a63-focus-ring` (brand step 600 in light, 400 in dark: 3:1 against surfaces, WCAG 1.4.11) | `semantics.css` |
|
|
175
178
|
| Scrim | `--a63-scrim` | `semantics.css` |
|
|
176
179
|
| Media | `--a63-media-stage`, `--a63-media-scrim` (behind full-screen photos and video, black in every theme) | `semantics.css` |
|
|
177
180
|
| On media | `--a63-on-media-foreground`, `--a63-on-media-surface` (+ `-strong`), `--a63-on-media-border`, `--a63-on-media-ring`, `--a63-on-media-veil` (+ `-strong`) — controls over photos and video, whose colors are unknowable, so these hold in every theme | `semantics.css` |
|