Blackberry for shadcn/ui

Blackberry is a shadcn/ui theme built around a light purple primary color (#e3c7e5) with light pink accents (#e5c7d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#e3c7e5) on a purple-tinted background (#0a050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a050ablack
Foreground
#040104black
#f9f6f9whitesmoke
Card
#fcfcfcsnow
#0d070dblack
Card foreground
#000000black
#fbf9fbsnow
Popover
#fcfcfcsnow
#0d070dblack
Popover foreground
#000000black
#fbf9fbsnow
Primary
#e3c7e5thistle
#e3c7e5thistle
Primary foreground
#502754darkslategray
#502754darkslategray
Secondary
#d4c7e5thistle
#d4c7e5thistle
Secondary foreground
#392754darkslategray
#392754darkslategray
Muted
#eae7eelavender
#141118black
Muted foreground
#565459dimgray
#a8a6abdarkgray
Accent
#e5c7d9thistle
#e5c7d9thistle
Accent foreground
#542741darkslategray
#542741darkslategray
Destructive
#df1c07red
#f94c39tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e3c7e5thistle
#e3c7e5thistle

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.54:1AAA
Primary button7.71:1AAA
Secondary button8.22:1AAA
Muted text6.10:1AA
Accent7.75:1AAA
Destructive4.88:1AA
Dark mode
Text on background18.83:1AAA
Text on card19.03:1AAA
Primary button7.71:1AAA
Secondary button8.22:1AAA
Muted text7.77:1AAA
Accent7.75:1AAA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.084 0.025 325.299);
  --muted: oklch(0.932 0.011 304.883);
  --muted-foreground: oklch(0.45 0.009 304.775);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.862 0.051 323.4);
  --primary-foreground: oklch(0.347 0.091 324.141);
  --secondary: oklch(0.85 0.044 304.338);
  --secondary-foreground: oklch(0.317 0.08 301.188);
  --accent: oklch(0.861 0.041 342.092);
  --accent-foreground: oklch(0.343 0.076 345.852);
  --destructive: oklch(0.575 0.224 30.359);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.862 0.051 323.4);
  --chart-1: oklch(0.862 0.051 323.4);
  --chart-2: oklch(0.85 0.044 304.338);
  --chart-3: oklch(0.861 0.041 342.092);
  --chart-4: oklch(0.878 0.035 304.494);
  --chart-5: oklch(0.861 0.055 323.421);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.016 324.11);
  --foreground: oklch(0.976 0.005 323.159);
  --muted: oklch(0.183 0.016 303.804);
  --muted-foreground: oklch(0.728 0.008 304.897);
  --popover: oklch(0.141 0.018 323.828);
  --popover-foreground: oklch(0.984 0.003 323.151);
  --card: oklch(0.141 0.018 323.828);
  --card-foreground: oklch(0.984 0.003 323.151);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.862 0.051 323.4);
  --primary-foreground: oklch(0.347 0.091 324.141);
  --secondary: oklch(0.85 0.044 304.338);
  --secondary-foreground: oklch(0.317 0.08 301.188);
  --accent: oklch(0.861 0.041 342.092);
  --accent-foreground: oklch(0.343 0.076 345.852);
  --destructive: oklch(0.66 0.212 30.007);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.862 0.051 323.4);
  --chart-1: oklch(0.862 0.051 323.4);
  --chart-2: oklch(0.85 0.044 304.338);
  --chart-3: oklch(0.861 0.041 342.092);
  --chart-4: oklch(0.878 0.035 304.494);
  --chart-5: oklch(0.861 0.055 323.421);
}