Fetus for shadcn/ui

Fetus is a shadcn/ui theme built around a vivid light violet primary color (#dbc8f9) with muted light violet accents (#dfdce5). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid light violet primary (#dbc8f9) on a violet-tinted background (#07040c).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#07040cblack
Foreground
#07040cblack
#ffffffwhite
Card
#faf8fbghostwhite
#090510black
Card foreground
#040208black
#ffffffwhite
Popover
#fcfcfdwhite
#07040cblack
Popover foreground
#07040cblack
#ffffffwhite
Primary
#dbc8f9lavender
#dbc8f9lavender
Primary foreground
#3a0f80indigo
#3a0f80indigo
Secondary
#dfdce5gainsboro
#212022black
Secondary foreground
#453c53darkslategray
#bab7bdsilver
Muted
#f1eef6whitesmoke
#0c0911black
Muted foreground
#444149darkslategray
#b9b6besilver
Accent
#dfdce5gainsboro
#212022black
Accent foreground
#453c53darkslategray
#bab7bdsilver
Destructive
#812e0esaddlebrown
#ea6b39tomato
Destructive foreground
#f9d6c8bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dbc8f9lavender
#dbc8f9lavender

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.57:1AAA
Primary button8.75:1AAA
Secondary button7.64:1AAA
Muted text8.74:1AAA
Accent7.64:1AAA
Destructive6.61:1AA
Dark mode
Text on background20.39:1AAA
Text on card20.20:1AAA
Primary button8.75:1AAA
Secondary button8.19:1AAA
Muted text9.88:1AAA
Accent8.19:1AAA
Destructive6.65:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 303.608);
  --foreground: oklch(0.116 0.024 304.345);
  --muted: oklch(0.955 0.011 303.469);
  --muted-foreground: oklch(0.38 0.014 303.078);
  --popover: oklch(0.991 0.002 303.608);
  --popover-foreground: oklch(0.116 0.024 304.345);
  --card: oklch(0.982 0.004 303.576);
  --card-foreground: oklch(0.101 0.021 304.54);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.864 0.069 302.456);
  --primary-foreground: oklch(0.325 0.166 291.022);
  --secondary: oklch(0.899 0.014 303.412);
  --secondary-foreground: oklch(0.375 0.04 302.041);
  --accent: oklch(0.899 0.014 303.412);
  --accent-foreground: oklch(0.375 0.04 302.041);
  --destructive: oklch(0.419 0.122 39.429);
  --destructive-foreground: oklch(0.901 0.044 42.766);
  --ring: oklch(0.864 0.069 302.456);
  --chart-1: oklch(0.864 0.069 302.456);
  --chart-2: oklch(0.899 0.014 303.412);
  --chart-3: oklch(0.899 0.014 303.412);
  --chart-4: oklch(0.924 0.01 303.475);
  --chart-5: oklch(0.863 0.071 302.408);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.023 304.338);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.147 0.018 302);
  --muted-foreground: oklch(0.781 0.012 303.411);
  --popover: oklch(0.116 0.023 304.338);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.128 0.027 303.032);
  --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.864 0.069 302.456);
  --primary-foreground: oklch(0.325 0.166 291.022);
  --secondary: oklch(0.245 0.005 303.327);
  --secondary-foreground: oklch(0.784 0.008 303.488);
  --accent: oklch(0.245 0.005 303.327);
  --accent-foreground: oklch(0.784 0.008 303.488);
  --destructive: oklch(0.674 0.17 40.816);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.864 0.069 302.456);
  --chart-1: oklch(0.864 0.069 302.456);
  --chart-2: oklch(0.245 0.005 303.327);
  --chart-3: oklch(0.245 0.005 303.327);
  --chart-4: oklch(0.276 0.006 303.308);
  --chart-5: oklch(0.863 0.071 302.408);
}