Filthy is a shadcn/ui theme built around a muted light green primary color (#c6cab9) with muted light green accents (#becab9). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the muted light green primary (#c6cab9) on a green-tinted background (#0d1005).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #0d1005black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fafcf3floralwhite | #101406black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfdf7snow | #0d1005black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #c6cab9silver | #c6cab9silver |
| Primary foreground | #2c2f23darkslategray | #2c2f23darkslategray |
| Secondary | #cac6b9silver | #cac6b9silver |
| Secondary foreground | #2f2b23darkslategray | #2f2b23darkslategray |
| Muted | #e9e3d3gainsboro | #2c2616black |
| Muted foreground | #494437darkslategray | #c8c3b6silver |
| Accent | #becab9silver | #becab9silver |
| Accent foreground | #262f23darkslategray | #262f23darkslategray |
| Destructive | #79230bmaroon | #e54215orangered |
| Destructive foreground | #f9cbbepeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c6cab9silver | #c6cab9silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.47:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 8.19:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 7.57:1 | AAA |
| Accent | 8.17:1 | AAA |
| Destructive | 6.93:1 | AA |
| Text on background | 19.24:1 | AAA |
| Text on card | 18.71:1 | AAA |
| Primary button | 8.19:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 8.50:1 | AAA |
| Accent | 8.17:1 | AAA |
| Destructive | 4.10:1 | AA Large |
Paste this into your globals.css to use Filthy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.007 117.215);
--foreground: oklch(0 0 0);
--muted: oklch(0.916 0.023 90.293);
--muted-foreground: oklch(0.387 0.022 90.419);
--popover: oklch(0.991 0.007 117.215);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.011 117.284);
--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.832 0.024 117.593);
--primary-foreground: oklch(0.297 0.02 118.316);
--secondary: oklch(0.826 0.018 90.273);
--secondary-foreground: oklch(0.291 0.015 90.408);
--accent: oklch(0.826 0.027 137.268);
--accent-foreground: oklch(0.291 0.023 137.396);
--destructive: oklch(0.39 0.124 35.393);
--destructive-foreground: oklch(0.878 0.056 35.964);
--ring: oklch(0.832 0.024 117.593);
--chart-1: oklch(0.832 0.024 117.593);
--chart-2: oklch(0.826 0.018 90.273);
--chart-3: oklch(0.826 0.027 137.268);
--chart-4: oklch(0.848 0.016 90.252);
--chart-5: oklch(0.836 0.029 117.699);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.164 0.023 118.805);
--foreground: oklch(1 0 180);
--muted: oklch(0.272 0.029 90.277);
--muted-foreground: oklch(0.819 0.019 90.28);
--popover: oklch(0.164 0.023 118.805);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.181 0.027 119.483);
--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.832 0.024 117.593);
--primary-foreground: oklch(0.297 0.02 118.316);
--secondary: oklch(0.826 0.018 90.273);
--secondary-foreground: oklch(0.291 0.015 90.408);
--accent: oklch(0.826 0.027 137.268);
--accent-foreground: oklch(0.291 0.023 137.396);
--destructive: oklch(0.614 0.206 34.829);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.832 0.024 117.593);
--chart-1: oklch(0.832 0.024 117.593);
--chart-2: oklch(0.826 0.018 90.273);
--chart-3: oklch(0.826 0.027 137.268);
--chart-4: oklch(0.848 0.016 90.252);
--chart-5: oklch(0.836 0.029 117.699);
}