Deafening is a shadcn/ui theme built around a green primary color (#b1d397) with pink accents (#d397b1). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#b1d397) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #050901black | #fcfdfbsnow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #050901black | #fcfdfbsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #050901black | #fcfdfbsnow |
| Primary | #b1d397darkseagreen | #b1d397darkseagreen |
| Primary foreground | #1b2711black | #1b2711black |
| Secondary | #97b1d3lightsteelblue | #97b1d3lightsteelblue |
| Secondary foreground | #111b27black | #111b27black |
| Muted | #d9dde3gainsboro | #1c2026black |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #d397b1rosybrown | #d397b1rosybrown |
| Accent foreground | #27111bblack | #27111bblack |
| Destructive | #6d1109maroon | #ed3726orangered |
| Destructive foreground | #f8b5aflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b1d397darkseagreen | #b1d397darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.07:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 9.37:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 5.13:1 | AA |
| Accent | 7.48:1 | AAA |
| Destructive | 7.06:1 | AAA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 9.37:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 6.69:1 | AA |
| Accent | 7.48:1 | AAA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Deafening in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.13 0.028 129.244);
--muted: oklch(0.896 0.01 255.01);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.13 0.028 129.244);
--card: oklch(1 0 180);
--card-foreground: oklch(0.13 0.028 129.244);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.826 0.088 132.092);
--primary-foreground: oklch(0.255 0.043 132.875);
--secondary: oklch(0.753 0.056 255.242);
--secondary-foreground: oklch(0.217 0.029 255.418);
--accent: oklch(0.742 0.078 351.478);
--accent-foreground: oklch(0.214 0.04 353.628);
--destructive: oklch(0.346 0.126 29.967);
--destructive-foreground: oklch(0.834 0.08 24.771);
--ring: oklch(0.826 0.088 132.092);
--chart-1: oklch(0.826 0.088 132.092);
--chart-2: oklch(0.753 0.056 255.242);
--chart-3: oklch(0.742 0.078 351.478);
--chart-4: oklch(0.779 0.05 255.211);
--chart-5: oklch(0.831 0.094 132.168);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.003 131.11);
--muted: oklch(0.243 0.013 255.183);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.003 131.11);
--card: oklch(0 0 0);
--card-foreground: oklch(0.994 0.003 131.11);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.826 0.088 132.092);
--primary-foreground: oklch(0.255 0.043 132.875);
--secondary: oklch(0.753 0.056 255.242);
--secondary-foreground: oklch(0.217 0.029 255.418);
--accent: oklch(0.742 0.078 351.478);
--accent-foreground: oklch(0.214 0.04 353.628);
--destructive: oklch(0.62 0.22 29.838);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.826 0.088 132.092);
--chart-1: oklch(0.826 0.088 132.092);
--chart-2: oklch(0.753 0.056 255.242);
--chart-3: oklch(0.742 0.078 351.478);
--chart-4: oklch(0.779 0.05 255.211);
--chart-5: oklch(0.831 0.094 132.168);
}