πΈ Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
category: Actions
The primary control. Nine visual variants on one shared shape (36px tall, 4.8px radius, 14px medium text, 4px icon gap).
accentβ the ONE emerald primary action on a surface ("Add site", "Save", "Publish"). At most one per view.defaultβ the raised gray chrome button (neutral-850 fill, neutral-750 border in dark). The everyday secondary action.secondaryβ one notch quieter thandefault(panel-colored fill).outlineβ bordered, transparent; toolbar and filter chrome.ghostβ no border or fill until hover; icon buttons, "Cancel", inline actions.linkβ text only with underline on hover; navigation-like actions.success/warning/destructiveβ state-colored actions (emerald, yellow, red). Use for confirmations, never as decoration.
Sizes: lg (40px) Β· default (36px) Β· sm (32px) Β· xs (24px) Β· icon (36px square) Β· smIcon (28px square). Put a lucide icon as the first child; the button sizes it to 16px automatically.
asChild renders the styles onto the child element (e.g. an <a>), keeping one DOM node.
<Button variant="accent"><Plus /> New goal</Button>
<Button variant="outline" size="sm">Export CSV</Button>
<Button size="icon" variant="ghost" aria-label="Settings"><Settings /></Button>