Scared is a shadcn/ui theme built around a deep violet primary color (#46295b) with deep green accents (#3f5b29). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the deep violet primary (#46295b) on a neutral background (#050407).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #050407black |
| Foreground | #0e0515black | #fdfcfdwhite |
| Card | #fdfbfewhite | #050407black |
| Card foreground | #0e0515black | #fdfcfdwhite |
| Popover | #fdfbfewhite | #050407black |
| Popover foreground | #0e0515black | #fdfcfdwhite |
| Primary | #46295bdarkslategray | #46295bdarkslategray |
| Primary foreground | #ddcee9gainsboro | #ddcee9gainsboro |
| Secondary | #3f5b29darkolivegreen | #3f5b29darkolivegreen |
| Secondary foreground | #d9e9cegainsboro | #d9e9cegainsboro |
| Muted | #dfead6gainsboro | #1d2915black |
| Muted foreground | #3f453adarkslategray | #bec5basilver |
| Accent | #3f5b29darkolivegreen | #3f5b29darkolivegreen |
| Accent foreground | #d9e9cegainsboro | #d9e9cegainsboro |
| Destructive | #94110adarkred | #f0372dcrimson |
| Destructive foreground | #fcd6d4mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #46295bdarkslategray | #46295bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 8.14:1 | AAA |
| Secondary button | 5.98:1 | AA |
| Muted text | 7.97:1 | AAA |
| Accent | 5.98:1 | AA |
| Destructive | 6.70:1 | AA |
| Text on background | 20.01:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 8.14:1 | AAA |
| Secondary button | 5.98:1 | AA |
| Muted text | 8.63:1 | AAA |
| Accent | 5.98:1 | AA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use Scared in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 311.047);
--foreground: oklch(0.139 0.039 309.815);
--muted: oklch(0.924 0.03 131.368);
--muted-foreground: oklch(0.382 0.021 131.577);
--popover: oklch(0.99 0.004 311.047);
--popover-foreground: oklch(0.139 0.039 309.815);
--card: oklch(0.99 0.004 311.047);
--card-foreground: oklch(0.139 0.039 309.815);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.342 0.09 308.526);
--primary-foreground: oklch(0.871 0.04 310.683);
--secondary: oklch(0.437 0.083 133.207);
--secondary-foreground: oklch(0.915 0.04 131.473);
--accent: oklch(0.437 0.083 133.207);
--accent-foreground: oklch(0.915 0.04 131.473);
--destructive: oklch(0.426 0.164 29.301);
--destructive-foreground: oklch(0.908 0.043 21.533);
--ring: oklch(0.342 0.09 308.526);
--chart-1: oklch(0.342 0.09 308.526);
--chart-2: oklch(0.437 0.083 133.207);
--chart-3: oklch(0.437 0.083 133.207);
--chart-4: oklch(0.472 0.091 133.249);
--chart-5: oklch(0.34 0.097 308.263);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.012 311.996);
--foreground: oklch(0.992 0.001 311.075);
--muted: oklch(0.263 0.039 132.595);
--muted-foreground: oklch(0.815 0.017 131.272);
--popover: oklch(0.109 0.012 311.996);
--popover-foreground: oklch(0.992 0.001 311.075);
--card: oklch(0.109 0.012 311.996);
--card-foreground: oklch(0.992 0.001 311.075);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.342 0.09 308.526);
--primary-foreground: oklch(0.871 0.04 310.683);
--secondary: oklch(0.437 0.083 133.207);
--secondary-foreground: oklch(0.915 0.04 131.473);
--accent: oklch(0.437 0.083 133.207);
--accent-foreground: oklch(0.915 0.04 131.473);
--destructive: oklch(0.626 0.222 28.535);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.342 0.09 308.526);
--chart-1: oklch(0.342 0.09 308.526);
--chart-2: oklch(0.437 0.083 133.207);
--chart-3: oklch(0.437 0.083 133.207);
--chart-4: oklch(0.472 0.091 133.249);
--chart-5: oklch(0.34 0.097 308.263);
}