Grim Rhapsody Lilac is a shadcn/ui theme built around a light blue primary color (#bec3e0) with muted light blue accents (#d0d3e2). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the light blue primary (#bec3e0) on a blue-tinted background (#04050b).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f8fdghostwhite | #04050bblack |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #f3f5fbaliceblue | #06070fblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f3f5fbaliceblue | #06070fblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #bec3e0lightsteelblue | #bec3e0lightsteelblue |
| Primary foreground | #232948darkslategray | #232948darkslategray |
| Secondary | #e7e8eelavender | #1f1f1fblack |
| Secondary foreground | #45495fdarkslategray | #b8b8b8silver |
| Muted | #dbdde6gainsboro | #241919black |
| Muted foreground | #434651darkslategray | #bcaeaedarkgray |
| Accent | #d0d3e2lightgrey | #393232darkslategray |
| Accent foreground | #30364fdarkslategray | #d2cbcblightgrey |
| Destructive | #be1e13firebrick | #e82517crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e5e6gainsboro | #19191ablack |
| Input | #e5e5e6gainsboro | #19191ablack |
| Ring | #bec3e0lightsteelblue | #bec3e0lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 8.14:1 | AAA |
| Secondary button | 7.26:1 | AAA |
| Muted text | 6.92:1 | AA |
| Accent | 7.95:1 | AAA |
| Destructive | 6.18:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 8.14:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 7.97:1 | AAA |
| Accent | 7.85:1 | AAA |
| Destructive | 4.46:1 | AA Large |
Paste this into your globals.css to use Grim Rhapsody Lilac in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 277.174);
--foreground: oklch(0 0 0);
--muted: oklch(0.898 0.013 277.063);
--muted-foreground: oklch(0.395 0.019 276.55);
--popover: oklch(0.97 0.009 277.129);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.97 0.009 277.129);
--card-foreground: oklch(0 0 0);
--border: oklch(0.922 0.002 277.234);
--input: oklch(0.922 0.002 277.234);
--primary: oklch(0.823 0.04 276.537);
--primary-foreground: oklch(0.292 0.058 273.751);
--secondary: oklch(0.933 0.007 277.15);
--secondary-foreground: oklch(0.41 0.037 275.841);
--accent: oklch(0.868 0.021 276.91);
--accent-foreground: oklch(0.338 0.045 275.021);
--destructive: oklch(0.516 0.195 29.621);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.823 0.04 276.537);
--chart-1: oklch(0.823 0.04 276.537);
--chart-2: oklch(0.933 0.007 277.15);
--chart-3: oklch(0.868 0.021 276.91);
--chart-4: oklch(0.958 0.005 277.194);
--chart-5: oklch(0.82 0.044 276.466);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.015 272.333);
--foreground: oklch(0.991 0.001 277.241);
--muted: oklch(0.228 0.018 18.54);
--muted-foreground: oklch(0.763 0.015 17.494);
--popover: oklch(0.132 0.018 272.871);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.132 0.018 272.871);
--card-foreground: oklch(1 0 180);
--border: oklch(0.214 0.003 277.096);
--input: oklch(0.214 0.003 277.096);
--primary: oklch(0.823 0.04 276.537);
--primary-foreground: oklch(0.292 0.058 273.751);
--secondary: oklch(0.238 0 161.565);
--secondary-foreground: oklch(0.781 0 180);
--accent: oklch(0.324 0.011 17.721);
--accent-foreground: oklch(0.848 0.008 17.305);
--destructive: oklch(0.597 0.228 29.667);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.823 0.04 276.537);
--chart-1: oklch(0.823 0.04 276.537);
--chart-2: oklch(0.238 0 161.565);
--chart-3: oklch(0.324 0.011 17.721);
--chart-4: oklch(0.27 0 180);
--chart-5: oklch(0.82 0.044 276.466);
}