Caribou for shadcn/ui

Caribou is a shadcn/ui theme built around a vivid light blue primary color (#9fcff4) with vivid light orange accents (#f4c49f). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light blue primary (#9fcff4) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#ffffffwhite
#030507black
Foreground
#02080dblack
#f9fafbghostwhite
Card
#ffffffwhite
#030507black
Card foreground
#02080dblack
#f9fafbghostwhite
Popover
#ffffffwhite
#030507black
Popover foreground
#02080dblack
#f9fafbghostwhite
Primary
#9fcff4lightblue
#9fcff4lightblue
Primary foreground
#0a3657midnightblue
#0a3657midnightblue
Secondary
#f4c49fnavajowhite
#f4c49fnavajowhite
Secondary foreground
#572b0asaddlebrown
#572b0asaddlebrown
Muted
#f1efeewhitesmoke
#110f0eblack
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#f4c49fnavajowhite
#f4c49fnavajowhite
Accent foreground
#572b0asaddlebrown
#572b0asaddlebrown
Destructive
#ce3903firebrick
#fc6027tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9fcff4lightblue
#9fcff4lightblue

Contrast

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

Light mode
Text on background20.13:1AAA
Text on card20.13:1AAA
Primary button7.57:1AAA
Secondary button7.53:1AAA
Muted text9.07:1AAA
Accent7.53:1AAA
Destructive4.98:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button7.57:1AAA
Secondary button7.53:1AAA
Muted text10.39:1AAA
Accent7.53:1AAA
Destructive6.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.13 0.018 232.303);
  --muted: oklch(0.955 0.003 60.246);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.13 0.018 232.303);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.13 0.018 232.303);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.834 0.073 241.648);
  --primary-foreground: oklch(0.322 0.075 246.81);
  --secondary: oklch(0.853 0.074 58.958);
  --secondary-foreground: oklch(0.343 0.078 53.009);
  --accent: oklch(0.853 0.074 58.958);
  --accent-foreground: oklch(0.343 0.078 53.009);
  --destructive: oklch(0.565 0.192 35.912);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.834 0.073 241.648);
  --chart-1: oklch(0.834 0.073 241.648);
  --chart-2: oklch(0.853 0.074 58.958);
  --chart-3: oklch(0.853 0.074 58.958);
  --chart-4: oklch(0.874 0.063 59.217);
  --chart-5: oklch(0.834 0.076 241.709);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.114 0.009 234.938);
  --foreground: oklch(0.985 0.001 240.304);
  --muted: oklch(0.17 0.004 59.962);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0.114 0.009 234.938);
  --popover-foreground: oklch(0.985 0.001 240.304);
  --card: oklch(0.114 0.009 234.938);
  --card-foreground: oklch(0.985 0.001 240.304);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.834 0.073 241.648);
  --primary-foreground: oklch(0.322 0.075 246.81);
  --secondary: oklch(0.853 0.074 58.958);
  --secondary-foreground: oklch(0.343 0.078 53.009);
  --accent: oklch(0.853 0.074 58.958);
  --accent-foreground: oklch(0.343 0.078 53.009);
  --destructive: oklch(0.684 0.202 38.47);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.834 0.073 241.648);
  --chart-1: oklch(0.834 0.073 241.648);
  --chart-2: oklch(0.853 0.074 58.958);
  --chart-3: oklch(0.853 0.074 58.958);
  --chart-4: oklch(0.874 0.063 59.217);
  --chart-5: oklch(0.834 0.076 241.709);
}