Composed is a shadcn/ui theme built around a neutral gray primary color (#515850) with muted light green accents (#c8d1c7). The light mode uses a neutral background (#fbfefb). Dark mode keeps the neutral gray primary (#515850) on a neutral background (#030802).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #030802black |
| Foreground | #010401black | #f6f9f5whitesmoke |
| Card | #f7fdf7mintcream | #050c03black |
| Card foreground | #000000black | #f9fbf9mintcream |
| Popover | #fbfefbwhite | #030802black |
| Popover foreground | #010401black | #f6f9f5whitesmoke |
| Primary | #515850darkslategray | #515850darkslategray |
| Primary foreground | #eceeecwhitesmoke | #eceeecwhitesmoke |
| Secondary | #c8d1c7lightgrey | #30312fdarkslategray |
| Secondary foreground | #2f382edarkslategray | #c9cbc8silver |
| Muted | #e4e7e4gainsboro | #181b18black |
| Muted foreground | #4f554edarkslategray | #abb1aadarkgray |
| Accent | #c8d1c7lightgrey | #30312fdarkslategray |
| Accent foreground | #2f382edarkslategray | #c9cbc8silver |
| Destructive | #820503maroon | #fa130fred |
| Destructive foreground | #febab9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #515850darkslategray | #515850darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 20.39:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 6.15:1 | AA |
| Accent | 7.77:1 | AAA |
| Destructive | 6.56:1 | AA |
| Text on background | 19.03:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 7.93:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 4.06: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.005 141.577);
--foreground: oklch(0.099 0.022 139.489);
--muted: oklch(0.925 0.005 141.577);
--muted-foreground: oklch(0.442 0.013 141.511);
--popover: oklch(0.994 0.005 141.577);
--popover-foreground: oklch(0.099 0.022 139.489);
--card: oklch(0.989 0.011 141.562);
--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.452 0.016 141.491);
--primary-foreground: oklch(0.948 0.003 141.584);
--secondary: oklch(0.851 0.017 141.536);
--secondary-foreground: oklch(0.329 0.021 141.41);
--accent: oklch(0.851 0.017 141.536);
--accent-foreground: oklch(0.329 0.021 141.41);
--destructive: oklch(0.383 0.154 29.234);
--destructive-foreground: oklch(0.851 0.078 19.933);
--ring: oklch(0.452 0.016 141.491);
--chart-1: oklch(0.452 0.016 141.491);
--chart-2: oklch(0.851 0.017 141.536);
--chart-3: oklch(0.851 0.017 141.536);
--chart-4: oklch(0.874 0.014 141.546);
--chart-5: oklch(0.456 0.026 141.432);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.023 139.861);
--foreground: oklch(0.979 0.006 141.575);
--muted: oklch(0.218 0.007 141.5);
--muted-foreground: oklch(0.753 0.011 141.551);
--popover: oklch(0.123 0.023 139.861);
--popover-foreground: oklch(0.979 0.006 141.575);
--card: oklch(0.141 0.026 139.903);
--card-foreground: oklch(0.986 0.004 141.581);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.452 0.016 141.491);
--primary-foreground: oklch(0.948 0.003 141.584);
--secondary: oklch(0.312 0.004 141.555);
--secondary-foreground: oklch(0.839 0.004 141.58);
--accent: oklch(0.312 0.004 141.555);
--accent-foreground: oklch(0.839 0.004 141.58);
--destructive: oklch(0.623 0.25 29.011);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.452 0.016 141.491);
--chart-1: oklch(0.452 0.016 141.491);
--chart-2: oklch(0.312 0.004 141.555);
--chart-3: oklch(0.312 0.004 141.555);
--chart-4: oklch(0.343 0.005 141.554);
--chart-5: oklch(0.456 0.026 141.432);
}