Doorknob is a shadcn/ui theme built around a deep teal primary color (#0a1f19) with muted light teal accents (#bbd3cc). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#0a1f19) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030706black |
| Foreground | #041510black | #fcfdfdwhite |
| Card | #fcfcfcsnow | #040b09black |
| Card foreground | #03110dblack | #ffffffwhite |
| Popover | #fcfcfcsnow | #040b09black |
| Popover foreground | #03110dblack | #ffffffwhite |
| Primary | #0a1f19black | #0a1f19black |
| Primary foreground | #3bba94mediumseagreen | #3bba94mediumseagreen |
| Secondary | #d2dbd8lightgrey | #111816black |
| Secondary foreground | #364440darkslategray | #9fbcb3darkgray |
| Muted | #cce6degainsboro | #19332bdarkslategray |
| Muted foreground | #4d4d4ddarkslategray | #b3b3b3darkgray |
| Accent | #bbd3ccsilver | #1d302adarkslategray |
| Accent foreground | #243832darkslategray | #afcfc6silver |
| Destructive | #b7190bfirebrick | #f22e1corangered |
| Destructive foreground | #fef6f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a1f19black | #0a1f19black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.75:1 | AAA |
| Text on card | 18.85:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 7.20:1 | AAA |
| Muted text | 6.40:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 6.23:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 8.84:1 | AAA |
| Muted text | 6.43:1 | AA |
| Accent | 8.34:1 | AAA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Doorknob in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.179 0.026 172.366);
--muted: oklch(0.903 0.029 175.677);
--muted-foreground: oklch(0.418 0 173.29);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.162 0.023 173.787);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.162 0.023 173.787);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.219 0.03 171.438);
--primary-foreground: oklch(0.71 0.124 168.862);
--secondary: oklch(0.883 0.01 176.314);
--secondary-foreground: oklch(0.373 0.019 175.108);
--accent: oklch(0.846 0.027 175.695);
--accent-foreground: oklch(0.32 0.027 173.896);
--destructive: oklch(0.499 0.192 30.092);
--destructive-foreground: oklch(0.98 0.009 23.671);
--ring: oklch(0.219 0.03 171.438);
--chart-1: oklch(0.219 0.03 171.438);
--chart-2: oklch(0.883 0.01 176.314);
--chart-3: oklch(0.846 0.027 175.695);
--chart-4: oklch(0.905 0.008 176.387);
--chart-5: oklch(0.221 0.032 171.157);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.012 176.814);
--foreground: oklch(0.993 0.001 176.624);
--muted: oklch(0.298 0.035 172.423);
--muted-foreground: oklch(0.765 0 172.405);
--popover: oklch(0.141 0.014 176.57);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.014 176.57);
--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.219 0.03 171.438);
--primary-foreground: oklch(0.71 0.124 168.862);
--secondary: oklch(0.201 0.012 174.815);
--secondary-foreground: oklch(0.771 0.034 175.299);
--accent: oklch(0.29 0.027 173.525);
--accent-foreground: oklch(0.829 0.037 175.311);
--destructive: oklch(0.621 0.231 30.033);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.219 0.03 171.438);
--chart-1: oklch(0.219 0.03 171.438);
--chart-2: oklch(0.201 0.012 174.815);
--chart-3: oklch(0.29 0.027 173.525);
--chart-4: oklch(0.237 0.016 174.588);
--chart-5: oklch(0.221 0.032 171.157);
}