Webbed for shadcn/ui

Webbed is a shadcn/ui theme built around a deep pink primary color (#4a0d20) with deep teal accents (#0d4a36). The light mode uses a neutral background (#fefbfc). Dark mode keeps the deep pink primary (#4a0d20) on a pink-tinted background (#0f0508).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0f0508black
Foreground
#000000black
#fdfcfcsnow
Card
#fcf8f9snow
#13070bblack
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfcsnow
#0f0508black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#4a0d20maroon
#4a0d20maroon
Primary foreground
#ed9bb5lightpink
#ed9bb5lightpink
Secondary
#0d4a36darkslategray
#0d4a36darkslategray
Secondary foreground
#45deadmediumturquoise
#45deadmediumturquoise
Muted
#e9f1efwhitesmoke
#0e1613black
Muted foreground
#40544ddarkslategray
#abbfb9silver
Accent
#0d4a36darkslategray
#0d4a36darkslategray
Accent foreground
#45deadmediumturquoise
#45deadmediumturquoise
Destructive
#811709maroon
#e52910orangered
Destructive foreground
#fbc8c1pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4a0d20maroon
#4a0d20maroon

Contrast

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

Light mode
Text on background20.44:1AAA
Text on card19.89:1AAA
Primary button7.28:1AAA
Secondary button6.02:1AA
Muted text7.05:1AAA
Accent6.02:1AA
Destructive6.87:1AA
Dark mode
Text on background19.57:1AAA
Text on card19.79:1AAA
Primary button7.28:1AAA
Secondary button6.02:1AA
Muted text9.54:1AAA
Accent6.02:1AA
Destructive4.51: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.003 355.692);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.952 0.009 175.352);
  --muted-foreground: oklch(0.426 0.026 173.706);
  --popover: oklch(0.991 0.003 355.692);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.005 355.77);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.276 0.091 6.752);
  --primary-foreground: oklch(0.779 0.103 359.231);
  --secondary: oklch(0.365 0.069 166.696);
  --secondary-foreground: oklch(0.809 0.146 167.455);
  --accent: oklch(0.365 0.069 166.696);
  --accent-foreground: oklch(0.809 0.146 167.455);
  --destructive: oklch(0.392 0.142 31.036);
  --destructive-foreground: oklch(0.875 0.059 27.038);
  --ring: oklch(0.276 0.091 6.752);
  --chart-1: oklch(0.276 0.091 6.752);
  --chart-2: oklch(0.365 0.069 166.696);
  --chart-3: oklch(0.365 0.069 166.696);
  --chart-4: oklch(0.407 0.078 166.376);
  --chart-5: oklch(0.277 0.094 7.337);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.02 356.809);
  --foreground: oklch(0.991 0.002 355.67);
  --muted: oklch(0.19 0.012 173.563);
  --muted-foreground: oklch(0.787 0.023 174.748);
  --popover: oklch(0.136 0.02 356.809);
  --popover-foreground: oklch(0.991 0.002 355.67);
  --card: oklch(0.148 0.024 358.697);
  --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.276 0.091 6.752);
  --primary-foreground: oklch(0.779 0.103 359.231);
  --secondary: oklch(0.365 0.069 166.696);
  --secondary-foreground: oklch(0.809 0.146 167.455);
  --accent: oklch(0.365 0.069 166.696);
  --accent-foreground: oklch(0.809 0.146 167.455);
  --destructive: oklch(0.594 0.223 30.912);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.276 0.091 6.752);
  --chart-1: oklch(0.276 0.091 6.752);
  --chart-2: oklch(0.365 0.069 166.696);
  --chart-3: oklch(0.365 0.069 166.696);
  --chart-4: oklch(0.407 0.078 166.376);
  --chart-5: oklch(0.277 0.094 7.337);
}