Upward for shadcn/ui

Upward is a shadcn/ui theme built around a vivid blue primary color (#5daae9) with muted light blue accents (#cbd2d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#5daae9) on a blue-tinted background (#05080b).

Color palette

TokenLightDark
Background
#ffffffwhite
#05080bblack
Foreground
#020508black
#f8fafbghostwhite
Card
#fcfcfcsnow
#060b0eblack
Card foreground
#010304black
#fcfdfdwhite
Popover
#ffffffwhite
#05080bblack
Popover foreground
#020508black
#f8fafbghostwhite
Primary
#5daae9cornflowerblue
#5daae9cornflowerblue
Primary foreground
#020b12black
#020b12black
Secondary
#cbd2d8lightgrey
#151719black
Secondary foreground
#303940darkslategray
#a9b1b7darkgray
Muted
#f2f2f3whitesmoke
#0c0d0dblack
Muted foreground
#58656fdimgray
#909da7darkgray
Accent
#cbd2d8lightgrey
#151719black
Accent foreground
#303940darkslategray
#a9b1b7darkgray
Destructive
#db1e06red
#f9341aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5daae9cornflowerblue
#5daae9cornflowerblue

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.22:1AAA
Primary button7.93:1AAA
Secondary button7.68:1AAA
Muted text5.36:1AA
Accent7.68:1AAA
Destructive5.00:1AA
Dark mode
Text on background19.19:1AAA
Text on card19.43:1AAA
Primary button7.93:1AAA
Secondary button8.25:1AAA
Muted text7.01:1AAA
Accent8.25:1AAA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.114 0.012 234.782);
  --muted: oklch(0.962 0.001 242.208);
  --muted-foreground: oklch(0.498 0.024 242.832);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.114 0.012 234.782);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.09 0.009 234.782);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.715 0.12 245.267);
  --primary-foreground: oklch(0.143 0.023 237.581);
  --secondary: oklch(0.859 0.011 242.365);
  --secondary-foreground: oklch(0.339 0.017 242.876);
  --accent: oklch(0.859 0.011 242.365);
  --accent-foreground: oklch(0.339 0.017 242.876);
  --destructive: oklch(0.569 0.22 30.708);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.715 0.12 245.267);
  --chart-1: oklch(0.715 0.12 245.267);
  --chart-2: oklch(0.859 0.011 242.365);
  --chart-3: oklch(0.859 0.011 242.365);
  --chart-4: oklch(0.883 0.009 242.332);
  --chart-5: oklch(0.716 0.124 245.442);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.009 237.074);
  --foreground: oklch(0.984 0.003 242.228);
  --muted: oklch(0.158 0.002 242.335);
  --muted-foreground: oklch(0.688 0.022 242.616);
  --popover: oklch(0.131 0.009 237.074);
  --popover-foreground: oklch(0.984 0.003 242.228);
  --card: oklch(0.144 0.011 240.266);
  --card-foreground: oklch(0.992 0.001 242.211);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.715 0.12 245.267);
  --primary-foreground: oklch(0.143 0.023 237.581);
  --secondary: oklch(0.204 0.005 242.527);
  --secondary-foreground: oklch(0.755 0.013 242.417);
  --accent: oklch(0.204 0.005 242.527);
  --accent-foreground: oklch(0.755 0.013 242.417);
  --destructive: oklch(0.638 0.234 31.014);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.715 0.12 245.267);
  --chart-1: oklch(0.715 0.12 245.267);
  --chart-2: oklch(0.204 0.005 242.527);
  --chart-3: oklch(0.204 0.005 242.527);
  --chart-4: oklch(0.237 0.007 242.563);
  --chart-5: oklch(0.716 0.124 245.442);
}