Molecule is a shadcn/ui theme built around a green primary color (#3ba069) with pink accents (#a03b73). The light mode uses a neutral background (#f7fcfa). Dark mode keeps the green primary (#3ba069) on a green-tinted background (#070e0a).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcfamintcream | #070e0ablack |
| Foreground | #031109black | #ffffffwhite |
| Card | #f7fcfamintcream | #070e0ablack |
| Card foreground | #031109black | #ffffffwhite |
| Popover | #f7fcfamintcream | #070e0ablack |
| Popover foreground | #031109black | #ffffffwhite |
| Primary | #3ba069mediumseagreen | #3ba069mediumseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a03b73mediumvioletred | #a03b73mediumvioletred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eadce4gainsboro | #23151dblack |
| Muted foreground | #656164dimgray | #9e9a9cdarkgray |
| Accent | #a03b73mediumvioletred | #a03b73mediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #de1102red | #fd2617orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3ba069mediumseagreen | #3ba069mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.67:1 | AAA |
| Text on card | 18.67:1 | AAA |
| Primary button | 3.26:1 | AA Large |
| Secondary button | 6.22:1 | AA |
| Muted text | 4.60:1 | AA |
| Accent | 6.22:1 | AA |
| Destructive | 5.01:1 | AA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 3.26:1 | AA Large |
| Secondary button | 6.22:1 | AA |
| Muted text | 6.30:1 | AA |
| Accent | 6.22:1 | AA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Molecule in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 162.458);
--foreground: oklch(0.162 0.029 160.265);
--muted: oklch(0.908 0.018 343.089);
--muted-foreground: oklch(0.499 0.006 342.914);
--popover: oklch(0.988 0.006 162.458);
--popover-foreground: oklch(0.162 0.029 160.265);
--card: oklch(0.988 0.006 162.458);
--card-foreground: oklch(0.162 0.029 160.265);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.633 0.126 155.792);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.511 0.147 349.463);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.511 0.147 349.463);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.57 0.228 29.83);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.633 0.126 155.792);
--chart-1: oklch(0.633 0.126 155.792);
--chart-2: oklch(0.511 0.147 349.463);
--chart-3: oklch(0.511 0.147 349.463);
--chart-4: oklch(0.536 0.155 349.516);
--chart-5: oklch(0.64 0.132 155.371);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.153 0.014 161.426);
--foreground: oklch(1 0 180);
--muted: oklch(0.218 0.025 345.298);
--muted-foreground: oklch(0.689 0.006 342.816);
--popover: oklch(0.153 0.014 161.426);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.153 0.014 161.426);
--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.633 0.126 155.792);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.511 0.147 349.463);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.511 0.147 349.463);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.635 0.244 29.71);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.633 0.126 155.792);
--chart-1: oklch(0.633 0.126 155.792);
--chart-2: oklch(0.511 0.147 349.463);
--chart-3: oklch(0.511 0.147 349.463);
--chart-4: oklch(0.536 0.155 349.516);
--chart-5: oklch(0.64 0.132 155.371);
}