Blue Sonki Puma for shadcn/ui

Blue Sonki Puma is a shadcn/ui theme built around a blue primary color (#3a84d9) with neutral gray accents (#c8ccd0). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#3a84d9) on a neutral background (#020204).

Color palette

TokenLightDark
Background
#ffffffwhite
#020204black
Foreground
#060c13black
#ffffffwhite
Card
#fcfcfcsnow
#030507black
Card foreground
#050a10black
#ffffffwhite
Popover
#ffffffwhite
#020204black
Popover foreground
#060c13black
#ffffffwhite
Primary
#3a84d9royalblue
#3a84d9royalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c8ccd0lightgrey
#25292cdarkslategray
Secondary foreground
#2f3337darkslategray
#bcc1c7silver
Muted
#cddae9gainsboro
#162332darkslategray
Muted foreground
#515252darkslategray
#adadaedarkgray
Accent
#c8ccd0lightgrey
#25292cdarkslategray
Accent foreground
#2f3337darkslategray
#bcc1c7silver
Destructive
#bb320cfirebrick
#f15327tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e8eaeelavender
#1a1e23black
Input
#e8eaeelavender
#1a1e23black
Ring
#3a84d9royalblue
#3a84d9royalblue

Contrast

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

Light mode
Text on background19.63:1AAA
Text on card19.43:1AAA
Primary button3.81:1AA Large
Secondary button7.87:1AAA
Muted text5.54:1AA
Accent7.87:1AAA
Destructive5.88:1AA
Dark mode
Text on background20.70:1AAA
Text on card20.41:1AAA
Primary button3.81:1AA Large
Secondary button8.12:1AAA
Muted text7.11:1AAA
Accent8.12:1AAA
Destructive3.49:1AA Large

CSS variables

Paste this into your globals.css to use Blue Sonki Puma in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.153 0.019 250.258);
  --muted: oklch(0.884 0.025 251.665);
  --muted-foreground: oklch(0.437 0.002 251.483);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.153 0.019 250.258);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.141 0.016 247.411);
  --border: oklch(0.937 0.005 251.497);
  --input: oklch(0.937 0.005 251.497);
  --primary: oklch(0.61 0.149 253.911);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.843 0.006 251.512);
  --secondary-foreground: oklch(0.318 0.008 251.649);
  --accent: oklch(0.843 0.006 251.512);
  --accent-foreground: oklch(0.318 0.008 251.649);
  --destructive: oklch(0.525 0.179 34.568);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.61 0.149 253.911);
  --chart-1: oklch(0.61 0.149 253.911);
  --chart-2: oklch(0.843 0.006 251.512);
  --chart-3: oklch(0.843 0.006 251.512);
  --chart-4: oklch(0.867 0.005 251.501);
  --chart-5: oklch(0.61 0.155 254.108);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.007 245.741);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.251 0.034 252.422);
  --muted-foreground: oklch(0.748 0.002 251.467);
  --popover: oklch(0.089 0.007 245.741);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.112 0.009 245.741);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.234 0.011 251.807);
  --input: oklch(0.234 0.011 251.807);
  --primary: oklch(0.61 0.149 253.911);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.277 0.009 251.69);
  --secondary-foreground: oklch(0.81 0.01 251.55);
  --accent: oklch(0.277 0.009 251.69);
  --accent-foreground: oklch(0.81 0.01 251.55);
  --destructive: oklch(0.653 0.202 35.629);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.61 0.149 253.911);
  --chart-1: oklch(0.61 0.149 253.911);
  --chart-2: oklch(0.277 0.009 251.69);
  --chart-3: oklch(0.277 0.009 251.69);
  --chart-4: oklch(0.308 0.01 251.699);
  --chart-5: oklch(0.61 0.155 254.108);
}