Membrane is a shadcn/ui theme built around a teal primary color (#2db499) with red accents (#b42d48). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#2db499) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #010403black |
| Foreground | #010404black | #fcfdfdwhite |
| Card | #f7fdfcmintcream | #020807black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfefdwhite | #010403black |
| Popover foreground | #010404black | #fcfdfdwhite |
| Primary | #2db499lightseagreen | #2db499lightseagreen |
| Primary foreground | #04100eblack | #04100eblack |
| Secondary | #b42d48brown | #b42d48brown |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ebe6e7linen | #191415black |
| Muted foreground | #664d52dimgray | #b2999erosybrown |
| Accent | #b42d48brown | #b42d48brown |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c62715firebrick | #ea4634tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2db499lightseagreen | #2db499lightseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.29:1 | AAA |
| Text on card | 20.42:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 6.18:1 | AA |
| Muted text | 6.16:1 | AA |
| Accent | 6.18:1 | AA |
| Destructive | 5.66:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 6.18:1 | AA |
| Muted text | 6.86:1 | AA |
| Accent | 6.18:1 | AA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Membrane in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 183.084);
--foreground: oklch(0.1 0.013 183.008);
--muted: oklch(0.928 0.006 3.348);
--muted-foreground: oklch(0.447 0.035 5.219);
--popover: oklch(0.995 0.004 183.084);
--popover-foreground: oklch(0.1 0.013 183.008);
--card: oklch(0.989 0.007 182.982);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.692 0.119 175.695);
--primary-foreground: oklch(0.161 0.02 180.638);
--secondary: oklch(0.515 0.17 14.465);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.515 0.17 14.465);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.537 0.197 30.515);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.692 0.119 175.695);
--chart-1: oklch(0.692 0.119 175.695);
--chart-2: oklch(0.515 0.17 14.465);
--chart-3: oklch(0.515 0.17 14.465);
--chart-4: oklch(0.54 0.179 14.566);
--chart-5: oklch(0.7 0.122 175.351);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.011 183.033);
--foreground: oklch(0.993 0.001 183.157);
--muted: oklch(0.2 0.008 4.303);
--muted-foreground: oklch(0.707 0.03 4.324);
--popover: oklch(0.099 0.011 183.033);
--popover-foreground: oklch(0.993 0.001 183.157);
--card: oklch(0.125 0.014 183.033);
--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.692 0.119 175.695);
--primary-foreground: oklch(0.161 0.02 180.638);
--secondary: oklch(0.515 0.17 14.465);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.515 0.17 14.465);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.628 0.203 30.042);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.692 0.119 175.695);
--chart-1: oklch(0.692 0.119 175.695);
--chart-2: oklch(0.515 0.17 14.465);
--chart-3: oklch(0.515 0.17 14.465);
--chart-4: oklch(0.54 0.179 14.566);
--chart-5: oklch(0.7 0.122 175.351);
}