Assembly is a shadcn/ui theme built around a near-black primary color (#010f00) with near-black accents (#0e000f). The light mode uses a neutral background (#fbfefb). Dark mode keeps the near-black primary (#010f00) on a neutral background (#010401).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #010401black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f8fdf7mintcream | #030802black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fdf7mintcream | #030802black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #010f00black | #010f00black |
| Primary foreground | #14d902lime | #14d902lime |
| Secondary | #0e000fblack | #0e000fblack |
| Secondary foreground | #ee44fdorchid | #ee44fdorchid |
| Muted | #e9d6eagainsboro | #271529black |
| Muted foreground | #524054darkslategray | #bdabbfsilver |
| Accent | #0e000fblack | #0e000fblack |
| Accent foreground | #ee44fdorchid | #ee44fdorchid |
| Destructive | #6e1c08maroon | #f15832tomato |
| Destructive foreground | #f9bdaelightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #010f00black | #010f00black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.65:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 10.22:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 6.89:1 | AA |
| Accent | 6.70:1 | AA |
| Destructive | 7.06:1 | AAA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 10.22:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 7.97:1 | AAA |
| Accent | 6.70:1 | AA |
| Destructive | 6.17:1 | AA |
Paste this into your globals.css to use Assembly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 143.114);
--foreground: oklch(0 0 0);
--muted: oklch(0.898 0.034 323.305);
--muted-foreground: oklch(0.399 0.039 323.567);
--popover: oklch(0.988 0.009 143.094);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.009 143.094);
--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.148 0.047 140.193);
--primary-foreground: oklch(0.768 0.259 142.231);
--secondary: oklch(0.117 0.053 325.76);
--secondary-foreground: oklch(0.702 0.28 324.309);
--accent: oklch(0.117 0.053 325.76);
--accent-foreground: oklch(0.702 0.28 324.309);
--destructive: oklch(0.359 0.118 34.478);
--destructive-foreground: oklch(0.849 0.073 34.46);
--ring: oklch(0.148 0.047 140.193);
--chart-1: oklch(0.148 0.047 140.193);
--chart-2: oklch(0.117 0.053 325.76);
--chart-3: oklch(0.117 0.053 325.76);
--chart-4: oklch(0.161 0.074 324.958);
--chart-5: oklch(0.149 0.048 140.104);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.018 141.483);
--foreground: oklch(1 0 180);
--muted: oklch(0.228 0.046 323.958);
--muted-foreground: oklch(0.764 0.033 323.333);
--popover: oklch(0.122 0.022 141.483);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.022 141.483);
--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.148 0.047 140.193);
--primary-foreground: oklch(0.768 0.259 142.231);
--secondary: oklch(0.117 0.053 325.76);
--secondary-foreground: oklch(0.702 0.28 324.309);
--accent: oklch(0.117 0.053 325.76);
--accent-foreground: oklch(0.702 0.28 324.309);
--destructive: oklch(0.659 0.195 35.006);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.148 0.047 140.193);
--chart-1: oklch(0.148 0.047 140.193);
--chart-2: oklch(0.117 0.053 325.76);
--chart-3: oklch(0.117 0.053 325.76);
--chart-4: oklch(0.161 0.074 324.958);
--chart-5: oklch(0.149 0.048 140.104);
}