Shine for shadcn/ui

Shine is a shadcn/ui theme built around a purple primary color (#cc78e3) with green accents (#8fe378). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the purple primary (#cc78e3) on a purple-tinted background (#0d050f).

Color palette

TokenLightDark
Background
#fdfbfewhite
#0d050fblack
Foreground
#0b020dblack
#f8f6f9whitesmoke
Card
#fdfbfewhite
#0d050fblack
Card foreground
#0b020dblack
#f8f6f9whitesmoke
Popover
#fdfbfewhite
#0d050fblack
Popover foreground
#0b020dblack
#f8f6f9whitesmoke
Primary
#cc78e3orchid
#cc78e3orchid
Primary foreground
#1c0722black
#1c0722black
Secondary
#8fe378lightgreen
#8fe378lightgreen
Secondary foreground
#0d2207black
#0d2207black
Muted
#e2e5e0gainsboro
#1b1f1ablack
Muted foreground
#5c7156dimgray
#94a98edarkseagreen
Accent
#8fe378lightgreen
#8fe378lightgreen
Accent foreground
#0d2207black
#0d2207black
Destructive
#d4160cfirebrick
#f22c21crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cc78e3orchid
#cc78e3orchid

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button6.65:1AA
Secondary button10.76:1AAA
Muted text4.19:1AA Large
Accent10.76:1AAA
Destructive5.35:1AA
Dark mode
Text on background18.67:1AAA
Text on card18.67:1AAA
Primary button6.65:1AA
Secondary button10.76:1AAA
Muted text6.65:1AA
Accent10.76:1AAA
Destructive4.07:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 318.889);
  --foreground: oklch(0.117 0.038 320.871);
  --muted: oklch(0.919 0.008 138.894);
  --muted-foreground: oklch(0.524 0.05 138.947);
  --popover: oklch(0.991 0.003 318.889);
  --popover-foreground: oklch(0.117 0.038 320.871);
  --card: oklch(0.991 0.003 318.889);
  --card-foreground: oklch(0.117 0.038 320.871);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.703 0.174 318.651);
  --primary-foreground: oklch(0.18 0.059 318.48);
  --secondary: oklch(0.838 0.165 139.16);
  --secondary-foreground: oklch(0.226 0.055 139.219);
  --accent: oklch(0.838 0.165 139.16);
  --accent-foreground: oklch(0.226 0.055 139.219);
  --destructive: oklch(0.553 0.218 29.454);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.703 0.174 318.651);
  --chart-1: oklch(0.703 0.174 318.651);
  --chart-2: oklch(0.838 0.165 139.16);
  --chart-3: oklch(0.838 0.165 139.16);
  --chart-4: oklch(0.852 0.15 139.094);
  --chart-5: oklch(0.702 0.181 318.624);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.028 319.511);
  --foreground: oklch(0.975 0.005 318.889);
  --muted: oklch(0.231 0.011 138.912);
  --muted-foreground: oklch(0.712 0.047 138.922);
  --popover: oklch(0.136 0.028 319.511);
  --popover-foreground: oklch(0.975 0.005 318.889);
  --card: oklch(0.136 0.028 319.511);
  --card-foreground: oklch(0.975 0.005 318.889);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.703 0.174 318.651);
  --primary-foreground: oklch(0.18 0.059 318.48);
  --secondary: oklch(0.838 0.165 139.16);
  --secondary-foreground: oklch(0.226 0.055 139.219);
  --accent: oklch(0.838 0.165 139.16);
  --accent-foreground: oklch(0.226 0.055 139.219);
  --destructive: oklch(0.62 0.232 29.041);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.703 0.174 318.651);
  --chart-1: oklch(0.703 0.174 318.651);
  --chart-2: oklch(0.838 0.165 139.16);
  --chart-3: oklch(0.838 0.165 139.16);
  --chart-4: oklch(0.852 0.15 139.094);
  --chart-5: oklch(0.702 0.181 318.624);
}