Buttons¶
Void provides button classes built on the design tokens. All buttons use Space Grotesk and inherit accent colors from the palette.
Note
The following classes are built into the theme — no custom CSS required.
Tip
Clicking any .void-btn shows a brief toast notification (e.g. "Clicked: Default") and a pressed-scale feedback effect. This is wired up automatically by initUIExamples() — no extra JavaScript needed.
Default¶
The standard filled button.
Accent (outline)¶
A bordered variant with transparent background.
Ghost¶
No background, no border. Muted text that highlights on hover.
Pill¶
Rounded, filled, and prominent — best for key calls to action.
Sizes¶
Add --sm or --lg to any variant to adjust size.
<button class="void-btn void-btn--sm">Small</button>
<button class="void-btn">Default</button>
<button class="void-btn void-btn--lg">Large</button>
Disabled¶
Add the native disabled attribute to dim and deactivate any button.
<button class="void-btn" disabled>Disabled</button>
<button class="void-btn void-btn--accent" disabled>Disabled</button>
<button class="void-btn void-btn--ghost" disabled>Disabled</button>
Combining variants¶
Modifiers can be mixed freely.