Upbeat for shadcn/ui

Upbeat is a shadcn/ui theme built around a muted green primary color (#83b990) with muted teal accents (#83b9ab). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted green primary (#83b990) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefcwhite
#000000black
Foreground
#031707black
#ffffffwhite
Card
#f6fdf8mintcream
#030303black
Card foreground
#021206black
#ffffffwhite
Popover
#fbfefcwhite
#000000black
Popover foreground
#031707black
#ffffffwhite
Primary
#83b990darkseagreen
#83b990darkseagreen
Primary foreground
#040704black
#040704black
Secondary
#91b983darkseagreen
#91b983darkseagreen
Secondary foreground
#040704black
#040704black
Muted
#e1efdcgainsboro
#152310black
Muted foreground
#60645edimgray
#9da19bdarkgray
Accent
#83b9abdarkseagreen
#83b9abdarkseagreen
Accent foreground
#040706black
#040706black
Destructive
#9f380fsaddlebrown
#ea551achocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#83b990darkseagreen
#83b990darkseagreen

Contrast

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

Light mode
Text on background18.31:1AAA
Text on card18.67:1AAA
Primary button8.98:1AAA
Secondary button9.15:1AAA
Muted text5.04:1AA
Accent9.16:1AAA
Destructive6.92:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button8.98:1AAA
Secondary button9.15:1AAA
Muted text6.25:1AA
Accent9.16:1AAA
Destructive3.61: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.994 0.005 153.158);
  --foreground: oklch(0.181 0.042 150.199);
  --muted: oklch(0.936 0.029 137.263);
  --muted-foreground: oklch(0.497 0.011 137.239);
  --popover: oklch(0.994 0.005 153.158);
  --popover-foreground: oklch(0.181 0.042 150.199);
  --card: oklch(0.988 0.01 153.073);
  --card-foreground: oklch(0.163 0.036 151.089);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.737 0.083 151.226);
  --primary-foreground: oklch(0.119 0.01 152.87);
  --secondary: oklch(0.743 0.087 137.518);
  --secondary-foreground: oklch(0.12 0.011 136.331);
  --accent: oklch(0.744 0.061 176.162);
  --accent-foreground: oklch(0.12 0.008 178.838);
  --destructive: oklch(0.482 0.145 38.903);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.737 0.083 151.226);
  --chart-1: oklch(0.737 0.083 151.226);
  --chart-2: oklch(0.743 0.087 137.518);
  --chart-3: oklch(0.744 0.061 176.162);
  --chart-4: oklch(0.764 0.08 137.474);
  --chart-5: oklch(0.742 0.091 151.011);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.237 0.039 137.736);
  --muted-foreground: oklch(0.704 0.01 137.221);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.737 0.083 151.226);
  --primary-foreground: oklch(0.119 0.01 152.87);
  --secondary: oklch(0.743 0.087 137.518);
  --secondary-foreground: oklch(0.12 0.011 136.331);
  --accent: oklch(0.744 0.061 176.162);
  --accent-foreground: oklch(0.12 0.008 178.838);
  --destructive: oklch(0.643 0.195 38.824);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.737 0.083 151.226);
  --chart-1: oklch(0.737 0.083 151.226);
  --chart-2: oklch(0.743 0.087 137.518);
  --chart-3: oklch(0.744 0.061 176.162);
  --chart-4: oklch(0.764 0.08 137.474);
  --chart-5: oklch(0.742 0.091 151.011);
}