Facsimile is a shadcn/ui theme built around a green primary color (#2fc16c) with teal accents (#2fc1b5). The light mode uses a neutral background (#f7fcf9). Dark mode keeps the green primary (#2fc16c) on a neutral background (#020805).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcf9mintcream | #020805black |
| Foreground | #041109black | #f9fafaghostwhite |
| Card | #f4fbf7mintcream | #040c07black |
| Card foreground | #030c07black | #fcfdfcwhite |
| Popover | #f7fcf9mintcream | #020805black |
| Popover foreground | #041109black | #f9fafaghostwhite |
| Primary | #2fc16cmediumseagreen | #2fc16cmediumseagreen |
| Primary foreground | #071d10black | #071d10black |
| Secondary | #3bc12flimegreen | #3bc12flimegreen |
| Secondary foreground | #091d07black | #091d07black |
| Muted | #cfe4cdlightgrey | #1d321bdarkslategray |
| Muted foreground | #464f45darkslategray | #b1bab0darkgray |
| Accent | #2fc1b5lightseagreen | #2fc1b5lightseagreen |
| Accent foreground | #071d1bblack | #071d1bblack |
| Destructive | #a70402darkred | #fd1612red |
| Destructive foreground | #ffdcdcmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2fc16cmediumseagreen | #2fc16cmediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.65:1 | AAA |
| Text on card | 18.86:1 | AAA |
| Primary button | 7.51:1 | AAA |
| Secondary button | 7.43:1 | AAA |
| Muted text | 6.35:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 6.22:1 | AA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 7.51:1 | AAA |
| Secondary button | 7.43:1 | AAA |
| Muted text | 6.92:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Facsimile in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 160.858);
--foreground: oklch(0.16 0.026 159.012);
--muted: oklch(0.898 0.038 142.934);
--muted-foreground: oklch(0.416 0.021 142.898);
--popover: oklch(0.988 0.007 160.858);
--popover-foreground: oklch(0.16 0.026 159.012);
--card: oklch(0.982 0.01 160.778);
--card-foreground: oklch(0.143 0.022 160.564);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.716 0.172 152.356);
--primary-foreground: oklch(0.207 0.038 155.675);
--secondary: oklch(0.712 0.215 141.927);
--secondary-foreground: oklch(0.206 0.049 141.833);
--accent: oklch(0.735 0.119 186.417);
--accent-foreground: oklch(0.211 0.028 187.964);
--destructive: oklch(0.458 0.186 29.343);
--destructive-foreground: oklch(0.924 0.038 19.024);
--ring: oklch(0.716 0.172 152.356);
--chart-1: oklch(0.716 0.172 152.356);
--chart-2: oklch(0.712 0.215 141.927);
--chart-3: oklch(0.735 0.119 186.417);
--chart-4: oklch(0.745 0.225 141.928);
--chart-5: oklch(0.725 0.178 151.982);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.016 160.951);
--foreground: oklch(0.985 0.001 160.981);
--muted: oklch(0.291 0.049 142.335);
--muted-foreground: oklch(0.779 0.018 143.027);
--popover: oklch(0.123 0.016 160.951);
--popover-foreground: oklch(0.985 0.001 160.981);
--card: oklch(0.141 0.018 160.776);
--card-foreground: oklch(0.993 0.001 160.997);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.716 0.172 152.356);
--primary-foreground: oklch(0.207 0.038 155.675);
--secondary: oklch(0.712 0.215 141.927);
--secondary-foreground: oklch(0.206 0.049 141.833);
--accent: oklch(0.735 0.119 186.417);
--accent-foreground: oklch(0.211 0.028 187.964);
--destructive: oklch(0.628 0.251 28.951);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.716 0.172 152.356);
--chart-1: oklch(0.716 0.172 152.356);
--chart-2: oklch(0.712 0.215 141.927);
--chart-3: oklch(0.735 0.119 186.417);
--chart-4: oklch(0.745 0.225 141.928);
--chart-5: oklch(0.725 0.178 151.982);
}