Skip to content
One Insurance

Components

Buttons

Three levels of emphasis, one consistent shape. Choose solid, outlined, or borderless buttons to make the next step clear.

Usage & approach

Use one primary action per task, a secondary button for an alternative, and a tertiary button for a low-emphasis action. Insurance green (#006838) remains the primary fill in both themes. Use button for actions and anchors for navigation. Examples are visual references: they do not save, submit, or navigate. Set type="submit" only in a real form. States change instantly, without animation.

Specifications

Shared shape
rounded-md (6px); border; min-h-11 (44px); gap-2 (8px).
Label and padding
text-sm font-semibold; px-5 py-2.5. Use short, specific action labels.
Primary · solid
bg-[#006838] text-white; enabled:hover:bg-[#00552e]; enabled:active:bg-[#004525].
Secondary · outlined
border-[#006838] bg-transparent text-[#006838]; dark:border-[#707873] dark:text-[#f4f5f2].
Tertiary · borderless
border-transparent bg-transparent; a subtle surface appears on hover and press.
Focus and disabled
focus-visible:outline-2 focus-visible:outline-offset-2; green outline in light mode, white in dark mode. Native disabled + disabled:opacity-50. enabled: variants prevent disabled hover styles.

Primary · solid

For the most important action: continue, submit, or confirm. Insurance green and white text stay the same in both themes.

HTML + Tailwind CSS · fit to panel

Secondary · outlined

For an alternative action such as saving a draft. The green outline becomes a readable neutral outline on dark surfaces.

HTML + Tailwind CSS · fit to panel

Tertiary · borderless

For low-emphasis actions such as going back or cancelling. It keeps the same target size and gains a subtle fill on hover or press.

HTML + Tailwind CSS · fit to panel

Interaction states

Static primary-button state swatches for comparison. Hover and press the live examples above, or use Tab to inspect keyboard focus. These labelled swatches do not represent saved selection states.

HTML + Tailwind CSS · fit to panel

Sizing

Compact, default, and large treatments share a 44px minimum target. Keep sizing consistent within an action group.

HTML + Tailwind CSS · fit to panel

Responsive action group

Primary comes first in reading and keyboard order. Actions stack full-width on mobile and sit together from 640px, with 12px gaps.

HTML + Tailwind CSS · fit to panel

Bring this into your project

Copy the HTML from the code panel. Keep complete utility names in files scanned by Tailwind, retain accessible labels and focus styles, and connect actions to your own application. Preview controls belong to this documentation and are not part of the copied example.

IFRC One Insurance · UI Reference
Tailwind CSS v4.3.3 · Visual examples, ready to adapt.