Termite is a shadcn/ui theme built around a yellow primary color (#b3ae6f) with green accents (#97b36f). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#b3ae6f) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040401black |
| Foreground | #080802black | #fafaf5whitesmoke |
| Card | #fcfcfcsnow | #080702black |
| Card foreground | #040401black | #fcfbf8snow |
| Popover | #ffffffwhite | #040401black |
| Popover foreground | #080802black | #fafaf5whitesmoke |
| Primary | #b3ae6fdarkkhaki | #b3ae6fdarkkhaki |
| Primary foreground | #000000black | #000000black |
| Secondary | #b38c6frosybrown | #b38c6frosybrown |
| Secondary foreground | #000000black | #000000black |
| Muted | #ebe8e5linen | #1a1614black |
| Muted foreground | #4b4a48darkslategray | #b7b5b4silver |
| Accent | #97b36fdarkseagreen | #97b36fdarkseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #75230amaroon | #ec5527chocolate |
| Destructive foreground | #f9c8b9peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b3ae6fdarkkhaki | #b3ae6fdarkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.07:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 9.18:1 | AAA |
| Secondary button | 6.88:1 | AA |
| Muted text | 7.23:1 | AAA |
| Accent | 9.02:1 | AAA |
| Destructive | 6.96:1 | AA |
| Text on background | 19.63:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 9.18:1 | AAA |
| Secondary button | 6.88:1 | AA |
| Muted text | 8.77:1 | AAA |
| Accent | 9.02:1 | AAA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Termite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.13 0.017 105.286);
--muted: oklch(0.932 0.005 58.287);
--muted-foreground: oklch(0.409 0.003 58.258);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.13 0.017 105.286);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.103 0.014 105.286);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.74 0.083 103.752);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.669 0.063 56.946);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.73 0.098 127.078);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.383 0.12 36.258);
--destructive-foreground: oklch(0.871 0.06 37.592);
--ring: oklch(0.74 0.083 103.752);
--chart-1: oklch(0.74 0.083 103.752);
--chart-2: oklch(0.669 0.063 56.946);
--chart-3: oklch(0.73 0.098 127.078);
--chart-4: oklch(0.693 0.058 57.128);
--chart-5: oklch(0.748 0.09 103.831);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.013 105.075);
--foreground: oklch(0.983 0.007 102.323);
--muted: oklch(0.205 0.007 57.86);
--muted-foreground: oklch(0.774 0.003 58.315);
--popover: oklch(0.102 0.013 105.075);
--popover-foreground: oklch(0.983 0.007 102.323);
--card: oklch(0.129 0.016 105.075);
--card-foreground: oklch(0.989 0.004 102.286);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.74 0.083 103.752);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.669 0.063 56.946);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.73 0.098 127.078);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.647 0.195 36.617);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.74 0.083 103.752);
--chart-1: oklch(0.74 0.083 103.752);
--chart-2: oklch(0.669 0.063 56.946);
--chart-3: oklch(0.73 0.098 127.078);
--chart-4: oklch(0.693 0.058 57.128);
--chart-5: oklch(0.748 0.09 103.831);
}