Composed is a shadcn/ui theme built around a green primary color (#6cba2c) with green accents (#2cba33). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#6cba2c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #fafbf9snow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #fafbf9snow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #fafbf9snow |
| Primary | #6cba2colivedrab | #6cba2colivedrab |
| Primary foreground | #0c1505black | #0c1505black |
| Secondary | #b3ba2cyellowgreen | #b3ba2cyellowgreen |
| Secondary foreground | #141505black | #141505black |
| Muted | #edeee2beige | #1c1d11black |
| Muted foreground | #434342darkslategray | #bdbdbcsilver |
| Accent | #2cba33limegreen | #2cba33limegreen |
| Accent foreground | #051506black | #051506black |
| Destructive | #752e06saddlebrown | #f57a32coral |
| Destructive foreground | #fbccb1peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6cba2colivedrab | #6cba2colivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 8.74:1 | AAA |
| Muted text | 8.46:1 | AAA |
| Accent | 7.31:1 | AAA |
| Destructive | 6.67:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 8.74:1 | AAA |
| Muted text | 9.05:1 | AAA |
| Accent | 7.31:1 | AAA |
| Destructive | 7.72:1 | AAA |
Paste this into your globals.css to use Composed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.945 0.016 109.018);
--muted-foreground: oklch(0.382 0.002 108.816);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.711 0.187 134.546);
--primary-foreground: oklch(0.18 0.034 131.551);
--secondary: oklch(0.759 0.156 112.52);
--secondary-foreground: oklch(0.188 0.03 111.366);
--accent: oklch(0.69 0.209 143.435);
--accent-foreground: oklch(0.174 0.039 144.984);
--destructive: oklch(0.397 0.11 44.556);
--destructive-foreground: oklch(0.88 0.065 51.644);
--ring: oklch(0.711 0.187 134.546);
--chart-1: oklch(0.711 0.187 134.546);
--chart-2: oklch(0.759 0.156 112.52);
--chart-3: oklch(0.69 0.209 143.435);
--chart-4: oklch(0.796 0.164 112.533);
--chart-5: oklch(0.72 0.193 134.765);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.004 130.473);
--muted: oklch(0.226 0.022 110.425);
--muted-foreground: oklch(0.799 0.002 108.752);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.987 0.004 130.473);
--card: oklch(0 0 0);
--card-foreground: oklch(0.987 0.004 130.473);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.711 0.187 134.546);
--primary-foreground: oklch(0.18 0.034 131.551);
--secondary: oklch(0.759 0.156 112.52);
--secondary-foreground: oklch(0.188 0.03 111.366);
--accent: oklch(0.69 0.209 143.435);
--accent-foreground: oklch(0.174 0.039 144.984);
--destructive: oklch(0.711 0.172 47.065);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.711 0.187 134.546);
--chart-1: oklch(0.711 0.187 134.546);
--chart-2: oklch(0.759 0.156 112.52);
--chart-3: oklch(0.69 0.209 143.435);
--chart-4: oklch(0.796 0.164 112.533);
--chart-5: oklch(0.72 0.193 134.765);
}