Assembly is a shadcn/ui theme built around a light green primary color (#f5faef) with muted green accents (#bdc7b2). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#f5faef) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #080c03black | #f7f8f6whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #080c03black | #f7f8f6whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #080c03black | #f7f8f6whitesmoke |
| Primary | #f5faefhoneydew | #f5faefhoneydew |
| Primary foreground | #293f12darkgreen | #293f12darkgreen |
| Secondary | #cfd3calightgrey | #333531darkslategray |
| Secondary foreground | #363a31darkslategray | #cccecalightgrey |
| Muted | #f0f3edwhitesmoke | #0f120cblack |
| Muted foreground | #545c4ddarkolivegreen | #abb2a3darkgray |
| Accent | #bdc7b2silver | #474f40darkslategray |
| Accent foreground | #24291eblack | #e0e3ddgainsboro |
| Destructive | #c54007firebrick | #f65713orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f5faefhoneydew | #f5faefhoneydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 10.94:1 | AAA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 6.19:1 | AA |
| Accent | 8.50:1 | AAA |
| Destructive | 5.11:1 | AA |
| Text on background | 19.71:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 10.94:1 | AAA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 8.64:1 | AAA |
| Accent | 6.61:1 | AA |
| Destructive | 3.32:1 | AA Large |
Paste this into your globals.css to use Assembly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.024 127.525);
--muted: oklch(0.959 0.008 128.557);
--muted-foreground: oklch(0.462 0.026 129.098);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.024 127.525);
--card: oklch(1 0 180);
--card-foreground: oklch(0.146 0.024 127.525);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.979 0.016 128.643);
--primary-foreground: oklch(0.339 0.075 131.792);
--secondary: oklch(0.861 0.013 128.627);
--secondary-foreground: oklch(0.342 0.018 129.051);
--accent: oklch(0.817 0.031 128.896);
--accent-foreground: oklch(0.273 0.022 129.402);
--destructive: oklch(0.557 0.178 38.262);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.979 0.016 128.643);
--chart-1: oklch(0.979 0.016 128.643);
--chart-2: oklch(0.861 0.013 128.627);
--chart-3: oklch(0.817 0.031 128.896);
--chart-4: oklch(0.883 0.011 128.596);
--chart-5: oklch(0.98 0.017 128.652);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.003 128.493);
--muted: oklch(0.178 0.013 129.276);
--muted-foreground: oklch(0.755 0.023 128.802);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.979 0.003 128.493);
--card: oklch(0 0 0);
--card-foreground: oklch(0.979 0.003 128.493);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.979 0.016 128.643);
--primary-foreground: oklch(0.339 0.075 131.792);
--secondary: oklch(0.325 0.006 128.658);
--secondary-foreground: oklch(0.848 0.004 128.52);
--accent: oklch(0.415 0.025 129.15);
--accent-foreground: oklch(0.913 0.009 128.569);
--destructive: oklch(0.665 0.206 38.962);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.979 0.016 128.643);
--chart-1: oklch(0.979 0.016 128.643);
--chart-2: oklch(0.325 0.006 128.658);
--chart-3: oklch(0.415 0.025 129.15);
--chart-4: oklch(0.355 0.006 128.664);
--chart-5: oklch(0.98 0.017 128.652);
}