Bob for shadcn/ui

Bob is a shadcn/ui theme built around a cyan primary color (#4ad1de) with red accents (#de564a). The light mode uses a neutral background (#fbfefe). Dark mode keeps the cyan primary (#4ad1de) on a cyan-tinted background (#040b0c).

Color palette

TokenLightDark
Background
#fbfefewhite
#040b0cblack
Foreground
#000000black
#fcfdfdwhite
Card
#f7fcfdghostwhite
#050f10black
Card foreground
#000000black
#ffffffwhite
Popover
#f7fcfdghostwhite
#050f10black
Popover foreground
#000000black
#ffffffwhite
Primary
#4ad1demediumturquoise
#4ad1demediumturquoise
Primary foreground
#000000black
#000000black
Secondary
#de564aindianred
#de564aindianred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ede4e3linen
#1c1312black
Muted foreground
#4d3e3ddarkslategray
#c2b3b2silver
Accent
#de564aindianred
#de564aindianred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9c1e02darkred
#fc4e27tomato
Destructive foreground
#fedad2bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4ad1demediumturquoise
#4ad1demediumturquoise

Contrast

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

Light mode
Text on background20.65:1AAA
Text on card20.31:1AAA
Primary button11.51:1AAA
Secondary button3.79:1AA Large
Muted text8.12:1AAA
Accent3.79:1AA Large
Destructive6.22:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.44:1AAA
Primary button11.51:1AAA
Secondary button3.79:1AA Large
Muted text9.02:1AAA
Accent3.79:1AA Large
Destructive3.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 203.557);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.926 0.009 23.679);
  --muted-foreground: oklch(0.379 0.021 24.22);
  --popover: oklch(0.988 0.005 203.533);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.005 203.533);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.795 0.116 203.779);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.63 0.172 28.152);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.63 0.172 28.152);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.45 0.164 32.971);
  --destructive-foreground: oklch(0.916 0.042 32.744);
  --ring: oklch(0.795 0.116 203.779);
  --chart-1: oklch(0.795 0.116 203.779);
  --chart-2: oklch(0.63 0.172 28.152);
  --chart-3: oklch(0.63 0.172 28.152);
  --chart-4: oklch(0.651 0.16 27.542);
  --chart-5: oklch(0.801 0.119 203.871);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.014 201.632);
  --foreground: oklch(0.993 0.001 203.573);
  --muted: oklch(0.198 0.014 24.419);
  --muted-foreground: oklch(0.78 0.018 23.811);
  --popover: oklch(0.157 0.016 202.412);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.157 0.016 202.412);
  --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.795 0.116 203.779);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.63 0.172 28.152);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.63 0.172 28.152);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.665 0.216 33.838);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.795 0.116 203.779);
  --chart-1: oklch(0.795 0.116 203.779);
  --chart-2: oklch(0.63 0.172 28.152);
  --chart-3: oklch(0.63 0.172 28.152);
  --chart-4: oklch(0.651 0.16 27.542);
  --chart-5: oklch(0.801 0.119 203.871);
}