Daring is a shadcn/ui theme built around a neutral gray primary color (#2e2e2e) with neutral gray accents (#2e2e2e). The light mode uses a neutral background (#fbf8f8). Dark mode keeps the neutral gray primary (#2e2e2e) on a neutral background (#080202).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8f8snow | #080202black |
| Foreground | #110303black | #f9f6f6whitesmoke |
| Card | #fbf8f8snow | #080202black |
| Card foreground | #110303black | #f9f6f6whitesmoke |
| Popover | #fbf8f8snow | #080202black |
| Popover foreground | #110303black | #f9f6f6whitesmoke |
| Primary | #2e2e2edarkslategray | #2e2e2edarkslategray |
| Primary foreground | #c7c7c7silver | #c7c7c7silver |
| Secondary | #2e2e2edarkslategray | #2e2e2edarkslategray |
| Secondary foreground | #c7c7c7silver | #c7c7c7silver |
| Muted | #e8e3e3gainsboro | #1c1717black |
| Muted foreground | #494141darkslategray | #beb6b6silver |
| Accent | #2e2e2edarkslategray | #2e2e2edarkslategray |
| Accent foreground | #c7c7c7silver | #c7c7c7silver |
| Destructive | #c4410efirebrick | #f16c37tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2e2e2edarkslategray | #2e2e2edarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 7.80:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 5.12:1 | AA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 8.91:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.92:1 | AA |
Paste this into your globals.css to use Daring in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.003 17.215);
--foreground: oklch(0.13 0.03 22.102);
--muted: oklch(0.92 0.006 17.258);
--muted-foreground: oklch(0.383 0.011 17.66);
--popover: oklch(0.983 0.003 17.215);
--popover-foreground: oklch(0.13 0.03 22.102);
--card: oklch(0.983 0.003 17.215);
--card-foreground: oklch(0.13 0.03 22.102);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.301 0 189.462);
--primary-foreground: oklch(0.829 0 180);
--secondary: oklch(0.301 0 189.462);
--secondary-foreground: oklch(0.829 0 180);
--accent: oklch(0.301 0 189.462);
--accent-foreground: oklch(0.829 0 180);
--destructive: oklch(0.556 0.175 38.102);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.301 0 189.462);
--chart-1: oklch(0.301 0 189.462);
--chart-2: oklch(0.301 0 189.462);
--chart-3: oklch(0.301 0 189.462);
--chart-4: oklch(0.331 0 180);
--chart-5: oklch(0.298 0.004 17.38);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.019 20.789);
--foreground: oklch(0.975 0.003 17.211);
--muted: oklch(0.211 0.008 17.822);
--muted-foreground: oklch(0.783 0.009 17.357);
--popover: oklch(0.103 0.019 20.789);
--popover-foreground: oklch(0.975 0.003 17.211);
--card: oklch(0.103 0.019 20.789);
--card-foreground: oklch(0.975 0.003 17.211);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.301 0 189.462);
--primary-foreground: oklch(0.829 0 180);
--secondary: oklch(0.301 0 189.462);
--secondary-foreground: oklch(0.829 0 180);
--accent: oklch(0.301 0 189.462);
--accent-foreground: oklch(0.829 0 180);
--destructive: oklch(0.685 0.178 40.637);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.301 0 189.462);
--chart-1: oklch(0.301 0 189.462);
--chart-2: oklch(0.301 0 189.462);
--chart-3: oklch(0.301 0 189.462);
--chart-4: oklch(0.331 0 180);
--chart-5: oklch(0.298 0.004 17.38);
}