Axiom provides a comprehensive button styling system built on semantic HTML. All buttons use the native <button> element with optional classes for variants and sizes.
Button Variants
<button class="primary">Primary Button</button>
Use for primary actions and main CTAs.
Axiom provides a comprehensive button styling system built on semantic HTML. All buttons use the native <button> element with optional classes for variants and sizes.
<button class="primary">Primary Button</button>
<button class="secondary">Secondary Button</button>
<button class="danger">Delete</button>
<button class="success">Confirm</button>
<button class="primary" aria-label="Menu">
<i class="axicon render" data-name="Menu"></i>
</button>
<button class="small">Small</button>
<button class="button">Medium</button>
<button class="large">Large</button>
<button class="full-width">Full-Width</button>
<div class="grid tiles">
<button>Option 1</button>
<button>Option 2</button>
<button>Option 3</button>
</div>
All buttons have smooth hover effects (opacity change + lift with shadow).
Applied during click/press, removes the lift effect.
Visible outline for keyboard navigation and accessibility.
Use the disabled attribute. Button becomes 50% opacity and is not clickable.
Buttons use Axiom's color system variables:
/* Color variables */
--a-color-primary /* Primary button background */
--a-color-on-primary /* Primary button text */
--a-color-secondary /* Secondary button background */
--a-color-on-secondary /* Secondary button text */
--a-color-error /* Danger button background */
--a-color-on-error /* Danger button text */
--a-color-success /* Success button background */
--a-color-on-success /* Success button text */
<button> elementsaria-labelaria-label for icon-only buttonsThe Button Variants component is designed for versatile implementation across modern web applications. Ideal scenarios include: