Origin for shadcn/ui

Origin is a shadcn/ui theme built around a purple primary color (#e26ecd) with neutral gray accents (#d9d3d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#e26ecd) on a purple-tinted background (#10040e).

Color palette

TokenLightDark
Background
#ffffffwhite
#10040eblack
Foreground
#080207black
#f9f6f8whitesmoke
Card
#fcfcfcsnow
#140512black
Card foreground
#040104black
#fbf9fasnow
Popover
#fcfcfcsnow
#140512black
Popover foreground
#040104black
#fbf9fasnow
Primary
#e26ecdorchid
#e26ecdorchid
Primary foreground
#1a0516black
#1a0516black
Secondary
#d9d3d8lightgrey
#362b34darkslategray
Secondary foreground
#413940darkslategray
#cfc4cdthistle
Muted
#eeddeblavender
#22111fblack
Muted foreground
#595458dimgray
#aba6aadarkgray
Accent
#d9d3d8lightgrey
#362b34darkslategray
Accent foreground
#413940darkslategray
#cfc4cdthistle
Destructive
#ca0202firebrick
#fd1717red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e26ecdorchid
#e26ecdorchid

Contrast

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

Light mode
Text on background20.54:1AAA
Text on card20.31:1AAA
Primary button6.84:1AA
Secondary button7.58:1AAA
Muted text5.71:1AA
Accent7.58:1AAA
Destructive5.96:1AA
Dark mode
Text on background18.68:1AAA
Text on card18.87:1AAA
Primary button6.84:1AA
Secondary button8.00:1AAA
Muted text7.50:1AAA
Accent8.00:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.107 0.025 332.453);
  --muted: oklch(0.915 0.026 331.803);
  --muted-foreground: oklch(0.453 0.01 331.703);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.085 0.02 332.453);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.085 0.02 332.453);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.706 0.182 334.776);
  --primary-foreground: oklch(0.162 0.048 334.888);
  --secondary: oklch(0.874 0.009 331.551);
  --secondary-foreground: oklch(0.356 0.017 332.056);
  --accent: oklch(0.874 0.009 331.551);
  --accent-foreground: oklch(0.356 0.017 332.056);
  --destructive: oklch(0.527 0.216 29.148);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.706 0.182 334.776);
  --chart-1: oklch(0.706 0.182 334.776);
  --chart-2: oklch(0.874 0.009 331.551);
  --chart-3: oklch(0.874 0.009 331.551);
  --chart-4: oklch(0.898 0.007 331.52);
  --chart-5: oklch(0.707 0.189 334.908);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.033 333.626);
  --foreground: oklch(0.976 0.004 331.468);
  --muted: oklch(0.208 0.037 333.74);
  --muted-foreground: oklch(0.73 0.008 331.571);
  --popover: oklch(0.15 0.037 334.178);
  --popover-foreground: oklch(0.984 0.003 331.447);
  --card: oklch(0.15 0.037 334.178);
  --card-foreground: oklch(0.984 0.003 331.447);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.706 0.182 334.776);
  --primary-foreground: oklch(0.162 0.048 334.888);
  --secondary: oklch(0.305 0.022 332.374);
  --secondary-foreground: oklch(0.831 0.019 331.72);
  --accent: oklch(0.305 0.022 332.374);
  --accent-foreground: oklch(0.831 0.019 331.72);
  --destructive: oklch(0.629 0.25 28.561);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.706 0.182 334.776);
  --chart-1: oklch(0.706 0.182 334.776);
  --chart-2: oklch(0.305 0.022 332.374);
  --chart-3: oklch(0.305 0.022 332.374);
  --chart-4: oklch(0.334 0.024 332.404);
  --chart-5: oklch(0.707 0.189 334.908);
}