Napkin for shadcn/ui

Napkin is a shadcn/ui theme built around an orange primary color (#975f49) with cyan accents (#498197). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#975f49) on a neutral background (#070403).

Color palette

TokenLightDark
Background
#ffffffwhite
#070403black
Foreground
#110703black
#ffffffwhite
Card
#ffffffwhite
#070403black
Card foreground
#110703black
#ffffffwhite
Popover
#ffffffwhite
#070403black
Popover foreground
#110703black
#ffffffwhite
Primary
#975f49sienna
#975f49sienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#498197steelblue
#498197steelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ebf2f5whitesmoke
#0a1114black
Muted foreground
#4a5154darkslategray
#abb2b5darkgray
Accent
#498197steelblue
#498197steelblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d32009firebrick
#f52e14orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#975f49sienna
#975f49sienna

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button5.16:1AA
Secondary button4.29:1AA Large
Muted text7.13:1AAA
Accent4.29:1AA Large
Destructive5.29:1AA
Dark mode
Text on background20.41:1AAA
Text on card20.41:1AAA
Primary button5.16:1AA
Secondary button4.29:1AA Large
Muted text8.82:1AAA
Accent4.29:1AA Large
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.021 49.888);
  --muted: oklch(0.956 0.008 223.219);
  --muted-foreground: oklch(0.43 0.01 223.381);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.143 0.021 49.888);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.143 0.021 49.888);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.543 0.081 42.255);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.574 0.068 225.661);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.574 0.068 225.661);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.555 0.212 30.793);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.543 0.081 42.255);
  --chart-1: oklch(0.543 0.081 42.255);
  --chart-2: oklch(0.574 0.068 225.661);
  --chart-3: oklch(0.574 0.068 225.661);
  --chart-4: oklch(0.602 0.072 225.689);
  --chart-5: oklch(0.544 0.088 42.17);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.113 0.011 49.43);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.174 0.012 224.178);
  --muted-foreground: oklch(0.759 0.009 223.247);
  --popover: oklch(0.113 0.011 49.43);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.113 0.011 49.43);
  --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.543 0.081 42.255);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.574 0.068 225.661);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.574 0.068 225.661);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.626 0.234 30.947);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.543 0.081 42.255);
  --chart-1: oklch(0.543 0.081 42.255);
  --chart-2: oklch(0.574 0.068 225.661);
  --chart-3: oklch(0.574 0.068 225.661);
  --chart-4: oklch(0.602 0.072 225.689);
  --chart-5: oklch(0.544 0.088 42.17);
}