Embryo for shadcn/ui

Embryo is a shadcn/ui theme built around a deep purple primary color (#3d1c40) with deep pink accents (#401c31). The light mode uses a neutral background (#fefbfe). Dark mode keeps the deep purple primary (#3d1c40) on a neutral background (#080208).

Color palette

TokenLightDark
Background
#fefbfewhite
#080208black
Foreground
#040104black
#faf5faghostwhite
Card
#fcf7fdghostwhite
#0b030cblack
Card foreground
#000000black
#fbf8fcghostwhite
Popover
#fefbfewhite
#080208black
Popover foreground
#040104black
#faf5faghostwhite
Primary
#3d1c40darkslategray
#3d1c40darkslategray
Primary foreground
#dab0ddthistle
#dab0ddthistle
Secondary
#2b1c40midnightblue
#2b1c40midnightblue
Secondary foreground
#c3b0ddthistle
#c3b0ddthistle
Muted
#dfd7eagainsboro
#1d1528black
Muted foreground
#3f3c44darkslategray
#bfbbc3silver
Accent
#401c31darkslategray
#401c31darkslategray
Accent foreground
#ddb0cbthistle
#ddb0cbthistle
Destructive
#c15415chocolate
#ea8043coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3d1c40darkslategray
#3d1c40darkslategray

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card19.86:1AAA
Primary button7.82:1AAA
Secondary button7.90:1AAA
Muted text7.75:1AAA
Accent7.81:1AAA
Destructive4.61:1AA
Dark mode
Text on background19.07:1AAA
Text on card19.27:1AAA
Primary button7.82:1AAA
Secondary button7.90:1AAA
Muted text9.31:1AAA
Accent7.81:1AAA
Destructive7.67:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 323.157);
  --foreground: oklch(0.084 0.025 325.299);
  --muted: oklch(0.891 0.026 304.64);
  --muted-foreground: oklch(0.362 0.014 304.524);
  --popover: oklch(0.991 0.005 323.157);
  --popover-foreground: oklch(0.084 0.025 325.299);
  --card: oklch(0.982 0.01 323.18);
  --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.289 0.077 324.152);
  --primary-foreground: oklch(0.809 0.077 323.552);
  --secondary: oklch(0.264 0.068 301.1);
  --secondary-foreground: oklch(0.789 0.066 303.889);
  --accent: oklch(0.286 0.065 345.937);
  --accent-foreground: oklch(0.807 0.062 342.727);
  --destructive: oklch(0.577 0.155 45.076);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.289 0.077 324.152);
  --chart-1: oklch(0.289 0.077 324.152);
  --chart-2: oklch(0.264 0.068 301.1);
  --chart-3: oklch(0.286 0.065 345.937);
  --chart-4: oklch(0.289 0.077 300.925);
  --chart-5: oklch(0.289 0.082 324.195);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.025 324.887);
  --foreground: oklch(0.974 0.009 323.177);
  --muted: oklch(0.216 0.037 302.615);
  --muted-foreground: oklch(0.798 0.011 304.851);
  --popover: oklch(0.107 0.025 324.887);
  --popover-foreground: oklch(0.974 0.009 323.177);
  --card: oklch(0.123 0.029 324.702);
  --card-foreground: oklch(0.983 0.006 323.163);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.289 0.077 324.152);
  --primary-foreground: oklch(0.809 0.077 323.552);
  --secondary: oklch(0.264 0.068 301.1);
  --secondary-foreground: oklch(0.789 0.066 303.889);
  --accent: oklch(0.286 0.065 345.937);
  --accent-foreground: oklch(0.807 0.062 342.727);
  --destructive: oklch(0.707 0.15 48.524);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.289 0.077 324.152);
  --chart-1: oklch(0.289 0.077 324.152);
  --chart-2: oklch(0.264 0.068 301.1);
  --chart-3: oklch(0.286 0.065 345.937);
  --chart-4: oklch(0.289 0.077 300.925);
  --chart-5: oklch(0.289 0.082 324.195);
}