Light is a shadcn/ui theme built around a muted pink primary color (#7b5669) with muted blue accents (#56697b). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the muted pink primary (#7b5669) on a pink-tinted background (#0e060a).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fasnow | #0e060ablack |
| Foreground | #050103black | #ffffffwhite |
| Card | #fdf7fasnow | #0e060ablack |
| Card foreground | #050103black | #ffffffwhite |
| Popover | #fdf7fasnow | #0e060ablack |
| Popover foreground | #050103black | #ffffffwhite |
| Primary | #7b5669dimgray | #7b5669dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #697b56dimgray | #697b56dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dbe5d1gainsboro | #242e1adarkslategray |
| Muted foreground | #454b3fdarkslategray | #bac0b4silver |
| Accent | #56697bdimgray | #56697bdimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #66240amaroon | #ea602achocolate |
| Destructive foreground | #f7c1ablightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7b5669dimgray | #7b5669dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 6.22:1 | AA |
| Secondary button | 4.58:1 | AA |
| Muted text | 6.94:1 | AA |
| Accent | 5.70:1 | AA |
| Destructive | 7.21:1 | AAA |
| Text on background | 19.99:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 6.22:1 | AA |
| Secondary button | 4.58:1 | AA |
| Muted text | 7.65:1 | AAA |
| Accent | 5.70:1 | AA |
| Destructive | 6.20:1 | AA |
Paste this into your globals.css to use Light in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 345.36);
--foreground: oklch(0.081 0.025 344.855);
--muted: oklch(0.91 0.029 128.818);
--muted-foreground: oklch(0.403 0.022 129.079);
--popover: oklch(0.981 0.008 345.36);
--popover-foreground: oklch(0.081 0.025 344.855);
--card: oklch(0.981 0.008 345.36);
--card-foreground: oklch(0.081 0.025 344.855);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.499 0.057 347.914);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.559 0.06 129.752);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.511 0.038 248.567);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.356 0.102 39.706);
--destructive-foreground: oklch(0.853 0.069 42.604);
--ring: oklch(0.499 0.057 347.914);
--chart-1: oklch(0.499 0.057 347.914);
--chart-2: oklch(0.559 0.06 129.752);
--chart-3: oklch(0.511 0.038 248.567);
--chart-4: oklch(0.588 0.064 129.763);
--chart-5: oklch(0.496 0.066 348.377);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.018 346.586);
--foreground: oklch(1 0 180);
--muted: oklch(0.284 0.037 130.09);
--muted-foreground: oklch(0.8 0.018 128.72);
--popover: oklch(0.138 0.018 346.586);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.018 346.586);
--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.499 0.057 347.914);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.559 0.06 129.752);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.511 0.038 248.567);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.657 0.183 39.983);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.499 0.057 347.914);
--chart-1: oklch(0.499 0.057 347.914);
--chart-2: oklch(0.559 0.06 129.752);
--chart-3: oklch(0.511 0.038 248.567);
--chart-4: oklch(0.588 0.064 129.763);
--chart-5: oklch(0.496 0.066 348.377);
}