Fox is a shadcn/ui theme built around a muted green primary color (#8ca088) with muted red accents (#a0888c). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted green primary (#8ca088) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #020401black |
| Foreground | #010401black | #fcfdfcwhite |
| Card | #f8fdf7mintcream | #030802black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfefbwhite | #020401black |
| Popover foreground | #010401black | #fcfdfcwhite |
| Primary | #8ca088darkseagreen | #8ca088darkseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #888ca0lightslategray | #888ca0lightslategray |
| Secondary foreground | #000000black | #000000black |
| Muted | #dee0e7gainsboro | #181921black |
| Muted foreground | #52545bdimgray | #a4a5addarkgray |
| Accent | #a0888crosybrown | #a0888crosybrown |
| Accent foreground | #000000black | #000000black |
| Destructive | #a72a11firebrick | #d53515firebrick |
| Destructive foreground | #fdefecseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8ca088darkseagreen | #8ca088darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 6.28:1 | AA |
| Muted text | 5.73:1 | AA |
| Accent | 6.39:1 | AA |
| Destructive | 6.29:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 6.28:1 | AA |
| Muted text | 7.15:1 | AAA |
| Accent | 6.39:1 | AA |
| Destructive | 4.80:1 | AA |
Paste this into your globals.css to use Fox in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 141.054);
--foreground: oklch(0.099 0.021 138.993);
--muted: oklch(0.907 0.01 278.15);
--muted-foreground: oklch(0.446 0.012 277.912);
--popover: oklch(0.994 0.005 141.054);
--popover-foreground: oklch(0.099 0.021 138.993);
--card: oklch(0.989 0.01 141.043);
--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.682 0.041 140.935);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.643 0.03 277.595);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.65 0.029 7.707);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.482 0.166 32.885);
--destructive-foreground: oklch(0.963 0.016 31.078);
--ring: oklch(0.682 0.041 140.935);
--chart-1: oklch(0.682 0.041 140.935);
--chart-2: oklch(0.643 0.03 277.595);
--chart-3: oklch(0.65 0.029 7.707);
--chart-4: oklch(0.67 0.028 277.686);
--chart-5: oklch(0.687 0.052 140.903);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.018 139.271);
--foreground: oklch(0.993 0.002 141.061);
--muted: oklch(0.215 0.015 277.196);
--muted-foreground: oklch(0.724 0.011 278.101);
--popover: oklch(0.098 0.018 139.271);
--popover-foreground: oklch(0.993 0.002 141.061);
--card: oklch(0.124 0.023 139.271);
--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.682 0.041 140.935);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.643 0.03 277.595);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.65 0.029 7.707);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.575 0.201 32.775);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.682 0.041 140.935);
--chart-1: oklch(0.682 0.041 140.935);
--chart-2: oklch(0.643 0.03 277.595);
--chart-3: oklch(0.65 0.029 7.707);
--chart-4: oklch(0.67 0.028 277.686);
--chart-5: oklch(0.687 0.052 140.903);
}