Belly for shadcn/ui

Belly is a shadcn/ui theme built around a near-black primary color (#00000a) with muted indigo accents (#acacbe). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the near-black primary (#00000a) on an indigo-tinted background (#07070e).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#07070eblack
Foreground
#04040cblack
#ffffffwhite
Card
#f8f8fcghostwhite
#07070eblack
Card foreground
#04040cblack
#ffffffwhite
Popover
#f8f8fcghostwhite
#07070eblack
Popover foreground
#04040cblack
#ffffffwhite
Primary
#00000ablack
#00000ablack
Primary foreground
#a4a4fflightsteelblue
#a4a4fflightsteelblue
Secondary
#c9c9cflightgrey
#161618black
Secondary foreground
#303036darkslategray
#ababb5darkgray
Muted
#dedee3gainsboro
#1c1c21black
Muted foreground
#464649darkslategray
#b6b6b9silver
Accent
#acacbedarkgray
#262631darkslategray
Accent foreground
#19191fblack
#bdbdccsilver
Destructive
#c51d11firebrick
#ed3d31crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#00000ablack
#00000ablack

Contrast

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

Light mode
Text on background19.30:1AAA
Text on card19.30:1AAA
Primary button9.28:1AAA
Secondary button7.94:1AAA
Muted text6.99:1AA
Accent7.84:1AAA
Destructive5.89:1AA
Dark mode
Text on background20.13:1AAA
Text on card20.13:1AAA
Primary button9.28:1AAA
Secondary button7.96:1AAA
Muted text8.39:1AAA
Accent8.08:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.005 286.312);
  --foreground: oklch(0.109 0.024 281.783);
  --muted: oklch(0.901 0.007 286.249);
  --muted-foreground: oklch(0.395 0.005 286.18);
  --popover: oklch(0.98 0.005 286.312);
  --popover-foreground: oklch(0.109 0.024 281.783);
  --card: oklch(0.98 0.005 286.312);
  --card-foreground: oklch(0.109 0.024 281.783);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.067 0.045 265.179);
  --primary-foreground: oklch(0.754 0.13 282.847);
  --secondary: oklch(0.838 0.008 286.216);
  --secondary-foreground: oklch(0.311 0.011 285.753);
  --accent: oklch(0.751 0.025 285.776);
  --accent-foreground: oklch(0.215 0.013 285.243);
  --destructive: oklch(0.528 0.202 29.677);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.067 0.045 265.179);
  --chart-1: oklch(0.067 0.045 265.179);
  --chart-2: oklch(0.838 0.008 286.216);
  --chart-3: oklch(0.751 0.025 285.776);
  --chart-4: oklch(0.862 0.007 286.25);
  --chart-5: oklch(0.064 0.048 261.427);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.017 283.744);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.228 0.011 285.532);
  --muted-foreground: oklch(0.778 0.004 286.306);
  --popover: oklch(0.13 0.017 283.744);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.13 0.017 283.744);
  --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.067 0.045 265.179);
  --primary-foreground: oklch(0.754 0.13 282.847);
  --secondary: oklch(0.199 0.005 285.895);
  --secondary-foreground: oklch(0.745 0.013 286.068);
  --accent: oklch(0.272 0.021 284.939);
  --accent-foreground: oklch(0.802 0.021 285.91);
  --destructive: oklch(0.625 0.214 28.902);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.067 0.045 265.179);
  --chart-1: oklch(0.067 0.045 265.179);
  --chart-2: oklch(0.199 0.005 285.895);
  --chart-3: oklch(0.272 0.021 284.939);
  --chart-4: oklch(0.231 0.007 285.839);
  --chart-5: oklch(0.064 0.048 261.427);
}