Light is a shadcn/ui theme built around a vivid indigo primary color (#3a1ce3) with muted light indigo accents (#cdccd7). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the vivid indigo primary (#3a1ce3) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #000000black |
| Foreground | #020104black | #ffffffwhite |
| Card | #f9f8fcghostwhite | #000000black |
| Card foreground | #020104black | #ffffffwhite |
| Popover | #f9f8fcghostwhite | #000000black |
| Popover foreground | #020104black | #ffffffwhite |
| Primary | #3a1ce3mediumblue | #3a1ce3mediumblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cdccd7lightgrey | #151519black |
| Secondary foreground | #33313fdarkslategray | #aaa8b8darkgray |
| Muted | #e7e6eflavender | #111019black |
| Muted foreground | #444153darkslategray | #afacbedarkgray |
| Accent | #cdccd7lightgrey | #151519black |
| Accent foreground | #33313fdarkslategray | #aaa8b8darkgray |
| Destructive | #b92c13firebrick | #ea5339tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3a1ce3mediumblue | #3a1ce3mediumblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 8.55:1 | AAA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 7.97:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.12:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.55:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 8.52:1 | AAA |
| Accent | 7.81:1 | AAA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Light in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.004 293.223);
--foreground: oklch(0.077 0.017 291.462);
--muted: oklch(0.928 0.013 293.049);
--muted-foreground: oklch(0.385 0.03 291.803);
--popover: oklch(0.981 0.004 293.223);
--popover-foreground: oklch(0.077 0.017 291.462);
--card: oklch(0.981 0.004 293.223);
--card-foreground: oklch(0.077 0.017 291.462);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.448 0.266 273.946);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.849 0.015 292.968);
--secondary-foreground: oklch(0.322 0.024 291.883);
--accent: oklch(0.849 0.015 292.968);
--accent-foreground: oklch(0.322 0.024 291.883);
--destructive: oklch(0.516 0.18 32.22);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.448 0.266 273.946);
--chart-1: oklch(0.448 0.266 273.946);
--chart-2: oklch(0.849 0.015 292.968);
--chart-3: oklch(0.849 0.015 292.968);
--chart-4: oklch(0.874 0.013 293.035);
--chart-5: oklch(0.448 0.272 273.003);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.178 0.019 291.189);
--muted-foreground: oklch(0.753 0.025 292.669);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.448 0.266 273.946);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.197 0.009 292.421);
--secondary-foreground: oklch(0.739 0.023 292.726);
--accent: oklch(0.197 0.009 292.421);
--accent-foreground: oklch(0.739 0.023 292.726);
--destructive: oklch(0.643 0.191 32.31);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.448 0.266 273.946);
--chart-1: oklch(0.448 0.266 273.946);
--chart-2: oklch(0.197 0.009 292.421);
--chart-3: oklch(0.197 0.009 292.421);
--chart-4: oklch(0.228 0.012 292.321);
--chart-5: oklch(0.448 0.272 273.003);
}