Blackberry for shadcn/ui

Blackberry is a shadcn/ui theme built around a blue primary color (#9dc3d8) with blue accents (#9da5d8). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the blue primary (#9dc3d8) on a blue-tinted background (#03090c).

Color palette

TokenLightDark
Background
#fbfdfewhite
#03090cblack
Foreground
#010609black
#ffffffwhite
Card
#fbfdfewhite
#03090cblack
Card foreground
#010609black
#ffffffwhite
Popover
#fbfdfewhite
#03090cblack
Popover foreground
#010609black
#ffffffwhite
Primary
#9dc3d8lightsteelblue
#9dc3d8lightsteelblue
Primary foreground
#13252fdarkslategray
#13252fdarkslategray
Secondary
#9dd8cflightblue
#9dd8cflightblue
Secondary foreground
#132f2bdarkslategray
#132f2bdarkslategray
Muted
#d8e9e6gainsboro
#162724black
Muted foreground
#515857dimgray
#a7aeaddarkgray
Accent
#9da5d8lightsteelblue
#9da5d8lightsteelblue
Accent foreground
#13172fblack
#13172fblack
Destructive
#8a200adarkred
#ee3e1borangered
Destructive foreground
#fbd3cbbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9dc3d8lightsteelblue
#9dc3d8lightsteelblue

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card19.94:1AAA
Primary button8.41:1AAA
Secondary button8.93:1AAA
Muted text5.78:1AA
Accent7.40:1AAA
Destructive6.70:1AA
Dark mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button8.41:1AAA
Secondary button8.93:1AAA
Muted text6.89:1AA
Accent7.40:1AAA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 230.699);
  --foreground: oklch(0.117 0.016 222.484);
  --muted: oklch(0.92 0.018 186.097);
  --muted-foreground: oklch(0.452 0.009 186.102);
  --popover: oklch(0.993 0.003 230.699);
  --popover-foreground: oklch(0.117 0.016 222.484);
  --card: oklch(0.993 0.003 230.699);
  --card-foreground: oklch(0.117 0.016 222.484);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.796 0.051 231.719);
  --primary-foreground: oklch(0.255 0.031 233.319);
  --secondary: oklch(0.839 0.062 184.583);
  --secondary-foreground: oklch(0.283 0.036 182.714);
  --accent: oklch(0.734 0.074 276.657);
  --accent-foreground: oklch(0.215 0.048 274.141);
  --destructive: oklch(0.417 0.145 32.826);
  --destructive-foreground: oklch(0.898 0.047 31.235);
  --ring: oklch(0.796 0.051 231.719);
  --chart-1: oklch(0.796 0.051 231.719);
  --chart-2: oklch(0.839 0.062 184.583);
  --chart-3: oklch(0.734 0.074 276.657);
  --chart-4: oklch(0.856 0.055 184.857);
  --chart-5: oklch(0.797 0.054 231.808);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.014 224.986);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.257 0.023 184.116);
  --muted-foreground: oklch(0.746 0.008 186.331);
  --popover: oklch(0.133 0.014 224.986);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.133 0.014 224.986);
  --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.796 0.051 231.719);
  --primary-foreground: oklch(0.255 0.031 233.319);
  --secondary: oklch(0.839 0.062 184.583);
  --secondary-foreground: oklch(0.283 0.036 182.714);
  --accent: oklch(0.734 0.074 276.657);
  --accent-foreground: oklch(0.215 0.048 274.141);
  --destructive: oklch(0.626 0.216 32.852);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.796 0.051 231.719);
  --chart-1: oklch(0.796 0.051 231.719);
  --chart-2: oklch(0.839 0.062 184.583);
  --chart-3: oklch(0.734 0.074 276.657);
  --chart-4: oklch(0.856 0.055 184.857);
  --chart-5: oklch(0.797 0.054 231.808);
}