Membrane is a shadcn/ui theme built around a light purple primary color (#eeaae3) with muted light purple accents (#d4bfd1). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the light purple primary (#eeaae3) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fcsnow | #040103black |
| Foreground | #12030fblack | #fbf9fbsnow |
| Card | #fdf7fcsnow | #040103black |
| Card foreground | #12030fblack | #fbf9fbsnow |
| Popover | #fdf7fcsnow | #040103black |
| Popover foreground | #12030fblack | #fbf9fbsnow |
| Primary | #eeaae3plum | #eeaae3plum |
| Primary foreground | #55114aindigo | #55114aindigo |
| Secondary | #e7dfe6gainsboro | #1c171bblack |
| Secondary foreground | #553f51darkslategray | #b9acb7darkgray |
| Muted | #e9e2e8gainsboro | #1d161cblack |
| Muted foreground | #71566ddimgray | #a98ea5darkgray |
| Accent | #d4bfd1thistle | #332431darkslategray |
| Accent foreground | #3a2737darkslategray | #cfbacbthistle |
| Destructive | #691102maroon | #fb3613orangered |
| Destructive foreground | #feaea0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eeaae3plum | #eeaae3plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.99:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 5.07:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 6.97:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Membrane in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.009 330.949);
--foreground: oklch(0.135 0.042 333.478);
--muted: oklch(0.92 0.011 330.983);
--muted-foreground: oklch(0.488 0.05 332.149);
--popover: oklch(0.982 0.009 330.949);
--popover-foreground: oklch(0.135 0.042 333.478);
--card: oklch(0.982 0.009 330.949);
--card-foreground: oklch(0.135 0.042 333.478);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.82 0.108 332.502);
--primary-foreground: oklch(0.321 0.12 335.727);
--secondary: oklch(0.912 0.013 331.014);
--secondary-foreground: oklch(0.398 0.042 332.185);
--accent: oklch(0.827 0.034 331.368);
--accent-foreground: oklch(0.302 0.039 332.485);
--destructive: oklch(0.34 0.124 32.708);
--destructive-foreground: oklch(0.823 0.097 30.336);
--ring: oklch(0.82 0.108 332.502);
--chart-1: oklch(0.82 0.108 332.502);
--chart-2: oklch(0.912 0.013 331.014);
--chart-3: oklch(0.827 0.034 331.368);
--chart-4: oklch(0.936 0.009 330.957);
--chart-5: oklch(0.819 0.113 332.574);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.018 331.835);
--foreground: oklch(0.984 0.004 330.87);
--muted: oklch(0.211 0.016 331.807);
--muted-foreground: oklch(0.678 0.047 331.719);
--popover: oklch(0.086 0.018 331.835);
--popover-foreground: oklch(0.984 0.004 330.87);
--card: oklch(0.086 0.018 331.835);
--card-foreground: oklch(0.984 0.004 330.87);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.82 0.108 332.502);
--primary-foreground: oklch(0.321 0.12 335.727);
--secondary: oklch(0.213 0.009 331.389);
--secondary-foreground: oklch(0.759 0.02 331.172);
--accent: oklch(0.282 0.032 332.288);
--accent-foreground: oklch(0.811 0.034 331.373);
--destructive: oklch(0.642 0.235 31.912);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.82 0.108 332.502);
--chart-1: oklch(0.82 0.108 332.502);
--chart-2: oklch(0.213 0.009 331.389);
--chart-3: oklch(0.282 0.032 332.288);
--chart-4: oklch(0.245 0.011 331.439);
--chart-5: oklch(0.819 0.113 332.574);
}