Bear Theme for shadcn/ui

Bear Theme is a shadcn/ui theme built around an orange primary color (#e68551) with neutral gray accents (#43454c). The light mode uses a neutral background (#1f2023). Dark mode keeps the orange primary (#e68551) on a neutral background (#1f2023).

Color palette

TokenLightDark
Background
#1f2023black
#1f2023black
Foreground
#bdb38ftan
#bdb38ftan
Card
#1a1b1eblack
#1a1b1eblack
Card foreground
#c6be9ftan
#c6be9ftan
Popover
#18191bblack
#18191bblack
Popover foreground
#d0c9afsilver
#d0c9afsilver
Primary
#e68551coral
#e68551coral
Primary foreground
#040201black
#040201black
Secondary
#533a2ddarkolivegreen
#533a2ddarkolivegreen
Secondary foreground
#e4d5cdlightgrey
#e4d5cdlightgrey
Muted
#262931darkslategray
#262931darkslategray
Muted foreground
#a1a6b5darkgray
#a1a6b5darkgray
Accent
#43454cdarkslategray
#43454cdarkslategray
Accent foreground
#dfdfe2gainsboro
#dfdfe2gainsboro
Destructive
#eb250forangered
#eb250forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#2e2e2edarkslategray
#2e2e2edarkslategray
Input
#363636darkslategray
#363636darkslategray
Ring
#e68551coral
#e68551coral

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background7.74:1AAA
Text on card9.21:1AAA
Primary button7.74:1AAA
Secondary button7.31:1AAA
Muted text5.99:1AA
Accent7.17:1AAA
Destructive4.37:1AA Large
Dark mode
Text on background7.74:1AAA
Text on card9.21:1AAA
Primary button7.74:1AAA
Secondary button7.31:1AAA
Muted text5.99:1AA
Accent7.17:1AAA
Destructive4.37:1AA Large

CSS variables

Paste this into your globals.css to use Bear Theme in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.244 0.006 271.173);
  --foreground: oklch(0.765 0.051 94.416);
  --muted: oklch(0.281 0.015 270.842);
  --muted-foreground: oklch(0.725 0.023 271.094);
  --popover: oklch(0.212 0.005 271.194);
  --popover-foreground: oklch(0.834 0.036 94.271);
  --card: oklch(0.223 0.005 271.187);
  --card-foreground: oklch(0.8 0.043 94.348);
  --border: oklch(0.301 0 189.462);
  --input: oklch(0.331 0 180);
  --primary: oklch(0.712 0.137 47.776);
  --primary-foreground: oklch(0.091 0.014 62.472);
  --secondary: oklch(0.373 0.042 49.325);
  --secondary-foreground: oklch(0.884 0.02 50.377);
  --accent: oklch(0.392 0.011 271.123);
  --accent-foreground: oklch(0.905 0.004 271.369);
  --destructive: oklch(0.602 0.231 30.462);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.712 0.137 47.776);
  --chart-1: oklch(0.712 0.137 47.776);
  --chart-2: oklch(0.373 0.042 49.325);
  --chart-3: oklch(0.392 0.011 271.123);
  --chart-4: oklch(0.402 0.046 49.296);
  --chart-5: oklch(0.714 0.142 47.584);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.244 0.006 271.173);
  --foreground: oklch(0.765 0.051 94.416);
  --muted: oklch(0.281 0.015 270.842);
  --muted-foreground: oklch(0.725 0.023 271.094);
  --popover: oklch(0.212 0.005 271.194);
  --popover-foreground: oklch(0.834 0.036 94.271);
  --card: oklch(0.223 0.005 271.187);
  --card-foreground: oklch(0.8 0.043 94.348);
  --border: oklch(0.301 0 189.462);
  --input: oklch(0.331 0 180);
  --primary: oklch(0.712 0.137 47.776);
  --primary-foreground: oklch(0.091 0.014 62.472);
  --secondary: oklch(0.373 0.042 49.325);
  --secondary-foreground: oklch(0.884 0.02 50.377);
  --accent: oklch(0.392 0.011 271.123);
  --accent-foreground: oklch(0.905 0.004 271.369);
  --destructive: oklch(0.602 0.231 30.462);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.712 0.137 47.776);
  --chart-1: oklch(0.712 0.137 47.776);
  --chart-2: oklch(0.373 0.042 49.325);
  --chart-3: oklch(0.392 0.011 271.123);
  --chart-4: oklch(0.402 0.046 49.296);
  --chart-5: oklch(0.714 0.142 47.584);
}