Dramatic is a shadcn/ui theme built around a muted light green primary color (#f3f7f3) with neutral gray accents (#d0d3cf). The light mode uses a neutral background (#fcfefb). Dark mode keeps the muted light green primary (#f3f7f3) on a neutral background (#010401).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #010401black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f8fcf8mintcream | #030802black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfefbwhite | #010401black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #f3f7f3whitesmoke | #f3f7f3whitesmoke |
| Primary foreground | #233021darkslategray | #233021darkslategray |
| Secondary | #d0d3cflightgrey | #121811black |
| Secondary foreground | #363a36darkslategray | #a3baa0darkgray |
| Muted | #e6ebe6gainsboro | #151914black |
| Muted foreground | #4d5d4cdarkolivegreen | #a4b3a2darkgray |
| Accent | #d0d3cflightgrey | #121811black |
| Accent foreground | #363a36darkslategray | #a3baa0darkgray |
| Destructive | #b00b03firebrick | #f61004red |
| Destructive foreground | #ffe7e6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f3f7f3whitesmoke | #f3f7f3whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.63:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 12.77:1 | AAA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 5.80:1 | AA |
| Accent | 7.64:1 | AAA |
| Destructive | 6.16:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 12.77:1 | AAA |
| Secondary button | 8.68:1 | AAA |
| Muted text | 8.05:1 | AAA |
| Accent | 8.68:1 | AAA |
| Destructive | 4.20:1 | AA Large |
Paste this into your globals.css to use Dramatic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 142.613);
--foreground: oklch(0 0 0);
--muted: oklch(0.934 0.008 142.591);
--muted-foreground: oklch(0.459 0.033 142.334);
--popover: oklch(0.994 0.003 142.613);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.007 142.598);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.972 0.006 142.602);
--primary-foreground: oklch(0.293 0.032 142.181);
--secondary: oklch(0.863 0.006 142.598);
--secondary-foreground: oklch(0.344 0.009 142.515);
--accent: oklch(0.863 0.006 142.598);
--accent-foreground: oklch(0.344 0.009 142.515);
--destructive: oklch(0.479 0.192 29.696);
--destructive-foreground: oklch(0.947 0.026 21.249);
--ring: oklch(0.972 0.006 142.602);
--chart-1: oklch(0.972 0.006 142.602);
--chart-2: oklch(0.863 0.006 142.598);
--chart-3: oklch(0.863 0.006 142.598);
--chart-4: oklch(0.886 0.005 142.604);
--chart-5: oklch(0.972 0.007 142.598);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.018 140.936);
--foreground: oklch(1 0 180);
--muted: oklch(0.209 0.012 142.391);
--muted-foreground: oklch(0.751 0.029 142.469);
--popover: oklch(0.097 0.018 140.936);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.022 140.936);
--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.972 0.006 142.602);
--primary-foreground: oklch(0.293 0.032 142.181);
--secondary: oklch(0.199 0.016 142.304);
--secondary-foreground: oklch(0.765 0.045 142.387);
--accent: oklch(0.199 0.016 142.304);
--accent-foreground: oklch(0.765 0.045 142.387);
--destructive: oklch(0.615 0.248 29.568);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.972 0.006 142.602);
--chart-1: oklch(0.972 0.006 142.602);
--chart-2: oklch(0.199 0.016 142.304);
--chart-3: oklch(0.199 0.016 142.304);
--chart-4: oklch(0.235 0.021 142.266);
--chart-5: oklch(0.972 0.007 142.598);
}