Clear is a shadcn/ui theme built around a light blue primary color (#bccdf0) with light yellow accents (#f0e0bc). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#bccdf0) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030407black |
| Foreground | #030811black | #f6f7f9whitesmoke |
| Card | #ffffffwhite | #030407black |
| Card foreground | #030811black | #f6f7f9whitesmoke |
| Popover | #ffffffwhite | #030407black |
| Popover foreground | #030811black | #f6f7f9whitesmoke |
| Primary | #bccdf0lightblue | #bccdf0lightblue |
| Primary foreground | #172f64midnightblue | #172f64midnightblue |
| Secondary | #f0e0bcwheat | #f0e0bcwheat |
| Secondary foreground | #644b17saddlebrown | #644b17saddlebrown |
| Muted | #dcdad5gainsboro | #2a2823darkslategray |
| Muted foreground | #5a5a58dimgray | #a7a6a5darkgray |
| Accent | #f0e0bcwheat | #f0e0bcwheat |
| Accent foreground | #644b17saddlebrown | #644b17saddlebrown |
| Destructive | #6b2001maroon | #f94b01orangered |
| Destructive foreground | #ffbb9flightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bccdf0lightblue | #bccdf0lightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.06:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 8.06:1 | AAA |
| Secondary button | 6.26:1 | AA |
| Muted text | 4.95:1 | AA |
| Accent | 6.26:1 | AA |
| Destructive | 7.02:1 | AAA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 8.06:1 | AAA |
| Secondary button | 6.26:1 | AA |
| Muted text | 6.09:1 | AA |
| Accent | 6.26:1 | AA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Clear in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.132 0.024 258.476);
--muted: oklch(0.889 0.007 86.036);
--muted-foreground: oklch(0.466 0.002 86.024);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.132 0.024 258.476);
--card: oklch(1 0 180);
--card-foreground: oklch(0.132 0.024 258.476);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.847 0.052 265.616);
--primary-foreground: oklch(0.319 0.098 263.241);
--secondary: oklch(0.91 0.05 86.08);
--secondary-foreground: oklch(0.43 0.076 82.988);
--accent: oklch(0.91 0.05 86.08);
--accent-foreground: oklch(0.43 0.076 82.988);
--destructive: oklch(0.358 0.113 39.715);
--destructive-foreground: oklch(0.848 0.087 44.192);
--ring: oklch(0.847 0.052 265.616);
--chart-1: oklch(0.847 0.052 265.616);
--chart-2: oklch(0.91 0.05 86.08);
--chart-3: oklch(0.91 0.05 86.08);
--chart-4: oklch(0.927 0.04 86.094);
--chart-5: oklch(0.845 0.055 265.591);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.011 260.225);
--foreground: oklch(0.975 0.003 265.992);
--muted: oklch(0.275 0.009 86.093);
--muted-foreground: oklch(0.726 0.002 86.017);
--popover: oklch(0.109 0.011 260.225);
--popover-foreground: oklch(0.975 0.003 265.992);
--card: oklch(0.109 0.011 260.225);
--card-foreground: oklch(0.975 0.003 265.992);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.847 0.052 265.616);
--primary-foreground: oklch(0.319 0.098 263.241);
--secondary: oklch(0.91 0.05 86.08);
--secondary-foreground: oklch(0.43 0.076 82.988);
--accent: oklch(0.91 0.05 86.08);
--accent-foreground: oklch(0.43 0.076 82.988);
--destructive: oklch(0.656 0.219 37.05);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.847 0.052 265.616);
--chart-1: oklch(0.847 0.052 265.616);
--chart-2: oklch(0.91 0.05 86.08);
--chart-3: oklch(0.91 0.05 86.08);
--chart-4: oklch(0.927 0.04 86.094);
--chart-5: oklch(0.845 0.055 265.591);
}