Sponge for shadcn/ui

Sponge is a shadcn/ui theme built around a vivid deep orange primary color (#52240a) with vivid deep blue accents (#0a3852). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep orange primary (#52240a) on a neutral background (#070503).

Color palette

TokenLightDark
Background
#ffffffwhite
#070503black
Foreground
#090401black
#f9f7f6whitesmoke
Card
#ffffffwhite
#070503black
Card foreground
#090401black
#f9f7f6whitesmoke
Popover
#ffffffwhite
#070503black
Popover foreground
#090401black
#f9f7f6whitesmoke
Primary
#52240amaroon
#52240amaroon
Primary foreground
#f3bb9bburlywood
#f3bb9bburlywood
Secondary
#0a3852darkslategray
#0a3852darkslategray
Secondary foreground
#9bd3f3lightskyblue
#9bd3f3lightskyblue
Muted
#ebeef0whitesmoke
#0f1314black
Muted foreground
#485861darkslategray
#9eaeb7darkgray
Accent
#0a3852darkslategray
#0a3852darkslategray
Accent foreground
#9bd3f3lightskyblue
#9bd3f3lightskyblue
Destructive
#aa2d0efirebrick
#ee562ftomato
Destructive foreground
#fdf0ecseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#52240amaroon
#52240amaroon

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card20.39:1AAA
Primary button7.65:1AAA
Secondary button7.68:1AAA
Muted text6.32:1AA
Accent7.68:1AAA
Destructive6.10:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.08:1AAA
Primary button7.65:1AAA
Secondary button7.68:1AAA
Muted text8.19:1AAA
Accent7.68:1AAA
Destructive3.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.115 0.018 64.786);
  --muted: oklch(0.947 0.004 232.642);
  --muted-foreground: oklch(0.449 0.025 233.487);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.115 0.018 64.786);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.115 0.018 64.786);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.321 0.078 47.01);
  --primary-foreground: oklch(0.835 0.078 51.372);
  --secondary: oklch(0.324 0.067 239.905);
  --secondary-foreground: oklch(0.839 0.074 234.199);
  --accent: oklch(0.324 0.067 239.905);
  --accent-foreground: oklch(0.839 0.074 234.199);
  --destructive: oklch(0.49 0.166 34.143);
  --destructive-foreground: oklch(0.964 0.016 34.298);
  --ring: oklch(0.321 0.078 47.01);
  --chart-1: oklch(0.321 0.078 47.01);
  --chart-2: oklch(0.324 0.067 239.905);
  --chart-3: oklch(0.324 0.067 239.905);
  --chart-4: oklch(0.358 0.075 240.293);
  --chart-5: oklch(0.323 0.08 46.649);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.007 57.074);
  --foreground: oklch(0.977 0.002 52.551);
  --muted: oklch(0.182 0.006 233.102);
  --muted-foreground: oklch(0.742 0.022 233.03);
  --popover: oklch(0.116 0.007 57.074);
  --popover-foreground: oklch(0.977 0.002 52.551);
  --card: oklch(0.116 0.007 57.074);
  --card-foreground: oklch(0.977 0.002 52.551);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.321 0.078 47.01);
  --primary-foreground: oklch(0.835 0.078 51.372);
  --secondary: oklch(0.324 0.067 239.905);
  --secondary-foreground: oklch(0.839 0.074 234.199);
  --accent: oklch(0.324 0.067 239.905);
  --accent-foreground: oklch(0.839 0.074 234.199);
  --destructive: oklch(0.652 0.195 34.968);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.321 0.078 47.01);
  --chart-1: oklch(0.321 0.078 47.01);
  --chart-2: oklch(0.324 0.067 239.905);
  --chart-3: oklch(0.324 0.067 239.905);
  --chart-4: oklch(0.358 0.075 240.293);
  --chart-5: oklch(0.323 0.08 46.649);
}