Similar is a shadcn/ui theme built around a pink primary color (#d26095) with muted light pink accents (#ede8ea). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#d26095) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #12030ablack | #fbf9fasnow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #12030ablack | #fbf9fasnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #12030ablack | #fbf9fasnow |
| Primary | #d26095palevioletred | #d26095palevioletred |
| Primary foreground | #000000black | #000000black |
| Secondary | #ede8ealinen | #20181cblack |
| Secondary foreground | #5d4651dimgray | #c0aab4silver |
| Muted | #f2eef0whitesmoke | #110d0fblack |
| Muted foreground | #50444adarkslategray | #bbafb5silver |
| Accent | #ede8ealinen | #20181cblack |
| Accent foreground | #5d4651dimgray | #c0aab4silver |
| Destructive | #6c1a09maroon | #ef6043tomato |
| Destructive foreground | #f8bbaflightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d26095palevioletred | #d26095palevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.13:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 7.04:1 | AAA |
| Muted text | 8.03:1 | AAA |
| Accent | 7.04:1 | AAA |
| Destructive | 7.11:1 | AAA |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 9.08:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.40:1 | AA |
Paste this into your globals.css to use Similar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.132 0.036 349.112);
--muted: oklch(0.952 0.005 347.046);
--muted-foreground: oklch(0.401 0.018 348.102);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.132 0.036 349.112);
--card: oklch(1 0 180);
--card-foreground: oklch(0.132 0.036 349.112);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.644 0.155 353.116);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.935 0.007 347.111);
--secondary-foreground: oklch(0.423 0.035 349.033);
--accent: oklch(0.935 0.007 347.111);
--accent-foreground: oklch(0.423 0.035 349.033);
--destructive: oklch(0.354 0.118 33.031);
--destructive-foreground: oklch(0.845 0.073 31.464);
--ring: oklch(0.644 0.155 353.116);
--chart-1: oklch(0.644 0.155 353.116);
--chart-2: oklch(0.935 0.007 347.111);
--chart-3: oklch(0.935 0.007 347.111);
--chart-4: oklch(0.96 0.004 347.031);
--chart-5: oklch(0.644 0.162 353.467);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.003 346.982);
--muted: oklch(0.166 0.008 348.112);
--muted-foreground: oklch(0.766 0.015 347.446);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.003 346.982);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.003 346.982);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.644 0.155 353.116);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.22 0.015 348.685);
--secondary-foreground: oklch(0.76 0.029 347.917);
--accent: oklch(0.22 0.015 348.685);
--accent-foreground: oklch(0.76 0.029 347.917);
--destructive: oklch(0.667 0.182 33.137);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.644 0.155 353.116);
--chart-1: oklch(0.644 0.155 353.116);
--chart-2: oklch(0.22 0.015 348.685);
--chart-3: oklch(0.22 0.015 348.685);
--chart-4: oklch(0.251 0.019 348.823);
--chart-5: oklch(0.644 0.162 353.467);
}