Bin for shadcn/ui

Bin is a shadcn/ui theme built around a vivid indigo primary color (#0508e1) with vivid violet accents (#6f05e1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#0508e1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020312black
#fcfcfdwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#02020eblack
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#020312black
#fcfcfdwhite
Primary
#0508e1mediumblue
#0508e1mediumblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#0576e1dodgerblue
#0576e1dodgerblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dce3e9gainsboro
#161c23black
Muted foreground
#525f6bdimgray
#94a1addarkgray
Accent
#6f05e1darkviolet
#6f05e1darkviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a21f11firebrick
#e83926crimson
Destructive foreground
#fdeae8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0508e1mediumblue
#0508e1mediumblue

Contrast

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

Light mode
Text on background20.50:1AAA
Text on card20.19:1AAA
Primary button9.86:1AAA
Secondary button4.46:1AA Large
Muted text5.06:1AA
Accent7.54:1AAA
Destructive6.62:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button9.86:1AAA
Secondary button4.46:1AA Large
Muted text6.49:1AA
Accent7.54:1AAA
Destructive4.14:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.108 0.041 275.772);
  --muted: oklch(0.913 0.011 246.107);
  --muted-foreground: oklch(0.478 0.025 246.557);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.108 0.041 275.772);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.097 0.035 276.134);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.415 0.282 264.5);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.573 0.184 254.542);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.483 0.265 293.449);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.462 0.168 30.498);
  --destructive-foreground: oklch(0.951 0.021 25.178);
  --ring: oklch(0.415 0.282 264.5);
  --chart-1: oklch(0.415 0.282 264.5);
  --chart-2: oklch(0.573 0.184 254.542);
  --chart-3: oklch(0.483 0.265 293.449);
  --chart-4: oklch(0.601 0.194 254.643);
  --chart-5: oklch(0.418 0.287 264.181);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.002 285.585);
  --muted: oklch(0.224 0.016 246.775);
  --muted-foreground: oklch(0.703 0.023 246.332);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.002 285.585);
  --card: oklch(0.092 0 180);
  --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.415 0.282 264.5);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.573 0.184 254.542);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.483 0.265 293.449);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.613 0.214 30.383);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.415 0.282 264.5);
  --chart-1: oklch(0.415 0.282 264.5);
  --chart-2: oklch(0.573 0.184 254.542);
  --chart-3: oklch(0.483 0.265 293.449);
  --chart-4: oklch(0.601 0.194 254.643);
  --chart-5: oklch(0.418 0.287 264.181);
}