Stag is a shadcn/ui theme built around a deep cyan primary color (#162931) with deep orange accents (#311e16). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#162931) on a neutral background (#020608).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020608black |
| Foreground | #010304black | #f8fbfbghostwhite |
| Card | #fcfcfcsnow | #04090cblack |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #fcfcfcsnow | #04090cblack |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #162931darkslategray | #162931darkslategray |
| Primary foreground | #a4c7d5lightsteelblue | #a4c7d5lightsteelblue |
| Secondary | #311e16black | #311e16black |
| Secondary foreground | #d5b2a4tan | #d5b2a4tan |
| Muted | #edded9gainsboro | #261812black |
| Muted foreground | #665752dimgray | #ad9f99darkgray |
| Accent | #311e16black | #311e16black |
| Accent foreground | #d5b2a4tan | #d5b2a4tan |
| Destructive | #85130fmaroon | #e93b35crimson |
| Destructive foreground | #f9cecdpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #162931darkslategray | #162931darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 5.28:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 7.02:1 | AAA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 6.72:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 4.09:1 | AA Large |
Paste this into your globals.css to use Stag in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.094 0.009 218.131);
--muted: oklch(0.912 0.018 42.959);
--muted-foreground: oklch(0.471 0.021 42.79);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.27 0.028 225.133);
--primary-foreground: oklch(0.81 0.042 223.822);
--secondary: oklch(0.257 0.033 42.38);
--secondary-foreground: oklch(0.791 0.045 42.72);
--accent: oklch(0.257 0.033 42.38);
--accent-foreground: oklch(0.791 0.045 42.72);
--destructive: oklch(0.398 0.149 28.513);
--destructive-foreground: oklch(0.888 0.049 20.443);
--ring: oklch(0.27 0.028 225.133);
--chart-1: oklch(0.27 0.028 225.133);
--chart-2: oklch(0.257 0.033 42.38);
--chart-3: oklch(0.257 0.033 42.38);
--chart-4: oklch(0.288 0.039 42.344);
--chart-5: oklch(0.271 0.03 225.376);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.011 218.048);
--foreground: oklch(0.985 0.003 223.157);
--muted: oklch(0.225 0.027 42.426);
--muted-foreground: oklch(0.713 0.019 42.91);
--popover: oklch(0.135 0.013 218.705);
--popover-foreground: oklch(0.993 0.001 223.144);
--card: oklch(0.135 0.013 218.705);
--card-foreground: oklch(0.993 0.001 223.144);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.27 0.028 225.133);
--primary-foreground: oklch(0.81 0.042 223.822);
--secondary: oklch(0.257 0.033 42.38);
--secondary-foreground: oklch(0.791 0.045 42.72);
--accent: oklch(0.257 0.033 42.38);
--accent-foreground: oklch(0.791 0.045 42.72);
--destructive: oklch(0.616 0.211 27.444);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.27 0.028 225.133);
--chart-1: oklch(0.27 0.028 225.133);
--chart-2: oklch(0.257 0.033 42.38);
--chart-3: oklch(0.257 0.033 42.38);
--chart-4: oklch(0.288 0.039 42.344);
--chart-5: oklch(0.271 0.03 225.376);
}