Timpani is a shadcn/ui theme built around a neutral gray primary color (#828881) with neutral gray accents (#888182). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the neutral gray primary (#828881) on a green-tinted background (#040c03).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #040c03black |
| Foreground | #000000black | #f9fcf8mintcream |
| Card | #f8fcf8mintcream | #040c03black |
| Card foreground | #000000black | #f9fcf8mintcream |
| Popover | #f8fcf8mintcream | #040c03black |
| Popover foreground | #000000black | #f9fcf8mintcream |
| Primary | #828881gray | #828881gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #818288gray | #818288gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #ebecf4lavender | #0b0c14black |
| Muted foreground | #404040darkslategray | #bfbfbfsilver |
| Accent | #888182gray | #888182gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #951009darkred | #f01f14red |
| Destructive foreground | #fcd6d4mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #828881gray | #828881gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 5.79:1 | AA |
| Secondary button | 5.47:1 | AA |
| Muted text | 8.82:1 | AAA |
| Accent | 5.50:1 | AA |
| Destructive | 6.67:1 | AA |
| Text on background | 19.15:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 5.79:1 | AA |
| Secondary button | 5.47:1 | AA |
| Muted text | 10.61:1 | AAA |
| Accent | 5.50:1 | AA |
| Destructive | 4.27:1 | AA Large |
Paste this into your globals.css to use Timpani in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 142.092);
--foreground: oklch(0 0 0);
--muted: oklch(0.945 0.011 280.148);
--muted-foreground: oklch(0.371 0 168.69);
--popover: oklch(0.987 0.006 142.092);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.006 142.092);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.62 0.013 142.039);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.607 0.01 280.075);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.61 0.009 9.258);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.427 0.165 29.334);
--destructive-foreground: oklch(0.907 0.043 21.542);
--ring: oklch(0.62 0.013 142.039);
--chart-1: oklch(0.62 0.013 142.039);
--chart-2: oklch(0.607 0.01 280.075);
--chart-3: oklch(0.61 0.009 9.258);
--chart-4: oklch(0.633 0.009 280.104);
--chart-5: oklch(0.625 0.026 141.967);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.028 140.334);
--foreground: oklch(0.987 0.006 142.093);
--muted: oklch(0.156 0.017 278.356);
--muted-foreground: oklch(0.805 0 169.695);
--popover: oklch(0.142 0.028 140.334);
--popover-foreground: oklch(0.987 0.006 142.093);
--card: oklch(0.142 0.028 140.334);
--card-foreground: oklch(0.987 0.006 142.093);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.62 0.013 142.039);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.607 0.01 280.075);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.61 0.009 9.258);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.609 0.237 29.385);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.62 0.013 142.039);
--chart-1: oklch(0.62 0.013 142.039);
--chart-2: oklch(0.607 0.01 280.075);
--chart-3: oklch(0.61 0.009 9.258);
--chart-4: oklch(0.633 0.009 280.104);
--chart-5: oklch(0.625 0.026 141.967);
}