Upbeat for shadcn/ui

Upbeat is a shadcn/ui theme built around a vivid deep indigo primary color (#07013c) with vivid deep green accents (#363c01). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid deep indigo primary (#07013c) on an indigo-tinted background (#08070d).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#08070dblack
Foreground
#070614black
#f7f7f8whitesmoke
Card
#f8f7fdghostwhite
#0a0911black
Card foreground
#060510black
#f9f9faghostwhite
Popover
#f8f7fdghostwhite
#0a0911black
Popover foreground
#060510black
#f9f9faghostwhite
Primary
#07013cmidnightblue
#07013cmidnightblue
Primary foreground
#dbd7felavender
#dbd7felavender
Secondary
#363c01darkgreen
#363c01darkgreen
Secondary foreground
#e3fa0fyellow
#e3fa0fyellow
Muted
#eaecd4antiquewhite
#282b13black
Muted foreground
#606156dimgray
#a8a99edarkgray
Accent
#363c01darkgreen
#363c01darkgreen
Accent foreground
#e3fa0fyellow
#e3fa0fyellow
Destructive
#891e06darkred
#f53d14orangered
Destructive foreground
#fdcfc4peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#07013cmidnightblue
#07013cmidnightblue

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card18.98:1AAA
Primary button14.04:1AAA
Secondary button9.94:1AAA
Muted text5.23:1AA
Accent9.94:1AAA
Destructive6.61:1AA
Dark mode
Text on background18.73:1AAA
Text on card18.84:1AAA
Primary button14.04:1AAA
Secondary button9.94:1AAA
Muted text6.13:1AA
Accent9.94:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 290.939);
  --foreground: oklch(0.133 0.031 286.969);
  --muted: oklch(0.936 0.032 111.642);
  --muted-foreground: oklch(0.489 0.017 111.666);
  --popover: oklch(0.978 0.008 290.862);
  --popover-foreground: oklch(0.123 0.027 287.783);
  --card: oklch(0.978 0.008 290.862);
  --card-foreground: oklch(0.123 0.027 287.783);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.171 0.105 273.02);
  --primary-foreground: oklch(0.895 0.054 289.857);
  --secondary: oklch(0.339 0.076 115.806);
  --secondary-foreground: oklch(0.936 0.213 116.483);
  --accent: oklch(0.339 0.076 115.806);
  --accent-foreground: oklch(0.936 0.213 116.483);
  --destructive: oklch(0.414 0.146 33.292);
  --destructive-foreground: oklch(0.89 0.054 32.807);
  --ring: oklch(0.171 0.105 273.02);
  --chart-1: oklch(0.171 0.105 273.02);
  --chart-2: oklch(0.339 0.076 115.806);
  --chart-3: oklch(0.339 0.076 115.806);
  --chart-4: oklch(0.393 0.089 116.026);
  --chart-5: oklch(0.17 0.108 272.137);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.014 289.557);
  --foreground: oklch(0.975 0.002 290.975);
  --muted: oklch(0.278 0.04 113.68);
  --muted-foreground: oklch(0.73 0.016 111.413);
  --popover: oklch(0.145 0.017 288.908);
  --popover-foreground: oklch(0.984 0.001 290.988);
  --card: oklch(0.145 0.017 288.908);
  --card-foreground: oklch(0.984 0.001 290.988);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.171 0.105 273.02);
  --primary-foreground: oklch(0.895 0.054 289.857);
  --secondary: oklch(0.339 0.076 115.806);
  --secondary-foreground: oklch(0.936 0.213 116.483);
  --accent: oklch(0.339 0.076 115.806);
  --accent-foreground: oklch(0.936 0.213 116.483);
  --destructive: oklch(0.637 0.225 33.188);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.171 0.105 273.02);
  --chart-1: oklch(0.171 0.105 273.02);
  --chart-2: oklch(0.339 0.076 115.806);
  --chart-3: oklch(0.339 0.076 115.806);
  --chart-4: oklch(0.393 0.089 116.026);
  --chart-5: oklch(0.17 0.108 272.137);
}