Visible for shadcn/ui

Visible is a shadcn/ui theme built around a muted violet primary color (#9b7bad) with muted purple accents (#ad7ba5). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the muted violet primary (#9b7bad) on a violet-tinted background (#0c0410).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#0c0410black
Foreground
#030104black
#fdfcfdwhite
Card
#f9f3fcghostwhite
#0f0614black
Card foreground
#000000black
#ffffffwhite
Popover
#f9f3fcghostwhite
#0f0614black
Popover foreground
#000000black
#ffffffwhite
Primary
#9b7badlightslategray
#9b7badlightslategray
Primary foreground
#000000black
#000000black
Secondary
#837badlightslategray
#837badlightslategray
Secondary foreground
#000000black
#000000black
Muted
#ecebf4lavender
#0c0b14black
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#ad7ba5rosybrown
#ad7ba5rosybrown
Accent foreground
#000000black
#000000black
Destructive
#aa0b08darkred
#db0e0ared
Destructive foreground
#fee7e7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9b7badlightslategray
#9b7badlightslategray

Contrast

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

Light mode
Text on background19.60:1AAA
Text on card19.21:1AAA
Primary button5.84:1AA
Secondary button5.40:1AA
Muted text7.15:1AAA
Accent6.15:1AA
Destructive6.42:1AA
Dark mode
Text on background19.68:1AAA
Text on card19.91:1AAA
Primary button5.84:1AA
Secondary button5.40:1AA
Muted text9.34:1AAA
Accent6.15:1AA
Destructive5.14:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.009 314.168);
  --foreground: oklch(0.081 0.022 316.489);
  --muted: oklch(0.944 0.013 293.052);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.971 0.014 314.142);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.971 0.014 314.142);
  --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.632 0.081 313.507);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.609 0.074 290.899);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.647 0.084 331.817);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.468 0.187 28.961);
  --destructive-foreground: oklch(0.946 0.025 18.776);
  --ring: oklch(0.632 0.081 313.507);
  --chart-1: oklch(0.632 0.081 313.507);
  --chart-2: oklch(0.609 0.074 290.899);
  --chart-3: oklch(0.647 0.084 331.817);
  --chart-4: oklch(0.638 0.068 291.215);
  --chart-5: oklch(0.628 0.091 313.403);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.03 314.449);
  --foreground: oklch(0.991 0.002 314.208);
  --muted: oklch(0.154 0.02 290.718);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.144 0.035 313.536);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.144 0.035 313.536);
  --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.632 0.081 313.507);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.609 0.074 290.899);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.647 0.084 331.817);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.564 0.226 29.048);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.632 0.081 313.507);
  --chart-1: oklch(0.632 0.081 313.507);
  --chart-2: oklch(0.609 0.074 290.899);
  --chart-3: oklch(0.647 0.084 331.817);
  --chart-4: oklch(0.638 0.068 291.215);
  --chart-5: oklch(0.628 0.091 313.403);
}