Composed is a shadcn/ui theme built around a vivid deep green primary color (#093f1c) with muted light red accents (#d1c7c7). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid deep green primary (#093f1c) on a green-tinted background (#070d09).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #070d09black |
| Foreground | #010402black | #fcfdfcwhite |
| Card | #fbfefcwhite | #070d09black |
| Card foreground | #010402black | #fcfdfcwhite |
| Popover | #fbfefcwhite | #070d09black |
| Popover foreground | #010402black | #fcfdfcwhite |
| Primary | #093f1cdarkgreen | #093f1cdarkgreen |
| Primary foreground | #31e372mediumseagreen | #31e372mediumseagreen |
| Secondary | #dededegainsboro | #141a16black |
| Secondary foreground | #454545darkslategray | #a6b9addarkgray |
| Muted | #e9d8d8gainsboro | #16271cblack |
| Muted foreground | #5c4d4ddimgray | #a3b2a9darkgray |
| Accent | #d1c7c7lightgrey | #233429darkslategray |
| Accent foreground | #382e2edarkslategray | #b9cfc1silver |
| Destructive | #601906maroon | #f24718orangered |
| Destructive foreground | #f9b29flightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #093f1cdarkgreen | #093f1cdarkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 5.82:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 7.22:1 | AAA |
| Text on background | 19.20:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Composed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 158.645);
--foreground: oklch(0.099 0.018 158.431);
--muted: oklch(0.896 0.018 17.499);
--muted-foreground: oklch(0.434 0.02 17.966);
--popover: oklch(0.994 0.003 158.645);
--popover-foreground: oklch(0.099 0.018 158.431);
--card: oklch(0.994 0.003 158.645);
--card-foreground: oklch(0.099 0.018 158.431);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.324 0.081 150.592);
--primary-foreground: oklch(0.805 0.208 150.045);
--secondary: oklch(0.9 0 188.746);
--secondary-foreground: oklch(0.39 0 165.964);
--accent: oklch(0.838 0.01 17.361);
--accent-foreground: oklch(0.313 0.013 17.891);
--destructive: oklch(0.33 0.107 35.524);
--destructive-foreground: oklch(0.826 0.088 36.074);
--ring: oklch(0.324 0.081 150.592);
--chart-1: oklch(0.324 0.081 150.592);
--chart-2: oklch(0.9 0 188.746);
--chart-3: oklch(0.838 0.01 17.361);
--chart-4: oklch(0.923 0 153.435);
--chart-5: oklch(0.327 0.083 150.338);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.013 157.78);
--foreground: oklch(0.993 0.002 158.678);
--muted: oklch(0.254 0.03 155.823);
--muted-foreground: oklch(0.75 0.022 158.081);
--popover: oklch(0.152 0.013 157.78);
--popover-foreground: oklch(0.993 0.002 158.678);
--card: oklch(0.152 0.013 157.78);
--card-foreground: oklch(0.993 0.002 158.678);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.324 0.081 150.592);
--primary-foreground: oklch(0.805 0.208 150.045);
--secondary: oklch(0.209 0.011 157.557);
--secondary-foreground: oklch(0.769 0.027 157.941);
--accent: oklch(0.305 0.029 156.474);
--accent-foreground: oklch(0.835 0.031 157.894);
--destructive: oklch(0.64 0.214 34.862);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.324 0.081 150.592);
--chart-1: oklch(0.324 0.081 150.592);
--chart-2: oklch(0.209 0.011 157.557);
--chart-3: oklch(0.305 0.029 156.474);
--chart-4: oklch(0.244 0.014 157.434);
--chart-5: oklch(0.327 0.083 150.338);
}