Pale is a shadcn/ui theme built around a light violet primary color (#c8abe8) with muted light violet accents (#ccc2d6). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#c8abe8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #c8abe8plum | #c8abe8plum |
| Primary foreground | #30154cmidnightblue | #30154cmidnightblue |
| Secondary | #ccc2d6thistle | #333234darkslategray |
| Secondary foreground | #33293ddarkslategray | #cccbcdlightgrey |
| Muted | #f2f1f3whitesmoke | #0d0c0eblack |
| Muted foreground | #636363dimgray | #9c9c9cdarkgray |
| Accent | #ccc2d6thistle | #333234darkslategray |
| Accent foreground | #33293ddarkslategray | #cccbcdlightgrey |
| Destructive | #7c1c09maroon | #f25e40tomato |
| Destructive foreground | #fac7bcpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c8abe8plum | #c8abe8plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 5.35:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 7.11:1 | AAA |
| Accent | 7.85:1 | AAA |
| Destructive | 6.43:1 | AA |
Paste this into your globals.css to use Pale in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.96 0.003 307.758);
--muted-foreground: oklch(0.501 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.788 0.091 306.437);
--primary-foreground: oklch(0.267 0.098 302.393);
--secondary: oklch(0.829 0.029 307.387);
--secondary-foreground: oklch(0.301 0.037 306.36);
--accent: oklch(0.829 0.029 307.387);
--accent-foreground: oklch(0.301 0.037 306.36);
--destructive: oklch(0.387 0.134 32.865);
--destructive-foreground: oklch(0.871 0.061 31.349);
--ring: oklch(0.788 0.091 306.437);
--chart-1: oklch(0.788 0.091 306.437);
--chart-2: oklch(0.829 0.029 307.387);
--chart-3: oklch(0.829 0.029 307.387);
--chart-4: oklch(0.855 0.024 307.46);
--chart-5: oklch(0.785 0.095 306.359);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 307.763);
--muted: oklch(0.156 0.004 307.489);
--muted-foreground: oklch(0.691 0 180);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.002 307.763);
--card: oklch(0 0 0);
--card-foreground: oklch(0.991 0.002 307.763);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.788 0.091 306.437);
--primary-foreground: oklch(0.267 0.098 302.393);
--secondary: oklch(0.32 0.002 307.719);
--secondary-foreground: oklch(0.844 0.001 307.768);
--accent: oklch(0.32 0.002 307.719);
--accent-foreground: oklch(0.844 0.001 307.768);
--destructive: oklch(0.669 0.188 33.173);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.788 0.091 306.437);
--chart-1: oklch(0.788 0.091 306.437);
--chart-2: oklch(0.32 0.002 307.719);
--chart-3: oklch(0.32 0.002 307.719);
--chart-4: oklch(0.35 0.002 307.717);
--chart-5: oklch(0.785 0.095 306.359);
}