Dental is a shadcn/ui theme built around a light indigo primary color (#a19aef) with light green accents (#e8ef9a). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the light indigo primary (#a19aef) on a neutral background (#030208).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #030208black |
| Foreground | #010104black | #f9f8fbghostwhite |
| Card | #f8f7fdghostwhite | #030208black |
| Card foreground | #010104black | #f9f8fbghostwhite |
| Popover | #f8f7fdghostwhite | #030208black |
| Popover foreground | #010104black | #f9f8fbghostwhite |
| Primary | #a19aeflightsteelblue | #a19aeflightsteelblue |
| Primary foreground | #110c4bmidnightblue | #110c4bmidnightblue |
| Secondary | #e8ef9akhaki | #e8ef9akhaki |
| Secondary foreground | #464b0cdarkolivegreen | #464b0cdarkolivegreen |
| Muted | #e5e5e0gainsboro | #1e1f1ablack |
| Muted foreground | #5a5b4ddarkolivegreen | #b0b2a4darkgray |
| Accent | #e8ef9akhaki | #e8ef9akhaki |
| Accent foreground | #464b0cdarkolivegreen | #464b0cdarkolivegreen |
| Destructive | #cb1006firebrick | #f82216red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a19aeflightsteelblue | #a19aeflightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 5.48:1 | AA |
| Accent | 7.59:1 | AAA |
| Destructive | 5.81:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 7.72:1 | AAA |
| Accent | 7.59:1 | AAA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Dental in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.007 290.106);
--foreground: oklch(0.073 0.02 286.462);
--muted: oklch(0.922 0.007 110.384);
--muted-foreground: oklch(0.466 0.021 111.084);
--popover: oklch(0.978 0.007 290.106);
--popover-foreground: oklch(0.073 0.02 286.462);
--card: oklch(0.978 0.007 290.106);
--card-foreground: oklch(0.073 0.02 286.462);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.725 0.123 286.721);
--primary-foreground: oklch(0.218 0.11 275.896);
--secondary: oklch(0.928 0.108 112.376);
--secondary-foreground: oklch(0.395 0.082 114.436);
--accent: oklch(0.928 0.108 112.376);
--accent-foreground: oklch(0.395 0.082 114.436);
--destructive: oklch(0.533 0.213 29.538);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.725 0.123 286.721);
--chart-1: oklch(0.725 0.123 286.721);
--chart-2: oklch(0.928 0.108 112.376);
--chart-3: oklch(0.928 0.108 112.376);
--chart-4: oklch(0.937 0.095 112.099);
--chart-5: oklch(0.721 0.128 286.535);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.094 0.023 286.861);
--foreground: oklch(0.981 0.004 290.166);
--muted: oklch(0.235 0.009 110.987);
--muted-foreground: oklch(0.758 0.019 110.709);
--popover: oklch(0.094 0.023 286.861);
--popover-foreground: oklch(0.981 0.004 290.166);
--card: oklch(0.094 0.023 286.861);
--card-foreground: oklch(0.981 0.004 290.166);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.725 0.123 286.721);
--primary-foreground: oklch(0.218 0.11 275.896);
--secondary: oklch(0.928 0.108 112.376);
--secondary-foreground: oklch(0.395 0.082 114.436);
--accent: oklch(0.928 0.108 112.376);
--accent-foreground: oklch(0.395 0.082 114.436);
--destructive: oklch(0.624 0.242 29.36);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.725 0.123 286.721);
--chart-1: oklch(0.725 0.123 286.721);
--chart-2: oklch(0.928 0.108 112.376);
--chart-3: oklch(0.928 0.108 112.376);
--chart-4: oklch(0.937 0.095 112.099);
--chart-5: oklch(0.721 0.128 286.535);
}