MITA / DESIGN SYSTEM / BUTTONS● DEV · LOCAL PREVIEW
MITA · V2 Foundation

Buttons

Shared components, documented once and used everywhere.

v0.1.3 · review

Button DS-BTN-001

Use for actions. This preview uses the same CSS classes as the reusable component.

DRAFT / REVIEW

Live component

Change a property to inspect the component.

Responsive previews

Mobile · 320px available width
Desktop · flexible container

These are container-width demonstrations. Verify real mobile, tablet and desktop browsers before approval.

Component controls

Controls change the live component state, not its design tokens. Changes are not saved or published.

Resolved styling

These values are read directly from the rendered button using the browser's computed styles.

PropertyComputed valueSource
Enable JavaScript to inspect resolved styling.

Component contract

PropertySupported valuesDefault
variantprimary, secondary, outline, dangerprimary
sizesm, medium, lgmedium
disabledtrue / falsefalse
loadingtrue / falsefalse

Implementation

Source of truth: css/components.css and css/tokens.css. Do not override per page.

Usage guidance

Use

For clear actions with accessible text. Use primary for the main action in a region; danger for destructive actions requiring appropriate confirmation.

Avoid

Using disabled controls without explaining why, using colour alone to communicate meaning, or adding inline styles to individual buttons.

Accessibility and release criteria

  • Native button semantics and keyboard activation
  • Visible keyboard focus; loading state announced to assistive technology
  • Text contrast and target sizing must be checked for every variant
  • Check at 320px, 375px, 768px, 1024px and desktop widths
  • Test zoom at 200% and reduced-motion preference

These are acceptance requirements, not a claim that all checks have passed.

Change history

ReleaseChangeStatus
v0.1.3Dedicated asset documentation, computed styles, responsive examplesReview
v0.1.0Initial button variants and state playgroundPrototype