Biplane for shadcn/ui

Biplane is a shadcn/ui theme built around a deep pink primary color (#490d2b) with muted light red accents (#d5cdcd). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the deep pink primary (#490d2b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7fasnow
#000000black
Foreground
#090205black
#fcf8fasnow
Card
#fcf3f7lavenderblush
#030303black
Card foreground
#040103black
#fdfcfcsnow
Popover
#fdf7fasnow
#000000black
Popover foreground
#090205black
#fcf8fasnow
Primary
#490d2bmaroon
#490d2bmaroon
Primary foreground
#ed9cc4plum
#ed9cc4plum
Secondary
#e0e0e0gainsboro
#343233darkslategray
Secondary foreground
#474747darkslategray
#cdcbcclightgrey
Muted
#ecdadagainsboro
#25131cblack
Muted foreground
#4c3d3ddarkslategray
#c2b3basilver
Accent
#d5cdcdlightgrey
#4f4047darkslategray
Accent foreground
#3d3333darkslategray
#e4dde0gainsboro
Destructive
#c54002firebrick
#f75002orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#490d2bmaroon
#490d2bmaroon

Contrast

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

Light mode
Text on background19.40:1AAA
Text on card19.07:1AAA
Primary button7.35:1AAA
Secondary button7.06:1AAA
Muted text7.65:1AAA
Accent7.81:1AAA
Destructive5.12:1AA
Dark mode
Text on background19.94:1AAA
Text on card20.19:1AAA
Primary button7.35:1AAA
Secondary button7.88:1AAA
Muted text8.78:1AAA
Accent7.31:1AAA
Destructive3.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.008 345.343);
  --foreground: oklch(0.104 0.026 344.907);
  --muted: oklch(0.903 0.019 17.514);
  --muted-foreground: oklch(0.377 0.021 18.136);
  --popover: oklch(0.981 0.008 345.343);
  --popover-foreground: oklch(0.104 0.026 344.907);
  --card: oklch(0.972 0.011 345.446);
  --card-foreground: oklch(0.083 0.02 344.907);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.279 0.094 354.585);
  --primary-foreground: oklch(0.784 0.108 348.503);
  --secondary: oklch(0.908 0 180);
  --secondary-foreground: oklch(0.399 0 180);
  --accent: oklch(0.855 0.009 17.336);
  --accent-foreground: oklch(0.332 0.015 17.907);
  --destructive: oklch(0.557 0.179 38.641);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.279 0.094 354.585);
  --chart-1: oklch(0.279 0.094 354.585);
  --chart-2: oklch(0.908 0 180);
  --chart-3: oklch(0.855 0.009 17.336);
  --chart-4: oklch(0.931 0 180);
  --chart-5: oklch(0.281 0.097 355.039);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.004 345.262);
  --muted: oklch(0.216 0.032 348.754);
  --muted-foreground: oklch(0.78 0.02 345.805);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.004 345.262);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.002 345.202);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.279 0.094 354.585);
  --primary-foreground: oklch(0.784 0.108 348.503);
  --secondary: oklch(0.32 0.003 345.418);
  --secondary-foreground: oklch(0.844 0.003 345.226);
  --accent: oklch(0.389 0.025 346.748);
  --accent-foreground: oklch(0.904 0.009 345.391);
  --destructive: oklch(0.658 0.214 38.132);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.279 0.094 354.585);
  --chart-1: oklch(0.279 0.094 354.585);
  --chart-2: oklch(0.32 0.003 345.418);
  --chart-3: oklch(0.389 0.025 346.748);
  --chart-4: oklch(0.349 0.004 345.426);
  --chart-5: oklch(0.281 0.097 355.039);
}