Skip to content

Button

Base element styles for <button>. Resets browser defaults to a clean, inheriting base.


Base Reset

PropertyValue
font-familyinherit
font-sizeinherit
line-heightinherit
cursorpointer
bordernone
backgroundnone
padding0
colorinherit

Preview


Variants

.btn-primary

Full-width primary action button with hover elevation.

ClassPurpose
.btn-primaryPrimary action with brand background, hover shadow, focus ring
html
<button class="btn-primary">Add to Cart</button>

.btn-secondary

Secondary action button with muted background.

ClassPurpose
.btn-secondarySecondary action with muted background, hover shadow, focus ring
html
<button class="btn-secondary">Save Draft</button>

.btn-outlined

Border-only button that fills on hover.

ClassPurpose
.btn-outlinedOutlined button with primary border, fills on hover
html
<button class="btn-outlined">Learn More</button>

.btn-negative

Destructive action button with error background.

ClassPurpose
.btn-negativeDestructive action with error background, hover shadow, focus ring
html
<button class="btn-negative">Delete Account</button>

.btn-unstyled

Full visual reset for custom button wrappers.

ClassPurpose
.btn-unstyledStrips all button styling, inherits font and color
This is a inside text.
html
<button class="btn-unstyled">Unstyled button</button>

.size-selector / .size-btn

Inline size picker for product options.

ClassPurpose
.size-selectorFlex container with wrapping
.size-btnIndividual size option with border
.size-btn--activeSelected state with primary background
.size-btn:disabledUnavailable state (reduced opacity)
html
<div class="size-selector">
  <button class="size-btn">S</button>
  <button class="size-btn size-btn--active">M</button>
  <button class="size-btn">L</button>
  <button class="size-btn" disabled>XXL</button>
</div>

.filter-bar / .filter-chip

Horizontal filter toggle bar.

ClassPurpose
.filter-barFlex container with wrapping
.filter-chipPill-shaped toggle button
.filter-chip--activeSelected state with primary background
Filter:
html
<div class="filter-bar">
  <button class="filter-chip filter-chip--active">All</button>
  <button class="filter-chip">T-shirts</button>
  <button class="filter-chip">Posters</button>
</div>