Purse for shadcn/ui

Purse is a shadcn/ui theme built around a blue primary color (#88a8ce) with indigo accents (#8a88ce). The light mode uses a neutral background (#f6fafd). Dark mode keeps the blue primary (#88a8ce) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#f6fafdghostwhite
#020203black
Foreground
#010509black
#ffffffwhite
Card
#f6fafdghostwhite
#020203black
Card foreground
#010509black
#ffffffwhite
Popover
#f6fafdghostwhite
#020203black
Popover foreground
#010509black
#ffffffwhite
Primary
#88a8ceskyblue
#88a8ceskyblue
Primary foreground
#0a1119black
#0a1119black
Secondary
#88ccceskyblue
#88ccceskyblue
Secondary foreground
#0a1919black
#0a1919black
Muted
#d8e8e8gainsboro
#172627black
Muted foreground
#45494adarkslategray
#b5babasilver
Accent
#8a88cemediumpurple
#8a88cemediumpurple
Accent foreground
#0b0a19black
#0b0a19black
Destructive
#7a1906maroon
#f4431forangered
Destructive foreground
#fcc2b6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#88a8ceskyblue
#88a8ceskyblue

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button7.74:1AAA
Secondary button9.90:1AAA
Muted text7.21:1AAA
Accent6.03:1AA
Destructive6.88:1AA
Dark mode
Text on background20.69:1AAA
Text on card20.69:1AAA
Primary button7.74:1AAA
Secondary button9.90:1AAA
Muted text7.97:1AAA
Accent6.03:1AA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 251.502);
  --foreground: oklch(0.109 0.018 239.828);
  --muted: oklch(0.919 0.016 199.367);
  --muted-foreground: oklch(0.403 0.005 199.424);
  --popover: oklch(0.983 0.006 251.502);
  --popover-foreground: oklch(0.109 0.018 239.828);
  --card: oklch(0.983 0.006 251.502);
  --card-foreground: oklch(0.109 0.018 239.828);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.722 0.066 252.093);
  --primary-foreground: oklch(0.176 0.02 252.248);
  --secondary: oklch(0.8 0.069 198.623);
  --secondary-foreground: oklch(0.2 0.02 198.512);
  --accent: oklch(0.656 0.104 284.66);
  --accent-foreground: oklch(0.156 0.031 283.644);
  --destructive: oklch(0.38 0.134 32.838);
  --destructive-foreground: oklch(0.862 0.069 31.419);
  --ring: oklch(0.722 0.066 252.093);
  --chart-1: oklch(0.722 0.066 252.093);
  --chart-2: oklch(0.8 0.069 198.623);
  --chart-3: oklch(0.656 0.104 284.66);
  --chart-4: oklch(0.818 0.063 198.701);
  --chart-5: oklch(0.721 0.071 252.139);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.09 0.006 246.763);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.255 0.021 198.663);
  --muted-foreground: oklch(0.784 0.005 199.525);
  --popover: oklch(0.09 0.006 246.763);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.09 0.006 246.763);
  --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.722 0.066 252.093);
  --primary-foreground: oklch(0.176 0.02 252.248);
  --secondary: oklch(0.8 0.069 198.623);
  --secondary-foreground: oklch(0.2 0.02 198.512);
  --accent: oklch(0.656 0.104 284.66);
  --accent-foreground: oklch(0.156 0.031 283.644);
  --destructive: oklch(0.641 0.219 32.922);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.722 0.066 252.093);
  --chart-1: oklch(0.722 0.066 252.093);
  --chart-2: oklch(0.8 0.069 198.623);
  --chart-3: oklch(0.656 0.104 284.66);
  --chart-4: oklch(0.818 0.063 198.701);
  --chart-5: oklch(0.721 0.071 252.139);
}