Dramatic is a shadcn/ui theme built around a muted red primary color (#c7b3ad) with muted indigo accents (#b3adc7). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the muted red primary (#c7b3ad) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf9f8snow | #000000black |
| Foreground | #0d0503black | #fdfcfbsnow |
| Card | #faf6f4whitesmoke | #030303black |
| Card foreground | #080302black | #ffffffwhite |
| Popover | #fcf9f8snow | #000000black |
| Popover foreground | #0d0503black | #fdfcfbsnow |
| Primary | #c7b3adsilver | #c7b3adsilver |
| Primary foreground | #271e1bblack | #271e1bblack |
| Secondary | #adc7b3silver | #adc7b3silver |
| Secondary foreground | #1b271eblack | #1b271eblack |
| Muted | #cde4d2lightgrey | #1b3220darkslategray |
| Muted foreground | #3c493fdarkslategray | #b6c3b9silver |
| Accent | #b3adc7silver | #b3adc7silver |
| Accent foreground | #1e1b27black | #1e1b27black |
| Destructive | #c52216firebrick | #e62b1ecrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c7b3adsilver | #c7b3adsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 8.12:1 | AAA |
| Secondary button | 8.57:1 | AAA |
| Muted text | 7.06:1 | AAA |
| Accent | 7.83:1 | AAA |
| Destructive | 5.80:1 | AA |
| Text on background | 20.49:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.12:1 | AAA |
| Secondary button | 8.57:1 | AAA |
| Muted text | 7.57:1 | AAA |
| Accent | 7.83:1 | AAA |
| Destructive | 4.43:1 | AA Large |
Paste this into your globals.css to use Dramatic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.004 35.999);
--foreground: oklch(0.126 0.019 44.304);
--muted: oklch(0.898 0.034 152.002);
--muted-foreground: oklch(0.39 0.024 151.594);
--popover: oklch(0.984 0.004 35.999);
--popover-foreground: oklch(0.126 0.019 44.304);
--card: oklch(0.975 0.005 35.993);
--card-foreground: oklch(0.11 0.016 44.74);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.782 0.025 35.946);
--primary-foreground: oklch(0.244 0.016 35.97);
--secondary: oklch(0.805 0.04 151.808);
--secondary-foreground: oklch(0.259 0.025 150.962);
--accent: oklch(0.761 0.037 295.425);
--accent-foreground: oklch(0.231 0.024 294.349);
--destructive: oklch(0.532 0.199 29.572);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.782 0.025 35.946);
--chart-1: oklch(0.782 0.025 35.946);
--chart-2: oklch(0.805 0.04 151.808);
--chart-3: oklch(0.761 0.037 295.425);
--chart-4: oklch(0.827 0.036 151.925);
--chart-5: oklch(0.781 0.029 35.944);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 36.006);
--muted: oklch(0.291 0.044 149.912);
--muted-foreground: oklch(0.805 0.02 152.213);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.002 36.006);
--card: oklch(0.092 0 180);
--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.782 0.025 35.946);
--primary-foreground: oklch(0.244 0.016 35.97);
--secondary: oklch(0.805 0.04 151.808);
--secondary-foreground: oklch(0.259 0.025 150.962);
--accent: oklch(0.761 0.037 295.425);
--accent-foreground: oklch(0.231 0.024 294.349);
--destructive: oklch(0.598 0.222 29.508);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.782 0.025 35.946);
--chart-1: oklch(0.782 0.025 35.946);
--chart-2: oklch(0.805 0.04 151.808);
--chart-3: oklch(0.761 0.037 295.425);
--chart-4: oklch(0.827 0.036 151.925);
--chart-5: oklch(0.781 0.029 35.944);
}