Boiling for shadcn/ui

Boiling is a shadcn/ui theme built around a blue primary color (#2456ae) with green accents (#56ae24). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#2456ae) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#ffffffwhite
#010204black
Foreground
#02060dblack
#fcfcfdwhite
Card
#fcfcfcsnow
#020408black
Card foreground
#020409black
#ffffffwhite
Popover
#ffffffwhite
#010204black
Popover foreground
#02060dblack
#fcfcfdwhite
Primary
#2456aesteelblue
#2456aesteelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ae2456brown
#ae2456brown
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#efe6e9linen
#191013black
Muted foreground
#68555cdimgray
#aa979edarkgray
Accent
#56ae24olivedrab
#56ae24olivedrab
Accent foreground
#020401black
#020401black
Destructive
#d34c12chocolate
#d84e13chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2456aesteelblue
#2456aesteelblue

Contrast

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

Light mode
Text on background20.30:1AAA
Text on card20.06:1AAA
Primary button6.96:1AA
Secondary button6.62:1AA
Muted text5.63:1AA
Accent7.29:1AAA
Destructive4.35:1AA Large
Dark mode
Text on background20.22:1AAA
Text on card20.48:1AAA
Primary button6.96:1AA
Secondary button6.62:1AA
Muted text6.79:1AA
Accent7.29:1AAA
Destructive4.19:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.019 252.012);
  --muted: oklch(0.933 0.012 352.93);
  --muted-foreground: oklch(0.47 0.027 354.158);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.122 0.019 252.012);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.106 0.017 251.337);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.471 0.15 260.55);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.5 0.176 4.753);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.669 0.187 136.993);
  --accent-foreground: oklch(0.101 0.019 131.838);
  --destructive: oklch(0.595 0.181 39.434);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.471 0.15 260.55);
  --chart-1: oklch(0.471 0.15 260.55);
  --chart-2: oklch(0.5 0.176 4.753);
  --chart-3: oklch(0.669 0.187 136.993);
  --chart-4: oklch(0.526 0.186 4.873);
  --chart-5: oklch(0.47 0.156 260.587);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.011 253.574);
  --foreground: oklch(0.992 0.001 261.514);
  --muted: oklch(0.185 0.018 355.184);
  --muted-foreground: oklch(0.696 0.024 353.553);
  --popover: oklch(0.086 0.011 253.574);
  --popover-foreground: oklch(0.992 0.001 261.514);
  --card: oklch(0.108 0.013 253.574);
  --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.471 0.15 260.55);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.5 0.176 4.753);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.669 0.187 136.993);
  --accent-foreground: oklch(0.101 0.019 131.838);
  --destructive: oklch(0.605 0.184 39.404);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.471 0.15 260.55);
  --chart-1: oklch(0.471 0.15 260.55);
  --chart-2: oklch(0.5 0.176 4.753);
  --chart-3: oklch(0.669 0.187 136.993);
  --chart-4: oklch(0.526 0.186 4.873);
  --chart-5: oklch(0.47 0.156 260.587);
}