Taut is a shadcn/ui theme built around a neutral gray primary color (#c3c6c4) with neutral gray accents (#c3c6c6). The light mode uses a neutral background (#f6fdf9). Dark mode keeps the neutral gray primary (#c3c6c4) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdf9mintcream | #000000black |
| Foreground | #010402black | #fcfdfcwhite |
| Card | #f6fdf9mintcream | #000000black |
| Card foreground | #010402black | #fcfdfcwhite |
| Popover | #f6fdf9mintcream | #000000black |
| Popover foreground | #010402black | #fcfdfcwhite |
| Primary | #c3c6c4silver | #c3c6c4silver |
| Primary foreground | #2a2d2bdarkslategray | #2a2d2bdarkslategray |
| Secondary | #c3c6c3silver | #c3c6c3silver |
| Secondary foreground | #2a2d2adarkslategray | #2a2d2adarkslategray |
| Muted | #d8dfd7gainsboro | #212820black |
| Muted foreground | #4a5648darkslategray | #aab7a9darkgray |
| Accent | #c3c6c6silver | #c3c6c6silver |
| Accent foreground | #2a2d2cdarkslategray | #2a2d2cdarkslategray |
| Destructive | #e04f00orangered | #ff7429tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c3c6c4silver | #c3c6c4silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.01:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 8.08:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 3.97:1 | AA Large |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 8.08:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 7.27:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 7.77:1 | AAA |
Paste this into your globals.css to use Taut in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.009 159.254);
--foreground: oklch(0.098 0.015 159.282);
--muted: oklch(0.897 0.013 142.063);
--muted-foreground: oklch(0.438 0.028 141.893);
--popover: oklch(0.989 0.009 159.254);
--popover-foreground: oklch(0.098 0.015 159.282);
--card: oklch(0.989 0.009 159.254);
--card-foreground: oklch(0.098 0.015 159.282);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.823 0.005 159.336);
--primary-foreground: oklch(0.293 0.005 159.109);
--secondary: oklch(0.823 0.006 142.088);
--secondary-foreground: oklch(0.292 0.006 142.046);
--accent: oklch(0.824 0.004 188.797);
--accent-foreground: oklch(0.293 0.004 188.606);
--destructive: oklch(0.619 0.194 40.171);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.823 0.005 159.336);
--chart-1: oklch(0.823 0.005 159.336);
--chart-2: oklch(0.823 0.006 142.088);
--chart-3: oklch(0.824 0.004 188.797);
--chart-4: oklch(0.847 0.005 142.092);
--chart-5: oklch(0.826 0.01 159.204);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 159.44);
--muted: oklch(0.266 0.017 141.886);
--muted-foreground: oklch(0.766 0.024 142.003);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 159.44);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 159.44);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.823 0.005 159.336);
--primary-foreground: oklch(0.293 0.005 159.109);
--secondary: oklch(0.823 0.006 142.088);
--secondary-foreground: oklch(0.292 0.006 142.046);
--accent: oklch(0.824 0.004 188.797);
--accent-foreground: oklch(0.293 0.004 188.606);
--destructive: oklch(0.715 0.188 44.596);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.823 0.005 159.336);
--chart-1: oklch(0.823 0.005 159.336);
--chart-2: oklch(0.823 0.006 142.088);
--chart-3: oklch(0.824 0.004 188.797);
--chart-4: oklch(0.847 0.005 142.092);
--chart-5: oklch(0.826 0.01 159.204);
}