Doting is a shadcn/ui theme built around a blue primary color (#7e9fed) with green accents (#9fed7e). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#7e9fed) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030407black |
| Foreground | #010409black | #ffffffwhite |
| Card | #fcfcfcsnow | #04060bblack |
| Card foreground | #010204black | #ffffffwhite |
| Popover | #ffffffwhite | #030407black |
| Popover foreground | #010409black | #ffffffwhite |
| Primary | #7e9fedcornflowerblue | #7e9fedcornflowerblue |
| Primary foreground | #071431black | #071431black |
| Secondary | #ed7e9fpalevioletred | #ed7e9fpalevioletred |
| Secondary foreground | #310714black | #310714black |
| Muted | #ebd1d9gainsboro | #2e141cblack |
| Muted foreground | #555354dimgray | #acaaabdarkgray |
| Accent | #9fed7elightgreen | #9fed7elightgreen |
| Accent foreground | #143107black | #143107black |
| Destructive | #611905maroon | #f44d1forangered |
| Destructive foreground | #fab29elightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7e9fedcornflowerblue | #7e9fedcornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.53:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 6.87:1 | AA |
| Muted text | 5.31:1 | AA |
| Accent | 10.07:1 | AAA |
| Destructive | 7.22:1 | AAA |
| Text on background | 20.49:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 6.87:1 | AA |
| Muted text | 7.36:1 | AAA |
| Accent | 10.07:1 | AAA |
| Destructive | 3.52:1 | AA Large |
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.102 0.019 256.678);
--muted: oklch(0.884 0.031 357.632);
--muted-foreground: oklch(0.445 0.002 356.809);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.102 0.019 256.678);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.081 0.015 256.678);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.709 0.12 265.773);
--primary-foreground: oklch(0.199 0.061 263.854);
--secondary: oklch(0.724 0.14 2.081);
--secondary-foreground: oklch(0.213 0.068 6.917);
--accent: oklch(0.869 0.163 136.981);
--accent-foreground: oklch(0.28 0.076 137.945);
--destructive: oklch(0.331 0.108 35.501);
--destructive-foreground: oklch(0.826 0.09 36.083);
--ring: oklch(0.709 0.12 265.773);
--chart-1: oklch(0.709 0.12 265.773);
--chart-2: oklch(0.724 0.14 2.081);
--chart-3: oklch(0.869 0.163 136.981);
--chart-4: oklch(0.75 0.125 1.268);
--chart-5: oklch(0.707 0.125 265.685);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.012 261.269);
--foreground: oklch(1 0 180);
--muted: oklch(0.233 0.043 1.865);
--muted-foreground: oklch(0.74 0.002 356.738);
--popover: oklch(0.108 0.012 261.269);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.014 261.386);
--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.709 0.12 265.773);
--primary-foreground: oklch(0.199 0.061 263.854);
--secondary: oklch(0.724 0.14 2.081);
--secondary-foreground: oklch(0.213 0.068 6.917);
--accent: oklch(0.869 0.163 136.981);
--accent-foreground: oklch(0.28 0.076 137.945);
--destructive: oklch(0.651 0.211 35.234);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.709 0.12 265.773);
--chart-1: oklch(0.709 0.12 265.773);
--chart-2: oklch(0.724 0.14 2.081);
--chart-3: oklch(0.869 0.163 136.981);
--chart-4: oklch(0.75 0.125 1.268);
--chart-5: oklch(0.707 0.125 265.685);
}