Components
The pieces the Lab and the post editor need first. Each follows the interaction rules; every state below is the real component.
Button
Primary is the one next step on a screen: Export, Generate. Never two on one screen.
Secondary is bordered: everything else that does something. Hover only darkens the border.
Ghost is for repeated or low-stakes actions inside panels: Reset, toolbar toggles.
Labels are verbs, Hungarian in the post tools, English in the Lab. No danger variant: say what happens in words.
In a Lab panel footer: one primary, the rest secondary or ghost.
| Normal | Hover | Pressed | Focus | Disabled | Loading | Selected | Invalid | |
|---|---|---|---|---|---|---|---|---|
| primary | n/a · Never a toggle | n/a · Not a field | ||||||
| secondary | n/a · Not a field | |||||||
| ghost | n/a · Not a field |
Fields
Text field for content: headline, place, booking URL, seed.
Select for one choice from a short known list: specimen, treatment, format.
Slider for continuous values you judge by eye: cell size, contrast, leading. Always show the value next to it.
Invalid shows a 2 px ink border and a message with an icon, never red.
Add the event date.
| Normal | Hover | Pressed | Focus | Disabled | Loading | Selected | Invalid | |
|---|---|---|---|---|---|---|---|---|
| input | n/a · Text fields don't press | n/a · Fields don't load | n/a · Not selectable | |||||
| select | n/a · Options load before opening | |||||||
| select item | Halftone | Halftone | n/a · Picks on release | n/a · Keyboard highlight = Hover | Halftone | n/a · n/a | Halftone | n/a · Not a field |
| slider | n/a · Instant | n/a · Not selectable | n/a · Always in range |
Component index
| Piece | Where its states are drawn | Code | Status |
|---|---|---|---|
| Button | Components › Button › States | src/components/ui/button.tsx | built |
| Text field | Components › Fields › States | src/components/ui/input.tsx | built |
| Select | Components › Fields › States | src/components/ui/select.tsx | built |
| Slider | Components › Fields › States | src/components/ui/slider.tsx | built |
| Tabs (segmented, line) | Brand › header | src/components/ui/tabs.tsx | built (shadcn), no states matrix yet |
| Logo, Leaf, Λ | Foundations › Logo | src/brand/logo.tsx | built |
| Shader orbs (orbkit) | not drawn | src/components/ui/shdr-*.tsx | imported, not on brand tokens |
One icon set: UIX Icons Sharp, from src/components/icons.tsx. Icon trial