Dental is a shadcn/ui theme built around a neutral gray primary color (#44423c) with neutral gray accents (#41443c). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#44423c) on a yellow-tinted background (#0c0a03).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0a03black |
| Foreground | #090701black | #fdfdfcwhite |
| Card | #ffffffwhite | #0c0a03black |
| Card foreground | #090701black | #fdfdfcwhite |
| Popover | #ffffffwhite | #0c0a03black |
| Popover foreground | #090701black | #fdfdfcwhite |
| Primary | #44423cdarkslategray | #44423cdarkslategray |
| Primary foreground | #dbdad6gainsboro | #dbdad6gainsboro |
| Secondary | #443e3cdarkslategray | #443e3cdarkslategray |
| Secondary foreground | #dbd8d6gainsboro | #dbd8d6gainsboro |
| Muted | #e2e0dfgainsboro | #201e1dblack |
| Muted foreground | #67534cdimgray | #b3a098rosybrown |
| Accent | #41443cdarkslategray | #41443cdarkslategray |
| Accent foreground | #dadbd6gainsboro | #dadbd6gainsboro |
| Destructive | #be1e09firebrick | #e0230borangered |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #44423cdarkslategray | #44423cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.14:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 5.45:1 | AA |
| Accent | 7.15:1 | AAA |
| Destructive | 6.04:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 6.64:1 | AA |
| Accent | 7.15:1 | AAA |
| Destructive | 4.74:1 | AA |
Paste this into your globals.css to use Dental in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.129 0.02 99.5);
--muted: oklch(0.907 0.003 43.103);
--muted-foreground: oklch(0.461 0.028 42.698);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.129 0.02 99.5);
--card: oklch(1 0 180);
--card-foreground: oklch(0.129 0.02 99.5);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.378 0.01 94.137);
--primary-foreground: oklch(0.888 0.005 93.926);
--secondary: oklch(0.369 0.008 42.937);
--secondary-foreground: oklch(0.884 0.004 43.088);
--accent: oklch(0.38 0.013 119.893);
--accent-foreground: oklch(0.889 0.006 119.427);
--destructive: oklch(0.515 0.195 30.86);
--destructive-foreground: oklch(0.99 0.004 26.47);
--ring: oklch(0.378 0.01 94.137);
--chart-1: oklch(0.378 0.01 94.137);
--chart-2: oklch(0.369 0.008 42.937);
--chart-3: oklch(0.38 0.013 119.893);
--chart-4: oklch(0.398 0.009 42.934);
--chart-5: oklch(0.382 0.015 94.244);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.017 97.766);
--foreground: oklch(0.994 0.002 93.881);
--muted: oklch(0.237 0.004 42.991);
--muted-foreground: oklch(0.72 0.025 42.853);
--popover: oklch(0.144 0.017 97.766);
--popover-foreground: oklch(0.994 0.002 93.881);
--card: oklch(0.144 0.017 97.766);
--card-foreground: oklch(0.994 0.002 93.881);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.378 0.01 94.137);
--primary-foreground: oklch(0.888 0.005 93.926);
--secondary: oklch(0.369 0.008 42.937);
--secondary-foreground: oklch(0.884 0.004 43.088);
--accent: oklch(0.38 0.013 119.893);
--accent-foreground: oklch(0.889 0.006 119.427);
--destructive: oklch(0.581 0.222 30.801);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.378 0.01 94.137);
--chart-1: oklch(0.378 0.01 94.137);
--chart-2: oklch(0.369 0.008 42.937);
--chart-3: oklch(0.38 0.013 119.893);
--chart-4: oklch(0.398 0.009 42.934);
--chart-5: oklch(0.382 0.015 94.244);
}