Personal for shadcn/ui

Personal is a shadcn/ui theme built around a vivid deep purple primary color (#4b0243) with muted light purple accents (#dfcedd). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the vivid deep purple primary (#4b0243) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7fcsnow
#000000black
Foreground
#0d030cblack
#fdfcfdwhite
Card
#fdf7fcsnow
#000000black
Card foreground
#0d030cblack
#fdfcfdwhite
Popover
#fdf7fcsnow
#000000black
Popover foreground
#0d030cblack
#fdfcfdwhite
Primary
#4b0243indigo
#4b0243indigo
Primary foreground
#fc83f0violet
#fc83f0violet
Secondary
#eee8edlavender
#231f22black
Secondary foreground
#5e455bdimgray
#beb7bdsilver
Muted
#f5eff5whitesmoke
#100a0fblack
Muted foreground
#5e505cdimgray
#afa1aedarkgray
Accent
#dfceddgainsboro
#392d37darkslategray
Accent foreground
#4a3047darkslategray
#d2c6d0thistle
Destructive
#8f390asaddlebrown
#ea5c10chocolate
Destructive foreground
#fcdfcfbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4b0243indigo
#4b0243indigo

Contrast

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

Light mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button6.95:1AA
Secondary button6.99:1AA
Muted text6.69:1AA
Accent7.73:1AAA
Destructive6.03:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button6.95:1AA
Secondary button8.25:1AAA
Muted text7.96:1AAA
Accent7.91:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.009 328.689);
  --foreground: oklch(0.122 0.034 330.427);
  --muted: oklch(0.959 0.009 328.7);
  --muted-foreground: oklch(0.449 0.027 329.233);
  --popover: oklch(0.982 0.009 328.689);
  --popover-foreground: oklch(0.122 0.034 330.427);
  --card: oklch(0.982 0.009 328.689);
  --card-foreground: oklch(0.122 0.034 330.427);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.285 0.125 333.287);
  --primary-foreground: oklch(0.78 0.195 331.103);
  --secondary: oklch(0.936 0.01 328.708);
  --secondary-foreground: oklch(0.426 0.048 329.762);
  --accent: oklch(0.869 0.028 328.944);
  --accent-foreground: oklch(0.35 0.052 330.13);
  --destructive: oklch(0.457 0.129 43.195);
  --destructive-foreground: oklch(0.923 0.038 50.156);
  --ring: oklch(0.285 0.125 333.287);
  --chart-1: oklch(0.285 0.125 333.287);
  --chart-2: oklch(0.936 0.01 328.708);
  --chart-3: oklch(0.869 0.028 328.944);
  --chart-4: oklch(0.96 0.006 328.663);
  --chart-5: oklch(0.287 0.127 333.373);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.002 328.61);
  --muted: oklch(0.154 0.015 329.6);
  --muted-foreground: oklch(0.726 0.024 328.949);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.002 328.61);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.002 328.61);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.285 0.125 333.287);
  --primary-foreground: oklch(0.78 0.195 331.103);
  --secondary: oklch(0.246 0.007 328.922);
  --secondary-foreground: oklch(0.786 0.012 328.754);
  --accent: oklch(0.315 0.024 329.391);
  --accent-foreground: oklch(0.84 0.019 328.834);
  --destructive: oklch(0.651 0.19 42.24);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.285 0.125 333.287);
  --chart-1: oklch(0.285 0.125 333.287);
  --chart-2: oklch(0.246 0.007 328.922);
  --chart-3: oklch(0.315 0.024 329.391);
  --chart-4: oklch(0.278 0.009 328.941);
  --chart-5: oklch(0.287 0.127 333.373);
}