Upgrade for shadcn/ui

Upgrade is a shadcn/ui theme built around a light cyan primary color (#d3e6e9) with light red accents (#e9d6d3). The light mode uses a neutral background (#fbfefe). Dark mode keeps the light cyan primary (#d3e6e9) on a neutral background (#020708).

Color palette

TokenLightDark
Background
#fbfefewhite
#020708black
Foreground
#030b0cblack
#f8fbfcghostwhite
Card
#fbfefewhite
#020708black
Card foreground
#030b0cblack
#f8fbfcghostwhite
Popover
#fbfefewhite
#020708black
Popover foreground
#030b0cblack
#f8fbfcghostwhite
Primary
#d3e6e9gainsboro
#d3e6e9gainsboro
Primary foreground
#2d555cdarkslategray
#2d555cdarkslategray
Secondary
#e9d6d3gainsboro
#e9d6d3gainsboro
Secondary foreground
#5c342ddarkolivegreen
#5c342ddarkolivegreen
Muted
#f7efeelinen
#110a08black
Muted foreground
#696463dimgray
#9c9796darkgray
Accent
#e9d6d3gainsboro
#e9d6d3gainsboro
Accent foreground
#5c342ddarkolivegreen
#5c342ddarkolivegreen
Destructive
#740c06maroon
#e9170cred
Destructive foreground
#fbb5b1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d3e6e9gainsboro
#d3e6e9gainsboro

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button6.32:1AA
Secondary button7.56:1AAA
Muted text5.14:1AA
Accent7.56:1AAA
Destructive6.85:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button6.32:1AA
Secondary button7.56:1AAA
Muted text6.80:1AA
Accent7.56:1AAA
Destructive4.58:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 209.46);
  --foreground: oklch(0.14 0.015 206.845);
  --muted: oklch(0.958 0.009 29.499);
  --muted-foreground: oklch(0.507 0.007 29.517);
  --popover: oklch(0.994 0.003 209.46);
  --popover-foreground: oklch(0.14 0.015 206.845);
  --card: oklch(0.994 0.003 209.46);
  --card-foreground: oklch(0.14 0.015 206.845);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.911 0.021 209.43);
  --primary-foreground: oklch(0.424 0.046 210.137);
  --secondary: oklch(0.891 0.022 29.569);
  --secondary-foreground: oklch(0.374 0.059 30.792);
  --accent: oklch(0.891 0.022 29.569);
  --accent-foreground: oklch(0.374 0.059 30.792);
  --destructive: oklch(0.358 0.138 29.402);
  --destructive-foreground: oklch(0.838 0.082 22.354);
  --ring: oklch(0.911 0.021 209.43);
  --chart-1: oklch(0.911 0.021 209.43);
  --chart-2: oklch(0.891 0.022 29.569);
  --chart-3: oklch(0.891 0.022 29.569);
  --chart-4: oklch(0.916 0.017 29.538);
  --chart-5: oklch(0.912 0.023 209.429);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.012 206.335);
  --foreground: oklch(0.987 0.004 209.459);
  --muted: oklch(0.153 0.014 30.908);
  --muted-foreground: oklch(0.68 0.006 29.5);
  --popover: oklch(0.121 0.012 206.335);
  --popover-foreground: oklch(0.987 0.004 209.459);
  --card: oklch(0.121 0.012 206.335);
  --card-foreground: oklch(0.987 0.004 209.459);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.911 0.021 209.43);
  --primary-foreground: oklch(0.424 0.046 210.137);
  --secondary: oklch(0.891 0.022 29.569);
  --secondary-foreground: oklch(0.374 0.059 30.792);
  --accent: oklch(0.891 0.022 29.569);
  --accent-foreground: oklch(0.374 0.059 30.792);
  --destructive: oklch(0.592 0.234 29.481);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.911 0.021 209.43);
  --chart-1: oklch(0.911 0.021 209.43);
  --chart-2: oklch(0.891 0.022 29.569);
  --chart-3: oklch(0.891 0.022 29.569);
  --chart-4: oklch(0.916 0.017 29.538);
  --chart-5: oklch(0.912 0.023 209.429);
}