Eyeliner is a shadcn/ui theme built around a pink primary color (#a81f4a) with teal accents (#1fa87d). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#a81f4a) on a pink-tinted background (#0b0406).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0406black |
| Foreground | #120307black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #0e0609black |
| Card foreground | #0d0206black | #ffffffwhite |
| Popover | #fcfcfcsnow | #0e0609black |
| Popover foreground | #0d0206black | #ffffffwhite |
| Primary | #a81f4abrown | #a81f4abrown |
| Primary foreground | #fefbfcsnow | #fefbfcsnow |
| Secondary | #1fa87dmediumseagreen | #1fa87dmediumseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e3f2edlavender | #0d1c17black |
| Muted foreground | #434746darkslategray | #b8bcbbsilver |
| Accent | #1fa87dmediumseagreen | #1fa87dmediumseagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ad130bfirebrick | #f01b0fred |
| Destructive foreground | #feedeclinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a81f4abrown | #a81f4abrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 3.01:1 | AA Large |
| Muted text | 8.15:1 | AAA |
| Accent | 3.01:1 | AA Large |
| Destructive | 6.46:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 3.01:1 | AA Large |
| Muted text | 9.18:1 | AAA |
| Accent | 3.01:1 | AA Large |
| Destructive | 4.32:1 | AA Large |
Paste this into your globals.css to use Eyeliner in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.035 357.38);
--muted: oklch(0.948 0.016 175.109);
--muted-foreground: oklch(0.393 0.006 175.175);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.117 0.03 355.698);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.117 0.03 355.698);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.483 0.172 8.736);
--primary-foreground: oklch(0.99 0.004 355.733);
--secondary: oklch(0.652 0.129 165.505);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.652 0.129 165.505);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.476 0.185 29.386);
--destructive-foreground: oklch(0.959 0.019 21.141);
--ring: oklch(0.483 0.172 8.736);
--chart-1: oklch(0.483 0.172 8.736);
--chart-2: oklch(0.652 0.129 165.505);
--chart-3: oklch(0.652 0.129 165.505);
--chart-4: oklch(0.689 0.137 165.422);
--chart-5: oklch(0.487 0.177 9.441);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.016 355.444);
--foreground: oklch(0.992 0.001 355.649);
--muted: oklch(0.21 0.022 172.024);
--muted-foreground: oklch(0.792 0.005 175.433);
--popover: oklch(0.137 0.018 356.697);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.137 0.018 356.697);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.483 0.172 8.736);
--primary-foreground: oklch(0.99 0.004 355.733);
--secondary: oklch(0.652 0.129 165.505);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.652 0.129 165.505);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.606 0.239 29.457);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.483 0.172 8.736);
--chart-1: oklch(0.483 0.172 8.736);
--chart-2: oklch(0.652 0.129 165.505);
--chart-3: oklch(0.652 0.129 165.505);
--chart-4: oklch(0.689 0.137 165.422);
--chart-5: oklch(0.487 0.177 9.441);
}