Skip to content
Flat Meet

Button

Actions

Every button in the app is .btn plus one variant: 44px tall with 12px corners, the same as a field. Buttons and link-buttons share hover feedback without a hover lift; primary buttons settle to 98% when pressed. Disabled controls fade to 45%.

Source

src/app/globals.css
View in Storybook

Usage

Variants
Sizes

Guidelines

  • .btn-primary for the main action; one per screen
  • .btn-secondary for secondary actions, .btn-outline for a clear but lighter alternative, .btn-ghost for ones that should not draw the eye
  • .btn-danger only for deleting and other actions that cannot be undone (signing out is not one)
  • .btn-selected for a toggle that is on, with aria-pressed
  • .btn-sm (36px) for toolbars only; .btn-icon for a square, icon-only button (it needs an aria-label)
  • Use PendingButton for acknowledged asynchronous submissions: reserve both labels, disable repeat submission, expose aria-busy, and keep errors nearby

Accessibility

  • An icon-only button needs an aria-label, and usually a Tooltip
  • Focus shows a 2px accent ring, 2px out, on every variant