Dare is a shadcn/ui theme built around a muted deep violet primary color (#41324d) with muted deep purple accents (#4d324c). The light mode uses a neutral background (#faf7fd). Dark mode keeps the muted deep violet primary (#41324d) on a neutral background (#050208).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #050208black |
| Foreground | #050208black | #ffffffwhite |
| Card | #faf7fdghostwhite | #050208black |
| Card foreground | #050208black | #ffffffwhite |
| Popover | #faf7fdghostwhite | #050208black |
| Popover foreground | #050208black | #ffffffwhite |
| Primary | #41324ddarkslategray | #41324ddarkslategray |
| Primary foreground | #dad1e1gainsboro | #dad1e1gainsboro |
| Secondary | #34324ddarkslategray | #34324ddarkslategray |
| Secondary foreground | #d2d1e1lightgrey | #d2d1e1lightgrey |
| Muted | #dbdae7gainsboro | #191825black |
| Muted foreground | #504f69dimgray | #9896b0darkgray |
| Accent | #4d324cdarkslategray | #4d324cdarkslategray |
| Accent foreground | #e1d1e0gainsboro | #e1d1e0gainsboro |
| Destructive | #881f07darkred | #e9350corangered |
| Destructive foreground | #fccfc5pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #41324ddarkslategray | #41324ddarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 5.69:1 | AA |
| Accent | 7.64:1 | AAA |
| Destructive | 6.64:1 | AA |
| Text on background | 20.56:1 | AAA |
| Text on card | 20.56:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 6.10:1 | AA |
| Accent | 7.64:1 | AAA |
| Destructive | 4.23:1 | AA Large |
Paste this into your globals.css to use Dare in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.009 310.355);
--foreground: oklch(0.102 0.024 312.292);
--muted: oklch(0.893 0.017 288.342);
--muted-foreground: oklch(0.439 0.042 286.821);
--popover: oklch(0.98 0.009 310.355);
--popover-foreground: oklch(0.102 0.024 312.292);
--card: oklch(0.98 0.009 310.355);
--card-foreground: oklch(0.102 0.024 312.292);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.346 0.049 309.091);
--primary-foreground: oklch(0.872 0.024 310.184);
--secondary: oklch(0.332 0.047 285.836);
--secondary-foreground: oklch(0.865 0.022 288.229);
--accent: oklch(0.36 0.056 328.365);
--accent-foreground: oklch(0.877 0.027 327.319);
--destructive: oklch(0.412 0.144 33.362);
--destructive-foreground: oklch(0.89 0.053 32.8);
--ring: oklch(0.346 0.049 309.091);
--chart-1: oklch(0.346 0.049 309.091);
--chart-2: oklch(0.332 0.047 285.836);
--chart-3: oklch(0.36 0.056 328.365);
--chart-4: oklch(0.357 0.052 285.766);
--chart-5: oklch(0.343 0.056 308.873);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.02 311.995);
--foreground: oklch(1 0 180);
--muted: oklch(0.217 0.025 286.398);
--muted-foreground: oklch(0.684 0.038 287.656);
--popover: oklch(0.104 0.02 311.995);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.104 0.02 311.995);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.346 0.049 309.091);
--primary-foreground: oklch(0.872 0.024 310.184);
--secondary: oklch(0.332 0.047 285.836);
--secondary-foreground: oklch(0.865 0.022 288.229);
--accent: oklch(0.36 0.056 328.365);
--accent-foreground: oklch(0.877 0.027 327.319);
--destructive: oklch(0.608 0.22 32.853);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.346 0.049 309.091);
--chart-1: oklch(0.346 0.049 309.091);
--chart-2: oklch(0.332 0.047 285.836);
--chart-3: oklch(0.36 0.056 328.365);
--chart-4: oklch(0.357 0.052 285.766);
--chart-5: oklch(0.343 0.056 308.873);
}