Skip to content

Commit cc66fc8

Browse files
stevekwon211claude
andcommitted
chore(showcase): Typography + HUD sections, v0.12.0
New sections: Typography (Text scale + tones + Badge ghost/link + Tabs line + Card padding/radius demos) and HUD (Keycap/HudPill/SlotTile). snapshot.rs SECTION_NAMES → 14. README + ROADMAP record the web-parity P0 (34 components). Version → 0.12.0; cache-bust ?v=0.12.0; sidebar badge v0.12. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent fedc115 commit cc66fc8

23 files changed

Lines changed: 178 additions & 13 deletions

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ you copy into your repo and customize.
2525
| **v0.9** | **shadcn fidelity pass** — token recalibration (h-9, px-4, radius 10, spacing-xl/2xl), segmented Tabs, Dialog X-close + p-6 + click-absorb, all 18 primitives to measured shadcn specs ||
2626
| **v0.10** | **Breadth batch A** — Accordion, Avatar, Textarea, Progress, Alert, Skeleton, Toggle, ToggleGroup (26 components) ||
2727
| **v0.11** | **Breadth batch B** — Breadcrumb, Pagination, Table, Slider (30 components) ||
28-
| **v0.12** | Breadth batch C — Popover, DropdownMenu, Combobox, HoverCard, ContextMenu (overlays) | upcoming |
29-
| **v1.0** | Game HUD registry — hotbar, reticle, keycap hints | later |
28+
| **v0.12** | **Web-parity P0** — Text typography + game/HUD trio (Keycap, HudPill, SlotTile) + variant axes (Card padding/radius, Badge ghost/link, Tabs line) (34 components) ||
29+
| **v0.13** | P1/P2 — ScrollArea, Popover, ContextMenu | upcoming |
30+
| **v1.0** | Game HUD registry expansion — hotbar, reticle, full keycap hints | later |
3031

3132
SaaS-first is a **wedge**, not a ceiling. Once tokens + motion + hover semantics
3233
exist, a second registry (`registry/game/`) is just more `.slint` files.
@@ -115,6 +116,14 @@ silently falling through to the default styling.
115116
| **Slider** | draggable value slider + arrow keys | `value: float`, `minimum`, `maximum`, `changed(float)` |
116117
| **Table** | header + rows, equal-stretch columns | `columns: [string]`, `rows: [TableRow]` (`cells: [string]`) |
117118

119+
### Typography & games/HUD
120+
| Component | Purpose | Notable props |
121+
|-----------|---------|---------------|
122+
| **Text** | typography scale (import `as Typography`) | `variant: display/headline/title/body-lg/body/body-sm/label/caption`, `tone: default/muted/subtle/accent/danger` |
123+
| **Keycap** | keyboard-hint cap for HUDs | `text`, `size: sm/md`, `tone: on-glow/on-glass/muted/affirm-*/deny-*` |
124+
| **HudPill** | rounded-full HUD status pill | `text`, `size: sm/md/lg`, `tone: scrim0/scrim1/scrim2` |
125+
| **SlotTile** | inventory / hotbar slot (holds `@children`) | `tone: stone/empty/accent`, `state: idle/active/disabled`, `interactive`, `size` |
126+
118127
### Iconography & theming
119128
| Component | Purpose | Notable props |
120129
|-----------|---------|---------------|
@@ -188,7 +197,7 @@ closed modals don't block interaction with the underlying UI.
188197
registry/default/ # Source of truth (published with npm package)
189198
theme/palette.slint # raw color/alpha primitives
190199
theme/tokens.slint # semantic layer (components read this)
191-
components/*.slint # 30 primitives + popup-helpers + lucide-paths
200+
components/*.slint # 34 primitives + popup-helpers + lucide-paths
192201
examples/showcase/ # Runnable gallery (regenerated via `slintcn add`)
193202
bin/slintcn.mjs # init + add CLI (transitive deps)
194203
bin/__test__/ # node:test suite — `make test`

docs/ROADMAP.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
# slintcn roadmap
22

3-
## v0.11 — breadth batch B (current)
3+
## v0.12 — web-parity P0 (current)
4+
5+
Driven by an audit of a real Base-UI/shadcn web app (apps/web): the 21 UI
6+
elements actually used there, with their variant axes. Closed slintcn's P0
7+
gaps. 30 → 34 components.
8+
9+
- [x] **Text** — typography primitive: `variant` (display/headline/title/
10+
body-lg/body/body-sm/label/caption) × `tone` (default/muted/subtle/
11+
accent/danger). Import `as Typography` to avoid the built-in `Text`.
12+
- [x] **Keycap** — keyboard-hint cap; `size` (sm/md) × `tone` (on-glow/
13+
on-glass/muted/affirm-*/deny-*). Affirm = green, deny = red.
14+
- [x] **HudPill** — rounded-full status pill; `size` (sm/md/lg) × `tone`
15+
(scrim0/scrim1/scrim2).
16+
- [x] **SlotTile** — inventory/hotbar slot holding `@children`; `tone`
17+
(stone/empty/accent) × `state` (idle/active/disabled) × `interactive`.
18+
- [x] **Variant axes**: Card gains `card-padding` (none/sm/md/lg) +
19+
`card-radius` (md/lg/xl/xxl); Badge gains `ghost` + `link`; Tabs gains
20+
a `line` variant (underline) alongside the default segmented control.
21+
- [x] Tokens: `color-affirm` (green), `color-subtle-foreground`,
22+
`color-scrim-0/1` (HUD pill levels).
23+
- [x] Showcase: **Typography** + **HUD** sections.
24+
25+
## v0.11 — breadth batch B
426

527
Navigation + data primitives. 26 → 30 components.
628

3.44 KB
Loading
3.49 KB
Loading
3.44 KB
Loading
3.44 KB
Loading
145 KB
Loading
110 KB
Loading
3.44 KB
Loading
3.64 KB
Loading

0 commit comments

Comments
 (0)