Galactic Purple Marmoset for shadcn/ui

Galactic Purple Marmoset is a shadcn/ui theme built around a violet primary color (#482895) with muted light violet accents (#cbc5d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#482895) on a violet-tinted background (#06040c).

Color palette

TokenLightDark
Background
#ffffffwhite
#06040cblack
Foreground
#000000black
#f6f4fawhitesmoke
Card
#ffffffwhite
#06040cblack
Card foreground
#000000black
#f6f4fawhitesmoke
Popover
#ffffffwhite
#06040cblack
Popover foreground
#000000black
#f6f4fawhitesmoke
Primary
#482895darkslateblue
#482895darkslateblue
Primary foreground
#f6f3fcghostwhite
#f6f3fcghostwhite
Secondary
#cbc5d8thistle
#18161dblack
Secondary foreground
#312b40darkslategray
#aea7bedarkgray
Muted
#d4cee4lightgrey
#221b31darkslategray
Muted foreground
#625c70dimgray
#958fa3lightslategray
Accent
#cbc5d8thistle
#18161dblack
Accent foreground
#312b40darkslategray
#aea7bedarkgray
Destructive
#882c01saddlebrown
#e84b02orangered
Destructive foreground
#fed2bdpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#482895darkslateblue
#482895darkslateblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button9.51:1AAA
Secondary button8.09:1AAA
Muted text4.17:1AA Large
Accent8.09:1AAA
Destructive6.28:1AA
Dark mode
Text on background18.70:1AAA
Text on card18.70:1AAA
Primary button9.51:1AAA
Secondary button7.75:1AAA
Muted text5.30:1AA
Accent7.75:1AAA
Destructive3.85:1AA Large

CSS variables

Paste this into your globals.css to use Galactic Purple Marmoset in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.862 0.031 299.429);
  --muted-foreground: oklch(0.487 0.033 298.888);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.388 0.167 290.096);
  --primary-foreground: oklch(0.968 0.012 299.828);
  --secondary: oklch(0.835 0.026 299.512);
  --secondary-foreground: oklch(0.306 0.037 297.957);
  --accent: oklch(0.835 0.026 299.512);
  --accent-foreground: oklch(0.306 0.037 297.957);
  --destructive: oklch(0.428 0.134 39.766);
  --destructive-foreground: oklch(0.896 0.057 46.24);
  --ring: oklch(0.388 0.167 290.096);
  --chart-1: oklch(0.388 0.167 290.096);
  --chart-2: oklch(0.835 0.026 299.512);
  --chart-3: oklch(0.835 0.026 299.512);
  --chart-4: oklch(0.861 0.022 299.613);
  --chart-5: oklch(0.386 0.174 289.318);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.023 300.086);
  --foreground: oklch(0.971 0.008 299.894);
  --muted: oklch(0.242 0.042 296.931);
  --muted-foreground: oklch(0.661 0.031 299.257);
  --popover: oklch(0.115 0.023 300.086);
  --popover-foreground: oklch(0.971 0.008 299.894);
  --card: oklch(0.115 0.023 300.086);
  --card-foreground: oklch(0.971 0.008 299.894);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.388 0.167 290.096);
  --primary-foreground: oklch(0.968 0.012 299.828);
  --secondary: oklch(0.205 0.015 298.763);
  --secondary-foreground: oklch(0.742 0.033 299.276);
  --accent: oklch(0.205 0.015 298.763);
  --accent-foreground: oklch(0.742 0.033 299.276);
  --destructive: oklch(0.628 0.204 38.261);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.388 0.167 290.096);
  --chart-1: oklch(0.388 0.167 290.096);
  --chart-2: oklch(0.205 0.015 298.763);
  --chart-3: oklch(0.205 0.015 298.763);
  --chart-4: oklch(0.235 0.019 298.638);
  --chart-5: oklch(0.386 0.174 289.318);
}