Pristine is a shadcn/ui theme built around a deep purple primary color (#341930) with deep pink accents (#341922). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the deep purple primary (#341930) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #040103black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fdfcfdwhite | #040103black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fdfcfdwhite | #040103black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #341930darkslategray | #341930darkslategray |
| Primary foreground | #d6a9cfplum | #d6a9cfplum |
| Secondary | #2a1934darkslategray | #2a1934darkslategray |
| Secondary foreground | #c6a9d6plum | #c6a9d6plum |
| Muted | #f3f0f4whitesmoke | #0d0b0fblack |
| Muted foreground | #68616bdimgray | #9b949edarkgray |
| Accent | #341922black | #341922black |
| Accent foreground | #d6a9b9silver | #d6a9b9silver |
| Destructive | #9c4411saddlebrown | #e6641achocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #341930darkslategray | #341930darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.47:1 | AAA |
| Text on card | 20.47:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 5.29:1 | AA |
| Accent | 7.84:1 | AAA |
| Destructive | 6.45:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 6.65:1 | AA |
| Accent | 7.84:1 | AAA |
| Destructive | 6.19:1 | AA |
Paste this into your globals.css to use Pristine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 330.284);
--foreground: oklch(0 0 0);
--muted: oklch(0.959 0.006 314.182);
--muted-foreground: oklch(0.502 0.018 314.024);
--popover: oklch(0.991 0.003 330.284);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.003 330.284);
--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.26 0.056 332.797);
--primary-foreground: oklch(0.787 0.073 331.383);
--secondary: oklch(0.249 0.054 312.919);
--secondary-foreground: oklch(0.775 0.07 313.723);
--accent: oklch(0.254 0.045 358.403);
--accent-foreground: oklch(0.78 0.056 355.555);
--destructive: oklch(0.496 0.131 45.453);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.26 0.056 332.797);
--chart-1: oklch(0.26 0.056 332.797);
--chart-2: oklch(0.249 0.054 312.919);
--chart-3: oklch(0.254 0.045 358.403);
--chart-4: oklch(0.277 0.063 312.843);
--chart-5: oklch(0.26 0.06 332.992);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.015 331.14);
--foreground: oklch(0.992 0.001 330.257);
--muted: oklch(0.153 0.01 313.854);
--muted-foreground: oklch(0.675 0.017 314.084);
--popover: oklch(0.087 0.015 331.14);
--popover-foreground: oklch(0.992 0.001 330.257);
--card: oklch(0.087 0.015 331.14);
--card-foreground: oklch(0.992 0.001 330.257);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.26 0.056 332.797);
--primary-foreground: oklch(0.787 0.073 331.383);
--secondary: oklch(0.249 0.054 312.919);
--secondary-foreground: oklch(0.775 0.07 313.723);
--accent: oklch(0.254 0.045 358.403);
--accent-foreground: oklch(0.78 0.056 355.555);
--destructive: oklch(0.656 0.178 44.803);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.26 0.056 332.797);
--chart-1: oklch(0.26 0.056 332.797);
--chart-2: oklch(0.249 0.054 312.919);
--chart-3: oklch(0.254 0.045 358.403);
--chart-4: oklch(0.277 0.063 312.843);
--chart-5: oklch(0.26 0.06 332.992);
}