Seaweed for shadcn/ui

Seaweed is a shadcn/ui theme built around a vivid blue primary color (#337bf0) with vivid green accents (#7bf033). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#337bf0) on a blue-tinted background (#040910).

Color palette

TokenLightDark
Background
#ffffffwhite
#040910black
Foreground
#010204black
#f9fafbghostwhite
Card
#ffffffwhite
#040910black
Card foreground
#010204black
#f9fafbghostwhite
Popover
#ffffffwhite
#040910black
Popover foreground
#010204black
#f9fafbghostwhite
Primary
#337bf0royalblue
#337bf0royalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#f0337bdeeppink
#f0337bdeeppink
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f7eef1whitesmoke
#11080cblack
Muted foreground
#503f45darkslategray
#c0afb6silver
Accent
#7bf033yellowgreen
#7bf033yellowgreen
Accent foreground
#235106darkgreen
#235106darkgreen
Destructive
#622209maroon
#ed7140tomato
Destructive foreground
#f7bda6lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#337bf0royalblue
#337bf0royalblue

Contrast

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

Light mode
Text on background20.75:1AAA
Text on card20.75:1AAA
Primary button4.00:1AA Large
Secondary button3.84:1AA Large
Muted text8.61:1AAA
Accent6.36:1AA
Destructive7.28:1AAA
Dark mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button4.00:1AA Large
Secondary button3.84:1AA Large
Muted text9.43:1AAA
Accent6.36:1AA
Destructive7.03:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.086 0.011 251.455);
  --muted: oklch(0.956 0.011 351.906);
  --muted-foreground: oklch(0.388 0.026 353.418);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.086 0.011 251.455);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.086 0.011 251.455);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.602 0.19 259.682);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.636 0.226 3.866);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.853 0.238 136.653);
  --accent-foreground: oklch(0.386 0.112 137.025);
  --destructive: oklch(0.346 0.099 39.693);
  --destructive-foreground: oklch(0.845 0.074 42.573);
  --ring: oklch(0.602 0.19 259.682);
  --chart-1: oklch(0.602 0.19 259.682);
  --chart-2: oklch(0.636 0.226 3.866);
  --chart-3: oklch(0.853 0.238 136.653);
  --chart-4: oklch(0.651 0.216 2.244);
  --chart-5: oklch(0.602 0.195 259.745);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.019 254.13);
  --foreground: oklch(0.984 0.001 259.935);
  --muted: oklch(0.151 0.017 354.317);
  --muted-foreground: oklch(0.771 0.022 352.376);
  --popover: oklch(0.137 0.019 254.13);
  --popover-foreground: oklch(0.984 0.001 259.935);
  --card: oklch(0.137 0.019 254.13);
  --card-foreground: oklch(0.984 0.001 259.935);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.602 0.19 259.682);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.636 0.226 3.866);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.853 0.238 136.653);
  --accent-foreground: oklch(0.386 0.112 137.025);
  --destructive: oklch(0.688 0.166 41.084);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.602 0.19 259.682);
  --chart-1: oklch(0.602 0.19 259.682);
  --chart-2: oklch(0.636 0.226 3.866);
  --chart-3: oklch(0.853 0.238 136.653);
  --chart-4: oklch(0.651 0.216 2.244);
  --chart-5: oklch(0.602 0.195 259.745);
}