Pristine is a shadcn/ui theme built around a blue primary color (#1f2e7a) with green accents (#2e7a1f). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#1f2e7a) on a blue-tinted background (#05070f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05070fblack |
| Foreground | #040610black | #f8f9fcghostwhite |
| Card | #ffffffwhite | #05070fblack |
| Card foreground | #040610black | #f8f9fcghostwhite |
| Popover | #ffffffwhite | #05070fblack |
| Popover foreground | #040610black | #f8f9fcghostwhite |
| Primary | #1f2e7amidnightblue | #1f2e7amidnightblue |
| Primary foreground | #d6dbf5lavender | #d6dbf5lavender |
| Secondary | #7a1f2ebrown | #7a1f2ebrown |
| Secondary foreground | #f5d6dbmistyrose | #f5d6dbmistyrose |
| Muted | #e8e3e4gainsboro | #1c1718black |
| Muted foreground | #725a5edimgray | #a58d91rosybrown |
| Accent | #2e7a1fforestgreen | #2e7a1fforestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #81320esaddlebrown | #ec7b46coral |
| Destructive foreground | #f9d7c8bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1f2e7amidnightblue | #1f2e7amidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 8.85:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 4.96:1 | AA |
| Accent | 5.33:1 | AA |
| Destructive | 6.48:1 | AA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 8.85:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 5.74:1 | AA |
| Accent | 5.33:1 | AA |
| Destructive | 7.46:1 | AAA |
Paste this into your globals.css to use Pristine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.128 0.023 271.251);
--muted: oklch(0.921 0.005 5.576);
--muted-foreground: oklch(0.493 0.033 7.137);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.128 0.023 271.251);
--card: oklch(1 0 180);
--card-foreground: oklch(0.128 0.023 271.251);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.34 0.131 269.422);
--primary-foreground: oklch(0.896 0.035 276.684);
--secondary: oklch(0.392 0.125 15.863);
--secondary-foreground: oklch(0.904 0.035 6.43);
--accent: oklch(0.514 0.146 140.664);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.425 0.119 41.753);
--destructive-foreground: oklch(0.904 0.044 46.376);
--ring: oklch(0.34 0.131 269.422);
--chart-1: oklch(0.34 0.131 269.422);
--chart-2: oklch(0.392 0.125 15.863);
--chart-3: oklch(0.514 0.146 140.664);
--chart-4: oklch(0.419 0.135 16.05);
--chart-5: oklch(0.338 0.137 268.931);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.019 272.597);
--foreground: oklch(0.982 0.004 277.205);
--muted: oklch(0.212 0.007 6.25);
--muted-foreground: oklch(0.666 0.03 6.6);
--popover: oklch(0.131 0.019 272.597);
--popover-foreground: oklch(0.982 0.004 277.205);
--card: oklch(0.131 0.019 272.597);
--card-foreground: oklch(0.982 0.004 277.205);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.34 0.131 269.422);
--primary-foreground: oklch(0.896 0.035 276.684);
--secondary: oklch(0.392 0.125 15.863);
--secondary-foreground: oklch(0.904 0.035 6.43);
--accent: oklch(0.514 0.146 140.664);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.701 0.155 44.148);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.34 0.131 269.422);
--chart-1: oklch(0.34 0.131 269.422);
--chart-2: oklch(0.392 0.125 15.863);
--chart-3: oklch(0.514 0.146 140.664);
--chart-4: oklch(0.419 0.135 16.05);
--chart-5: oklch(0.338 0.137 268.931);
}