Doting is a shadcn/ui theme built around a muted green primary color (#445f50) with muted light green accents (#cedad3). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the muted green primary (#445f50) on a neutral background (#020805).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #020805black |
| Foreground | #030d07black | #fcfdfcwhite |
| Card | #f8fcfamintcream | #040c07black |
| Card foreground | #020805black | #ffffffwhite |
| Popover | #fcfdfcwhite | #020805black |
| Popover foreground | #030d07black | #fcfdfcwhite |
| Primary | #445f50darkslategray | #445f50darkslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cedad3lightgrey | #1f2321black |
| Secondary foreground | #32433adarkslategray | #b7bebasilver |
| Muted | #e4ece7lavender | #131b16black |
| Muted foreground | #404a44darkslategray | #b5bfbasilver |
| Accent | #cedad3lightgrey | #1f2321black |
| Accent foreground | #32433adarkslategray | #b7bebasilver |
| Destructive | #88180cdarkred | #dd2713crimson |
| Destructive foreground | #fbd0cbpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #445f50darkslategray | #445f50darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.38:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 7.27:1 | AAA |
| Destructive | 6.85:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 8.40:1 | AAA |
| Muted text | 9.29:1 | AAA |
| Accent | 8.40:1 | AAA |
| Destructive | 4.81:1 | AA |
Paste this into your globals.css to use Doting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 161.749);
--foreground: oklch(0.143 0.023 161.354);
--muted: oklch(0.936 0.011 161.528);
--muted-foreground: oklch(0.397 0.015 160.837);
--popover: oklch(0.993 0.002 161.749);
--popover-foreground: oklch(0.143 0.023 161.354);
--card: oklch(0.987 0.005 161.689);
--card-foreground: oklch(0.125 0.019 161.786);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.46 0.042 159.379);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.876 0.016 161.359);
--secondary-foreground: oklch(0.365 0.026 159.918);
--accent: oklch(0.876 0.016 161.359);
--accent-foreground: oklch(0.365 0.026 159.918);
--destructive: oklch(0.407 0.148 30.505);
--destructive-foreground: oklch(0.893 0.048 25.525);
--ring: oklch(0.46 0.042 159.379);
--chart-1: oklch(0.46 0.042 159.379);
--chart-2: oklch(0.876 0.016 161.359);
--chart-3: oklch(0.876 0.016 161.359);
--chart-4: oklch(0.898 0.013 161.451);
--chart-5: oklch(0.465 0.049 158.95);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.016 161.79);
--foreground: oklch(0.993 0.001 161.784);
--muted: oklch(0.212 0.015 159.939);
--muted-foreground: oklch(0.795 0.013 161.406);
--popover: oklch(0.123 0.016 161.79);
--popover-foreground: oklch(0.993 0.001 161.784);
--card: oklch(0.141 0.018 161.589);
--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.46 0.042 159.379);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.251 0.006 161.222);
--secondary-foreground: oklch(0.794 0.009 161.521);
--accent: oklch(0.251 0.006 161.222);
--accent-foreground: oklch(0.794 0.009 161.521);
--destructive: oklch(0.578 0.217 30.514);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.46 0.042 159.379);
--chart-1: oklch(0.46 0.042 159.379);
--chart-2: oklch(0.251 0.006 161.222);
--chart-3: oklch(0.251 0.006 161.222);
--chart-4: oklch(0.283 0.007 161.187);
--chart-5: oklch(0.465 0.049 158.95);
}