Doting is a shadcn/ui theme built around a vivid yellow primary color (#f2d88d) with muted light yellow accents (#dfddd8). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the vivid yellow primary (#f2d88d) on a yellow-tinted background (#0f0d05).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbf7snow | #0f0d05black |
| Foreground | #000000black | #fbfbf9snow |
| Card | #fcfaf3floralwhite | #131006black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fcfaf3floralwhite | #131006black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #f2d88dkhaki | #f2d88dkhaki |
| Primary foreground | #443508darkolivegreen | #443508darkolivegreen |
| Secondary | #dfddd8gainsboro | #2a2a27darkslategray |
| Secondary foreground | #49463cdarkslategray | #c4c3bfsilver |
| Muted | #ebeae5linen | #1a1914black |
| Muted foreground | #666257dimgray | #a8a499darkgray |
| Accent | #dfddd8gainsboro | #2a2a27darkslategray |
| Accent foreground | #49463cdarkslategray | #c4c3bfsilver |
| Destructive | #d0530bchocolate | #f36a1bchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2d88dkhaki | #f2d88dkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.35:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 8.53:1 | AAA |
| Secondary button | 6.95:1 | AA |
| Muted text | 5.04:1 | AA |
| Accent | 6.95:1 | AA |
| Destructive | 4.24:1 | AA Large |
| Text on background | 18.77:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 8.53:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 8.17:1 | AAA |
| Destructive | 6.90:1 | AA |
Paste this into your globals.css to use Doting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 91.462);
--foreground: oklch(0 0 0);
--muted: oklch(0.936 0.007 91.475);
--muted-foreground: oklch(0.497 0.018 91.683);
--popover: oklch(0.984 0.009 91.488);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.009 91.488);
--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.888 0.099 91.701);
--primary-foreground: oklch(0.338 0.063 89.132);
--secondary: oklch(0.898 0.007 91.481);
--secondary-foreground: oklch(0.393 0.017 91.718);
--accent: oklch(0.898 0.007 91.481);
--accent-foreground: oklch(0.393 0.017 91.718);
--destructive: oklch(0.6 0.173 43.152);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.888 0.099 91.701);
--chart-1: oklch(0.888 0.099 91.701);
--chart-2: oklch(0.898 0.007 91.481);
--chart-3: oklch(0.898 0.007 91.481);
--chart-4: oklch(0.92 0.006 91.465);
--chart-5: oklch(0.891 0.102 91.674);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.017 93.546);
--foreground: oklch(0.987 0.003 91.433);
--muted: oklch(0.212 0.01 91.742);
--muted-foreground: oklch(0.72 0.017 91.596);
--popover: oklch(0.173 0.02 92.463);
--popover-foreground: oklch(0.993 0.001 91.421);
--card: oklch(0.173 0.02 92.463);
--card-foreground: oklch(0.993 0.001 91.421);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.888 0.099 91.701);
--primary-foreground: oklch(0.338 0.063 89.132);
--secondary: oklch(0.283 0.005 91.544);
--secondary-foreground: oklch(0.817 0.005 91.465);
--accent: oklch(0.283 0.005 91.544);
--accent-foreground: oklch(0.817 0.005 91.465);
--destructive: oklch(0.684 0.187 44.754);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.888 0.099 91.701);
--chart-1: oklch(0.888 0.099 91.701);
--chart-2: oklch(0.283 0.005 91.544);
--chart-3: oklch(0.283 0.005 91.544);
--chart-4: oklch(0.315 0.005 91.549);
--chart-5: oklch(0.891 0.102 91.674);
}