Imitation is a shadcn/ui theme built around a neutral gray primary color (#dcdcda) with muted light green accents (#d3d7bc). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#dcdcda) on a green-tinted background (#0e0f06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0f06black |
| Foreground | #141703black | #f9faf5whitesmoke |
| Card | #fcfcfcsnow | #111207black |
| Card foreground | #101202black | #fbfcf8snow |
| Popover | #fcfcfcsnow | #111207black |
| Popover foreground | #101202black | #fbfcf8snow |
| Primary | #dcdcdagainsboro | #dcdcdagainsboro |
| Primary foreground | #444440darkslategray | #444440darkslategray |
| Secondary | #ddded3gainsboro | #252522darkslategray |
| Secondary foreground | #474936darkslategray | #bfc0b9silver |
| Muted | #eaebe5linen | #191a14black |
| Muted foreground | #545549darkolivegreen | #b5b6aadarkgray |
| Accent | #d3d7bclightgrey | #434535darkslategray |
| Accent foreground | #393d24darkslategray | #dadcd1gainsboro |
| Destructive | #c03c0cfirebrick | #f26c3atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dcdcdagainsboro | #dcdcdagainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.20:1 | AAA |
| Text on card | 18.52:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 6.82:1 | AA |
| Muted text | 6.33:1 | AA |
| Accent | 7.61:1 | AAA |
| Destructive | 5.39:1 | AA |
| Text on background | 18.40:1 | AAA |
| Text on card | 18.25:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 8.52:1 | AAA |
| Accent | 7.05:1 | AAA |
| Destructive | 6.97:1 | AA |
Paste this into your globals.css to use Imitation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.195 0.038 115.78);
--muted: oklch(0.938 0.009 112.715);
--muted-foreground: oklch(0.445 0.02 113.386);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.176 0.034 115.292);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.176 0.034 115.292);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.895 0.003 112.605);
--primary-foreground: oklch(0.386 0.007 112.865);
--secondary: oklch(0.898 0.015 112.867);
--secondary-foreground: oklch(0.398 0.031 113.986);
--accent: oklch(0.869 0.036 113.319);
--accent-foreground: oklch(0.348 0.039 114.67);
--destructive: oklch(0.544 0.176 37.048);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.895 0.003 112.605);
--chart-1: oklch(0.895 0.003 112.605);
--chart-2: oklch(0.898 0.015 112.867);
--chart-3: oklch(0.869 0.036 113.319);
--chart-4: oklch(0.918 0.012 112.795);
--chart-5: oklch(0.897 0.006 112.665);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.163 0.019 114.322);
--foreground: oklch(0.983 0.007 112.675);
--muted: oklch(0.215 0.012 113.601);
--muted-foreground: oklch(0.772 0.018 112.972);
--popover: oklch(0.179 0.022 114.745);
--popover-foreground: oklch(0.989 0.005 112.631);
--card: oklch(0.179 0.022 114.745);
--card-foreground: oklch(0.989 0.005 112.631);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.895 0.003 112.605);
--primary-foreground: oklch(0.386 0.007 112.865);
--secondary: oklch(0.265 0.007 113.004);
--secondary-foreground: oklch(0.805 0.009 112.758);
--accent: oklch(0.384 0.026 113.806);
--accent-foreground: oklch(0.889 0.014 112.846);
--destructive: oklch(0.687 0.178 39.559);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.895 0.003 112.605);
--chart-1: oklch(0.895 0.003 112.605);
--chart-2: oklch(0.265 0.007 113.004);
--chart-3: oklch(0.384 0.026 113.806);
--chart-4: oklch(0.297 0.008 113.027);
--chart-5: oklch(0.897 0.006 112.665);
}