Pristine is a shadcn/ui theme built around a vivid orange primary color (#f45e01) with vivid violet accents (#5e01f4). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the vivid orange primary (#f45e01) on a neutral background (#040201).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf9f7snow | #040201black |
| Foreground | #000000black | #f9f7f6whitesmoke |
| Card | #fdf9f7snow | #040201black |
| Card foreground | #000000black | #f9f7f6whitesmoke |
| Popover | #fdf9f7snow | #040201black |
| Popover foreground | #000000black | #f9f7f6whitesmoke |
| Primary | #f45e01orangered | #f45e01orangered |
| Primary foreground | #000000black | #000000black |
| Secondary | #01f45espringgreen | #01f45espringgreen |
| Secondary foreground | #002910black | #002910black |
| Muted | #d1e6d9gainsboro | #192e21darkslategray |
| Muted foreground | #516759dimgray | #98aea1darkgray |
| Accent | #5e01f4darkviolet | #5e01f4darkviolet |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6b0c00maroon | #ff3419orangered |
| Destructive foreground | #ffa99elightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f45e01orangered | #f45e01orangered |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.09:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 10.60:1 | AAA |
| Muted text | 4.66:1 | AA |
| Accent | 7.54:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 19.36:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 10.60:1 | AAA |
| Muted text | 6.09:1 | AA |
| Accent | 7.54:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Pristine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.005 54.439);
--foreground: oklch(0 0 0);
--muted: oklch(0.905 0.029 158.74);
--muted-foreground: oklch(0.491 0.034 157.811);
--popover: oklch(0.985 0.005 54.439);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.985 0.005 54.439);
--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.668 0.199 42.484);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.842 0.248 147.285);
--secondary-foreground: oklch(0.245 0.064 151.813);
--accent: oklch(0.484 0.284 284.349);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.339 0.129 31.89);
--destructive-foreground: oklch(0.817 0.103 27.776);
--ring: oklch(0.668 0.199 42.484);
--chart-1: oklch(0.668 0.199 42.484);
--chart-2: oklch(0.842 0.248 147.285);
--chart-3: oklch(0.484 0.284 284.349);
--chart-4: oklch(0.869 0.254 147.545);
--chart-5: oklch(0.673 0.204 41.97);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.092 0.009 62.063);
--foreground: oklch(0.977 0.003 54.463);
--muted: oklch(0.28 0.037 156.037);
--muted-foreground: oklch(0.731 0.031 158.481);
--popover: oklch(0.092 0.009 62.063);
--popover-foreground: oklch(0.977 0.003 54.463);
--card: oklch(0.092 0.009 62.063);
--card-foreground: oklch(0.977 0.003 54.463);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.668 0.199 42.484);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.842 0.248 147.285);
--secondary-foreground: oklch(0.245 0.064 151.813);
--accent: oklch(0.484 0.284 284.349);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.648 0.239 30.999);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.668 0.199 42.484);
--chart-1: oklch(0.668 0.199 42.484);
--chart-2: oklch(0.842 0.248 147.285);
--chart-3: oklch(0.484 0.284 284.349);
--chart-4: oklch(0.869 0.254 147.545);
--chart-5: oklch(0.673 0.204 41.97);
}