Silent is a shadcn/ui theme built around a neutral gray primary color (#4a4546) with muted red accents (#cdb2b9). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#4a4546) on a neutral background (#080204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080204black |
| Foreground | #0f0508black | #f9f6f7whitesmoke |
| Card | #ffffffwhite | #080204black |
| Card foreground | #0f0508black | #f9f6f7whitesmoke |
| Popover | #ffffffwhite | #080204black |
| Popover foreground | #0f0508black | #f9f6f7whitesmoke |
| Primary | #4a4546darkslategray | #4a4546darkslategray |
| Primary foreground | #e1dfe0gainsboro | #e1dfe0gainsboro |
| Secondary | #d8cbcelightgrey | #372529darkslategray |
| Secondary foreground | #403034darkslategray | #d2bcc1silver |
| Muted | #ecdfe2gainsboro | #201316black |
| Muted foreground | #4b3f42darkslategray | #c0b4b7silver |
| Accent | #cdb2b9silver | #522e37darkslategray |
| Accent foreground | #2e1e22black | #e3ced3lightgrey |
| Destructive | #650b01maroon | #ed1a02red |
| Destructive foreground | #fea49alightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4a4546darkslategray | #4a4546darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.08:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 7.77:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.86:1 | AA |
| Text on background | 19.13:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 8.95:1 | AAA |
| Accent | 7.80:1 | AAA |
| Destructive | 4.41:1 | AA Large |
Paste this into your globals.css to use Silent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.135 0.022 1.16);
--muted: oklch(0.915 0.015 0.312);
--muted-foreground: oklch(0.38 0.018 1.159);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.135 0.022 1.16);
--card: oklch(1 0 180);
--card-foreground: oklch(0.135 0.022 1.16);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.396 0.006 0.293);
--primary-foreground: oklch(0.907 0.002 359.931);
--secondary: oklch(0.852 0.015 0.357);
--secondary-foreground: oklch(0.329 0.024 1.828);
--accent: oklch(0.788 0.032 0.99);
--accent-foreground: oklch(0.258 0.026 2.602);
--destructive: oklch(0.326 0.124 31.424);
--destructive-foreground: oklch(0.806 0.109 26.632);
--ring: oklch(0.396 0.006 0.293);
--chart-1: oklch(0.396 0.006 0.293);
--chart-2: oklch(0.852 0.015 0.357);
--chart-3: oklch(0.788 0.032 0.99);
--chart-4: oklch(0.877 0.012 0.261);
--chart-5: oklch(0.393 0.012 0.726);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.018 359.792);
--foreground: oklch(0.975 0.003 359.965);
--muted: oklch(0.206 0.022 2.747);
--muted-foreground: oklch(0.781 0.015 0.394);
--popover: oklch(0.105 0.018 359.792);
--popover-foreground: oklch(0.975 0.003 359.965);
--card: oklch(0.105 0.018 359.792);
--card-foreground: oklch(0.975 0.003 359.965);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.396 0.006 0.293);
--primary-foreground: oklch(0.907 0.002 359.931);
--secondary: oklch(0.287 0.029 2.593);
--secondary-foreground: oklch(0.815 0.027 0.77);
--accent: oklch(0.349 0.054 4.088);
--accent-foreground: oklch(0.871 0.025 0.661);
--destructive: oklch(0.601 0.238 30.297);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.396 0.006 0.293);
--chart-1: oklch(0.396 0.006 0.293);
--chart-2: oklch(0.287 0.029 2.593);
--chart-3: oklch(0.349 0.054 4.088);
--chart-4: oklch(0.316 0.033 2.694);
--chart-5: oklch(0.393 0.012 0.726);
}