Jellyfish for shadcn/ui

Jellyfish is a shadcn/ui theme built around a light violet primary color (#f2e7f9) with light purple accents (#f9e7f7). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the light violet primary (#f2e7f9) on a neutral background (#060307).

Color palette

TokenLightDark
Background
#fdfbfewhite
#060307black
Foreground
#000000black
#fdfcfdwhite
Card
#fdfbfewhite
#060307black
Card foreground
#000000black
#fdfcfdwhite
Popover
#fdfbfewhite
#060307black
Popover foreground
#000000black
#fdfcfdwhite
Primary
#f2e7f9lavender
#f2e7f9lavender
Primary foreground
#63238brebeccapurple
#63238brebeccapurple
Secondary
#e9e7f9lavender
#e9e7f9lavender
Secondary foreground
#2f238bdarkslateblue
#2f238bdarkslateblue
Muted
#d4d3dflightgrey
#22202cdarkslategray
Muted foreground
#3d3d43darkslategray
#bdbcc2silver
Accent
#f9e7f7lavenderblush
#f9e7f7lavenderblush
Accent foreground
#8b237fpurple
#8b237fpurple
Destructive
#a9270afirebrick
#f1380eorangered
Destructive foreground
#feebe7linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2e7f9lavender
#f2e7f9lavender

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.41:1AAA
Primary button8.16:1AAA
Secondary button9.91:1AAA
Muted text7.26:1AAA
Accent6.70:1AA
Destructive6.13:1AA
Dark mode
Text on background20.05:1AAA
Text on card20.05:1AAA
Primary button8.16:1AAA
Secondary button9.91:1AAA
Muted text8.49:1AAA
Accent6.70:1AA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 312.958);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.87 0.017 291.414);
  --muted-foreground: oklch(0.361 0.011 291.206);
  --popover: oklch(0.99 0.004 312.958);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.004 312.958);
  --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.941 0.027 312.789);
  --primary-foreground: oklch(0.405 0.165 308.885);
  --secondary: oklch(0.934 0.025 291.276);
  --secondary-foreground: oklch(0.348 0.163 278.987);
  --accent: oklch(0.946 0.029 329.487);
  --accent-foreground: oklch(0.457 0.172 333.251);
  --destructive: oklch(0.482 0.17 33.179);
  --destructive-foreground: oklch(0.954 0.021 32.677);
  --ring: oklch(0.941 0.027 312.789);
  --chart-1: oklch(0.941 0.027 312.789);
  --chart-2: oklch(0.934 0.025 291.276);
  --chart-3: oklch(0.946 0.029 329.487);
  --chart-4: oklch(0.967 0.012 291.54);
  --chart-5: oklch(0.94 0.029 312.779);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.017 314.336);
  --foreground: oklch(0.992 0.001 312.979);
  --muted: oklch(0.251 0.023 289.982);
  --muted-foreground: oklch(0.798 0.009 291.568);
  --popover: oklch(0.107 0.017 314.336);
  --popover-foreground: oklch(0.992 0.001 312.979);
  --card: oklch(0.107 0.017 314.336);
  --card-foreground: oklch(0.992 0.001 312.979);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.941 0.027 312.789);
  --primary-foreground: oklch(0.405 0.165 308.885);
  --secondary: oklch(0.934 0.025 291.276);
  --secondary-foreground: oklch(0.348 0.163 278.987);
  --accent: oklch(0.946 0.029 329.487);
  --accent-foreground: oklch(0.457 0.172 333.251);
  --destructive: oklch(0.625 0.225 32.904);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.941 0.027 312.789);
  --chart-1: oklch(0.941 0.027 312.789);
  --chart-2: oklch(0.934 0.025 291.276);
  --chart-3: oklch(0.946 0.029 329.487);
  --chart-4: oklch(0.967 0.012 291.54);
  --chart-5: oklch(0.94 0.029 312.779);
}