Practical Blackish Green is a shadcn/ui theme built around a neutral gray primary color (#5f6363) with neutral gray accents (#e2e4e4). The light mode uses a neutral background (#fbfefe). Dark mode keeps the neutral gray primary (#5f6363) on a teal-tinted background (#050a0a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #050a0ablack |
| Foreground | #000000black | #f5f9f9whitesmoke |
| Card | #fbfefewhite | #050a0ablack |
| Card foreground | #000000black | #f5f9f9whitesmoke |
| Popover | #fbfefewhite | #050a0ablack |
| Popover foreground | #000000black | #f5f9f9whitesmoke |
| Primary | #5f6363dimgray | #5f6363dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e2e4e4gainsboro | #111818black |
| Secondary foreground | #474d4ddarkslategray | #9ebdbbdarkgray |
| Muted | #d8eeedlavender | #112726black |
| Muted foreground | #495555darkslategray | #aab6b6darkgray |
| Accent | #e2e4e4gainsboro | #111818black |
| Accent foreground | #474d4ddarkslategray | #9ebdbbdarkgray |
| Destructive | #c13101firebrick | #f93f01orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e6e6gainsboro | #252727darkslategray |
| Input | #e5e6e6gainsboro | #252727darkslategray |
| Ring | #5f6363dimgray | #5f6363dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.69:1 | AAA |
| Text on card | 20.69:1 | AAA |
| Primary button | 6.09:1 | AA |
| Secondary button | 6.75:1 | AA |
| Muted text | 6.40:1 | AA |
| Accent | 6.75:1 | AA |
| Destructive | 5.67:1 | AA |
| Text on background | 18.74:1 | AAA |
| Text on card | 18.74:1 | AAA |
| Primary button | 6.09:1 | AA |
| Secondary button | 8.93:1 | AAA |
| Muted text | 7.48:1 | AAA |
| Accent | 8.93:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Practical Blackish Green in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 193.546);
--foreground: oklch(0 0 0);
--muted: oklch(0.933 0.024 193.107);
--muted-foreground: oklch(0.44 0.016 192.893);
--popover: oklch(0.995 0.003 193.546);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.995 0.003 193.546);
--card-foreground: oklch(0 0 0);
--border: oklch(0.924 0.001 193.584);
--input: oklch(0.924 0.001 193.584);
--primary: oklch(0.496 0.005 193.413);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.917 0.002 193.555);
--secondary-foreground: oklch(0.414 0.008 193.241);
--accent: oklch(0.917 0.002 193.555);
--accent-foreground: oklch(0.414 0.008 193.241);
--destructive: oklch(0.534 0.186 35.095);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.496 0.005 193.413);
--chart-1: oklch(0.496 0.005 193.413);
--chart-2: oklch(0.917 0.002 193.555);
--chart-3: oklch(0.917 0.002 193.555);
--chart-4: oklch(0.94 0.002 193.57);
--chart-5: oklch(0.501 0.012 193.136);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.011 192.735);
--foreground: oklch(0.98 0.005 193.515);
--muted: oklch(0.255 0.029 191.298);
--muted-foreground: oklch(0.767 0.014 193.244);
--popover: oklch(0.14 0.011 192.735);
--popover-foreground: oklch(0.98 0.005 193.515);
--card: oklch(0.14 0.011 192.735);
--card-foreground: oklch(0.98 0.005 193.515);
--border: oklch(0.271 0.002 193.444);
--input: oklch(0.271 0.002 193.444);
--primary: oklch(0.496 0.005 193.413);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.202 0.012 192.478);
--secondary-foreground: oklch(0.775 0.034 192.751);
--accent: oklch(0.202 0.012 192.478);
--accent-foreground: oklch(0.775 0.034 192.751);
--destructive: oklch(0.644 0.228 34.615);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.496 0.005 193.413);
--chart-1: oklch(0.496 0.005 193.413);
--chart-2: oklch(0.202 0.012 192.478);
--chart-3: oklch(0.202 0.012 192.478);
--chart-4: oklch(0.239 0.015 192.354);
--chart-5: oklch(0.501 0.012 193.136);
}