Foundation
Border styles and corner radius tokens that define the shape language of the design system.
Borders and border radius define the shape language of the Thrive Design System. Consistent use of these tokens ensures a cohesive visual identity across all components, from sharp-cornered data tables to gently rounded cards.
| Token | Value | Use Case |
|---|---|---|
--radius-none | 0px | Sharp corners, data tables, inline elements |
--radius-2xs | 2px | Subtle rounding, tags, small badges |
--radius-xs | 4px | Form inputs, compact cards |
--radius-sm | 6px | Buttons, dropdowns, small cards |
--radius | 8px | Default rounding, cards, dialogs |
--radius-lg | 8px | Larger cards, panels |
--radius-xl | 12px | Hero cards, featured content |
--radius-full | 9999px | Pills, avatars, circular elements |
| Token | CSS Variable | Usage |
|---|---|---|
| Default | --color-border | Standard borders for cards, inputs, dividers |
| Hover | --color-border-hover | Borders on hover state |
| Secondary | --color-border-secondary | Subtle secondary borders |
| Muted | --color-border-muted | Very light borders, background separation |
| Focus | --color-border-focus | Focus ring color for interactive elements |
| Destructive | --color-border-destructive | Error and destructive state borders |
| Success | --color-border-success | Success state borders |
| Primary | --color-border-primary | Primary brand borders |
| Info | --color-border-info | Informational borders |
| Warning | --color-border-warning | Warning state borders |
--radius (8px) as the default for most components.--radius-full only for pills, avatars, and circular elements.1px for standard borders, 2px for emphasis or focus states.--color-border-destructive for error states, not arbitrary red)..my-card {
border: 1px solid var(--color-border);
border-radius: var(--radius);
}
.my-card:hover {
border-color: var(--color-border-hover);
}
.my-card:focus-within {
border-color: var(--color-border-focus);
outline: 2px solid var(--color-border-focus);
}<div class="border border-border rounded-lg">Default card</div>
<div class="border border-border-hover rounded-sm">Compact element</div>
<div class="rounded-full">Pill or avatar</div>--color-border-focus with a minimum 2px width for keyboard navigation visibility.