Dramatic is a shadcn/ui theme built around a near-black primary color (#0c0306) with near-black accents (#0c0503). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the near-black primary (#0c0306) on a pink-tinted background (#0b0406).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f8snow | #0b0406black |
| Foreground | #140609black | #fdfcfcsnow |
| Card | #fcf2f5lavenderblush | #0f0508black |
| Card foreground | #100408black | #ffffffwhite |
| Popover | #fcf2f5lavenderblush | #0f0508black |
| Popover foreground | #100408black | #ffffffwhite |
| Primary | #0c0306black | #0c0306black |
| Primary foreground | #d56c88palevioletred | #d56c88palevioletred |
| Secondary | #0c030ablack | #0c030ablack |
| Secondary foreground | #d56cbdorchid | #d56cbdorchid |
| Muted | #f0eaefwhitesmoke | #150f13black |
| Muted foreground | #5d515adimgray | #aea2acdarkgray |
| Accent | #0c0503black | #0c0503black |
| Accent foreground | #d5846cdarksalmon | #d5846cdarksalmon |
| Destructive | #6c2704maroon | #f87330tomato |
| Destructive foreground | #fcc3a6navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c0306black | #0c0306black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.68:1 | AAA |
| Text on card | 18.42:1 | AAA |
| Primary button | 6.12:1 | AA |
| Secondary button | 6.48:1 | AA |
| Muted text | 6.35:1 | AA |
| Accent | 7.06:1 | AAA |
| Destructive | 6.99:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 6.12:1 | AA |
| Secondary button | 6.48:1 | AA |
| Muted text | 7.72:1 | AAA |
| Accent | 7.06:1 | AAA |
| Destructive | 7.45:1 | AAA |
Paste this into your globals.css to use Dramatic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.007 359);
--foreground: oklch(0.146 0.028 1.919);
--muted: oklch(0.943 0.009 333.394);
--muted-foreground: oklch(0.449 0.022 333.999);
--popover: oklch(0.971 0.011 359.111);
--popover-foreground: oklch(0.134 0.025 0.181);
--card: oklch(0.971 0.011 359.111);
--card-foreground: oklch(0.134 0.025 0.181);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.121 0.021 358.846);
--primary-foreground: oklch(0.661 0.135 4.571);
--secondary: oklch(0.123 0.026 334.35);
--secondary-foreground: oklch(0.68 0.164 336.839);
--accent: oklch(0.128 0.016 44.66);
--accent-foreground: oklch(0.694 0.107 37.696);
--destructive: oklch(0.371 0.108 42.14);
--destructive-foreground: oklch(0.861 0.076 47.818);
--ring: oklch(0.121 0.021 358.846);
--chart-1: oklch(0.121 0.021 358.846);
--chart-2: oklch(0.123 0.026 334.35);
--chart-3: oklch(0.128 0.016 44.66);
--chart-4: oklch(0.162 0.039 336.589);
--chart-5: oklch(0.12 0.023 358.879);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.019 358.786);
--foreground: oklch(0.992 0.001 358.807);
--muted: oklch(0.177 0.014 334.432);
--muted-foreground: oklch(0.726 0.019 333.661);
--popover: oklch(0.135 0.022 0.037);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.135 0.022 0.037);
--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.121 0.021 358.846);
--primary-foreground: oklch(0.661 0.135 4.571);
--secondary: oklch(0.123 0.026 334.35);
--secondary-foreground: oklch(0.68 0.164 336.839);
--accent: oklch(0.128 0.016 44.66);
--accent-foreground: oklch(0.694 0.107 37.696);
--destructive: oklch(0.704 0.18 44.016);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.121 0.021 358.846);
--chart-1: oklch(0.121 0.021 358.846);
--chart-2: oklch(0.123 0.026 334.35);
--chart-3: oklch(0.128 0.016 44.66);
--chart-4: oklch(0.162 0.039 336.589);
--chart-5: oklch(0.12 0.023 358.879);
}