Possible for shadcn/ui

Possible is a shadcn/ui theme built around a vivid deep purple primary color (#6d0968) with vivid deep pink accents (#6d0936). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the vivid deep purple primary (#6d0968) on a purple-tinted background (#0b040b).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#0b040bblack
Foreground
#120311black
#fbf9fbsnow
Card
#faf5faghostwhite
#0e060eblack
Card foreground
#0d020dblack
#fdfcfdwhite
Popover
#faf5faghostwhite
#0e060eblack
Popover foreground
#0d020dblack
#fdfcfdwhite
Primary
#6d0968purple
#6d0968purple
Primary foreground
#f8aff5plum
#f8aff5plum
Secondary
#40096dindigo
#40096dindigo
Secondary foreground
#d7aff8plum
#d7aff8plum
Muted
#e1d8e9gainsboro
#1f1627black
Muted foreground
#4b4351darkslategray
#b6aebcsilver
Accent
#6d0936maroon
#6d0936maroon
Accent foreground
#f8afd0lightpink
#f8afd0lightpink
Destructive
#d2460fchocolate
#f06128chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6d0968purple
#6d0968purple

Contrast

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

Light mode
Text on background19.08:1AAA
Text on card18.88:1AAA
Primary button6.61:1AA
Secondary button7.72:1AAA
Muted text6.84:1AA
Accent6.93:1AA
Destructive4.55:1AA
Dark mode
Text on background19.31:1AAA
Text on card19.51:1AAA
Primary button6.61:1AA
Secondary button7.72:1AAA
Muted text8.11:1AAA
Accent6.93:1AA
Destructive6.44:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 327.088);
  --foreground: oklch(0.137 0.044 329.363);
  --muted: oklch(0.894 0.025 310.176);
  --muted-foreground: oklch(0.396 0.024 309.876);
  --popover: oklch(0.975 0.008 327.114);
  --popover-foreground: oklch(0.122 0.039 329.123);
  --card: oklch(0.975 0.008 327.114);
  --card-foreground: oklch(0.122 0.039 329.123);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.375 0.163 330.709);
  --primary-foreground: oklch(0.845 0.124 328.302);
  --secondary: oklch(0.307 0.151 302.115);
  --secondary-foreground: oklch(0.815 0.11 309.167);
  --accent: oklch(0.35 0.133 1.515);
  --accent-foreground: oklch(0.833 0.095 350.749);
  --destructive: oklch(0.586 0.185 38.003);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.375 0.163 330.709);
  --chart-1: oklch(0.375 0.163 330.709);
  --chart-2: oklch(0.307 0.151 302.115);
  --chart-3: oklch(0.35 0.133 1.515);
  --chart-4: oklch(0.333 0.166 301.816);
  --chart-5: oklch(0.378 0.166 330.768);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.021 328.155);
  --foreground: oklch(0.984 0.003 327.067);
  --muted: oklch(0.221 0.035 308.915);
  --muted-foreground: oklch(0.762 0.02 310.189);
  --popover: oklch(0.14 0.024 328.387);
  --popover-foreground: oklch(0.992 0.001 327.052);
  --card: oklch(0.14 0.024 328.387);
  --card-foreground: oklch(0.992 0.001 327.052);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.375 0.163 330.709);
  --primary-foreground: oklch(0.845 0.124 328.302);
  --secondary: oklch(0.307 0.151 302.115);
  --secondary-foreground: oklch(0.815 0.11 309.167);
  --accent: oklch(0.35 0.133 1.515);
  --accent-foreground: oklch(0.833 0.095 350.749);
  --destructive: oklch(0.668 0.189 39.82);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.375 0.163 330.709);
  --chart-1: oklch(0.375 0.163 330.709);
  --chart-2: oklch(0.307 0.151 302.115);
  --chart-3: oklch(0.35 0.133 1.515);
  --chart-4: oklch(0.333 0.166 301.816);
  --chart-5: oklch(0.378 0.166 330.768);
}