Suppression is a shadcn/ui theme built around a deep green primary color (#35431e) with deep violet accents (#2c1e43). The light mode uses a neutral background (#fbfdf6). Dark mode keeps the deep green primary (#35431e) on a neutral background (#060802).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf6snow | #060802black |
| Foreground | #030401black | #fdfdfcwhite |
| Card | #f9fdf2ivory | #090c03black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfdf6snow | #060802black |
| Popover foreground | #030401black | #fdfdfcwhite |
| Primary | #35431edarkslategray | #35431edarkslategray |
| Primary foreground | #cedeb5lightgrey | #cedeb5lightgrey |
| Secondary | #2c1e43midnightblue | #2c1e43midnightblue |
| Secondary foreground | #c5b5dethistle | #c5b5dethistle |
| Muted | #d8cee9gainsboro | #211631black |
| Muted foreground | #47444bdarkslategray | #b7b4bbsilver |
| Accent | #2c1e43midnightblue | #2c1e43midnightblue |
| Accent foreground | #c5b5dethistle | #c5b5dethistle |
| Destructive | #c1390bfirebrick | #f24e18orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #35431edarkslategray | #35431edarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.09:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 6.34:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 5.46:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 8.36:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Suppression in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.01 123.784);
--foreground: oklch(0.101 0.015 123.047);
--muted: oklch(0.868 0.038 302.999);
--muted-foreground: oklch(0.391 0.012 303.171);
--popover: oklch(0.991 0.01 123.784);
--popover-foreground: oklch(0.101 0.015 123.047);
--card: oklch(0.987 0.014 123.858);
--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.361 0.062 126.596);
--primary-foreground: oklch(0.879 0.058 124.648);
--secondary: oklch(0.271 0.069 299.465);
--secondary-foreground: oklch(0.799 0.061 302.512);
--accent: oklch(0.271 0.069 299.465);
--accent-foreground: oklch(0.799 0.061 302.512);
--destructive: oklch(0.542 0.18 36.038);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.361 0.062 126.596);
--chart-1: oklch(0.361 0.062 126.596);
--chart-2: oklch(0.271 0.069 299.465);
--chart-3: oklch(0.271 0.069 299.465);
--chart-4: oklch(0.297 0.078 299.295);
--chart-5: oklch(0.365 0.066 126.809);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.019 123.028);
--foreground: oklch(0.993 0.001 123.657);
--muted: oklch(0.229 0.051 300.095);
--muted-foreground: oklch(0.774 0.01 303.44);
--popover: oklch(0.128 0.019 123.028);
--popover-foreground: oklch(0.993 0.001 123.657);
--card: oklch(0.147 0.022 123.303);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.361 0.062 126.596);
--primary-foreground: oklch(0.879 0.058 124.648);
--secondary: oklch(0.271 0.069 299.465);
--secondary-foreground: oklch(0.799 0.061 302.512);
--accent: oklch(0.271 0.069 299.465);
--accent-foreground: oklch(0.799 0.061 302.512);
--destructive: oklch(0.647 0.208 36.557);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.361 0.062 126.596);
--chart-1: oklch(0.361 0.062 126.596);
--chart-2: oklch(0.271 0.069 299.465);
--chart-3: oklch(0.271 0.069 299.465);
--chart-4: oklch(0.297 0.078 299.295);
--chart-5: oklch(0.365 0.066 126.809);
}