Upbeat for shadcn/ui

Upbeat is a shadcn/ui theme built around a muted deep orange primary color (#0c0a09) with muted deep blue accents (#090b0c). The light mode uses a neutral background (#fbf9f8). Dark mode keeps the muted deep orange primary (#0c0a09) on an orange-tinted background (#0e0906).

Color palette

TokenLightDark
Background
#fbf9f8snow
#0e0906black
Foreground
#000000black
#ffffffwhite
Card
#fbf9f8snow
#0e0906black
Card foreground
#000000black
#ffffffwhite
Popover
#fbf9f8snow
#0e0906black
Popover foreground
#000000black
#ffffffwhite
Primary
#0c0a09black
#0c0a09black
Primary foreground
#afa097darkgray
#afa097darkgray
Secondary
#090b0cblack
#090b0cblack
Secondary foreground
#97a6afdarkgray
#97a6afdarkgray
Muted
#d5e3ecgainsboro
#13222ablack
Muted foreground
#3b474edarkslategray
#b1bdc4silver
Accent
#090b0cblack
#090b0cblack
Accent foreground
#97a6afdarkgray
#97a6afdarkgray
Destructive
#6a2b06saddlebrown
#f1610eorangered
Destructive foreground
#fac6a8navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c0a09black
#0c0a09black

Contrast

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

Light mode
Text on background20.08:1AAA
Text on card20.08:1AAA
Primary button7.81:1AAA
Secondary button7.89:1AAA
Muted text7.31:1AAA
Accent7.89:1AAA
Destructive6.99:1AA
Dark mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button7.81:1AAA
Secondary button7.89:1AAA
Muted text8.51:1AAA
Accent7.89:1AAA
Destructive6.46:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 52.544);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.909 0.019 232.886);
  --muted-foreground: oklch(0.391 0.02 233.389);
  --popover: oklch(0.985 0.003 52.544);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.003 52.544);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.146 0.004 53.352);
  --primary-foreground: oklch(0.716 0.022 52.183);
  --secondary: oklch(0.146 0.004 232.338);
  --secondary-foreground: oklch(0.717 0.021 233.023);
  --accent: oklch(0.146 0.004 232.338);
  --accent-foreground: oklch(0.717 0.021 233.023);
  --destructive: oklch(0.373 0.101 45.126);
  --destructive-foreground: oklch(0.866 0.072 51.524);
  --ring: oklch(0.146 0.004 53.352);
  --chart-1: oklch(0.146 0.004 53.352);
  --chart-2: oklch(0.146 0.004 232.338);
  --chart-3: oklch(0.146 0.004 232.338);
  --chart-4: oklch(0.182 0.006 233.062);
  --chart-5: oklch(0.146 0.005 53.593);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.011 55.532);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.241 0.025 234.67);
  --muted-foreground: oklch(0.79 0.017 232.891);
  --popover: oklch(0.146 0.011 55.532);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.146 0.011 55.532);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.146 0.004 53.352);
  --primary-foreground: oklch(0.716 0.022 52.183);
  --secondary: oklch(0.146 0.004 232.338);
  --secondary-foreground: oklch(0.717 0.021 233.023);
  --accent: oklch(0.146 0.004 232.338);
  --accent-foreground: oklch(0.717 0.021 233.023);
  --destructive: oklch(0.669 0.194 43.067);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.146 0.004 53.352);
  --chart-1: oklch(0.146 0.004 53.352);
  --chart-2: oklch(0.146 0.004 232.338);
  --chart-3: oklch(0.146 0.004 232.338);
  --chart-4: oklch(0.182 0.006 233.062);
  --chart-5: oklch(0.146 0.005 53.593);
}