Deficient is a shadcn/ui theme built around a neutral gray primary color (#a1979b) with neutral gray accents (#979ba1). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#a1979b) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030203black |
| Foreground | #090105black | #fcf8fasnow |
| Card | #ffffffwhite | #030203black |
| Card foreground | #090105black | #fcf8fasnow |
| Popover | #ffffffwhite | #030203black |
| Popover foreground | #090105black | #fcf8fasnow |
| Primary | #a1979bdarkgray | #a1979bdarkgray |
| Primary foreground | #030203black | #030203black |
| Secondary | #9ba197darkgray | #9ba197darkgray |
| Secondary foreground | #030302black | #030302black |
| Muted | #edefeblinen | #121410black |
| Muted foreground | #474d42darkslategray | #b7bdb2silver |
| Accent | #979ba1darkgray | #979ba1darkgray |
| Accent foreground | #020303black | #020303black |
| Destructive | #9b1203darkred | #fb3d28orangered |
| Destructive foreground | #fed6d2bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a1979bdarkgray | #a1979bdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.62:1 | AAA |
| Text on card | 20.62:1 | AAA |
| Primary button | 7.27:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 7.55:1 | AAA |
| Accent | 7.40:1 | AAA |
| Destructive | 6.34:1 | AA |
| Text on background | 19.68:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 7.27:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 9.65:1 | AAA |
| Accent | 7.40:1 | AAA |
| Destructive | 3.62:1 | AA Large |
Paste this into your globals.css to use Deficient in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.102 0.029 345.682);
--muted: oklch(0.95 0.006 129.194);
--muted-foreground: oklch(0.412 0.02 129.654);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.102 0.029 345.682);
--card: oklch(1 0 180);
--card-foreground: oklch(0.102 0.029 345.682);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.685 0.014 346.534);
--primary-foreground: oklch(0.091 0.001 345.999);
--secondary: oklch(0.7 0.015 129.36);
--secondary-foreground: oklch(0.093 0.001 129.006);
--accent: oklch(0.688 0.009 249.776);
--accent-foreground: oklch(0.092 0.001 248.948);
--destructive: oklch(0.44 0.17 30.623);
--destructive-foreground: oklch(0.91 0.045 25.47);
--ring: oklch(0.685 0.014 346.534);
--chart-1: oklch(0.685 0.014 346.534);
--chart-2: oklch(0.7 0.015 129.36);
--chart-3: oklch(0.688 0.009 249.776);
--chart-4: oklch(0.724 0.014 129.333);
--chart-5: oklch(0.682 0.022 346.844);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.008 345.902);
--foreground: oklch(0.983 0.004 346.137);
--muted: oklch(0.187 0.009 129.657);
--muted-foreground: oklch(0.791 0.017 129.357);
--popover: oklch(0.088 0.008 345.902);
--popover-foreground: oklch(0.983 0.004 346.137);
--card: oklch(0.088 0.008 345.902);
--card-foreground: oklch(0.983 0.004 346.137);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.685 0.014 346.534);
--primary-foreground: oklch(0.091 0.001 345.999);
--secondary: oklch(0.7 0.015 129.36);
--secondary-foreground: oklch(0.093 0.001 129.006);
--accent: oklch(0.688 0.009 249.776);
--accent-foreground: oklch(0.092 0.001 248.948);
--destructive: oklch(0.648 0.228 30.413);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.685 0.014 346.534);
--chart-1: oklch(0.685 0.014 346.534);
--chart-2: oklch(0.7 0.015 129.36);
--chart-3: oklch(0.688 0.009 249.776);
--chart-4: oklch(0.724 0.014 129.333);
--chart-5: oklch(0.682 0.022 346.844);
}