Clearance is a shadcn/ui theme built around a vivid light indigo primary color (#9fa1f4) with vivid light green accents (#a1f49f). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid light indigo primary (#9fa1f4) on a neutral background (#020208).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #020208black |
| Foreground | #040411black | #ffffffwhite |
| Card | #f5f5fawhitesmoke | #04040cblack |
| Card foreground | #03030cblack | #ffffffwhite |
| Popover | #f5f5fawhitesmoke | #04040cblack |
| Popover foreground | #03030cblack | #ffffffwhite |
| Primary | #9fa1f4lightsteelblue | #9fa1f4lightsteelblue |
| Primary foreground | #0a0b57midnightblue | #0a0b57midnightblue |
| Secondary | #f49fa1lightsalmon | #f49fa1lightsalmon |
| Secondary foreground | #570a0bmaroon | #570a0bmaroon |
| Muted | #e7d5d5gainsboro | #2a1818black |
| Muted foreground | #6d5051dimgray | #af9293rosybrown |
| Accent | #a1f49fpalegreen | #a1f49fpalegreen |
| Accent foreground | #0b570adarkgreen | #0b570adarkgreen |
| Destructive | #d62505firebrick | #f94424orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9fa1f4lightsteelblue | #9fa1f4lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.27:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 7.38:1 | AAA |
| Secondary button | 7.09:1 | AAA |
| Muted text | 5.08:1 | AA |
| Accent | 6.68:1 | AA |
| Destructive | 5.10:1 | AA |
| Text on background | 20.64:1 | AAA |
| Text on card | 20.47:1 | AAA |
| Primary button | 7.38:1 | AAA |
| Secondary button | 7.09:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 6.68:1 | AA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Clearance in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.004 285.537);
--foreground: oklch(0.117 0.032 279.092);
--muted: oklch(0.887 0.021 16.389);
--muted-foreground: oklch(0.462 0.038 17.529);
--popover: oklch(0.971 0.007 285.495);
--popover-foreground: oklch(0.105 0.028 279.357);
--card: oklch(0.971 0.007 285.495);
--card-foreground: oklch(0.105 0.028 279.357);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.739 0.119 282.326);
--primary-foreground: oklch(0.228 0.128 269.644);
--secondary: oklch(0.787 0.101 18.512);
--secondary-foreground: oklch(0.296 0.108 26.319);
--accent: oklch(0.892 0.14 143.92);
--accent-foreground: oklch(0.397 0.127 142.582);
--destructive: oklch(0.563 0.213 31.557);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.739 0.119 282.326);
--chart-1: oklch(0.739 0.119 282.326);
--chart-2: oklch(0.787 0.101 18.512);
--chart-3: oklch(0.892 0.14 143.92);
--chart-4: oklch(0.816 0.085 17.989);
--chart-5: oklch(0.736 0.124 282.164);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.02 280.855);
--foreground: oklch(1 0 180);
--muted: oklch(0.234 0.03 18.519);
--muted-foreground: oklch(0.687 0.034 16.878);
--popover: oklch(0.11 0.023 280.827);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.11 0.023 280.827);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.739 0.119 282.326);
--primary-foreground: oklch(0.228 0.128 269.644);
--secondary: oklch(0.787 0.101 18.512);
--secondary-foreground: oklch(0.296 0.108 26.319);
--accent: oklch(0.892 0.14 143.92);
--accent-foreground: oklch(0.397 0.127 142.582);
--destructive: oklch(0.651 0.222 32.314);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.739 0.119 282.326);
--chart-1: oklch(0.739 0.119 282.326);
--chart-2: oklch(0.787 0.101 18.512);
--chart-3: oklch(0.892 0.14 143.92);
--chart-4: oklch(0.816 0.085 17.989);
--chart-5: oklch(0.736 0.124 282.164);
}