Dark Sanctuar is a shadcn/ui theme built around a vivid deep purple primary color (#38012b) with vivid deep green accents (#01380d). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid deep purple primary (#38012b) on a purple-tinted background (#0b040a).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0b040ablack |
| Foreground | #000000black | #fbf9fasnow |
| Card | #fcf8fbsnow | #0f050dblack |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fefbfdsnow | #0b040ablack |
| Popover foreground | #000000black | #fbf9fasnow |
| Primary | #38012bblack | #38012bblack |
| Primary foreground | #fe6ddcviolet | #fe6ddcviolet |
| Secondary | #01380ddarkgreen | #01380ddarkgreen |
| Secondary foreground | #08fd41springgreen | #08fd41springgreen |
| Muted | #d7dbd8gainsboro | #242825darkslategray |
| Muted foreground | #465349darkslategray | #acb9afdarkgray |
| Accent | #01380ddarkgreen | #01380ddarkgreen |
| Accent foreground | #08fd41springgreen | #08fd41springgreen |
| Destructive | #bd2300firebrick | #e62a00orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e7dfe5gainsboro | #2b2129darkslategray |
| Input | #e7dfe5gainsboro | #2b2129darkslategray |
| Ring | #38012bblack | #38012bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.45:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 7.01:1 | AAA |
| Secondary button | 9.68:1 | AAA |
| Muted text | 5.77:1 | AA |
| Accent | 9.68:1 | AAA |
| Destructive | 6.19:1 | AA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 7.01:1 | AAA |
| Secondary button | 9.68:1 | AAA |
| Muted text | 7.31:1 | AAA |
| Accent | 9.68:1 | AAA |
| Destructive | 4.48:1 | AA Large |
Paste this into your globals.css to use Dark Sanctuar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 333.298);
--foreground: oklch(0 0 0);
--muted: oklch(0.887 0.006 153.135);
--muted-foreground: oklch(0.427 0.022 152.377);
--popover: oklch(0.991 0.003 333.298);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.007 333.356);
--card-foreground: oklch(0 0 0);
--border: oklch(0.912 0.011 333.432);
--input: oklch(0.912 0.011 333.432);
--primary: oklch(0.23 0.098 340.069);
--primary-foreground: oklch(0.746 0.215 337.576);
--secondary: oklch(0.295 0.088 146.45);
--secondary-foreground: oklch(0.862 0.275 144.424);
--accent: oklch(0.295 0.088 146.45);
--accent-foreground: oklch(0.862 0.275 144.424);
--destructive: oklch(0.515 0.192 32.551);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.23 0.098 340.069);
--chart-1: oklch(0.23 0.098 340.069);
--chart-2: oklch(0.295 0.088 146.45);
--chart-3: oklch(0.295 0.088 146.45);
--chart-4: oklch(0.345 0.106 145.803);
--chart-5: oklch(0.231 0.101 340.211);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.023 334.114);
--foreground: oklch(0.984 0.003 333.292);
--muted: oklch(0.273 0.008 152.774);
--muted-foreground: oklch(0.772 0.019 152.835);
--popover: oklch(0.124 0.023 334.114);
--popover-foreground: oklch(0.984 0.003 333.292);
--card: oklch(0.138 0.026 335.178);
--card-foreground: oklch(0.992 0.002 333.266);
--border: oklch(0.264 0.02 334.431);
--input: oklch(0.264 0.02 334.431);
--primary: oklch(0.23 0.098 340.069);
--primary-foreground: oklch(0.746 0.215 337.576);
--secondary: oklch(0.295 0.088 146.45);
--secondary-foreground: oklch(0.862 0.275 144.424);
--accent: oklch(0.295 0.088 146.45);
--accent-foreground: oklch(0.862 0.275 144.424);
--destructive: oklch(0.595 0.224 32.24);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.23 0.098 340.069);
--chart-1: oklch(0.23 0.098 340.069);
--chart-2: oklch(0.295 0.088 146.45);
--chart-3: oklch(0.295 0.088 146.45);
--chart-4: oklch(0.345 0.106 145.803);
--chart-5: oklch(0.231 0.101 340.211);
}