Washcloth is a shadcn/ui theme built around a deep blue primary color (#1d3363) with deep yellow accents (#634d1d). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the deep blue primary (#1d3363) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f9fdghostwhite | #010204black |
| Foreground | #060a13black | #fcfcfdwhite |
| Card | #f7f9fdghostwhite | #010204black |
| Card foreground | #060a13black | #fcfcfdwhite |
| Popover | #f7f9fdghostwhite | #010204black |
| Popover foreground | #060a13black | #fcfcfdwhite |
| Primary | #1d3363midnightblue | #1d3363midnightblue |
| Primary foreground | #c4d1eelightblue | #c4d1eelightblue |
| Secondary | #634d1ddarkolivegreen | #634d1ddarkolivegreen |
| Secondary foreground | #eee0c4bisque | #eee0c4bisque |
| Muted | #f2efe8linen | #17140dblack |
| Muted foreground | #575552dimgray | #adaca8darkgray |
| Accent | #634d1ddarkolivegreen | #634d1ddarkolivegreen |
| Accent foreground | #eee0c4bisque | #eee0c4bisque |
| Destructive | #ce4e03chocolate | #fb6b18darkorange |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1d3363midnightblue | #1d3363midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.75:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 6.19:1 | AA |
| Muted text | 6.46:1 | AA |
| Accent | 6.19:1 | AA |
| Destructive | 4.46:1 | AA Large |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 6.19:1 | AA |
| Muted text | 8.11:1 | AAA |
| Accent | 6.19:1 | AA |
| Destructive | 7.25:1 | AAA |
Paste this into your globals.css to use Washcloth in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 265.979);
--foreground: oklch(0.147 0.02 263.004);
--muted: oklch(0.952 0.009 86.043);
--muted-foreground: oklch(0.45 0.006 86.054);
--popover: oklch(0.981 0.006 265.979);
--popover-foreground: oklch(0.147 0.02 263.004);
--card: oklch(0.981 0.006 265.979);
--card-foreground: oklch(0.147 0.02 263.004);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.331 0.089 263.57);
--primary-foreground: oklch(0.86 0.043 265.711);
--secondary: oklch(0.432 0.071 83.828);
--secondary-foreground: oklch(0.911 0.041 86.094);
--accent: oklch(0.432 0.071 83.828);
--accent-foreground: oklch(0.911 0.041 86.094);
--destructive: oklch(0.588 0.176 41.99);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.331 0.089 263.57);
--chart-1: oklch(0.331 0.089 263.57);
--chart-2: oklch(0.432 0.071 83.828);
--chart-3: oklch(0.432 0.071 83.828);
--chart-4: oklch(0.467 0.078 83.715);
--chart-5: oklch(0.329 0.094 263.433);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.011 258.115);
--foreground: oklch(0.991 0.001 266);
--muted: oklch(0.191 0.014 86.019);
--muted-foreground: oklch(0.744 0.005 86.034);
--popover: oklch(0.084 0.011 258.115);
--popover-foreground: oklch(0.991 0.001 266);
--card: oklch(0.084 0.011 258.115);
--card-foreground: oklch(0.991 0.001 266);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.331 0.089 263.57);
--primary-foreground: oklch(0.86 0.043 265.711);
--secondary: oklch(0.432 0.071 83.828);
--secondary-foreground: oklch(0.911 0.041 86.094);
--accent: oklch(0.432 0.071 83.828);
--accent-foreground: oklch(0.911 0.041 86.094);
--destructive: oklch(0.698 0.195 44.191);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.331 0.089 263.57);
--chart-1: oklch(0.331 0.089 263.57);
--chart-2: oklch(0.432 0.071 83.828);
--chart-3: oklch(0.432 0.071 83.828);
--chart-4: oklch(0.467 0.078 83.715);
--chart-5: oklch(0.329 0.094 263.433);
}