Evantis

Design System

Buttons

  • 4variants
  • 3sizes
  • 6states
The Evantis button is Website-v2's Buttons V2 with Day One Home colors: teal primary, bronze secondary, bronze link, red danger. Everything on this page follows the Theme switch.

A · Introduction

Adopted 2026-11-11. Buttons V2 replaced the Day One Home button everywhere in Evantis. The old doh-btn styles stay in the DS stylesheet for parity with the design system artifact, but no component renders them.

Why V2

One button system shared with the portfolio, so the case study and the product speak the same button language. Corners follow the DS radius scale.

Variants

Primary: teal fill, the main action. Secondary: bronze outline (500) that fills bronze-500 with a white label on hover. Link: bronze text with a soft hover background. Danger: red fill, only for remove or revoke.

Semantics

Button renders a real button. ButtonLink renders next/link for internal routes, or an anchor with a safe rel for external ones. One look, two elements.

Icon side

Left by default, for actions: Add, Call, Save. Right only when the button goes somewhere: an external link, a new page, the next step. Only a right-side icon moves on hover. ButtonLink defaults to right.

Sizes

Large 48px for the main caregiver action. Medium 40px for ordinary use. Small 32px for dense rows and cards.

B · Visual matrix

One block per variant, with the default left icon: rows Large → Medium → Small, columns are the six states. States are forced with preview-only classes; the real component implements pointer and keyboard behaviour underneath.

Primary · teal

default
hover
pressed
focus
disabled
loading
LG
MD
SM

Secondary · bronze

default
hover
pressed
focus
disabled
loading
LG
MD
SM

Link · bronze

default
hover
pressed
focus
disabled
loading
LG
MD
SM

Danger · red

default
hover
pressed
focus
disabled
loading
LG
MD
SM

C · Interactive playground

The real component. Pointer and keyboard work. Theme follows the side panel.

<Button
  variant="primary"
  size="md"
  icon={"add"}
>
  Add Medication
</Button>

E · Tokens & dimensions

Dimensions (Large → Small)

SizeHeightRadiusHorizontal paddingFont size / weightIcon size / weightLabel–icon gap
LG48px12px · radius-1222px16px / 40016px · light 30010px
MD40px8px · radius-818px14px / 40014px · 4008px
SM32px8px · radius-814px12px / 40012px · 4006px

Color tokens (light | dark)

RoleToken
Primary · fillbtn-primary-bg
Primary · hover fillbtn-primary-bg-hover
Primary · pressed fillbtn-primary-bg-active
Primary · textbtn-primary-fg
Secondary · border and textbtn-secondary-ink
Secondary · hover fillbtn-secondary-bg-hover
Secondary · hover textbtn-secondary-fg
Secondary · pressed fillbtn-secondary-bg-active
Link · textaccent-text
Link · hover backgroundbtn-secondary-tint-hover
Danger · fillerror-fill
Danger · texton-error
Focus ringfocus-ring

Unlike V2's fixed cream and navy hex, every color is a Day One Home semantic token, so the button needs no surface prop and can't drift from the system.

F · Before vs after

The Day One Home button API next to the Buttons V2 API that replaced it.

Day One Home (before)Buttons V2 (now)Example
tone="primary" variant="filled"variant="primary"
variant="outline"variant="secondary"
variant="text"variant="link"
tone="danger"variant="danger"
iconLeft / iconRighticon + iconPosition (left by default)
32 / 48 / 64px, radius 4–1232 / 40 / 48px, radius 8 / 8 / 12

G · Adoption policy

  1. Button is the only action button in Evantis. Don't style a raw button or anchor to look like one.
  2. One primary per view. A second action is secondary or link.
  3. Danger only for remove or revoke, and always inside a confirm step.
  4. Navigation is ButtonLink, never Button with a router push.
  5. Labels are Title Case and start with a verb.
  6. Icons sit left for actions. Put them right only when the button goes somewhere: external, a new page, the next step.
  7. The doh-btn classes stay for design-system parity; never use them in new code.
  8. Changing a button color means changing the token in tokens.json, not this component.

H · Readiness checklist

RequirementStatusNote
Button + ButtonLink implementedComplete
Primary / Secondary / Link / DangerCompleteDanger kept from the Day One Home button, drawn in the V2 style.
Large / Medium / SmallCompleteV2 heights 48 / 40 / 32px; labels Inter Regular 16 / 14 / 12px.
Light and dark themesCompleteColors are DS tokens, so both themes follow the document. No surface prop.
States: hover, pressed, focus, disabled, loadingComplete
Keyboard focus ringCompleteDS focus-ring token, 2px at 2px offset (V2 used currentColor).
All Evantis buttons migratedCompleteCards, alerts, modals and every lab demo.
WCAG 2.2 AA contrast, every variant and statePendingFills come from DS tokens rated AA; the link hover background and the 0.55 disabled opacity are not yet measured.
Touch target on the caregiver surfacePendingMedium is 40px; the Day One Home caregiver guidance was 48px. Use Large for primary caregiver actions until tested.