Doting is a shadcn/ui theme built around a muted red primary color (#b09c9e) with neutral gray accents (#c4bbbc). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted red primary (#b09c9e) on a neutral background (#070304).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070304black |
| Foreground | #040101black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #0a0506black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #070304black |
| Popover foreground | #040101black | #fdfcfcsnow |
| Primary | #b09c9edarkgray | #b09c9edarkgray |
| Primary foreground | #0e0b0cblack | #0e0b0cblack |
| Secondary | #cfcecelightgrey | #312f30darkslategray |
| Secondary foreground | #363535darkslategray | #cbc8c9silver |
| Muted | #e5d1d4gainsboro | #2e1a1cblack |
| Muted foreground | #453a3bdarkslategray | #c5babbsilver |
| Accent | #c4bbbcsilver | #4a3f41darkslategray |
| Accent foreground | #292424darkslategray | #e1dbdcgainsboro |
| Destructive | #961e03darkred | #fb532dtomato |
| Destructive foreground | #fed6cdbisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b09c9edarkgray | #b09c9edarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 7.51:1 | AAA |
| Accent | 8.12:1 | AAA |
| Destructive | 6.32:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 8.70:1 | AAA |
| Accent | 7.35:1 | AAA |
| Destructive | 6.36:1 | AA |
Paste this into your globals.css to use Doting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.08 0.02 10.736);
--muted: oklch(0.879 0.022 9.513);
--muted-foreground: oklch(0.361 0.016 9.972);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.08 0.02 10.736);
--card: oklch(0.992 0 161.565);
--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.71 0.023 9.685);
--primary-foreground: oklch(0.155 0.005 9.652);
--secondary: oklch(0.852 0.001 8.94);
--secondary-foreground: oklch(0.33 0.002 9.019);
--accent: oklch(0.799 0.01 9.211);
--accent-foreground: oklch(0.265 0.008 9.635);
--destructive: oklch(0.438 0.159 33.059);
--destructive-foreground: oklch(0.908 0.047 32.765);
--ring: oklch(0.71 0.023 9.685);
--chart-1: oklch(0.71 0.023 9.685);
--chart-2: oklch(0.852 0.001 8.94);
--chart-3: oklch(0.799 0.01 9.211);
--chart-4: oklch(0.876 0.001 8.934);
--chart-5: oklch(0.707 0.03 9.907);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.01 9.53);
--foreground: oklch(0.992 0.001 8.931);
--muted: oklch(0.244 0.032 12.108);
--muted-foreground: oklch(0.797 0.013 9.299);
--popover: oklch(0.109 0.01 9.53);
--popover-foreground: oklch(0.992 0.001 8.931);
--card: oklch(0.125 0.012 9.53);
--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.71 0.023 9.685);
--primary-foreground: oklch(0.155 0.005 9.652);
--secondary: oklch(0.309 0.003 9.124);
--secondary-foreground: oklch(0.836 0.002 8.978);
--accent: oklch(0.381 0.015 9.861);
--accent-foreground: oklch(0.896 0.006 9.065);
--destructive: oklch(0.668 0.21 33.974);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.71 0.023 9.685);
--chart-1: oklch(0.71 0.023 9.685);
--chart-2: oklch(0.309 0.003 9.124);
--chart-3: oklch(0.381 0.015 9.861);
--chart-4: oklch(0.339 0.003 9.131);
--chart-5: oklch(0.707 0.03 9.907);
}