Valley for shadcn/ui

Valley is a shadcn/ui theme built around a vivid light blue primary color (#d0ebfb) with muted blue accents (#abbbc4). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light blue primary (#d0ebfb) on a neutral background (#030608).

Color palette

TokenLightDark
Background
#ffffffwhite
#030608black
Foreground
#020c12black
#f9fafbghostwhite
Card
#fcfcfcsnow
#04090bblack
Card foreground
#02090dblack
#fcfdfdwhite
Popover
#fcfcfcsnow
#04090bblack
Popover foreground
#02090dblack
#fcfdfdwhite
Primary
#d0ebfblavender
#d0ebfblavender
Primary foreground
#041f2fblack
#041f2fblack
Secondary
#cdd2d6lightgrey
#1f1f1fblack
Secondary foreground
#323a3edarkslategray
#b8b8b8silver
Muted
#e7eff4lavender
#180b0bblack
Muted foreground
#5c5f61dimgray
#a39e9edarkgray
Accent
#abbbc4silver
#393232darkslategray
Accent foreground
#192024black
#d2cbcblightgrey
Destructive
#b53308firebrick
#e6410aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d0ebfblavender
#d0ebfblavender

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.61:1AAA
Primary button13.67:1AAA
Secondary button7.62:1AAA
Muted text5.52:1AA
Accent8.35:1AAA
Destructive6.09:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.67:1AAA
Primary button13.67:1AAA
Secondary button8.34:1AAA
Muted text7.25:1AAA
Accent7.85:1AAA
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.147 0.022 229.628);
  --muted: oklch(0.947 0.011 232.746);
  --muted-foreground: oklch(0.483 0.006 232.745);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.133 0.019 225.684);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.133 0.019 225.684);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.926 0.036 233.172);
  --primary-foreground: oklch(0.229 0.045 237.909);
  --secondary: oklch(0.861 0.008 232.709);
  --secondary-foreground: oklch(0.342 0.012 233.114);
  --accent: oklch(0.783 0.022 233.007);
  --accent-foreground: oklch(0.239 0.013 233.445);
  --destructive: oklch(0.516 0.173 35.803);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.926 0.036 233.172);
  --chart-1: oklch(0.926 0.036 233.172);
  --chart-2: oklch(0.861 0.008 232.709);
  --chart-3: oklch(0.783 0.022 233.007);
  --chart-4: oklch(0.885 0.007 232.684);
  --chart-5: oklch(0.926 0.037 233.195);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.01 226.872);
  --foreground: oklch(0.985 0.002 232.602);
  --muted: oklch(0.17 0.023 19.754);
  --muted-foreground: oklch(0.703 0.007 17.313);
  --popover: oklch(0.133 0.012 227.274);
  --popover-foreground: oklch(0.992 0.001 232.591);
  --card: oklch(0.133 0.012 227.274);
  --card-foreground: oklch(0.992 0.001 232.591);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.926 0.036 233.172);
  --primary-foreground: oklch(0.229 0.045 237.909);
  --secondary: oklch(0.238 0 161.565);
  --secondary-foreground: oklch(0.781 0 180);
  --accent: oklch(0.324 0.011 17.721);
  --accent-foreground: oklch(0.848 0.008 17.305);
  --destructive: oklch(0.614 0.209 35.463);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.926 0.036 233.172);
  --chart-1: oklch(0.926 0.036 233.172);
  --chart-2: oklch(0.238 0 161.565);
  --chart-3: oklch(0.324 0.011 17.721);
  --chart-4: oklch(0.27 0 180);
  --chart-5: oklch(0.926 0.037 233.195);
}