Similar is a shadcn/ui theme built around a muted light green primary color (#bed2b1) with neutral gray accents (#dbddd9). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the muted light green primary (#bed2b1) on a neutral background (#050703).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fdf7mintcream | #050703black |
| Foreground | #040802black | #fafbf9snow |
| Card | #f6fcf3whitesmoke | #070b05black |
| Card foreground | #020401black | #fcfdfcwhite |
| Popover | #f9fdf7mintcream | #050703black |
| Popover foreground | #040802black | #fafbf9snow |
| Primary | #bed2b1silver | #bed2b1silver |
| Primary foreground | #26341edarkslategray | #26341edarkslategray |
| Secondary | #dbddd9gainsboro | #161915black |
| Secondary foreground | #41463edarkslategray | #aeb7a9darkgray |
| Muted | #e4ebe0gainsboro | #181f14black |
| Muted foreground | #545553dimgray | #abacaadarkgray |
| Accent | #dbddd9gainsboro | #161915black |
| Accent foreground | #41463edarkslategray | #aeb7a9darkgray |
| Destructive | #d00401red | #fe2d2acrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bed2b1silver | #bed2b1silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.60:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 7.09:1 | AAA |
| Muted text | 6.15:1 | AA |
| Accent | 7.09:1 | AAA |
| Destructive | 5.67:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 7.40:1 | AAA |
| Accent | 8.56:1 | AAA |
| Destructive | 3.73:1 | AA Large |
Paste this into your globals.css to use Similar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.008 133.044);
--foreground: oklch(0.125 0.019 131.625);
--muted: oklch(0.932 0.016 133.103);
--muted-foreground: oklch(0.448 0.003 133.031);
--popover: oklch(0.989 0.008 133.044);
--popover-foreground: oklch(0.125 0.019 131.625);
--card: oklch(0.984 0.013 133.073);
--card-foreground: oklch(0.099 0.015 131.625);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.841 0.05 133.411);
--primary-foreground: oklch(0.305 0.042 134.077);
--secondary: oklch(0.896 0.006 133.035);
--secondary-foreground: oklch(0.388 0.015 133.251);
--accent: oklch(0.896 0.006 133.035);
--accent-foreground: oklch(0.388 0.015 133.251);
--destructive: oklch(0.54 0.22 29.359);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.841 0.05 133.411);
--chart-1: oklch(0.841 0.05 133.411);
--chart-2: oklch(0.896 0.006 133.035);
--chart-3: oklch(0.896 0.006 133.035);
--chart-4: oklch(0.918 0.005 133.023);
--chart-5: oklch(0.844 0.056 133.458);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.014 131.951);
--foreground: oklch(0.987 0.004 133.011);
--muted: oklch(0.228 0.022 133.713);
--muted-foreground: oklch(0.742 0.003 133.01);
--popover: oklch(0.123 0.014 131.951);
--popover-foreground: oklch(0.987 0.004 133.011);
--card: oklch(0.14 0.016 131.964);
--card-foreground: oklch(0.993 0.002 132.998);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.841 0.05 133.411);
--primary-foreground: oklch(0.305 0.042 134.077);
--secondary: oklch(0.209 0.009 133.284);
--secondary-foreground: oklch(0.769 0.022 133.186);
--accent: oklch(0.209 0.009 133.284);
--accent-foreground: oklch(0.769 0.022 133.186);
--destructive: oklch(0.643 0.24 27.942);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.841 0.05 133.411);
--chart-1: oklch(0.841 0.05 133.411);
--chart-2: oklch(0.209 0.009 133.284);
--chart-3: oklch(0.209 0.009 133.284);
--chart-4: oklch(0.244 0.011 133.316);
--chart-5: oklch(0.844 0.056 133.458);
}