Galactic Civilization Lungfish for shadcn/ui

Galactic Civilization Lungfish is a shadcn/ui theme built around a violet primary color (#462692) with purple accents (#7c2692). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#462692) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#ffffffwhite
#020104black
Foreground
#000000black
#f7f5f9whitesmoke
Card
#fcfcfcsnow
#040208black
Card foreground
#000000black
#f9f9fbghostwhite
Popover
#ffffffwhite
#020104black
Popover foreground
#000000black
#f7f5f9whitesmoke
Primary
#462692darkslateblue
#462692darkslateblue
Primary foreground
#f2effbwhitesmoke
#f2effbwhitesmoke
Secondary
#263b92darkslateblue
#263b92darkslateblue
Secondary foreground
#eff1fbaliceblue
#eff1fbaliceblue
Muted
#ebeceflavender
#101114black
Muted foreground
#45474fdarkslategray
#b0b2badarkgray
Accent
#7c2692rebeccapurple
#7c2692rebeccapurple
Accent foreground
#f8effbwhitesmoke
#f8effbwhitesmoke
Destructive
#c14315firebrick
#dc4d18chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#edeceewhitesmoke
#1c1b1dblack
Input
#edeceewhitesmoke
#1c1b1dblack
Ring
#462692darkslateblue
#462692darkslateblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button9.50:1AAA
Secondary button8.76:1AAA
Muted text7.84:1AAA
Accent7.34:1AAA
Destructive5.14:1AA
Dark mode
Text on background19.20:1AAA
Text on card19.60:1AAA
Primary button9.50:1AAA
Secondary button8.76:1AAA
Muted text8.94:1AAA
Accent7.34:1AAA
Destructive4.10:1AA Large

CSS variables

Paste this into your globals.css to use Galactic Civilization Lungfish in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.943 0.004 274.979);
  --muted-foreground: oklch(0.398 0.014 274.572);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.945 0.002 300.003);
  --input: oklch(0.945 0.002 300.003);
  --primary: oklch(0.381 0.166 289.894);
  --primary-foreground: oklch(0.958 0.016 299.749);
  --secondary: oklch(0.392 0.145 268.214);
  --secondary-foreground: oklch(0.96 0.013 274.864);
  --accent: oklch(0.449 0.178 318.726);
  --accent-foreground: oklch(0.962 0.019 319.45);
  --destructive: oklch(0.554 0.17 37.97);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.381 0.166 289.894);
  --chart-1: oklch(0.381 0.166 289.894);
  --chart-2: oklch(0.392 0.145 268.214);
  --chart-3: oklch(0.449 0.178 318.726);
  --chart-4: oklch(0.414 0.155 268.129);
  --chart-5: oklch(0.378 0.172 289.112);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.079 0.016 300.248);
  --foreground: oklch(0.973 0.006 299.941);
  --muted: oklch(0.177 0.007 274.548);
  --muted-foreground: oklch(0.764 0.012 274.839);
  --popover: oklch(0.079 0.016 300.248);
  --popover-foreground: oklch(0.973 0.006 299.941);
  --card: oklch(0.1 0.021 300.248);
  --card-foreground: oklch(0.982 0.004 299.974);
  --border: oklch(0.223 0.004 299.706);
  --input: oklch(0.223 0.004 299.706);
  --primary: oklch(0.381 0.166 289.894);
  --primary-foreground: oklch(0.958 0.016 299.749);
  --secondary: oklch(0.392 0.145 268.214);
  --secondary-foreground: oklch(0.96 0.013 274.864);
  --accent: oklch(0.449 0.178 318.726);
  --accent-foreground: oklch(0.962 0.019 319.45);
  --destructive: oklch(0.611 0.189 37.833);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.381 0.166 289.894);
  --chart-1: oklch(0.381 0.166 289.894);
  --chart-2: oklch(0.392 0.145 268.214);
  --chart-3: oklch(0.449 0.178 318.726);
  --chart-4: oklch(0.414 0.155 268.129);
  --chart-5: oklch(0.378 0.172 289.112);
}