Silent is a shadcn/ui theme built around a muted green primary color (#9cbf9f) with muted red accents (#bf9f9c). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted green primary (#9cbf9f) on a neutral background (#030703).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #030703black |
| Foreground | #051006black | #f9fbf9mintcream |
| Card | #f7fcf8mintcream | #050b05black |
| Card foreground | #040c04black | #fcfdfcwhite |
| Popover | #f7fcf8mintcream | #050b05black |
| Popover foreground | #040c04black | #fcfdfcwhite |
| Primary | #9cbf9fdarkseagreen | #9cbf9fdarkseagreen |
| Primary foreground | #101911black | #101911black |
| Secondary | #9f9cbfdarkgray | #9f9cbfdarkgray |
| Secondary foreground | #111019black | #111019black |
| Muted | #d9d8e3gainsboro | #1c1c27black |
| Muted foreground | #55526fdimgray | #9290addarkgray |
| Accent | #bf9f9crosybrown | #bf9f9crosybrown |
| Accent foreground | #191110black | #191110black |
| Destructive | #770804maroon | #f9362fcrimson |
| Destructive foreground | #fdb2b0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9cbf9fdarkseagreen | #9cbf9fdarkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.06:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 8.83:1 | AAA |
| Secondary button | 7.19:1 | AAA |
| Muted text | 5.28:1 | AA |
| Accent | 7.66:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 8.83:1 | AAA |
| Secondary button | 7.19:1 | AAA |
| Muted text | 5.49:1 | AA |
| Accent | 7.66:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Silent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 148.022);
--foreground: oklch(0.156 0.029 146.498);
--muted: oklch(0.887 0.015 289.919);
--muted-foreground: oklch(0.454 0.047 288.185);
--popover: oklch(0.987 0.008 147.979);
--popover-foreground: oklch(0.14 0.025 146.748);
--card: oklch(0.987 0.008 147.979);
--card-foreground: oklch(0.14 0.025 146.748);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.769 0.058 147.24);
--primary-foreground: oklch(0.201 0.02 146.945);
--secondary: oklch(0.708 0.05 288.881);
--secondary-foreground: oklch(0.179 0.018 288.305);
--accent: oklch(0.73 0.038 24.156);
--accent-foreground: oklch(0.187 0.013 24.422);
--destructive: oklch(0.361 0.142 29.395);
--destructive-foreground: oklch(0.834 0.087 21.306);
--ring: oklch(0.769 0.058 147.24);
--chart-1: oklch(0.769 0.058 147.24);
--chart-2: oklch(0.708 0.05 288.881);
--chart-3: oklch(0.73 0.038 24.156);
--chart-4: oklch(0.736 0.045 289.076);
--chart-5: oklch(0.773 0.066 147.123);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.016 147.121);
--foreground: oklch(0.985 0.002 148.04);
--muted: oklch(0.231 0.022 288.395);
--muted-foreground: oklch(0.664 0.043 288.997);
--popover: oklch(0.138 0.018 147.115);
--popover-foreground: oklch(0.993 0.001 148.052);
--card: oklch(0.138 0.018 147.115);
--card-foreground: oklch(0.993 0.001 148.052);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.769 0.058 147.24);
--primary-foreground: oklch(0.201 0.02 146.945);
--secondary: oklch(0.708 0.05 288.881);
--secondary-foreground: oklch(0.179 0.018 288.305);
--accent: oklch(0.73 0.038 24.156);
--accent-foreground: oklch(0.187 0.013 24.422);
--destructive: oklch(0.639 0.23 28.026);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.769 0.058 147.24);
--chart-1: oklch(0.769 0.058 147.24);
--chart-2: oklch(0.708 0.05 288.881);
--chart-3: oklch(0.73 0.038 24.156);
--chart-4: oklch(0.736 0.045 289.076);
--chart-5: oklch(0.773 0.066 147.123);
}