Dental is a shadcn/ui theme built around a neutral gray primary color (#31302b) with neutral gray accents (#2f312b). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the neutral gray primary (#31302b) on a yellow-tinted background (#0f0d05).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #0f0d05black |
| Foreground | #040401black | #f9f8f6whitesmoke |
| Card | #fbfaf3floralwhite | #131107black |
| Card foreground | #000000black | #fbfbf9snow |
| Popover | #fbfaf3floralwhite | #131107black |
| Popover foreground | #000000black | #fbfbf9snow |
| Primary | #31302bdarkslategray | #31302bdarkslategray |
| Primary foreground | #cbc9c3silver | #cbc9c3silver |
| Secondary | #312d2bdarkslategray | #312d2bdarkslategray |
| Secondary foreground | #cbc5c3silver | #cbc5c3silver |
| Muted | #eee9e7linen | #181311black |
| Muted foreground | #636363dimgray | #9c9c9cdarkgray |
| Accent | #2f312bdarkslategray | #2f312bdarkslategray |
| Accent foreground | #c8cbc3silver | #c8cbc3silver |
| Destructive | #9e0b00darkred | #e60f00red |
| Destructive foreground | #ffd4d1bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #31302bdarkslategray | #31302bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 5.00:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.23:1 | AA |
| Text on background | 18.29:1 | AAA |
| Text on card | 18.30:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 6.70:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 4.75:1 | AA |
Paste this into your globals.css to use Dental in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 96.239);
--foreground: oklch(0.101 0.013 100.48);
--muted: oklch(0.938 0.006 46.785);
--muted-foreground: oklch(0.501 0 180);
--popover: oklch(0.984 0.009 96.276);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.009 96.276);
--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.308 0.009 96.522);
--primary-foreground: oklch(0.836 0.009 96.298);
--secondary: oklch(0.3 0.007 46.593);
--secondary-foreground: oklch(0.828 0.007 46.762);
--accent: oklch(0.309 0.012 121.388);
--accent-foreground: oklch(0.837 0.011 120.986);
--destructive: oklch(0.443 0.177 30.175);
--destructive-foreground: oklch(0.906 0.048 22.888);
--ring: oklch(0.308 0.009 96.522);
--chart-1: oklch(0.308 0.009 96.522);
--chart-2: oklch(0.3 0.007 46.593);
--chart-3: oklch(0.309 0.012 121.388);
--chart-4: oklch(0.33 0.008 46.585);
--chart-5: oklch(0.312 0.013 96.647);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.017 98.125);
--foreground: oklch(0.98 0.003 96.209);
--muted: oklch(0.192 0.009 46.389);
--muted-foreground: oklch(0.691 0 180);
--popover: oklch(0.175 0.02 97.469);
--popover-foreground: oklch(0.987 0.002 96.194);
--card: oklch(0.175 0.02 97.469);
--card-foreground: oklch(0.987 0.002 96.194);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.308 0.009 96.522);
--primary-foreground: oklch(0.836 0.009 96.298);
--secondary: oklch(0.3 0.007 46.593);
--secondary-foreground: oklch(0.828 0.007 46.762);
--accent: oklch(0.309 0.012 121.388);
--accent-foreground: oklch(0.837 0.011 120.986);
--destructive: oklch(0.583 0.235 29.859);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.308 0.009 96.522);
--chart-1: oklch(0.308 0.009 96.522);
--chart-2: oklch(0.3 0.007 46.593);
--chart-3: oklch(0.309 0.012 121.388);
--chart-4: oklch(0.33 0.008 46.585);
--chart-5: oklch(0.312 0.013 96.647);
}