Gifted for shadcn/ui

Gifted is a shadcn/ui theme built around a purple primary color (#b643b6) with muted light purple accents (#d1b3d1). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the purple primary (#b643b6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8fcsnow
#000000black
Foreground
#0d020dblack
#ffffffwhite
Card
#fcf8fcsnow
#000000black
Card foreground
#0d020dblack
#ffffffwhite
Popover
#fcf8fcsnow
#000000black
Popover foreground
#0d020dblack
#ffffffwhite
Primary
#b643b6mediumorchid
#b643b6mediumorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dbccdblightgrey
#312631darkslategray
Secondary foreground
#453045darkslategray
#ccbdccthistle
Muted
#e9e2e9lavender
#1d161dblack
Muted foreground
#5b525bdimgray
#ada4addarkgray
Accent
#d1b3d1thistle
#4c344cdarkslategray
Accent foreground
#331f33darkslategray
#e0d1e0gainsboro
Destructive
#b12e02firebrick
#fd5c26tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b643b6mediumorchid
#b643b6mediumorchid

Contrast

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

Light mode
Text on background19.35:1AAA
Text on card19.35:1AAA
Primary button4.67:1AA
Secondary button7.76:1AAA
Muted text5.88:1AA
Accent7.97:1AAA
Destructive6.46:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button4.67:1AA
Secondary button8.09:1AAA
Muted text7.34:1AAA
Accent7.58:1AAA
Destructive6.71:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 325.625);
  --foreground: oklch(0.122 0.04 327.679);
  --muted: oklch(0.92 0.013 325.683);
  --muted-foreground: oklch(0.451 0.018 325.867);
  --popover: oklch(0.983 0.006 325.625);
  --popover-foreground: oklch(0.122 0.04 327.679);
  --card: oklch(0.983 0.006 325.625);
  --card-foreground: oklch(0.122 0.04 327.679);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.585 0.2 327.759);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.862 0.027 325.81);
  --secondary-foreground: oklch(0.342 0.046 326.521);
  --accent: oklch(0.801 0.054 326.069);
  --accent-foreground: oklch(0.273 0.047 326.76);
  --destructive: oklch(0.502 0.174 35.359);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.585 0.2 327.759);
  --chart-1: oklch(0.585 0.2 327.759);
  --chart-2: oklch(0.862 0.027 325.81);
  --chart-3: oklch(0.801 0.054 326.069);
  --chart-4: oklch(0.887 0.022 325.763);
  --chart-5: oklch(0.588 0.21 327.839);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.212 0.019 326.219);
  --muted-foreground: oklch(0.729 0.016 325.737);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.585 0.2 327.759);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.285 0.026 326.229);
  --secondary-foreground: oklch(0.815 0.027 325.821);
  --accent: oklch(0.361 0.052 326.584);
  --accent-foreground: oklch(0.878 0.025 325.789);
  --destructive: oklch(0.681 0.206 37.364);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.585 0.2 327.759);
  --chart-1: oklch(0.585 0.2 327.759);
  --chart-2: oklch(0.285 0.026 326.229);
  --chart-3: oklch(0.361 0.052 326.584);
  --chart-4: oklch(0.315 0.03 326.253);
  --chart-5: oklch(0.588 0.21 327.839);
}