Cashew for shadcn/ui

Cashew is a shadcn/ui theme built around a vivid indigo primary color (#2532ef) with vivid violet accents (#7c25ef). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid indigo primary (#2532ef) on a neutral background (#030307).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#030307black
Foreground
#030412black
#f7f7f8whitesmoke
Card
#f7f8fcghostwhite
#04050bblack
Card foreground
#02030dblack
#f9f9faghostwhite
Popover
#fbfbfeghostwhite
#030307black
Popover foreground
#030412black
#f7f7f8whitesmoke
Primary
#2532efroyalblue
#2532efroyalblue
Primary foreground
#e3e4fdlavender
#e3e4fdlavender
Secondary
#2597efdodgerblue
#2597efdodgerblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d0dae1gainsboro
#1e272fdarkslategray
Muted foreground
#62676adimgray
#959a9ddarkgray
Accent
#7c25efblueviolet
#7c25efblueviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#972c02saddlebrown
#fc4903orangered
Destructive foreground
#fedbcdbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2532efroyalblue
#2532efroyalblue

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.36:1AAA
Primary button6.03:1AA
Secondary button3.10:1AA Large
Muted text4.03:1AA Large
Accent6.24:1AA
Destructive6.04:1AA
Dark mode
Text on background19.21:1AAA
Text on card19.36:1AAA
Primary button6.03:1AA
Secondary button3.10:1AA Large
Muted text5.31:1AA
Accent6.24:1AA
Destructive3.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 283.055);
  --foreground: oklch(0.114 0.036 273.881);
  --muted: oklch(0.883 0.014 240.509);
  --muted-foreground: oklch(0.509 0.008 240.501);
  --popover: oklch(0.99 0.003 283.055);
  --popover-foreground: oklch(0.114 0.036 273.881);
  --card: oklch(0.98 0.006 283.001);
  --card-foreground: oklch(0.103 0.031 273.951);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.472 0.269 267.777);
  --primary-foreground: oklch(0.926 0.033 282.476);
  --secondary: oklch(0.659 0.162 247.547);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.525 0.265 294.433);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.455 0.15 37.447);
  --destructive-foreground: oklch(0.917 0.044 42.77);
  --ring: oklch(0.472 0.269 267.777);
  --chart-1: oklch(0.472 0.269 267.777);
  --chart-2: oklch(0.659 0.162 247.547);
  --chart-3: oklch(0.525 0.265 294.433);
  --chart-4: oklch(0.678 0.153 246.349);
  --chart-5: oklch(0.472 0.276 267.236);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.015 279.167);
  --foreground: oklch(0.976 0.002 283.073);
  --muted: oklch(0.268 0.019 241.354);
  --muted-foreground: oklch(0.682 0.007 240.434);
  --popover: oklch(0.102 0.015 279.167);
  --popover-foreground: oklch(0.976 0.002 283.073);
  --card: oklch(0.116 0.017 279.172);
  --card-foreground: oklch(0.984 0.001 283.085);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.472 0.269 267.777);
  --primary-foreground: oklch(0.926 0.033 282.476);
  --secondary: oklch(0.659 0.162 247.547);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.525 0.265 294.433);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.66 0.224 36.263);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.472 0.269 267.777);
  --chart-1: oklch(0.472 0.269 267.777);
  --chart-2: oklch(0.659 0.162 247.547);
  --chart-3: oklch(0.525 0.265 294.433);
  --chart-4: oklch(0.678 0.153 246.349);
  --chart-5: oklch(0.472 0.276 267.236);
}