Hare is a shadcn/ui theme built around a pink primary color (#c17b9c) with teal accents (#7bc1a0). The light mode uses a neutral background (#fefbfc). Dark mode keeps the pink primary (#c17b9c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #000000black |
| Foreground | #080205black | #fbf9fasnow |
| Card | #fdf7fasnow | #030303black |
| Card foreground | #040102black | #fdfcfcsnow |
| Popover | #fdf7fasnow | #030303black |
| Popover foreground | #040102black | #fdfcfcsnow |
| Primary | #c17b9crosybrown | #c17b9crosybrown |
| Primary foreground | #070305black | #070305black |
| Secondary | #7bc1a0mediumaquamarine | #7bc1a0mediumaquamarine |
| Secondary foreground | #030705black | #030705black |
| Muted | #e9eceblavender | #131614black |
| Muted foreground | #4e655adimgray | #9ab1a7darkgray |
| Accent | #7bc1a0mediumaquamarine | #7bc1a0mediumaquamarine |
| Accent foreground | #030705black | #030705black |
| Destructive | #6d0303maroon | #fa3838tomato |
| Destructive foreground | #fda5a5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c17b9crosybrown | #c17b9crosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.98:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 9.63:1 | AAA |
| Muted text | 5.30:1 | AA |
| Accent | 9.63:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 9.63:1 | AAA |
| Muted text | 8.00:1 | AAA |
| Accent | 9.63:1 | AAA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Hare in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 347.011);
--foreground: oklch(0.105 0.024 346.588);
--muted: oklch(0.941 0.004 166.805);
--muted-foreground: oklch(0.484 0.033 164.91);
--popover: oklch(0.981 0.008 347.116);
--popover-foreground: oklch(0.083 0.019 346.588);
--card: oklch(0.981 0.008 347.116);
--card-foreground: oklch(0.083 0.019 346.588);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.666 0.096 350.529);
--primary-foreground: oklch(0.11 0.012 346.742);
--secondary: oklch(0.755 0.085 163.307);
--secondary-foreground: oklch(0.121 0.011 167.044);
--accent: oklch(0.755 0.085 163.307);
--accent-foreground: oklch(0.121 0.011 167.044);
--destructive: oklch(0.339 0.136 28.794);
--destructive-foreground: oklch(0.809 0.104 19.57);
--ring: oklch(0.666 0.096 350.529);
--chart-1: oklch(0.666 0.096 350.529);
--chart-2: oklch(0.755 0.085 163.307);
--chart-3: oklch(0.755 0.085 163.307);
--chart-4: oklch(0.774 0.079 163.731);
--chart-5: oklch(0.665 0.104 350.836);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.002 346.965);
--muted: oklch(0.196 0.005 166.17);
--muted-foreground: oklch(0.741 0.03 165.76);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.992 0.001 346.936);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.992 0.001 346.936);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.666 0.096 350.529);
--primary-foreground: oklch(0.11 0.012 346.742);
--secondary: oklch(0.755 0.085 163.307);
--secondary-foreground: oklch(0.121 0.011 167.044);
--accent: oklch(0.755 0.085 163.307);
--accent-foreground: oklch(0.121 0.011 167.044);
--destructive: oklch(0.644 0.229 26.514);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.666 0.096 350.529);
--chart-1: oklch(0.666 0.096 350.529);
--chart-2: oklch(0.755 0.085 163.307);
--chart-3: oklch(0.755 0.085 163.307);
--chart-4: oklch(0.774 0.079 163.731);
--chart-5: oklch(0.665 0.104 350.836);
}