Lighter Purple Chinchilla is a shadcn/ui theme built around a vivid blue primary color (#60a5fa) with light blue accents (#bbd2eb). The light mode uses a neutral background (#f7f7f7). Dark mode switches to a vivid violet primary (#a855f7) on a neutral background (#0e0e0e).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f7f7whitesmoke | #0e0e0eblack |
| Foreground | #0d020bblack | #fbf9fbsnow |
| Card | #ffffffwhite | #1a1a1ablack |
| Card foreground | #0d020bblack | #fbf9fbsnow |
| Popover | #fdfcfdwhite | #1a1a1ablack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #60a5facornflowerblue | #a855f7mediumorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a855f7mediumorchid | #60a5facornflowerblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ddddddgainsboro | #323133darkslategray |
| Muted foreground | #7e7e7egray | #818181gray |
| Accent | #bbd2eblightblue | #a855f7mediumorchid |
| Accent foreground | #020202black | #ffffffwhite |
| Destructive | #e72353crimson | #e61a1acrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #d8ebfflavender | #313131darkslategray |
| Input | #838383gray | #313131darkslategray |
| Ring | #60a5facornflowerblue | #a855f7mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.04:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 2.54:1 | Fail |
| Secondary button | 3.95:1 | AA Large |
| Muted text | 2.97:1 | Fail |
| Accent | 13.37:1 | AAA |
| Destructive | 4.39:1 | AA Large |
| Text on background | 18.46:1 | AAA |
| Text on card | 16.69:1 | AAA |
| Primary button | 3.95:1 | AA Large |
| Secondary button | 2.54:1 | Fail |
| Muted text | 3.30:1 | AA Large |
| Accent | 3.95:1 | AA Large |
| Destructive | 4.66:1 | AA |
Paste this into your globals.css to use Lighter Purple Chinchilla in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.977 0 170.538);
--foreground: oklch(0.122 0.033 333.656);
--muted: oklch(0.897 0 180);
--muted-foreground: oklch(0.592 0 164.055);
--popover: oklch(0.992 0.003 332.044);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0.122 0.033 333.656);
--border: oklch(0.932 0.034 250.412);
--input: oklch(0.611 0 180);
--primary: oklch(0.714 0.143 254.628);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.627 0.233 303.9);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.855 0.043 250.523);
--accent-foreground: oklch(0.084 0 180);
--destructive: oklch(0.602 0.224 15.184);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.714 0.143 254.628);
--chart-1: oklch(0.714 0.143 254.628);
--chart-2: oklch(0.627 0.233 303.9);
--chart-3: oklch(0.855 0.043 250.523);
--chart-4: oklch(0.654 0.216 304.741);
--chart-5: oklch(0.713 0.148 254.692);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.162 0 158.199);
--foreground: oklch(0.984 0.004 332.063);
--muted: oklch(0.316 0.003 315.984);
--muted-foreground: oklch(0.605 0 180);
--popover: oklch(0.218 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.216 0 180);
--card-foreground: oklch(0.984 0.004 332.063);
--border: oklch(0.313 0 167.471);
--input: oklch(0.313 0 180);
--primary: oklch(0.627 0.233 303.9);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.714 0.143 254.628);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.627 0.233 303.9);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.587 0.23 28.262);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.627 0.233 303.9);
--chart-1: oklch(0.627 0.233 303.9);
--chart-2: oklch(0.714 0.143 254.628);
--chart-3: oklch(0.627 0.233 303.9);
--chart-4: oklch(0.739 0.13 254.4);
--chart-5: oklch(0.626 0.239 303.663);
}