Seashore for shadcn/ui

Seashore is a shadcn/ui theme built around a light violet primary color (#ecdff7) with muted light violet accents (#d3c6dc). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#ecdff7) on a neutral background (#050208).

Color palette

TokenLightDark
Background
#ffffffwhite
#050208black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#08040cblack
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#050208black
Popover foreground
#000000black
#ffffffwhite
Primary
#ecdff7lavender
#ecdff7lavender
Primary foreground
#582182rebeccapurple
#582182rebeccapurple
Secondary
#ebe7eelavender
#1a191ablack
Secondary foreground
#544360darkslategray
#b3b2b3darkgray
Muted
#f0eff0whitesmoke
#0f0f10black
Muted foreground
#454148darkslategray
#bbb7besilver
Accent
#d3c6dcthistle
#2c272fdarkslategray
Accent foreground
#3a2b46darkslategray
#c5bfcasilver
Destructive
#90310esaddlebrown
#eb6433tomato
Destructive foreground
#fbdfd5antiquewhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ecdff7lavender
#ecdff7lavender

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 button8.40:1AAA
Secondary button7.32:1AAA
Muted text8.70:1AAA
Accent7.97:1AAA
Destructive6.32:1AA
Dark mode
Text on background20.56:1AAA
Text on card20.35:1AAA
Primary button8.40:1AAA
Secondary button8.28:1AAA
Muted text9.71:1AAA
Accent8.08:1AAA
Destructive6.39:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.953 0.002 311.064);
  --muted-foreground: oklch(0.383 0.013 310.799);
  --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.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.92 0.035 310.751);
  --primary-foreground: oklch(0.382 0.154 306.192);
  --secondary: oklch(0.933 0.011 310.984);
  --secondary-foreground: oklch(0.412 0.052 309.972);
  --accent: oklch(0.844 0.033 310.745);
  --accent-foreground: oklch(0.317 0.051 309.659);
  --destructive: oklch(0.448 0.136 38.111);
  --destructive-foreground: oklch(0.924 0.034 41.069);
  --ring: oklch(0.92 0.035 310.751);
  --chart-1: oklch(0.92 0.035 310.751);
  --chart-2: oklch(0.933 0.011 310.984);
  --chart-3: oklch(0.844 0.033 310.745);
  --chart-4: oklch(0.958 0.007 311.024);
  --chart-5: oklch(0.919 0.037 310.734);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.02 312.68);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.168 0.003 310.906);
  --muted-foreground: oklch(0.784 0.011 310.967);
  --popover: oklch(0.104 0.02 312.68);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.119 0.023 312.493);
  --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.92 0.035 310.751);
  --primary-foreground: oklch(0.382 0.154 306.192);
  --secondary: oklch(0.215 0.001 311.041);
  --secondary-foreground: oklch(0.764 0.002 311.057);
  --accent: oklch(0.283 0.015 310.613);
  --accent-foreground: oklch(0.813 0.016 310.913);
  --destructive: oklch(0.665 0.179 39.321);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.92 0.035 310.751);
  --chart-1: oklch(0.92 0.035 310.751);
  --chart-2: oklch(0.215 0.001 311.041);
  --chart-3: oklch(0.283 0.015 310.613);
  --chart-4: oklch(0.248 0.001 311.037);
  --chart-5: oklch(0.919 0.037 310.734);
}