River for shadcn/ui

River is a shadcn/ui theme built around a blue primary color (#283cb8) with muted light blue accents (#c1c4d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#283cb8) on a blue-tinted background (#05070f).

Color palette

TokenLightDark
Background
#ffffffwhite
#05070fblack
Foreground
#020308black
#fcfcfdwhite
Card
#ffffffwhite
#05070fblack
Card foreground
#020308black
#fcfcfdwhite
Popover
#ffffffwhite
#05070fblack
Popover foreground
#020308black
#fcfcfdwhite
Primary
#283cb8darkslateblue
#283cb8darkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d5d6dcgainsboro
#2a2b2cdarkslategray
Secondary foreground
#3a3c45darkslategray
#c3c3c6silver
Muted
#e6e7f0lavender
#0f111ablack
Muted foreground
#53576edimgray
#9194acdarkgray
Accent
#c1c4d1silver
#383a42darkslategray
Accent foreground
#292b38darkslategray
#d3d4d9lightgrey
Destructive
#c1300bfirebrick
#de370dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#283cb8darkslateblue
#283cb8darkslateblue

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button8.67:1AAA
Secondary button7.59:1AAA
Muted text5.75:1AA
Accent8.05:1AAA
Destructive5.70:1AA
Dark mode
Text on background19.64:1AAA
Text on card19.64:1AAA
Primary button8.67:1AAA
Secondary button8.07:1AAA
Muted text6.31:1AA
Accent7.68:1AAA
Destructive4.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.017 273.175);
  --muted: oklch(0.929 0.012 279.144);
  --muted-foreground: oklch(0.463 0.038 277.948);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.1 0.017 273.175);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.1 0.017 273.175);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.429 0.195 269.046);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.878 0.008 279.199);
  --secondary-foreground: oklch(0.357 0.017 278.565);
  --accent: oklch(0.822 0.02 278.973);
  --accent-foreground: oklch(0.293 0.023 278.029);
  --destructive: oklch(0.533 0.187 33.732);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.429 0.195 269.046);
  --chart-1: oklch(0.429 0.195 269.046);
  --chart-2: oklch(0.878 0.008 279.199);
  --chart-3: oklch(0.822 0.02 278.973);
  --chart-4: oklch(0.903 0.007 279.232);
  --chart-5: oklch(0.427 0.203 268.471);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.02 274.644);
  --foreground: oklch(0.991 0.002 279.312);
  --muted: oklch(0.179 0.018 277.585);
  --muted-foreground: oklch(0.672 0.035 278.505);
  --popover: oklch(0.129 0.02 274.644);
  --popover-foreground: oklch(0.991 0.002 279.312);
  --card: oklch(0.129 0.02 274.644);
  --card-foreground: oklch(0.991 0.002 279.312);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.429 0.195 269.046);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.288 0.003 279.197);
  --secondary-foreground: oklch(0.819 0.003 279.289);
  --accent: oklch(0.349 0.015 278.666);
  --accent-foreground: oklch(0.87 0.008 279.205);
  --destructive: oklch(0.591 0.208 33.609);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.429 0.195 269.046);
  --chart-1: oklch(0.429 0.195 269.046);
  --chart-2: oklch(0.288 0.003 279.197);
  --chart-3: oklch(0.349 0.015 278.666);
  --chart-4: oklch(0.319 0.003 279.192);
  --chart-5: oklch(0.427 0.203 268.471);
}