Membrane is a shadcn/ui theme built around a vivid light teal primary color (#c3fef8) with vivid light yellow accents (#fef8c3). The light mode uses a neutral background (#f6fdfd). Dark mode keeps the vivid light teal primary (#c3fef8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdfdmintcream | #000000black |
| Foreground | #020908black | #f9fbfbghostwhite |
| Card | #f2fdfcazure | #030303black |
| Card foreground | #010404black | #fcfdfdwhite |
| Popover | #f2fdfcazure | #030303black |
| Popover foreground | #010404black | #fcfdfdwhite |
| Primary | #c3fef8paleturquoise | #c3fef8paleturquoise |
| Primary foreground | #012824black | #012824black |
| Secondary | #f8c3felavender | #f8c3felavender |
| Secondary foreground | #7f028ddarkmagenta | #7f028ddarkmagenta |
| Muted | #f2ecf3whitesmoke | #120c13black |
| Muted foreground | #5a585adimgray | #a6a5a7darkgray |
| Accent | #fef8c3lemonchiffon | #fef8c3lemonchiffon |
| Accent foreground | #282401black | #282401black |
| Destructive | #9e1010darkred | #ed4545tomato |
| Destructive foreground | #fce3e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c3fef8paleturquoise | #c3fef8paleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.56:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 14.17:1 | AAA |
| Secondary button | 6.18:1 | AA |
| Muted text | 6.08:1 | AA |
| Accent | 14.48:1 | AAA |
| Destructive | 6.81:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 14.17:1 | AAA |
| Secondary button | 6.18:1 | AA |
| Muted text | 7.87:1 | AAA |
| Accent | 14.48:1 | AAA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Membrane in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 189.907);
--foreground: oklch(0.127 0.016 189.202);
--muted: oklch(0.951 0.011 322.671);
--muted-foreground: oklch(0.464 0.003 322.657);
--popover: oklch(0.985 0.011 189.821);
--popover-foreground: oklch(0.101 0.013 189.202);
--card: oklch(0.985 0.011 189.821);
--card-foreground: oklch(0.101 0.013 189.202);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.956 0.06 188.589);
--primary-foreground: oklch(0.25 0.044 184.891);
--secondary: oklch(0.882 0.098 323.049);
--secondary-foreground: oklch(0.429 0.201 322.953);
--accent: oklch(0.971 0.069 102.299);
--accent-foreground: oklch(0.258 0.053 103.239);
--destructive: oklch(0.445 0.173 28.123);
--destructive-foreground: oklch(0.937 0.028 17.655);
--ring: oklch(0.956 0.06 188.589);
--chart-1: oklch(0.956 0.06 188.589);
--chart-2: oklch(0.882 0.098 323.049);
--chart-3: oklch(0.971 0.069 102.299);
--chart-4: oklch(0.911 0.073 322.939);
--chart-5: oklch(0.957 0.062 188.547);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.002 190.034);
--muted: oklch(0.165 0.016 323.001);
--muted-foreground: oklch(0.723 0.003 322.644);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.993 0.001 190.056);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.001 190.056);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.956 0.06 188.589);
--primary-foreground: oklch(0.25 0.044 184.891);
--secondary: oklch(0.882 0.098 323.049);
--secondary-foreground: oklch(0.429 0.201 322.953);
--accent: oklch(0.971 0.069 102.299);
--accent-foreground: oklch(0.258 0.053 103.239);
--destructive: oklch(0.634 0.204 25.157);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.956 0.06 188.589);
--chart-1: oklch(0.956 0.06 188.589);
--chart-2: oklch(0.882 0.098 323.049);
--chart-3: oklch(0.971 0.069 102.299);
--chart-4: oklch(0.911 0.073 322.939);
--chart-5: oklch(0.957 0.062 188.547);
}