River for shadcn/ui

River is a shadcn/ui theme built around a vivid light teal primary color (#ccfdff) with vivid light red accents (#ffcecc). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the vivid light teal primary (#ccfdff) on a teal-tinted background (#060e0e).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#060e0eblack
Foreground
#000000black
#ffffffwhite
Card
#f8fcfcmintcream
#081112black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfdfdwhite
#060e0eblack
Popover foreground
#000000black
#ffffffwhite
Primary
#ccfdfflightcyan
#ccfdfflightcyan
Primary foreground
#003133darkslategray
#003133darkslategray
Secondary
#ffceccpink
#ffceccpink
Secondary foreground
#980601darkred
#980601darkred
Muted
#e9ddddgainsboro
#221716black
Muted foreground
#6d5f5fdimgray
#a09292rosybrown
Accent
#ffceccpink
#ffceccpink
Accent foreground
#980601darkred
#980601darkred
Destructive
#9d0202darkred
#e30202red
Destructive foreground
#ffd2d2pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ccfdfflightcyan
#ccfdfflightcyan

Contrast

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

Light mode
Text on background20.63:1AAA
Text on card20.27:1AAA
Primary button12.82:1AAA
Secondary button6.32:1AA
Muted text4.60:1AA
Accent6.32:1AA
Destructive6.33:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.06:1AAA
Primary button12.82:1AAA
Secondary button6.32:1AA
Muted text5.85:1AA
Accent6.32:1AA
Destructive4.90:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 199.579);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.908 0.013 19.801);
  --muted-foreground: oklch(0.5 0.018 20.13);
  --popover: oklch(0.994 0.002 199.579);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.004 199.552);
  --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.961 0.05 198.962);
  --primary-foreground: oklch(0.285 0.048 198.458);
  --secondary: oklch(0.893 0.055 20.554);
  --secondary-foreground: oklch(0.43 0.173 29.662);
  --accent: oklch(0.893 0.055 20.554);
  --accent-foreground: oklch(0.43 0.173 29.662);
  --destructive: oklch(0.437 0.178 29.117);
  --destructive-foreground: oklch(0.901 0.051 18.136);
  --ring: oklch(0.961 0.05 198.962);
  --chart-1: oklch(0.961 0.05 198.962);
  --chart-2: oklch(0.893 0.055 20.554);
  --chart-3: oklch(0.893 0.055 20.554);
  --chart-4: oklch(0.925 0.038 20.214);
  --chart-5: oklch(0.962 0.051 198.947);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.013 198.489);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.217 0.019 20.963);
  --muted-foreground: oklch(0.673 0.016 19.958);
  --popover: oklch(0.155 0.013 198.489);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.17 0.015 198.582);
  --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.961 0.05 198.962);
  --primary-foreground: oklch(0.285 0.048 198.458);
  --secondary: oklch(0.893 0.055 20.554);
  --secondary-foreground: oklch(0.43 0.173 29.662);
  --accent: oklch(0.893 0.055 20.554);
  --accent-foreground: oklch(0.43 0.173 29.662);
  --destructive: oklch(0.576 0.236 29.16);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.961 0.05 198.962);
  --chart-1: oklch(0.961 0.05 198.962);
  --chart-2: oklch(0.893 0.055 20.554);
  --chart-3: oklch(0.893 0.055 20.554);
  --chart-4: oklch(0.925 0.038 20.214);
  --chart-5: oklch(0.962 0.051 198.947);
}