Clever is a shadcn/ui theme built around a vivid deep green primary color (#052b03) with vivid deep green accents (#032b14). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid deep green primary (#052b03) on a neutral background (#030802).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #030802black |
| Foreground | #051005black | #f8fcf8mintcream |
| Card | #f7fdf7mintcream | #040c03black |
| Card foreground | #040c03black | #fcfdfbsnow |
| Popover | #fbfefbwhite | #030802black |
| Popover foreground | #051005black | #f8fcf8mintcream |
| Primary | #052b03black | #052b03black |
| Primary foreground | #1dec0elime | #1dec0elime |
| Secondary | #1a2b03black | #1a2b03black |
| Secondary foreground | #8cec0elawngreen | #8cec0elawngreen |
| Muted | #dae2d0gainsboro | #272f1ddarkslategray |
| Muted foreground | #424342darkslategray | #bdbdbcsilver |
| Accent | #032b14black | #032b14black |
| Accent foreground | #0eec6espringgreen | #0eec6espringgreen |
| Destructive | #660900maroon | #ff4433tomato |
| Destructive foreground | #ffa299lightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #052b03black | #052b03black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.09:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 9.60:1 | AAA |
| Secondary button | 10.12:1 | AAA |
| Muted text | 7.43:1 | AAA |
| Accent | 9.70:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 9.60:1 | AAA |
| Secondary button | 10.12:1 | AAA |
| Muted text | 7.37:1 | AAA |
| Accent | 9.70:1 | AAA |
| Destructive | 3.42:1 | AA Large |
Paste this into your globals.css to use Clever in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 143.609);
--foreground: oklch(0.157 0.03 142.063);
--muted: oklch(0.901 0.025 126.113);
--muted-foreground: oklch(0.382 0.002 125.821);
--popover: oklch(0.994 0.005 143.609);
--popover-foreground: oklch(0.157 0.03 142.063);
--card: oklch(0.988 0.01 143.583);
--card-foreground: oklch(0.14 0.026 141.977);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.254 0.08 141.671);
--primary-foreground: oklch(0.819 0.274 142.259);
--secondary: oklch(0.265 0.068 130.264);
--secondary-foreground: oklch(0.85 0.238 132.98);
--accent: oklch(0.256 0.062 153.553);
--accent-foreground: oklch(0.825 0.227 149.716);
--destructive: oklch(0.326 0.126 31.201);
--destructive-foreground: oklch(0.802 0.113 25.499);
--ring: oklch(0.254 0.08 141.671);
--chart-1: oklch(0.254 0.08 141.671);
--chart-2: oklch(0.265 0.068 130.264);
--chart-3: oklch(0.256 0.062 153.553);
--chart-4: oklch(0.316 0.083 131.05);
--chart-5: oklch(0.256 0.082 141.617);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.024 141.869);
--foreground: oklch(0.987 0.006 143.602);
--muted: oklch(0.292 0.032 127.317);
--muted-foreground: oklch(0.799 0.002 125.772);
--popover: oklch(0.123 0.024 141.869);
--popover-foreground: oklch(0.987 0.006 143.602);
--card: oklch(0.141 0.028 141.886);
--card-foreground: oklch(0.993 0.003 143.619);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.254 0.08 141.671);
--primary-foreground: oklch(0.819 0.274 142.259);
--secondary: oklch(0.265 0.068 130.264);
--secondary-foreground: oklch(0.85 0.238 132.98);
--accent: oklch(0.256 0.062 153.553);
--accent-foreground: oklch(0.825 0.227 149.716);
--destructive: oklch(0.662 0.225 29.579);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.254 0.08 141.671);
--chart-1: oklch(0.254 0.08 141.671);
--chart-2: oklch(0.265 0.068 130.264);
--chart-3: oklch(0.256 0.062 153.553);
--chart-4: oklch(0.316 0.083 131.05);
--chart-5: oklch(0.256 0.082 141.617);
}