Chopsticks for shadcn/ui

Chopsticks is a shadcn/ui theme built around a near-black primary color (#050005) with near-black accents (#050003). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#050005) on a purple-tinted background (#0a050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a050ablack
Foreground
#150317black
#f8f6f8whitesmoke
Card
#fcfcfcsnow
#0d070eblack
Card foreground
#110212black
#faf9fbghostwhite
Popover
#fcfcfcsnow
#0d070eblack
Popover foreground
#110212black
#faf9fbghostwhite
Primary
#050005black
#050005black
Primary foreground
#f238ffmagenta
#f238ffmagenta
Secondary
#020005black
#020005black
Secondary foreground
#c89effplum
#c89effplum
Muted
#e0dfe2gainsboro
#1e1d20black
Muted foreground
#534a5edarkslategray
#aaa1b5darkgray
Accent
#050003black
#050003black
Accent foreground
#ff38a9deeppink
#ff38a9deeppink
Destructive
#732b07saddlebrown
#f1641echocolate
Destructive foreground
#facab2peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#050005black
#050005black

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card19.73:1AAA
Primary button6.72:1AA
Secondary button9.74:1AAA
Muted text6.30:1AA
Accent6.34:1AA
Destructive6.79:1AA
Dark mode
Text on background18.78:1AAA
Text on card18.99:1AAA
Primary button6.72:1AA
Secondary button9.74:1AAA
Muted text6.75:1AA
Accent6.34:1AA
Destructive6.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.149 0.053 325.381);
  --muted: oklch(0.905 0.004 305.675);
  --muted-foreground: oklch(0.426 0.035 304.653);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.135 0.047 325.521);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.135 0.047 325.521);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.08 0.037 326.714);
  --primary-foreground: oklch(0.7 0.294 325.063);
  --secondary: oklch(0.068 0.035 308.721);
  --secondary-foreground: oklch(0.774 0.141 303.214);
  --accent: oklch(0.078 0.033 341.854);
  --accent-foreground: oklch(0.679 0.248 351.58);
  --destructive: oklch(0.39 0.11 42.37);
  --destructive-foreground: oklch(0.875 0.064 47.975);
  --ring: oklch(0.08 0.037 326.714);
  --chart-1: oklch(0.08 0.037 326.714);
  --chart-2: oklch(0.068 0.035 308.721);
  --chart-3: oklch(0.078 0.033 341.854);
  --chart-4: oklch(0.111 0.057 305.356);
  --chart-5: oklch(0.079 0.038 326.812);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.016 324.627);
  --foreground: oklch(0.976 0.003 323.653);
  --muted: oklch(0.234 0.006 305.392);
  --muted-foreground: oklch(0.722 0.03 305.179);
  --popover: oklch(0.141 0.019 324.4);
  --popover-foreground: oklch(0.984 0.002 323.647);
  --card: oklch(0.141 0.019 324.4);
  --card-foreground: oklch(0.984 0.002 323.647);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.08 0.037 326.714);
  --primary-foreground: oklch(0.7 0.294 325.063);
  --secondary: oklch(0.068 0.035 308.721);
  --secondary-foreground: oklch(0.774 0.141 303.214);
  --accent: oklch(0.078 0.033 341.854);
  --accent-foreground: oklch(0.679 0.248 351.58);
  --destructive: oklch(0.672 0.189 42.472);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.08 0.037 326.714);
  --chart-1: oklch(0.08 0.037 326.714);
  --chart-2: oklch(0.068 0.035 308.721);
  --chart-3: oklch(0.078 0.033 341.854);
  --chart-4: oklch(0.111 0.057 305.356);
  --chart-5: oklch(0.079 0.038 326.812);
}