One is a shadcn/ui theme built around a vivid deep green primary color (#075f14) with vivid deep red accents (#5f1407). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the vivid deep green primary (#075f14) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #000000black |
| Foreground | #000000black | #f8fcf9mintcream |
| Card | #f4fbf5whitesmoke | #030303black |
| Card foreground | #000000black | #fbfdfcwhite |
| Popover | #f4fbf5whitesmoke | #030303black |
| Popover foreground | #000000black | #fbfdfcwhite |
| Primary | #075f14darkgreen | #075f14darkgreen |
| Primary foreground | #a0f8adpalegreen | #a0f8adpalegreen |
| Secondary | #14075fmidnightblue | #14075fmidnightblue |
| Secondary foreground | #ada0f8lightsteelblue | #ada0f8lightsteelblue |
| Muted | #f1f1f4whitesmoke | #0c0b0eblack |
| Muted foreground | #555266dimgray | #9c99addarkgray |
| Accent | #5f1407maroon | #5f1407maroon |
| Accent foreground | #f8ada0lightpink | #f8ada0lightpink |
| Destructive | #601506maroon | #dd300eorangered |
| Destructive foreground | #f9ae9flightpink | #ffffffwhite |
| Border | #e9ede9linen | #1e241fblack |
| Input | #e9ede9linen | #1e241fblack |
| Ring | #075f14darkgreen | #075f14darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.29:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 6.19:1 | AA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 6.67:1 | AA |
| Accent | 7.20:1 | AAA |
| Destructive | 7.20:1 | AAA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 6.19:1 | AA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 7.07:1 | AAA |
| Accent | 7.20:1 | AAA |
| Destructive | 4.67:1 | AA |
Paste this into your globals.css to use One in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.007 150.149);
--foreground: oklch(0 0 0);
--muted: oklch(0.958 0.004 293.219);
--muted-foreground: oklch(0.448 0.033 291.893);
--popover: oklch(0.981 0.011 150.099);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.011 150.099);
--card-foreground: oklch(0 0 0);
--border: oklch(0.941 0.006 150.159);
--input: oklch(0.941 0.006 150.159);
--primary: oklch(0.424 0.133 144.219);
--primary-foreground: oklch(0.905 0.134 148.08);
--secondary: oklch(0.24 0.14 274.711);
--secondary-foreground: oklch(0.75 0.126 289.882);
--accent: oklch(0.322 0.11 32.453);
--accent-foreground: oklch(0.816 0.091 30.277);
--destructive: oklch(0.324 0.11 33.171);
--destructive-foreground: oklch(0.819 0.091 31.672);
--ring: oklch(0.424 0.133 144.219);
--chart-1: oklch(0.424 0.133 144.219);
--chart-2: oklch(0.24 0.14 274.711);
--chart-3: oklch(0.322 0.11 32.453);
--chart-4: oklch(0.263 0.156 273.979);
--chart-5: oklch(0.428 0.135 144.117);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.006 150.166);
--muted: oklch(0.152 0.007 292.423);
--muted-foreground: oklch(0.692 0.029 292.498);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.993 0.003 150.207);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.003 150.207);
--border: oklch(0.254 0.014 149.492);
--input: oklch(0.254 0.014 149.492);
--primary: oklch(0.424 0.133 144.219);
--primary-foreground: oklch(0.905 0.134 148.08);
--secondary: oklch(0.24 0.14 274.711);
--secondary-foreground: oklch(0.75 0.126 289.882);
--accent: oklch(0.322 0.11 32.453);
--accent-foreground: oklch(0.816 0.091 30.277);
--destructive: oklch(0.584 0.211 32.433);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.424 0.133 144.219);
--chart-1: oklch(0.424 0.133 144.219);
--chart-2: oklch(0.24 0.14 274.711);
--chart-3: oklch(0.322 0.11 32.453);
--chart-4: oklch(0.263 0.156 273.979);
--chart-5: oklch(0.428 0.135 144.117);
}