Buoyant for shadcn/ui

Buoyant is a shadcn/ui theme built around a light red primary color (#e7c6c7) with light indigo accents (#c6c7e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#e7c6c7) on a red-tinted background (#100405).

Color palette

TokenLightDark
Background
#ffffffwhite
#100405black
Foreground
#140506black
#f8f6f6whitesmoke
Card
#fcfcfcsnow
#140506black
Card foreground
#100405black
#fbf9f9snow
Popover
#fcfcfcsnow
#140506black
Popover foreground
#100405black
#fbf9f9snow
Primary
#e7c6c7thistle
#e7c6c7thistle
Primary foreground
#562526saddlebrown
#562526saddlebrown
Secondary
#c7e7c6lightgrey
#c7e7c6lightgrey
Secondary foreground
#265625darkslategray
#265625darkslategray
Muted
#d9e8d8gainsboro
#172717black
Muted foreground
#5e695ddimgray
#96a296darkgray
Accent
#c6c7e7lightsteelblue
#c6c7e7lightsteelblue
Accent foreground
#252656midnightblue
#252656midnightblue
Destructive
#9c2e0dsaddlebrown
#ed5121chocolate
Destructive foreground
#fce5demistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e7c6c7thistle
#e7c6c7thistle

Contrast

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

Light mode
Text on background19.92:1AAA
Text on card19.72:1AAA
Primary button7.86:1AAA
Secondary button6.40:1AA
Muted text4.52:1AA
Accent8.53:1AAA
Destructive6.20:1AA
Dark mode
Text on background18.70:1AAA
Text on card18.96:1AAA
Primary button7.86:1AAA
Secondary button6.40:1AA
Muted text5.92:1AA
Accent8.53:1AAA
Destructive3.62: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.145 0.028 18.469);
  --muted: oklch(0.916 0.027 144.428);
  --muted-foreground: oklch(0.509 0.023 144.319);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.132 0.024 17.978);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.132 0.024 17.978);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.854 0.037 15.622);
  --primary-foreground: oklch(0.333 0.073 19.795);
  --secondary: oklch(0.895 0.055 144.212);
  --secondary-foreground: oklch(0.406 0.094 143.01);
  --accent: oklch(0.839 0.044 283.846);
  --accent-foreground: oklch(0.297 0.084 278.487);
  --destructive: oklch(0.465 0.151 35.843);
  --destructive-foreground: oklch(0.939 0.027 37.632);
  --ring: oklch(0.854 0.037 15.622);
  --chart-1: oklch(0.854 0.037 15.622);
  --chart-2: oklch(0.895 0.055 144.212);
  --chart-3: oklch(0.839 0.044 283.846);
  --chart-4: oklch(0.914 0.045 144.298);
  --chart-5: oklch(0.853 0.04 15.69);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.025 18.066);
  --foreground: oklch(0.976 0.002 14.831);
  --muted: oklch(0.252 0.036 143.641);
  --muted-foreground: oklch(0.698 0.022 144.418);
  --popover: oklch(0.144 0.029 18.562);
  --popover-foreground: oklch(0.984 0.001 14.817);
  --card: oklch(0.144 0.029 18.562);
  --card-foreground: oklch(0.984 0.001 14.817);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.854 0.037 15.622);
  --primary-foreground: oklch(0.333 0.073 19.795);
  --secondary: oklch(0.895 0.055 144.212);
  --secondary-foreground: oklch(0.406 0.094 143.01);
  --accent: oklch(0.839 0.044 283.846);
  --accent-foreground: oklch(0.297 0.084 278.487);
  --destructive: oklch(0.643 0.2 36.313);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.854 0.037 15.622);
  --chart-1: oklch(0.854 0.037 15.622);
  --chart-2: oklch(0.895 0.055 144.212);
  --chart-3: oklch(0.839 0.044 283.846);
  --chart-4: oklch(0.914 0.045 144.298);
  --chart-5: oklch(0.853 0.04 15.69);
}