Soap is a shadcn/ui theme built around a muted pink primary color (#b57896) with muted teal accents (#78b596). The light mode uses a neutral background (#fdf6fa). Dark mode keeps the muted pink primary (#b57896) on a neutral background (#070305).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6fasnow | #070305black |
| Foreground | #090205black | #fdfcfcsnow |
| Card | #fdf2f7lavenderblush | #0b0408black |
| Card foreground | #040103black | #ffffffwhite |
| Popover | #fdf2f7lavenderblush | #0b0408black |
| Popover foreground | #040103black | #ffffffwhite |
| Primary | #b57896rosybrown | #b57896rosybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #78b596darkseagreen | #78b596darkseagreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #d5e7degainsboro | #182a21black |
| Muted foreground | #595f5cdimgray | #a0a6a3darkgray |
| Accent | #78b596darkseagreen | #78b596darkseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #a73411brown | #d54215chocolate |
| Destructive foreground | #fdf0ecseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b57896rosybrown | #b57896rosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.36:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 6.09:1 | AA |
| Secondary button | 8.83:1 | AAA |
| Muted text | 5.07:1 | AA |
| Accent | 8.83:1 | AAA |
| Destructive | 6.00:1 | AA |
| Text on background | 20.02:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 6.09:1 | AA |
| Secondary button | 8.83:1 | AAA |
| Muted text | 6.06:1 | AA |
| Accent | 8.83:1 | AAA |
| Destructive | 4.53:1 | AA |
Paste this into your globals.css to use Soap in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.009 345.374);
--foreground: oklch(0.104 0.026 344.903);
--muted: oklch(0.912 0.023 164.456);
--muted-foreground: oklch(0.478 0.008 164.689);
--popover: oklch(0.971 0.013 345.492);
--popover-foreground: oklch(0.082 0.021 344.903);
--card: oklch(0.971 0.013 345.492);
--card-foreground: oklch(0.082 0.021 344.903);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.645 0.085 348.362);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.722 0.077 161.914);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.722 0.077 161.914);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.492 0.157 36.028);
--destructive-foreground: oklch(0.965 0.015 37.674);
--ring: oklch(0.645 0.085 348.362);
--chart-1: oklch(0.645 0.085 348.362);
--chart-2: oklch(0.722 0.077 161.914);
--chart-3: oklch(0.722 0.077 161.914);
--chart-4: oklch(0.743 0.072 162.283);
--chart-5: oklch(0.643 0.094 348.697);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.016 344.994);
--foreground: oklch(0.992 0.002 345.187);
--muted: oklch(0.267 0.03 161.697);
--muted-foreground: oklch(0.72 0.007 164.872);
--popover: oklch(0.124 0.019 345.12);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.019 345.12);
--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.645 0.085 348.362);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.722 0.077 161.914);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.722 0.077 161.914);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.588 0.191 35.8);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.645 0.085 348.362);
--chart-1: oklch(0.645 0.085 348.362);
--chart-2: oklch(0.722 0.077 161.914);
--chart-3: oklch(0.722 0.077 161.914);
--chart-4: oklch(0.743 0.072 162.283);
--chart-5: oklch(0.643 0.094 348.697);
}