Dragon is a shadcn/ui theme built around a deep red primary color (#30171a) with deep teal accents (#17302d). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the deep red primary (#30171a) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f7snow | #030202black |
| Foreground | #160406black | #f8f6f6whitesmoke |
| Card | #fdf7f7snow | #030202black |
| Card foreground | #160406black | #f8f6f6whitesmoke |
| Popover | #fdf7f7snow | #030202black |
| Popover foreground | #160406black | #f8f6f6whitesmoke |
| Primary | #30171ablack | #30171ablack |
| Primary foreground | #d4a5abtan | #d4a5abtan |
| Secondary | #17302ddarkslategray | #17302ddarkslategray |
| Secondary foreground | #a5d4celightsteelblue | #a5d4celightsteelblue |
| Muted | #cbe6e3gainsboro | #193431darkslategray |
| Muted foreground | #5b716fdimgray | #8ea4a2darkgray |
| Accent | #17302ddarkslategray | #17302ddarkslategray |
| Accent foreground | #a5d4celightsteelblue | #a5d4celightsteelblue |
| Destructive | #621204maroon | #f75336tomato |
| Destructive foreground | #fbab9dlightsalmon | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #30171ablack | #30171ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.77:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 8.59:1 | AAA |
| Muted text | 3.96:1 | AA Large |
| Accent | 8.59:1 | AAA |
| Destructive | 7.09:1 | AAA |
| Text on background | 19.26:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 8.59:1 | AAA |
| Muted text | 5.08:1 | AA |
| Accent | 8.59:1 | AAA |
| Destructive | 6.23:1 | AA |
Paste this into your globals.css to use Dragon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 9.083);
--foreground: oklch(0.142 0.037 13.034);
--muted: oklch(0.905 0.029 188.149);
--muted-foreground: oklch(0.53 0.027 187.673);
--popover: oklch(0.98 0.007 9.083);
--popover-foreground: oklch(0.142 0.037 13.034);
--card: oklch(0.98 0.007 9.083);
--card-foreground: oklch(0.142 0.037 13.034);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.242 0.04 13.071);
--primary-foreground: oklch(0.767 0.055 10.61);
--secondary: oklch(0.289 0.032 185.955);
--secondary-foreground: oklch(0.835 0.049 187.461);
--accent: oklch(0.289 0.032 185.955);
--accent-foreground: oklch(0.835 0.049 187.461);
--destructive: oklch(0.325 0.115 32.613);
--destructive-foreground: oklch(0.815 0.097 30.349);
--ring: oklch(0.242 0.04 13.071);
--chart-1: oklch(0.242 0.04 13.071);
--chart-2: oklch(0.289 0.032 185.955);
--chart-3: oklch(0.289 0.032 185.955);
--chart-4: oklch(0.326 0.037 185.82);
--chart-5: oklch(0.241 0.044 13.506);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.008 9.508);
--foreground: oklch(0.976 0.002 8.97);
--muted: oklch(0.301 0.033 185.905);
--muted-foreground: oklch(0.701 0.025 188.034);
--popover: oklch(0.087 0.008 9.508);
--popover-foreground: oklch(0.976 0.002 8.97);
--card: oklch(0.087 0.008 9.508);
--card-foreground: oklch(0.976 0.002 8.97);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.242 0.04 13.071);
--primary-foreground: oklch(0.767 0.055 10.61);
--secondary: oklch(0.289 0.032 185.955);
--secondary-foreground: oklch(0.835 0.049 187.461);
--accent: oklch(0.289 0.032 185.955);
--accent-foreground: oklch(0.835 0.049 187.461);
--destructive: oklch(0.663 0.204 32.36);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.242 0.04 13.071);
--chart-1: oklch(0.242 0.04 13.071);
--chart-2: oklch(0.289 0.032 185.955);
--chart-3: oklch(0.289 0.032 185.955);
--chart-4: oklch(0.326 0.037 185.82);
--chart-5: oklch(0.241 0.044 13.506);
}