Stag is a shadcn/ui theme built around a vivid light orange primary color (#fecf9a) with vivid light yellow accents (#fbfe9a). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the vivid light orange primary (#fecf9a) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfaf8snow | #040301black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fbf8f4floralwhite | #080502black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbf8f4floralwhite | #080502black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #fecf9anavajowhite | #fecf9anavajowhite |
| Primary foreground | #653601saddlebrown | #653601saddlebrown |
| Secondary | #fe9d9alightsalmon | #fe9d9alightsalmon |
| Secondary foreground | #650401maroon | #650401maroon |
| Muted | #e7cccblightgrey | #341918black |
| Muted foreground | #686464dimgray | #9b9797darkgray |
| Accent | #fbfe9akhaki | #fbfe9akhaki |
| Accent foreground | #000000black | #000000black |
| Destructive | #9e2e05saddlebrown | #f8612atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fecf9anavajowhite | #fecf9anavajowhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 3.85:1 | AA Large |
| Accent | 19.72:1 | AAA |
| Destructive | 7.36:1 | AAA |
| Text on background | 20.64:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 5.58:1 | AA |
| Accent | 19.72:1 | AAA |
| Destructive | 6.75:1 | AA |
Paste this into your globals.css to use Stag in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.004 71.417);
--foreground: oklch(0 0 0);
--muted: oklch(0.866 0.031 20.128);
--muted-foreground: oklch(0.507 0.005 19.744);
--popover: oklch(0.979 0.006 71.399);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.979 0.006 71.399);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.884 0.086 70.076);
--primary-foreground: oklch(0.385 0.089 60.734);
--secondary: oklch(0.795 0.116 22.131);
--secondary-foreground: oklch(0.321 0.128 29.826);
--accent: oklch(0.973 0.123 110.127);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.469 0.155 36.737);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.884 0.086 70.076);
--chart-1: oklch(0.884 0.086 70.076);
--chart-2: oklch(0.795 0.116 22.131);
--chart-3: oklch(0.973 0.123 110.127);
--chart-4: oklch(0.823 0.097 21.567);
--chart-5: oklch(0.885 0.089 70.013);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.01 79.087);
--foreground: oklch(1 0 180);
--muted: oklch(0.252 0.044 22.744);
--muted-foreground: oklch(0.68 0.005 19.701);
--popover: oklch(0.12 0.013 79.087);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.013 79.087);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.884 0.086 70.076);
--primary-foreground: oklch(0.385 0.089 60.734);
--secondary: oklch(0.795 0.116 22.131);
--secondary-foreground: oklch(0.321 0.128 29.826);
--accent: oklch(0.973 0.123 110.127);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.681 0.196 38.708);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.884 0.086 70.076);
--chart-1: oklch(0.884 0.086 70.076);
--chart-2: oklch(0.795 0.116 22.131);
--chart-3: oklch(0.973 0.123 110.127);
--chart-4: oklch(0.823 0.097 21.567);
--chart-5: oklch(0.885 0.089 70.013);
}