Basin for shadcn/ui

Basin is a shadcn/ui theme built around a near-white primary color (#f0f0f0) with near-white accents (#f0f0f0). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f0f0f0) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#ffffffwhite
#040101black
Foreground
#040101black
#fdfcfcsnow
Card
#ffffffwhite
#040101black
Card foreground
#040101black
#fdfcfcsnow
Popover
#ffffffwhite
#040101black
Popover foreground
#040101black
#fdfcfcsnow
Primary
#f0f0f0whitesmoke
#f0f0f0whitesmoke
Primary foreground
#575757dimgray
#575757dimgray
Secondary
#f0f0f0whitesmoke
#f0f0f0whitesmoke
Secondary foreground
#575757dimgray
#575757dimgray
Muted
#e7e4e4gainsboro
#1b1818black
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#f0f0f0whitesmoke
#f0f0f0whitesmoke
Accent foreground
#575757dimgray
#575757dimgray
Destructive
#881106darkred
#f42310orangered
Destructive foreground
#fcc9c5pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0f0f0whitesmoke
#f0f0f0whitesmoke

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.79:1AAA
Primary button6.32:1AA
Secondary button6.32:1AA
Muted text6.47:1AA
Accent6.32:1AA
Destructive6.68:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button6.32:1AA
Secondary button6.32:1AA
Muted text8.14:1AAA
Accent6.32:1AA
Destructive4.12:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.083 0.012 20.039);
  --muted: oklch(0.921 0.004 17.228);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.083 0.012 20.039);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.083 0.012 20.039);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.954 0 180);
  --primary-foreground: oklch(0.456 0 180);
  --secondary: oklch(0.954 0 180);
  --secondary-foreground: oklch(0.456 0 180);
  --accent: oklch(0.954 0 180);
  --accent-foreground: oklch(0.456 0 180);
  --destructive: oklch(0.403 0.154 30.17);
  --destructive-foreground: oklch(0.88 0.059 24.357);
  --ring: oklch(0.954 0 180);
  --chart-1: oklch(0.954 0 180);
  --chart-2: oklch(0.954 0 180);
  --chart-3: oklch(0.954 0 180);
  --chart-4: oklch(0.977 0 180);
  --chart-5: oklch(0.954 0.001 17.175);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.013 20.126);
  --foreground: oklch(0.992 0.001 17.172);
  --muted: oklch(0.212 0.006 17.609);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0.083 0.013 20.126);
  --popover-foreground: oklch(0.992 0.001 17.172);
  --card: oklch(0.083 0.013 20.126);
  --card-foreground: oklch(0.992 0.001 17.172);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.954 0 180);
  --primary-foreground: oklch(0.456 0 180);
  --secondary: oklch(0.954 0 180);
  --secondary-foreground: oklch(0.456 0 180);
  --accent: oklch(0.954 0 180);
  --accent-foreground: oklch(0.456 0 180);
  --destructive: oklch(0.618 0.239 30.088);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.954 0 180);
  --chart-1: oklch(0.954 0 180);
  --chart-2: oklch(0.954 0 180);
  --chart-3: oklch(0.954 0 180);
  --chart-4: oklch(0.977 0 180);
  --chart-5: oklch(0.954 0.001 17.175);
}