Buoyant for shadcn/ui

Buoyant is a shadcn/ui theme built around a teal primary color (#92ddd3) with blue accents (#92c2dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#92ddd3) on a neutral background (#010404).

Color palette

TokenLightDark
Background
#ffffffwhite
#010404black
Foreground
#021210black
#f8fcfbmintcream
Card
#fcfcfcsnow
#020807black
Card foreground
#020e0cblack
#fcfdfdwhite
Popover
#ffffffwhite
#010404black
Popover foreground
#021210black
#f8fcfbmintcream
Primary
#92ddd3skyblue
#92ddd3skyblue
Primary foreground
#0f2f2adarkslategray
#0f2f2adarkslategray
Secondary
#92ddaelightgreen
#92ddaelightgreen
Secondary foreground
#0f2f1ablack
#0f2f1ablack
Muted
#e4ece7lavender
#131b16black
Muted foreground
#4d6054darkslategray
#9fb2a6darkgray
Accent
#92c2ddskyblue
#92c2ddskyblue
Accent foreground
#0f232fblack
#0f232fblack
Destructive
#d02411firebrick
#ef4f3etomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#92ddd3skyblue
#92ddd3skyblue

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card19.19:1AAA
Primary button9.23:1AAA
Secondary button9.12:1AAA
Muted text5.59:1AA
Accent8.40:1AAA
Destructive5.34:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.79:1AAA
Primary button9.23:1AAA
Secondary button9.12:1AAA
Muted text7.86:1AAA
Accent8.40:1AAA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.167 0.025 184.827);
  --muted: oklch(0.936 0.011 158.473);
  --muted-foreground: oklch(0.47 0.03 157.24);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.167 0.025 184.827);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.148 0.022 186.005);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.845 0.075 185.349);
  --primary-foreground: oklch(0.278 0.038 183.486);
  --secondary: oklch(0.835 0.099 155.781);
  --secondary-foreground: oklch(0.273 0.053 153.21);
  --accent: oklch(0.789 0.063 234.004);
  --accent-foreground: oklch(0.245 0.034 235.914);
  --destructive: oklch(0.552 0.207 30.511);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0.075 185.349);
  --chart-1: oklch(0.845 0.075 185.349);
  --chart-2: oklch(0.835 0.099 155.781);
  --chart-3: oklch(0.789 0.063 234.004);
  --chart-4: oklch(0.852 0.089 156.193);
  --chart-5: oklch(0.849 0.079 185.223);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 187.208);
  --foreground: oklch(0.987 0.004 187.662);
  --muted: oklch(0.212 0.015 157.07);
  --muted-foreground: oklch(0.745 0.027 157.904);
  --popover: oklch(0.099 0.011 187.208);
  --popover-foreground: oklch(0.987 0.004 187.662);
  --card: oklch(0.125 0.014 187.208);
  --card-foreground: oklch(0.994 0.002 187.706);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.845 0.075 185.349);
  --primary-foreground: oklch(0.278 0.038 183.486);
  --secondary: oklch(0.835 0.099 155.781);
  --secondary-foreground: oklch(0.273 0.053 153.21);
  --accent: oklch(0.789 0.063 234.004);
  --accent-foreground: oklch(0.245 0.034 235.914);
  --destructive: oklch(0.648 0.199 29.771);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0.075 185.349);
  --chart-1: oklch(0.845 0.075 185.349);
  --chart-2: oklch(0.835 0.099 155.781);
  --chart-3: oklch(0.789 0.063 234.004);
  --chart-4: oklch(0.852 0.089 156.193);
  --chart-5: oklch(0.849 0.079 185.223);
}