Bear is a shadcn/ui theme built around a muted green primary color (#4b7250) with muted light green accents (#c6d2c8). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted green primary (#4b7250) on a green-tinted background (#040b05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #040b05black |
| Foreground | #051407black | #fcfdfcwhite |
| Card | #f7fdf8mintcream | #060f07black |
| Card foreground | #041006black | #ffffffwhite |
| Popover | #fbfefbwhite | #040b05black |
| Popover foreground | #051407black | #fcfdfcwhite |
| Primary | #4b7250darkolivegreen | #4b7250darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c6d2c8lightgrey | #19241bblack |
| Secondary foreground | #2d392fdarkslategray | #abc4afsilver |
| Muted | #e8f3e9honeydew | #0c170eblack |
| Muted foreground | #37493adarkslategray | #b6c8b9silver |
| Accent | #c6d2c8lightgrey | #19241bblack |
| Accent foreground | #2d392fdarkslategray | #abc4afsilver |
| Destructive | #de2002red | #fd2d0dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4b7250darkolivegreen | #4b7250darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.62:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 5.48:1 | AA |
| Secondary button | 7.72:1 | AAA |
| Muted text | 8.44:1 | AAA |
| Accent | 7.72:1 | AAA |
| Destructive | 4.86:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 5.48:1 | AA |
| Secondary button | 8.57:1 | AAA |
| Muted text | 10.41:1 | AAA |
| Accent | 8.57:1 | AAA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Bear in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 150.188);
--foreground: oklch(0.174 0.034 148.032);
--muted: oklch(0.952 0.017 150.011);
--muted-foreground: oklch(0.384 0.034 149.015);
--popover: oklch(0.994 0.004 150.188);
--popover-foreground: oklch(0.174 0.034 148.032);
--card: oklch(0.988 0.009 150.129);
--card-foreground: oklch(0.158 0.03 148.585);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.513 0.069 148.295);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.851 0.018 149.971);
--secondary-foreground: oklch(0.329 0.022 149.32);
--accent: oklch(0.851 0.018 149.971);
--accent-foreground: oklch(0.329 0.022 149.32);
--destructive: oklch(0.576 0.223 31.02);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.513 0.069 148.295);
--chart-1: oklch(0.513 0.069 148.295);
--chart-2: oklch(0.851 0.018 149.971);
--chart-3: oklch(0.851 0.018 149.971);
--chart-4: oklch(0.874 0.015 150.02);
--chart-5: oklch(0.519 0.078 148.024);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.02 149.365);
--foreground: oklch(0.993 0.002 150.216);
--muted: oklch(0.192 0.025 148.391);
--muted-foreground: oklch(0.815 0.029 149.78);
--popover: oklch(0.139 0.02 149.365);
--popover-foreground: oklch(0.993 0.002 150.216);
--card: oklch(0.155 0.023 148.977);
--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.513 0.069 148.295);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.247 0.023 148.922);
--secondary-foreground: oklch(0.796 0.041 149.549);
--accent: oklch(0.247 0.023 148.922);
--accent-foreground: oklch(0.796 0.041 149.549);
--destructive: oklch(0.638 0.242 31.205);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.513 0.069 148.295);
--chart-1: oklch(0.513 0.069 148.295);
--chart-2: oklch(0.247 0.023 148.922);
--chart-3: oklch(0.247 0.023 148.922);
--chart-4: oklch(0.281 0.028 148.834);
--chart-5: oklch(0.519 0.078 148.024);
}