Dusky Grape Crane is a shadcn/ui theme built around a muted violet primary color (#887e91) with muted light violet accents (#d7d0dc). The light mode uses a neutral background (#faf8fb). Dark mode keeps the muted violet primary (#887e91) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fbghostwhite | #030104black |
| Foreground | #030104black | #f7f6f9whitesmoke |
| Card | #faf8fbghostwhite | #030104black |
| Card foreground | #030104black | #f7f6f9whitesmoke |
| Popover | #faf8fbghostwhite | #030104black |
| Popover foreground | #030104black | #f7f6f9whitesmoke |
| Primary | #887e91gray | #887e91gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #d7d0dclightgrey | #2b2a2ddarkslategray |
| Secondary foreground | #3e3446darkslategray | #c4c3c6silver |
| Muted | #dfd2eagainsboro | #22152dblack |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #d7d0dclightgrey | #2b2a2ddarkslategray |
| Accent foreground | #3e3446darkslategray | #c4c3c6silver |
| Destructive | #8c2503saddlebrown | #f54105orangered |
| Destructive foreground | #fed2c3peachpuff | #ffffffwhite |
| Border | #e6e3e8gainsboro | #1a171cblack |
| Input | #e6e3e8gainsboro | #1a171cblack |
| Ring | #887e91gray | #887e91gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 5.41:1 | AA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 4.84:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 6.39:1 | AA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 5.41:1 | AA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 7.10:1 | AAA |
| Accent | 8.12:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Dusky Grape Crane in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 309.739);
--foreground: oklch(0.078 0.024 312.151);
--muted: oklch(0.881 0.035 309.391);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(0.982 0.005 309.739);
--popover-foreground: oklch(0.078 0.024 312.151);
--card: oklch(0.982 0.005 309.739);
--card-foreground: oklch(0.078 0.024 312.151);
--border: oklch(0.92 0.006 309.721);
--input: oklch(0.92 0.006 309.721);
--primary: oklch(0.607 0.031 309.281);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.867 0.018 309.578);
--secondary-foreground: oklch(0.343 0.034 308.8);
--accent: oklch(0.867 0.018 309.578);
--accent-foreground: oklch(0.343 0.034 308.8);
--destructive: oklch(0.426 0.143 36.054);
--destructive-foreground: oklch(0.897 0.054 39.263);
--ring: oklch(0.607 0.031 309.281);
--chart-1: oklch(0.607 0.031 309.281);
--chart-2: oklch(0.867 0.018 309.578);
--chart-3: oklch(0.867 0.018 309.578);
--chart-4: oklch(0.892 0.015 309.623);
--chart-5: oklch(0.601 0.043 309.085);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.016 311.263);
--foreground: oklch(0.975 0.004 309.74);
--muted: oklch(0.226 0.048 307.556);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.083 0.016 311.263);
--popover-foreground: oklch(0.975 0.004 309.74);
--card: oklch(0.083 0.016 311.263);
--card-foreground: oklch(0.975 0.004 309.74);
--border: oklch(0.211 0.009 309.383);
--input: oklch(0.211 0.009 309.383);
--primary: oklch(0.607 0.031 309.281);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.288 0.005 309.61);
--secondary-foreground: oklch(0.818 0.005 309.721);
--accent: oklch(0.288 0.005 309.61);
--accent-foreground: oklch(0.818 0.005 309.721);
--destructive: oklch(0.64 0.223 34.933);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.607 0.031 309.281);
--chart-1: oklch(0.607 0.031 309.281);
--chart-2: oklch(0.288 0.005 309.61);
--chart-3: oklch(0.288 0.005 309.61);
--chart-4: oklch(0.318 0.006 309.604);
--chart-5: oklch(0.601 0.043 309.085);
}