Daring is a shadcn/ui theme built around a blue primary color (#375286) with green accents (#528637). The light mode uses a neutral background (#f7f9fc). Dark mode keeps the blue primary (#375286) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f9fcghostwhite | #010204black |
| Foreground | #010205black | #f6f7f9whitesmoke |
| Card | #f4f6fbghostwhite | #030407black |
| Card foreground | #000000black | #f9fafbghostwhite |
| Popover | #f4f6fbghostwhite | #030407black |
| Popover foreground | #000000black | #f9fafbghostwhite |
| Primary | #375286darkslateblue | #375286darkslateblue |
| Primary foreground | #f4f6fbghostwhite | #f4f6fbghostwhite |
| Secondary | #863752brown | #863752brown |
| Secondary foreground | #fbf4f6lavenderblush | #fbf4f6lavenderblush |
| Muted | #e9e2e4gainsboro | #1d1618black |
| Muted foreground | #5f585bdimgray | #a7a0a2darkgray |
| Accent | #528637darkolivegreen | #528637darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #660a0amaroon | #df1616crimson |
| Destructive foreground | #f7abablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #375286darkslateblue | #375286darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.71:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 7.23:1 | AAA |
| Muted text | 5.42:1 | AA |
| Accent | 4.35:1 | AA Large |
| Destructive | 7.04:1 | AAA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 7.23:1 | AAA |
| Muted text | 6.94:1 | AA |
| Accent | 4.35:1 | AA Large |
| Destructive | 4.93:1 | AA |
Paste this into your globals.css to use Daring in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 263.046);
--foreground: oklch(0.082 0.015 251.016);
--muted: oklch(0.919 0.009 353.856);
--muted-foreground: oklch(0.469 0.01 354.199);
--popover: oklch(0.973 0.007 263.041);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.973 0.007 263.041);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.444 0.092 261.897);
--primary-foreground: oklch(0.974 0.006 263.043);
--secondary: oklch(0.452 0.112 0.713);
--secondary-foreground: oklch(0.973 0.007 353.795);
--accent: oklch(0.565 0.124 136.018);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.328 0.124 27.576);
--destructive-foreground: oklch(0.815 0.089 19.168);
--ring: oklch(0.444 0.092 261.897);
--chart-1: oklch(0.444 0.092 261.897);
--chart-2: oklch(0.452 0.112 0.713);
--chart-3: oklch(0.565 0.124 136.018);
--chart-4: oklch(0.478 0.12 0.792);
--chart-5: oklch(0.442 0.098 261.802);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.009 256.792);
--foreground: oklch(0.976 0.003 263.049);
--muted: oklch(0.209 0.013 355.334);
--muted-foreground: oklch(0.711 0.009 353.946);
--popover: oklch(0.109 0.011 256.792);
--popover-foreground: oklch(0.984 0.002 263.05);
--card: oklch(0.109 0.011 256.792);
--card-foreground: oklch(0.984 0.002 263.05);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.444 0.092 261.897);
--primary-foreground: oklch(0.974 0.006 263.043);
--secondary: oklch(0.452 0.112 0.713);
--secondary-foreground: oklch(0.973 0.007 353.795);
--accent: oklch(0.565 0.124 136.018);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.573 0.226 28.391);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.444 0.092 261.897);
--chart-1: oklch(0.444 0.092 261.897);
--chart-2: oklch(0.452 0.112 0.713);
--chart-3: oklch(0.565 0.124 136.018);
--chart-4: oklch(0.478 0.12 0.792);
--chart-5: oklch(0.442 0.098 261.802);
}