βui - Ocean Light for shadcn/ui

βui - Ocean Light is a shadcn/ui theme built around a muted green primary color (#5e7b47) with muted light blue accents (#c0c8d8). The light mode uses a blue-tinted background (#eff1f5). Dark mode keeps the muted green primary (#5e7b47) on a blue-tinted background (#eff1f5).

Color palette

TokenLightDark
Background
#eff1f5whitesmoke
#eff1f5whitesmoke
Foreground
#4e5a65dimgray
#4e5a65dimgray
Card
#e9ecf1lavender
#e9ecf1lavender
Card foreground
#434d56darkslategray
#434d56darkslategray
Popover
#e6e9eflavender
#e6e9eflavender
Popover foreground
#374048darkslategray
#374048darkslategray
Primary
#5e7b47darkolivegreen
#5e7b47darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#becab4silver
#becab4silver
Secondary foreground
#262d20darkslategray
#262d20darkslategray
Muted
#e2e4e9gainsboro
#e2e4e9gainsboro
Muted foreground
#434956darkslategray
#434956darkslategray
Accent
#c0c8d8lightsteelblue
#c0c8d8lightsteelblue
Accent foreground
#272f3fdarkslategray
#272f3fdarkslategray
Destructive
#b9250efirebrick
#b9250efirebrick
Destructive foreground
#fffbfasnow
#fffbfasnow
Border
#e2e4e9gainsboro
#e2e4e9gainsboro
Input
#dadce2gainsboro
#dadce2gainsboro
Ring
#5e7b47darkolivegreen
#5e7b47darkolivegreen

Contrast

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

Light mode
Text on background6.25:1AA
Text on card7.27:1AAA
Primary button4.76:1AA
Secondary button8.32:1AAA
Muted text7.12:1AAA
Accent7.99:1AAA
Destructive6.13:1AA
Dark mode
Text on background6.25:1AA
Text on card7.27:1AAA
Primary button4.76:1AA
Secondary button8.32:1AAA
Muted text7.12:1AAA
Accent7.99:1AAA
Destructive6.13:1AA

CSS variables

Paste this into your globals.css to use βui - Ocean Light in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.959 0.006 264.533);
  --foreground: oklch(0.46 0.024 246.552);
  --muted: oklch(0.92 0.006 264.531);
  --muted-foreground: oklch(0.406 0.022 264.291);
  --popover: oklch(0.934 0.009 264.519);
  --popover-foreground: oklch(0.367 0.018 246.522);
  --card: oklch(0.942 0.008 264.524);
  --card-foreground: oklch(0.414 0.021 246.539);
  --border: oklch(0.92 0.006 264.529);
  --input: oklch(0.895 0.008 264.52);
  --primary: oklch(0.547 0.084 132.103);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.824 0.032 130.814);
  --secondary-foreground: oklch(0.285 0.025 131.315);
  --accent: oklch(0.832 0.023 264.439);
  --accent-foreground: oklch(0.305 0.03 263.965);
  --destructive: oklch(0.51 0.187 31.491);
  --destructive-foreground: oklch(0.99 0.004 27.954);
  --ring: oklch(0.547 0.084 132.103);
  --chart-1: oklch(0.547 0.084 132.103);
  --chart-2: oklch(0.824 0.032 130.814);
  --chart-3: oklch(0.832 0.023 264.439);
  --chart-4: oklch(0.846 0.028 130.757);
  --chart-5: oklch(0.554 0.092 132.292);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.959 0.006 264.533);
  --foreground: oklch(0.46 0.024 246.552);
  --muted: oklch(0.92 0.006 264.531);
  --muted-foreground: oklch(0.406 0.022 264.291);
  --popover: oklch(0.934 0.009 264.519);
  --popover-foreground: oklch(0.367 0.018 246.522);
  --card: oklch(0.942 0.008 264.524);
  --card-foreground: oklch(0.414 0.021 246.539);
  --border: oklch(0.92 0.006 264.529);
  --input: oklch(0.895 0.008 264.52);
  --primary: oklch(0.547 0.084 132.103);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.824 0.032 130.814);
  --secondary-foreground: oklch(0.285 0.025 131.315);
  --accent: oklch(0.832 0.023 264.439);
  --accent-foreground: oklch(0.305 0.03 263.965);
  --destructive: oklch(0.51 0.187 31.491);
  --destructive-foreground: oklch(0.99 0.004 27.954);
  --ring: oklch(0.547 0.084 132.103);
  --chart-1: oklch(0.547 0.084 132.103);
  --chart-2: oklch(0.824 0.032 130.814);
  --chart-3: oklch(0.832 0.023 264.439);
  --chart-4: oklch(0.846 0.028 130.757);
  --chart-5: oklch(0.554 0.092 132.292);
}