Damp is a shadcn/ui theme built around a muted light purple primary color (#d9c2db) with muted light pink accents (#dbc2d0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light purple primary (#d9c2db) on a purple-tinted background (#0a050b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a050bblack |
| Foreground | #040104black | #fcf8fcsnow |
| Card | #ffffffwhite | #0a050bblack |
| Card foreground | #040104black | #fcf8fcsnow |
| Popover | #ffffffwhite | #0a050bblack |
| Popover foreground | #040104black | #fcf8fcsnow |
| Primary | #d9c2dbthistle | #d9c2dbthistle |
| Primary foreground | #422843darkslategray | #422843darkslategray |
| Secondary | #cdc2dbthistle | #cdc2dbthistle |
| Secondary foreground | #342843darkslategray | #342843darkslategray |
| Muted | #edecefwhitesmoke | #121013black |
| Muted foreground | #564d60dimgray | #a79fb2darkgray |
| Accent | #dbc2d0thistle | #dbc2d0thistle |
| Accent foreground | #432837darkslategray | #432837darkslategray |
| Destructive | #943510saddlebrown | #e75318chocolate |
| Destructive foreground | #fbe3damistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d9c2dbthistle | #d9c2dbthistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 6.78:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 6.17:1 | AA |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 7.41:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Damp in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.085 0.023 326.031);
--muted: oklch(0.944 0.004 306.374);
--muted-foreground: oklch(0.436 0.033 305.471);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.085 0.023 326.031);
--card: oklch(1 0 180);
--card-foreground: oklch(0.085 0.023 326.031);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.842 0.042 324.411);
--primary-foreground: oklch(0.32 0.057 325.076);
--secondary: oklch(0.832 0.035 305.886);
--secondary-foreground: oklch(0.304 0.05 304.278);
--accent: oklch(0.84 0.033 343.543);
--accent-foreground: oklch(0.316 0.046 345.932);
--destructive: oklch(0.46 0.136 39.235);
--destructive-foreground: oklch(0.934 0.029 42.879);
--ring: oklch(0.842 0.042 324.411);
--chart-1: oklch(0.842 0.042 324.411);
--chart-2: oklch(0.832 0.035 305.886);
--chart-3: oklch(0.84 0.033 343.543);
--chart-4: oklch(0.859 0.03 305.989);
--chart-5: oklch(0.841 0.047 324.444);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.02 325.274);
--foreground: oklch(0.983 0.006 324.168);
--muted: oklch(0.178 0.006 305.988);
--muted-foreground: oklch(0.715 0.029 305.912);
--popover: oklch(0.126 0.02 325.274);
--popover-foreground: oklch(0.983 0.006 324.168);
--card: oklch(0.126 0.02 325.274);
--card-foreground: oklch(0.983 0.006 324.168);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.842 0.042 324.411);
--primary-foreground: oklch(0.32 0.057 325.076);
--secondary: oklch(0.832 0.035 305.886);
--secondary-foreground: oklch(0.304 0.05 304.278);
--accent: oklch(0.84 0.033 343.543);
--accent-foreground: oklch(0.316 0.046 345.932);
--destructive: oklch(0.635 0.194 38.677);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.842 0.042 324.411);
--chart-1: oklch(0.842 0.042 324.411);
--chart-2: oklch(0.832 0.035 305.886);
--chart-3: oklch(0.84 0.033 343.543);
--chart-4: oklch(0.859 0.03 305.989);
--chart-5: oklch(0.841 0.047 324.444);
}