@archetypeai/ds-lib-tokens 0.7.1 → 0.7.3
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 +12 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## @archetypeai/ds-lib-tokens
|
|
2
2
|
|
|
3
|
-
**Tailwind v4 theme** for the Archetype AI Design System. Provides semantic design tokens, color palettes, and base styles for use with the
|
|
3
|
+
**Tailwind v4 theme** for the Archetype AI Design System. Provides semantic design tokens, color palettes, and base styles for use with the design system component flavors.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -34,16 +34,23 @@ Import the theme before Tailwind in your global CSS:
|
|
|
34
34
|
|
|
35
35
|
| Feature | Details |
|
|
36
36
|
|---------|---------|
|
|
37
|
-
| **Semantic Tokens** | OKLCH CSS variables (shadcn-style): `background`, `foreground`, `card`, `popover`, `primary`, `secondary`, `muted`, `accent`, `destructive`, `border`, `input`, `ring`, `chart-1`–`5`, `sidebar`, `atai-neutral`, `atai-good`, `atai-warning`, `atai-critical
|
|
38
|
-
| **Brand Tokens** | 8 OKLCH palettes with shades 50–950: `atai-tangerine`, `atai-sunshine-yellow
|
|
37
|
+
| **Semantic Tokens** | OKLCH CSS variables (shadcn-style): `background`, `foreground`, `card`, `popover`, `primary`, `secondary`, `muted`, `accent`, `destructive`, `border`, `input`, `ring`, `chart-1`–`5`, `sidebar`, `atai-neutral`, `atai-good`, `atai-warning`, `atai-critical`, `atai-always-black`, `atai-always-white` |
|
|
38
|
+
| **Brand Tokens** | 8 OKLCH palettes with shades 50–950: `atai-tangerine`, `atai-sunshine-yellow` (amber-leaning scale), `atai-lime`, `atai-screen-green`, `atai-fire-red`, `atai-energy-pink`, `atai-cool-purple`, `atai-baby-blue` |
|
|
39
|
+
| **Spacing scale** | `--spacing-xs` (0.25rem) → `--spacing-xl` (1.5rem), used as `p-md`, `gap-lg`, … |
|
|
40
|
+
| **Radius scale** | `--radius-xs` → `--radius-xl`, `--radius-full`, plus `--atai-radius-interactive` (radius for interactive elements, `rounded-interactive`) |
|
|
41
|
+
| **Icon stroke widths** | `--stroke-width-icon-{default,interactive,status,emphasis}` (1 / 1.25 / 1.5 / 2) for Lucide icons |
|
|
42
|
+
| **Width scale guard** | `--max-width-*`/`--min-width-*` alias Tailwind's `--container-*` scale, so `max-w-md` resolves to container sizes instead of the t-shirt spacing tokens |
|
|
39
43
|
| **Dark mode** | `.dark` class via `@custom-variant dark (&:where(.dark, .dark *))` |
|
|
40
|
-
| **Client theme** | `.client` and `.dark-client` class variants |
|
|
41
44
|
| **Typography** | Font-family stacks with system fallbacks and semantic HTML base styles |
|
|
42
45
|
|
|
43
46
|
Brand tokens are defined in `tokens.css` and loaded automatically via `theme.css`.
|
|
44
47
|
|
|
48
|
+
### Semantic HTML base layer
|
|
49
|
+
|
|
50
|
+
`theme.css` styles bare HTML elements so plain markup is on-brand without utility classes: `body`, `h1`–`h6`, `p`, `small`, `span`, `strong`, `em`, `label`, `a`, `code`, `blockquote`. All elements default to `border-border` and `outline-ring/50`.
|
|
51
|
+
|
|
45
52
|
---
|
|
46
53
|
|
|
47
54
|
## Fonts
|
|
48
55
|
|
|
49
|
-
`fonts.css` is included in this package with `@font-face` declarations pointing to `/fonts/`. The CLI (`ds create` / `ds init`) copies
|
|
56
|
+
`fonts.css` is included in this package with `@font-face` declarations (15 faces of PP Neue Montreal Sans + Mono, `font-display: swap`) pointing to `/fonts/`. The font binaries themselves are **not** part of the npm package - the CLI (`ds create` / `ds init` / `ds add --fonts <path>`) copies them into your project's `static/fonts/`. Without fonts, the theme falls back to system fonts (`system-ui`, `Courier New`).
|