Run for shadcn/ui

Run is a shadcn/ui theme built around a light green primary color (#b8d5af) with light red accents (#d5afb8). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#b8d5af) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#ffffffwhite
#020401black
Foreground
#030802black
#ffffffwhite
Card
#ffffffwhite
#020401black
Card foreground
#030802black
#ffffffwhite
Popover
#ffffffwhite
#020401black
Popover foreground
#030802black
#ffffffwhite
Primary
#b8d5afsilver
#b8d5afsilver
Primary foreground
#22351cdarkslategray
#22351cdarkslategray
Secondary
#afb8d5lightsteelblue
#afb8d5lightsteelblue
Secondary foreground
#1c2235darkslategray
#1c2235darkslategray
Muted
#dbdfebgainsboro
#141824black
Muted foreground
#3e414cdarkslategray
#b3b6c1silver
Accent
#d5afb8silver
#d5afb8silver
Accent foreground
#351c22darkslategray
#351c22darkslategray
Destructive
#c61f10firebrick
#d92212firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b8d5afsilver
#b8d5afsilver

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button8.24:1AAA
Secondary button7.97:1AAA
Muted text7.61:1AAA
Accent7.92:1AAA
Destructive5.81:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button8.24:1AAA
Secondary button7.97:1AAA
Muted text8.76:1AAA
Accent7.92:1AAA
Destructive5.01:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.023 136.508);
  --muted: oklch(0.903 0.017 272.449);
  --muted-foreground: oklch(0.377 0.019 272.086);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.023 136.508);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.023 136.508);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.841 0.06 138.415);
  --primary-foreground: oklch(0.306 0.05 138.622);
  --secondary: oklch(0.784 0.043 272.019);
  --secondary-foreground: oklch(0.256 0.038 270.624);
  --accent: oklch(0.79 0.046 2.526);
  --accent-foreground: oklch(0.263 0.041 5.171);
  --destructive: oklch(0.531 0.202 30.086);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.841 0.06 138.415);
  --chart-1: oklch(0.841 0.06 138.415);
  --chart-2: oklch(0.784 0.043 272.019);
  --chart-3: oklch(0.79 0.046 2.526);
  --chart-4: oklch(0.812 0.037 272.135);
  --chart-5: oklch(0.844 0.066 138.425);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.013 137.011);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.21 0.026 271.042);
  --muted-foreground: oklch(0.778 0.015 272.445);
  --popover: oklch(0.097 0.013 137.011);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.097 0.013 137.011);
  --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.841 0.06 138.415);
  --primary-foreground: oklch(0.306 0.05 138.622);
  --secondary: oklch(0.784 0.043 272.019);
  --secondary-foreground: oklch(0.256 0.038 270.624);
  --accent: oklch(0.79 0.046 2.526);
  --accent-foreground: oklch(0.263 0.041 5.171);
  --destructive: oklch(0.568 0.216 30.09);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.841 0.06 138.415);
  --chart-1: oklch(0.841 0.06 138.415);
  --chart-2: oklch(0.784 0.043 272.019);
  --chart-3: oklch(0.79 0.046 2.526);
  --chart-4: oklch(0.812 0.037 272.135);
  --chart-5: oklch(0.844 0.066 138.425);
}