Soap for shadcn/ui

Soap is a shadcn/ui theme built around a vivid light blue primary color (#8ec4f6) with vivid light orange accents (#f6c08e). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light blue primary (#8ec4f6) on a blue-tinted background (#060a0f).

Color palette

TokenLightDark
Background
#ffffffwhite
#060a0fblack
Foreground
#010304black
#fcfcfdwhite
Card
#fcfcfcsnow
#070d12black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#070d12black
Popover foreground
#000000black
#ffffffwhite
Primary
#8ec4f6lightskyblue
#8ec4f6lightskyblue
Primary foreground
#062a4bmidnightblue
#062a4bmidnightblue
Secondary
#f6c08eburlywood
#f6c08eburlywood
Secondary foreground
#4b2806maroon
#4b2806maroon
Muted
#e6dbd1gainsboro
#2e2319black
Muted foreground
#695e54dimgray
#aba096darkgray
Accent
#f6c08eburlywood
#f6c08eburlywood
Accent foreground
#4b2806maroon
#4b2806maroon
Destructive
#6d0c09maroon
#ee362fcrimson
Destructive foreground
#f8b1aflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8ec4f6lightskyblue
#8ec4f6lightskyblue

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.54:1AAA
Primary button7.86:1AAA
Secondary button8.00:1AAA
Muted text4.62:1AA
Accent8.00:1AAA
Destructive6.99:1AA
Dark mode
Text on background19.33:1AAA
Text on card19.52:1AAA
Primary button7.86:1AAA
Secondary button8.00:1AAA
Muted text5.95:1AA
Accent8.00:1AAA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.089 0.012 236.482);
  --muted: oklch(0.897 0.019 65.715);
  --muted-foreground: oklch(0.489 0.021 65.419);
  --popover: oklch(0.992 0 161.565);
  --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.8 0.091 247.366);
  --primary-foreground: oklch(0.281 0.073 251.058);
  --secondary: oklch(0.845 0.09 64.218);
  --secondary-foreground: oklch(0.317 0.069 58.199);
  --accent: oklch(0.845 0.09 64.218);
  --accent-foreground: oklch(0.317 0.069 58.199);
  --destructive: oklch(0.343 0.129 28.637);
  --destructive-foreground: oklch(0.828 0.084 21.246);
  --ring: oklch(0.8 0.091 247.366);
  --chart-1: oklch(0.8 0.091 247.366);
  --chart-2: oklch(0.845 0.09 64.218);
  --chart-3: oklch(0.845 0.09 64.218);
  --chart-4: oklch(0.863 0.079 64.574);
  --chart-5: oklch(0.8 0.094 247.425);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.013 243.356);
  --foreground: oklch(0.992 0.001 245.973);
  --muted: oklch(0.267 0.025 64.538);
  --muted-foreground: oklch(0.713 0.019 65.638);
  --popover: oklch(0.155 0.015 245.947);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.155 0.015 245.947);
  --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.8 0.091 247.366);
  --primary-foreground: oklch(0.281 0.073 251.058);
  --secondary: oklch(0.845 0.09 64.218);
  --secondary-foreground: oklch(0.317 0.069 58.199);
  --accent: oklch(0.845 0.09 64.218);
  --accent-foreground: oklch(0.317 0.069 58.199);
  --destructive: oklch(0.621 0.22 27.876);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.8 0.091 247.366);
  --chart-1: oklch(0.8 0.091 247.366);
  --chart-2: oklch(0.845 0.09 64.218);
  --chart-3: oklch(0.845 0.09 64.218);
  --chart-4: oklch(0.863 0.079 64.574);
  --chart-5: oklch(0.8 0.094 247.425);
}