Seaside for shadcn/ui

Seaside is a shadcn/ui theme built around a deep violet primary color (#351a61) with deep purple accents (#581a61). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the deep violet primary (#351a61) on a neutral background (#040208).

Color palette

TokenLightDark
Background
#fcfbfewhite
#040208black
Foreground
#000000black
#ffffffwhite
Card
#f9f7fdghostwhite
#07030cblack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfbfewhite
#040208black
Popover foreground
#000000black
#ffffffwhite
Primary
#351a61midnightblue
#351a61midnightblue
Primary foreground
#d1bfeethistle
#d1bfeethistle
Secondary
#1a2261midnightblue
#1a2261midnightblue
Secondary foreground
#bfc4eelightsteelblue
#bfc4eelightsteelblue
Muted
#dddfeelavender
#111322black
Muted foreground
#505368dimgray
#979aafdarkgray
Accent
#581a61indigo
#581a61indigo
Accent foreground
#e8bfeethistle
#e8bfeethistle
Destructive
#da270bfirebrick
#da270bfirebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#351a61midnightblue
#351a61midnightblue

Contrast

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

Light mode
Text on background20.37:1AAA
Text on card19.76:1AAA
Primary button8.44:1AAA
Secondary button8.55:1AAA
Muted text5.71:1AA
Accent7.55:1AAA
Destructive4.90:1AA
Dark mode
Text on background20.61:1AAA
Text on card20.42:1AAA
Primary button8.44:1AAA
Secondary button8.55:1AAA
Muted text6.62:1AA
Accent7.55:1AAA
Destructive4.90:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 303.581);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.907 0.02 279.972);
  --muted-foreground: oklch(0.447 0.035 279);
  --popover: oklch(0.99 0.004 303.581);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.008 303.52);
  --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.299 0.119 295.988);
  --primary-foreground: oklch(0.834 0.068 302.427);
  --secondary: oklch(0.289 0.111 271.764);
  --secondary-foreground: oklch(0.83 0.059 279.125);
  --accent: oklch(0.349 0.131 322.817);
  --accent-foreground: oklch(0.854 0.079 322.412);
  --destructive: oklch(0.573 0.215 31.287);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.299 0.119 295.988);
  --chart-1: oklch(0.299 0.119 295.988);
  --chart-2: oklch(0.289 0.111 271.764);
  --chart-3: oklch(0.349 0.131 322.817);
  --chart-4: oklch(0.311 0.122 271.519);
  --chart-5: oklch(0.298 0.123 295.406);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.022 304.607);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.193 0.03 277.417);
  --muted-foreground: oklch(0.691 0.031 279.593);
  --popover: oklch(0.1 0.022 304.607);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.115 0.025 304.367);
  --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.299 0.119 295.988);
  --primary-foreground: oklch(0.834 0.068 302.427);
  --secondary: oklch(0.289 0.111 271.764);
  --secondary-foreground: oklch(0.83 0.059 279.125);
  --accent: oklch(0.349 0.131 322.817);
  --accent-foreground: oklch(0.854 0.079 322.412);
  --destructive: oklch(0.573 0.215 31.287);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.299 0.119 295.988);
  --chart-1: oklch(0.299 0.119 295.988);
  --chart-2: oklch(0.289 0.111 271.764);
  --chart-3: oklch(0.349 0.131 322.817);
  --chart-4: oklch(0.311 0.122 271.519);
  --chart-5: oklch(0.298 0.123 295.406);
}