Fox is a shadcn/ui theme built around a vivid purple primary color (#8608a6) with vivid green accents (#27a608). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#8608a6) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0b020dblack | #f9f5faghostwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #0b020dblack | #f9f5faghostwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0b020dblack | #f9f5faghostwhite |
| Primary | #8608a6darkmagenta | #8608a6darkmagenta |
| Primary foreground | #f8e2felavenderblush | #f8e2felavenderblush |
| Secondary | #27a608forestgreen | #27a608forestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #daded8gainsboro | #222721black |
| Muted foreground | #3d4c39darkslategray | #b7c6b3silver |
| Accent | #27a608forestgreen | #27a608forestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #862404darkred | #f85620orangered |
| Destructive foreground | #fdcebfpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8608a6darkmagenta | #8608a6darkmagenta |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 20.41:1 | AAA |
| Primary button | 6.66:1 | AA |
| Secondary button | 3.22:1 | AA Large |
| Muted text | 6.73:1 | AA |
| Accent | 3.22:1 | AA Large |
| Destructive | 6.51:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 6.66:1 | AA |
| Secondary button | 3.22:1 | AA Large |
| Muted text | 8.54:1 | AAA |
| Accent | 3.22:1 | AA Large |
| Destructive | 6.35:1 | AA |
Paste this into your globals.css to use Fox in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.118 0.037 321.377);
--muted: oklch(0.896 0.009 139.441);
--muted-foreground: oklch(0.396 0.036 139.435);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.118 0.037 321.377);
--card: oklch(1 0 180);
--card-foreground: oklch(0.118 0.037 321.377);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.46 0.22 317.186);
--primary-foreground: oklch(0.938 0.044 319.457);
--secondary: oklch(0.632 0.206 141.099);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.632 0.206 141.099);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.414 0.137 36.276);
--destructive-foreground: oklch(0.889 0.057 39.255);
--ring: oklch(0.46 0.22 317.186);
--chart-1: oklch(0.46 0.22 317.186);
--chart-2: oklch(0.632 0.206 141.099);
--chart-3: oklch(0.632 0.206 141.099);
--chart-4: oklch(0.672 0.219 141.136);
--chart-5: oklch(0.464 0.223 317.02);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.007 319.446);
--muted: oklch(0.264 0.012 139.434);
--muted-foreground: oklch(0.81 0.03 139.435);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.975 0.007 319.446);
--card: oklch(0 0 0);
--card-foreground: oklch(0.975 0.007 319.446);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.46 0.22 317.186);
--primary-foreground: oklch(0.938 0.044 319.457);
--secondary: oklch(0.632 0.206 141.099);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.632 0.206 141.099);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.667 0.207 37.087);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.46 0.22 317.186);
--chart-1: oklch(0.46 0.22 317.186);
--chart-2: oklch(0.632 0.206 141.099);
--chart-3: oklch(0.632 0.206 141.099);
--chart-4: oklch(0.672 0.219 141.136);
--chart-5: oklch(0.464 0.223 317.02);
}