Webbed for shadcn/ui

Webbed is a shadcn/ui theme built around a light purple primary color (#e2bbd8) with muted light purple accents (#d0becb). The light mode uses a neutral background (#fefbfd). Dark mode keeps the light purple primary (#e2bbd8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfdsnow
#000000black
Foreground
#0d020ablack
#fbf9fasnow
Card
#fdf7fbsnow
#030303black
Card foreground
#090207black
#fdfcfdwhite
Popover
#fdf7fbsnow
#030303black
Popover foreground
#090207black
#fdfcfdwhite
Primary
#e2bbd8thistle
#e2bbd8thistle
Primary foreground
#4b2040darkslategray
#4b2040darkslategray
Secondary
#d9d3d8lightgrey
#3a2735darkslategray
Secondary foreground
#42383fdarkslategray
#d4bfcethistle
Muted
#eddee9lavender
#21121dblack
Muted foreground
#513d4cdarkslategray
#c2aebcsilver
Accent
#d0becbthistle
#512f48darkslategray
Accent foreground
#352731darkslategray
#e3cedegainsboro
Destructive
#9e1010darkred
#da1616crimson
Destructive foreground
#fce3e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2bbd8thistle
#e2bbd8thistle

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.41:1AAA
Primary button7.81:1AAA
Secondary button7.63:1AAA
Muted text7.65:1AAA
Accent8.00:1AAA
Destructive6.81:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.20:1AAA
Primary button7.81:1AAA
Secondary button7.97:1AAA
Muted text8.61:1AAA
Accent7.68:1AAA
Destructive5.11:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 334.599);
  --foreground: oklch(0.121 0.032 335.911);
  --muted: oklch(0.916 0.021 334.921);
  --muted-foreground: oklch(0.389 0.036 336.076);
  --popover: oklch(0.982 0.008 334.673);
  --popover-foreground: oklch(0.105 0.028 335.339);
  --card: oklch(0.982 0.008 334.673);
  --card-foreground: oklch(0.105 0.028 335.339);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.835 0.058 335.696);
  --primary-foreground: oklch(0.317 0.079 338.545);
  --secondary: oklch(0.873 0.01 334.72);
  --secondary-foreground: oklch(0.355 0.018 335.396);
  --accent: oklch(0.82 0.027 335.092);
  --accent-foreground: oklch(0.292 0.029 336.147);
  --destructive: oklch(0.445 0.173 28.123);
  --destructive-foreground: oklch(0.937 0.028 17.655);
  --ring: oklch(0.835 0.058 335.696);
  --chart-1: oklch(0.835 0.058 335.696);
  --chart-2: oklch(0.873 0.01 334.72);
  --chart-3: oklch(0.82 0.027 335.092);
  --chart-4: oklch(0.897 0.008 334.679);
  --chart-5: oklch(0.834 0.062 335.782);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.003 334.585);
  --muted: oklch(0.208 0.03 336.888);
  --muted-foreground: oklch(0.771 0.03 335.204);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.992 0.002 334.556);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.002 334.556);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.835 0.058 335.696);
  --primary-foreground: oklch(0.317 0.079 338.545);
  --secondary: oklch(0.301 0.035 336.466);
  --secondary-foreground: oklch(0.827 0.03 335.159);
  --accent: oklch(0.356 0.063 337.394);
  --accent-foreground: oklch(0.874 0.031 335.127);
  --destructive: oklch(0.564 0.223 28.378);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.835 0.058 335.696);
  --chart-1: oklch(0.835 0.058 335.696);
  --chart-2: oklch(0.301 0.035 336.466);
  --chart-3: oklch(0.356 0.063 337.394);
  --chart-4: oklch(0.33 0.04 336.525);
  --chart-5: oklch(0.834 0.062 335.782);
}