Silence is a shadcn/ui theme built around a muted green primary color (#9fc6a9) with muted teal accents (#9fc6bd). The light mode uses a neutral background (#f8fbf9). Dark mode keeps the muted green primary (#9fc6a9) on a green-tinted background (#030c06).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbf9mintcream | #030c06black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f8fbf9mintcream | #030c06black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fbf9mintcream | #030c06black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #9fc6a9darkgray | #9fc6a9darkgray |
| Primary foreground | #132016black | #132016black |
| Secondary | #a8c69fdarkgray | #a8c69fdarkgray |
| Secondary foreground | #162013black | #162013black |
| Muted | #e9eee7linen | #131811black |
| Muted foreground | #545454dimgray | #abababdarkgray |
| Accent | #9fc6bdsilver | #9fc6bdsilver |
| Accent foreground | #13201dblack | #13201dblack |
| Destructive | #bc1c10firebrick | #ee4a3ftomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9fc6a9darkgray | #9fc6a9darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 8.95:1 | AAA |
| Secondary button | 9.01:1 | AAA |
| Muted text | 6.43:1 | AA |
| Accent | 9.03:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 8.95:1 | AAA |
| Secondary button | 9.01:1 | AAA |
| Muted text | 7.85:1 | AAA |
| Accent | 9.03:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Silence in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.005 154.447);
--foreground: oklch(0 0 0);
--muted: oklch(0.943 0.011 138.342);
--muted-foreground: oklch(0.446 0 180);
--popover: oklch(0.986 0.005 154.447);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.005 154.447);
--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.791 0.059 153.126);
--primary-foreground: oklch(0.228 0.026 152.253);
--secondary: oklch(0.795 0.064 138.428);
--secondary-foreground: oklch(0.23 0.029 138.513);
--accent: oklch(0.796 0.044 179.294);
--accent-foreground: oklch(0.231 0.019 178.293);
--destructive: oklch(0.51 0.194 29.667);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.791 0.059 153.126);
--chart-1: oklch(0.791 0.059 153.126);
--chart-2: oklch(0.795 0.064 138.428);
--chart-3: oklch(0.796 0.044 179.294);
--chart-4: oklch(0.815 0.057 138.413);
--chart-5: oklch(0.794 0.066 152.964);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.023 153.768);
--foreground: oklch(1 0 180);
--muted: oklch(0.2 0.016 138.425);
--muted-foreground: oklch(0.741 0 171.254);
--popover: oklch(0.141 0.023 153.768);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.023 153.768);
--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.791 0.059 153.126);
--primary-foreground: oklch(0.228 0.026 152.253);
--secondary: oklch(0.795 0.064 138.428);
--secondary-foreground: oklch(0.23 0.029 138.513);
--accent: oklch(0.796 0.044 179.294);
--accent-foreground: oklch(0.231 0.019 178.293);
--destructive: oklch(0.641 0.202 28.246);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.791 0.059 153.126);
--chart-1: oklch(0.791 0.059 153.126);
--chart-2: oklch(0.795 0.064 138.428);
--chart-3: oklch(0.796 0.044 179.294);
--chart-4: oklch(0.815 0.057 138.413);
--chart-5: oklch(0.794 0.066 152.964);
}