Replication is a shadcn/ui theme built around a near-black primary color (#040506) with neutral gray accents (#dcdce0). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the near-black primary (#040506) on a blue-tinted background (#03040c).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #03040cblack |
| Foreground | #010105black | #fcfcfdwhite |
| Card | #fbfbfeghostwhite | #03040cblack |
| Card foreground | #010105black | #fcfcfdwhite |
| Popover | #fbfbfeghostwhite | #03040cblack |
| Popover foreground | #010105black | #fcfcfdwhite |
| Primary | #040506black | #040506black |
| Primary foreground | #9194acdarkgray | #9194acdarkgray |
| Secondary | #dcdce0gainsboro | #1d1e2ablack |
| Secondary foreground | #40414adarkslategray | #b0b3c9silver |
| Muted | #e0e2f0lavender | #0f111fblack |
| Muted foreground | #515367dimgray | #989baedarkgray |
| Accent | #dcdce0gainsboro | #1d1e2ablack |
| Accent foreground | #40414adarkslategray | #b0b3c9silver |
| Destructive | #d11305firebrick | #e51506red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #040506black | #040506black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 6.84:1 | AA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 5.85:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 5.52:1 | AA |
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 6.84:1 | AA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 6.82:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 4.73:1 | AA |
Paste this into your globals.css to use Replication in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 280.265);
--foreground: oklch(0.072 0.021 269.898);
--muted: oklch(0.915 0.019 279.993);
--muted-foreground: oklch(0.449 0.032 279.119);
--popover: oklch(0.989 0.004 280.265);
--popover-foreground: oklch(0.072 0.021 269.898);
--card: oklch(0.989 0.004 280.265);
--card-foreground: oklch(0.072 0.021 269.898);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.112 0.004 279.186);
--primary-foreground: oklch(0.671 0.035 279.45);
--secondary: oklch(0.895 0.006 280.233);
--secondary-foreground: oklch(0.378 0.015 279.703);
--accent: oklch(0.895 0.006 280.233);
--accent-foreground: oklch(0.378 0.015 279.703);
--destructive: oklch(0.545 0.217 29.796);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.112 0.004 279.186);
--chart-1: oklch(0.112 0.004 279.186);
--chart-2: oklch(0.895 0.006 280.233);
--chart-3: oklch(0.895 0.006 280.233);
--chart-4: oklch(0.92 0.004 280.258);
--chart-5: oklch(0.111 0.005 278.916);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.112 0.022 273.728);
--foreground: oklch(0.991 0.001 280.311);
--muted: oklch(0.183 0.029 277.34);
--muted-foreground: oklch(0.693 0.029 279.655);
--popover: oklch(0.112 0.022 273.728);
--popover-foreground: oklch(0.991 0.001 280.311);
--card: oklch(0.112 0.022 273.728);
--card-foreground: oklch(0.991 0.001 280.311);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.112 0.004 279.186);
--primary-foreground: oklch(0.671 0.035 279.45);
--secondary: oklch(0.241 0.023 278.661);
--secondary-foreground: oklch(0.772 0.032 279.655);
--accent: oklch(0.241 0.023 278.661);
--accent-foreground: oklch(0.772 0.032 279.655);
--destructive: oklch(0.583 0.232 29.769);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.112 0.004 279.186);
--chart-1: oklch(0.112 0.004 279.186);
--chart-2: oklch(0.241 0.023 278.661);
--chart-3: oklch(0.241 0.023 278.661);
--chart-4: oklch(0.269 0.027 278.554);
--chart-5: oklch(0.111 0.005 278.916);
}