Learn with Sumit - Peace of the eye - Dracula version is a shadcn/ui theme built around a muted blue primary color (#989eb3) with deep blue accents (#26446d). The light mode uses a blue-tinted background (#132135). Dark mode keeps the muted blue primary (#989eb3) on a blue-tinted background (#132135).
| Token | Light | Dark |
|---|---|---|
| Background | #132135darkslategray | #132135darkslategray |
| Foreground | #d1d3d7lightgrey | #d1d3d7lightgrey |
| Card | #101c2dblack | #101c2dblack |
| Card foreground | #dee0e3gainsboro | #dee0e3gainsboro |
| Popover | #0f1a2ablack | #0f1a2ablack |
| Popover foreground | #ecedeewhitesmoke | #ecedeewhitesmoke |
| Primary | #989eb3darkgray | #989eb3darkgray |
| Primary foreground | #0b0c0fblack | #0b0c0fblack |
| Secondary | #3d3e43darkslategray | #3d3e43darkslategray |
| Secondary foreground | #d7d8dbgainsboro | #d7d8dbgainsboro |
| Muted | #282d33darkslategray | #282d33darkslategray |
| Muted foreground | #a4acb7darkgray | #a4acb7darkgray |
| Accent | #26446ddarkslategray | #26446ddarkslategray |
| Accent foreground | #d5e1f0lavender | #d5e1f0lavender |
| Destructive | #e6201acrimson | #e6201acrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #1e2d43darkslategray | #1e2d43darkslategray |
| Input | #23354ddarkslategray | #23354ddarkslategray |
| Ring | #989eb3darkgray | #989eb3darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.82:1 | AAA |
| Text on card | 12.93:1 | AAA |
| Primary button | 7.35:1 | AAA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 6.04:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 4.59:1 | AA |
| Text on background | 10.82:1 | AAA |
| Text on card | 12.93:1 | AAA |
| Primary button | 7.35:1 | AAA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 6.04:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 4.59:1 | AA |
Paste this into your globals.css to use Learn with Sumit - Peace of the eye - Dracula version in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.245 0.043 256.954);
--foreground: oklch(0.865 0.006 264.529);
--muted: oklch(0.295 0.013 256.781);
--muted-foreground: oklch(0.741 0.019 256.738);
--popover: oklch(0.215 0.035 256.924);
--popover-foreground: oklch(0.945 0.002 264.543);
--card: oklch(0.225 0.038 256.934);
--card-foreground: oklch(0.905 0.004 264.537);
--border: oklch(0.296 0.045 256.899);
--input: oklch(0.324 0.05 256.908);
--primary: oklch(0.702 0.031 273.312);
--primary-foreground: oklch(0.153 0.007 273.338);
--secondary: oklch(0.364 0.009 273.581);
--secondary-foreground: oklch(0.881 0.004 273.811);
--accent: oklch(0.385 0.079 257.056);
--accent-foreground: oklch(0.905 0.025 256.743);
--destructive: oklch(0.59 0.227 28.866);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.702 0.031 273.312);
--chart-1: oklch(0.702 0.031 273.312);
--chart-2: oklch(0.364 0.009 273.581);
--chart-3: oklch(0.385 0.079 257.056);
--chart-4: oklch(0.392 0.01 273.575);
--chart-5: oklch(0.698 0.038 273.181);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.245 0.043 256.954);
--foreground: oklch(0.865 0.006 264.529);
--muted: oklch(0.295 0.013 256.781);
--muted-foreground: oklch(0.741 0.019 256.738);
--popover: oklch(0.215 0.035 256.924);
--popover-foreground: oklch(0.945 0.002 264.543);
--card: oklch(0.225 0.038 256.934);
--card-foreground: oklch(0.905 0.004 264.537);
--border: oklch(0.296 0.045 256.899);
--input: oklch(0.324 0.05 256.908);
--primary: oklch(0.702 0.031 273.312);
--primary-foreground: oklch(0.153 0.007 273.338);
--secondary: oklch(0.364 0.009 273.581);
--secondary-foreground: oklch(0.881 0.004 273.811);
--accent: oklch(0.385 0.079 257.056);
--accent-foreground: oklch(0.905 0.025 256.743);
--destructive: oklch(0.59 0.227 28.866);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.702 0.031 273.312);
--chart-1: oklch(0.702 0.031 273.312);
--chart-2: oklch(0.364 0.009 273.581);
--chart-3: oklch(0.385 0.079 257.056);
--chart-4: oklch(0.392 0.01 273.575);
--chart-5: oklch(0.698 0.038 273.181);
}