Putrid is a shadcn/ui theme built around a near-white primary color (#fafffb) with near-white accents (#fffafe). The light mode uses a neutral background (#fbfefb). Dark mode keeps the near-white primary (#fafffb) on a green-tinted background (#030c05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #030c05black |
| Foreground | #041607black | #fcfdfcwhite |
| Card | #f7fdf8mintcream | #041006black |
| Card foreground | #031105black | #ffffffwhite |
| Popover | #fbfefbwhite | #030c05black |
| Popover foreground | #041607black | #fcfdfcwhite |
| Primary | #fafffbmintcream | #fafffbmintcream |
| Primary foreground | #075a15darkgreen | #075a15darkgreen |
| Secondary | #fffafesnow | #fffafesnow |
| Secondary foreground | #5a074cindigo | #5a074cindigo |
| Muted | #e5e1e4gainsboro | #1e1a1eblack |
| Muted foreground | #6d5068dimgray | #af92aadarkgray |
| Accent | #fffafesnow | #fffafesnow |
| Accent foreground | #5a074cindigo | #5a074cindigo |
| Destructive | #c64710chocolate | #ef6c34tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fafffbmintcream | #fafffbmintcream |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.40:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 12.98:1 | AAA |
| Muted text | 5.40:1 | AA |
| Accent | 12.98:1 | AAA |
| Destructive | 4.87:1 | AA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 12.98:1 | AAA |
| Muted text | 6.15:1 | AA |
| Accent | 12.98:1 | AAA |
| Destructive | 6.85:1 | AA |
Paste this into your globals.css to use Putrid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 150.758);
--foreground: oklch(0.178 0.04 148.223);
--muted: oklch(0.913 0.007 330.924);
--muted-foreground: oklch(0.47 0.052 332.232);
--popover: oklch(0.994 0.005 150.758);
--popover-foreground: oklch(0.178 0.04 148.223);
--card: oklch(0.988 0.009 150.694);
--card-foreground: oklch(0.161 0.035 148.839);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.995 0.007 150.729);
--primary-foreground: oklch(0.408 0.126 144.565);
--secondary: oklch(0.99 0.007 330.912);
--secondary-foreground: oklch(0.324 0.135 336.717);
--accent: oklch(0.99 0.007 330.912);
--accent-foreground: oklch(0.324 0.135 336.717);
--destructive: oklch(0.567 0.173 39.382);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.995 0.007 150.729);
--chart-1: oklch(0.995 0.007 150.729);
--chart-2: oklch(0.99 0.007 330.912);
--chart-3: oklch(0.99 0.007 330.912);
--chart-4: oklch(1.02 0.013 150.643);
--chart-5: oklch(0.995 0.007 150.726);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.026 149.649);
--foreground: oklch(0.993 0.003 150.786);
--muted: oklch(0.224 0.01 331.407);
--muted-foreground: oklch(0.695 0.047 331.707);
--popover: oklch(0.141 0.026 149.649);
--popover-foreground: oklch(0.993 0.003 150.786);
--card: oklch(0.158 0.03 149.14);
--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.995 0.007 150.729);
--primary-foreground: oklch(0.408 0.126 144.565);
--secondary: oklch(0.99 0.007 330.912);
--secondary-foreground: oklch(0.324 0.135 336.717);
--accent: oklch(0.99 0.007 330.912);
--accent-foreground: oklch(0.324 0.135 336.717);
--destructive: oklch(0.682 0.175 41.795);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.995 0.007 150.729);
--chart-1: oklch(0.995 0.007 150.729);
--chart-2: oklch(0.99 0.007 330.912);
--chart-3: oklch(0.99 0.007 330.912);
--chart-4: oklch(1.02 0.013 150.643);
--chart-5: oklch(0.995 0.007 150.726);
}