dragan is a shadcn/ui theme built around a near-white primary color (#e8e8e8) with neutral gray accents (#3c3e44). The light mode uses a neutral background (#18191b). Dark mode keeps the near-white primary (#e8e8e8) on a neutral background (#18191b).
| Token | Light | Dark |
|---|---|---|
| Background | #18191bblack | #18191bblack |
| Foreground | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Card | #131416black | #131416black |
| Card foreground | #e0e0e0gainsboro | #e0e0e0gainsboro |
| Popover | #111113black | #111113black |
| Popover foreground | #edededwhitesmoke | #edededwhitesmoke |
| Primary | #e8e8e8lavender | #e8e8e8lavender |
| Primary foreground | #4f4f4fdarkslategray | #4f4f4fdarkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #22252bdarkslategray | #22252bdarkslategray |
| Muted foreground | #9ba2b0darkgray | #9ba2b0darkgray |
| Accent | #3c3e44darkslategray | #3c3e44darkslategray |
| Accent foreground | #d6d8dbgainsboro | #d6d8dbgainsboro |
| Destructive | #e83730crimson | #e83730crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #262626darkslategray | #262626darkslategray |
| Input | #2e2e2edarkslategray | #2e2e2edarkslategray |
| Ring | #e8e8e8lavender | #e8e8e8lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 11.86:1 | AAA |
| Text on card | 13.96:1 | AAA |
| Primary button | 6.68:1 | AA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 7.45:1 | AAA |
| Destructive | 4.18:1 | AA Large |
| Text on background | 11.86:1 | AAA |
| Text on card | 13.96:1 | AAA |
| Primary button | 6.68:1 | AA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 7.45:1 | AAA |
| Destructive | 4.18:1 | AA Large |
Paste this into your globals.css to use dragan in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.213 0.004 264.477);
--foreground: oklch(0.869 0 165.964);
--muted: oklch(0.263 0.012 264.338);
--muted-foreground: oklch(0.712 0.022 264.424);
--popover: oklch(0.18 0.003 264.489);
--popover-foreground: oklch(0.947 0 180);
--card: oklch(0.191 0.004 264.484);
--card-foreground: oklch(0.908 0 180);
--border: oklch(0.27 0 180);
--input: oklch(0.301 0 189.462);
--primary: oklch(0.931 0 180);
--primary-foreground: oklch(0.428 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.365 0.009 264.451);
--accent-foreground: oklch(0.882 0.005 264.535);
--destructive: oklch(0.611 0.214 27.724);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.931 0 180);
--chart-1: oklch(0.931 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.365 0.009 264.451);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.93 0.001 17.185);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.213 0.004 264.477);
--foreground: oklch(0.869 0 165.964);
--muted: oklch(0.263 0.012 264.338);
--muted-foreground: oklch(0.712 0.022 264.424);
--popover: oklch(0.18 0.003 264.489);
--popover-foreground: oklch(0.947 0 180);
--card: oklch(0.191 0.004 264.484);
--card-foreground: oklch(0.908 0 180);
--border: oklch(0.27 0 180);
--input: oklch(0.301 0 189.462);
--primary: oklch(0.931 0 180);
--primary-foreground: oklch(0.428 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.365 0.009 264.451);
--accent-foreground: oklch(0.882 0.005 264.535);
--destructive: oklch(0.611 0.214 27.724);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.931 0 180);
--chart-1: oklch(0.931 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.365 0.009 264.451);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.93 0.001 17.185);
}