Fox is a shadcn/ui theme built around a neutral gray primary color (#d6d6d7) with muted light blue accents (#cdd9e0). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the neutral gray primary (#d6d6d7) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #000000black |
| Foreground | #010609black | #f9fafbghostwhite |
| Card | #fcfdfdwhite | #000000black |
| Card foreground | #010609black | #f9fafbghostwhite |
| Popover | #fcfdfdwhite | #000000black |
| Popover foreground | #010609black | #f9fafbghostwhite |
| Primary | #d6d6d7lightgrey | #d6d6d7lightgrey |
| Primary foreground | #3d3d3edarkslategray | #3d3d3edarkslategray |
| Secondary | #e1e7ealavender | #2c353adarkslategray |
| Secondary foreground | #3f515adarkslategray | #c5ced3lightgrey |
| Muted | #dce2e5gainsboro | #1a2023black |
| Muted foreground | #3f4a50darkslategray | #afbac0silver |
| Accent | #cdd9e0lightgrey | #384952darkslategray |
| Accent foreground | #2f424bdarkslategray | #d8e0e4gainsboro |
| Destructive | #801b0amaroon | #ef4325orangered |
| Destructive foreground | #facac1pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d6d6d7lightgrey | #d6d6d7lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 6.63:1 | AA |
| Muted text | 6.95:1 | AA |
| Accent | 7.30:1 | AAA |
| Destructive | 6.85:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 8.30:1 | AAA |
| Accent | 6.98:1 | AA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Fox in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.001 228.769);
--foreground: oklch(0.117 0.017 220.564);
--muted: oklch(0.909 0.008 228.871);
--muted-foreground: oklch(0.402 0.018 229.406);
--popover: oklch(0.993 0.001 228.769);
--popover-foreground: oklch(0.117 0.017 220.564);
--card: oklch(0.993 0.001 228.769);
--card-foreground: oklch(0.117 0.017 220.564);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.877 0.001 228.762);
--primary-foreground: oklch(0.361 0.001 228.798);
--secondary: oklch(0.924 0.007 228.855);
--secondary-foreground: oklch(0.423 0.026 229.751);
--accent: oklch(0.879 0.016 228.998);
--accent-foreground: oklch(0.367 0.029 230.14);
--destructive: oklch(0.394 0.138 32.212);
--destructive-foreground: oklch(0.879 0.057 29.836);
--ring: oklch(0.877 0.001 228.762);
--chart-1: oklch(0.877 0.001 228.762);
--chart-2: oklch(0.924 0.007 228.855);
--chart-3: oklch(0.879 0.016 228.998);
--chart-4: oklch(0.947 0.005 228.821);
--chart-5: oklch(0.877 0.003 228.792);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.985 0.001 228.765);
--muted: oklch(0.239 0.011 229.478);
--muted-foreground: oklch(0.783 0.015 229.013);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.985 0.001 228.765);
--card: oklch(0 0 0);
--card-foreground: oklch(0.985 0.001 228.765);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.877 0.001 228.762);
--primary-foreground: oklch(0.361 0.001 228.798);
--secondary: oklch(0.324 0.015 229.479);
--secondary-foreground: oklch(0.847 0.012 228.946);
--accent: oklch(0.395 0.027 229.873);
--accent-foreground: oklch(0.901 0.011 228.909);
--destructive: oklch(0.632 0.212 32.344);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.877 0.001 228.762);
--chart-1: oklch(0.877 0.001 228.762);
--chart-2: oklch(0.324 0.015 229.479);
--chart-3: oklch(0.395 0.027 229.873);
--chart-4: oklch(0.354 0.017 229.503);
--chart-5: oklch(0.877 0.003 228.792);
}