---
id: portfolio.ds.surface-button
name: "Surface Button"
type: component
status: active
relations: []
sources: ["packages/design-system/src/components/SurfaceButton.astro","apps/portfolio-site/src/design-system/docs/surface-button.astro","apps/portfolio-site/src/lib/designSystemRegistry.ts"]
catalog: ["apps/portfolio-site/src/design-system/docs/surface-button.astro"]
previews: ["apps/portfolio-site/src/design-system/docs/surface-button.astro"]
---
# Surface Button

## Purpose
Large, text-led action surface composed by Action Block.

## Contract
- Accepts label, variant (primary or secondary), href, type, disabled and native attributes.
- Primary uses inverse surface/text; secondary uses secondary background and normal text. Existing tokens own colors, typography, radius and spacing.
- Variants are not interaction states. Both support hover, keyboard focus, press and disabled semantics.
- Both variants use the accent-blue background and inverse text/icon color on hover.
- Radius is radius-sm (8px). Focus uses --interaction-focus-extra-contrast-ring; focus-visible uses --interaction-focus-visible-extra-contrast-ring directly from Interaction States. These shared tokens define a 2px background gap and distinct 2px/3px outer accent rings for filled controls. Both use outline: none without local token overrides or hand-written ring geometry. Parent layouts must keep the outer ring visible. Primary filled interaction styling is also used by Chat Send Button, with its own compact geometry; pressed uses brightness(0.9), and color transitions are 160ms ease-out (none for Reduced Motion).
- Renders a native anchor with href for navigation, otherwise a native button. Parent owns destinations and action handlers.
- Fills parent width; minimum height is 144px on Mobile and 192px elsewhere, growing for wrapped text. Label uses H1 size and bold weight, not heading semantics.
- Mobile ends at 640px. Preview breakpoint controls reproduce the corresponding spacing without depending on the outer browser viewport.
- Reduced motion disables color transitions.
- Preview labels stay abstract. Production copy belongs to the route.
- Includes a decorative Lucide ArrowRight at the right edge, with a stable 32px track; label wraps independently without overlapping the icon.

## Verification
- Check both variants, long labels, native keyboard focus and disabled behavior.
- Check runtime and Preview across four supported breakpoints.
- Run the Design System graph validation.

## Use
- Prominent primary or secondary actions inside Action Block.

## Do Not Use
- Not a content card or a heading; do not use for compact toolbar controls.

## Accessibility
- Label supplies the accessible name. Native button/anchor semantics preserve keyboard activation.
- Visible keyboard focus is retained in both variants. Disabled links have no href; disabled buttons use the native disabled attribute.
