Delirious is a shadcn/ui theme built around a muted deep violet primary color (#0f0d12) with muted deep purple accents (#120d12). The light mode uses a neutral background (#faf7fd). Dark mode keeps the muted deep violet primary (#0f0d12) on a violet-tinted background (#0a070d).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #0a070dblack |
| Foreground | #0c0415black | #faf9fbghostwhite |
| Card | #f7f3fcghostwhite | #0c0911black |
| Card foreground | #0a0311black | #fcfcfdwhite |
| Popover | #faf7fdghostwhite | #0a070dblack |
| Popover foreground | #0c0415black | #faf9fbghostwhite |
| Primary | #0f0d12black | #0f0d12black |
| Primary foreground | #a79ab7darkgray | #a79ab7darkgray |
| Secondary | #0d0d12black | #0d0d12black |
| Secondary foreground | #9a9bb7darkgray | #9a9bb7darkgray |
| Muted | #e4e5f1lavender | #0e0f1bblack |
| Muted foreground | #4f5064dimgray | #9b9cb0darkgray |
| Accent | #120d12black | #120d12black |
| Accent foreground | #b69ab7darkgray | #b69ab7darkgray |
| Destructive | #752a0asaddlebrown | #e65314chocolate |
| Destructive foreground | #f9ccb9peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f0d12black | #0f0d12black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.93:1 | AAA |
| Text on card | 18.53:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 6.29:1 | AA |
| Accent | 7.61:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 7.06:1 | AAA |
| Accent | 7.61:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Delirious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.008 306.32);
--foreground: oklch(0.135 0.041 304.312);
--muted: oklch(0.925 0.016 283.664);
--muted-foreground: oklch(0.437 0.033 282.553);
--popover: oklch(0.98 0.008 306.32);
--popover-foreground: oklch(0.135 0.041 304.312);
--card: oklch(0.969 0.012 306.264);
--card-foreground: oklch(0.124 0.036 306.064);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.163 0.011 305.535);
--primary-foreground: oklch(0.706 0.045 305.618);
--secondary: oklch(0.161 0.01 282.786);
--secondary-foreground: oklch(0.698 0.041 282.904);
--accent: oklch(0.166 0.013 324.579);
--accent-foreground: oklch(0.719 0.053 324.541);
--destructive: oklch(0.392 0.113 40.389);
--destructive-foreground: oklch(0.879 0.058 44.438);
--ring: oklch(0.163 0.011 305.535);
--chart-1: oklch(0.163 0.011 305.535);
--chart-2: oklch(0.161 0.01 282.786);
--chart-3: oklch(0.166 0.013 324.579);
--chart-4: oklch(0.192 0.015 282.524);
--chart-5: oklch(0.162 0.013 305.367);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.015 306.147);
--foreground: oklch(0.983 0.002 306.397);
--muted: oklch(0.173 0.025 281.137);
--muted-foreground: oklch(0.699 0.03 283.21);
--popover: oklch(0.137 0.015 306.147);
--popover-foreground: oklch(0.983 0.002 306.397);
--card: oklch(0.148 0.017 305.041);
--card-foreground: oklch(0.992 0.001 306.413);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.163 0.011 305.535);
--primary-foreground: oklch(0.706 0.045 305.618);
--secondary: oklch(0.161 0.01 282.786);
--secondary-foreground: oklch(0.698 0.041 282.904);
--accent: oklch(0.166 0.013 324.579);
--accent-foreground: oklch(0.719 0.053 324.541);
--destructive: oklch(0.634 0.194 39.321);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.163 0.011 305.535);
--chart-1: oklch(0.163 0.011 305.535);
--chart-2: oklch(0.161 0.01 282.786);
--chart-3: oklch(0.166 0.013 324.579);
--chart-4: oklch(0.192 0.015 282.524);
--chart-5: oklch(0.162 0.013 305.367);
}