Rush for shadcn/ui

Rush is a shadcn/ui theme built around a deep blue primary color (#141d3d) with deep green accents (#1d3d14). The light mode uses a neutral background (#f7f8fc). Dark mode keeps the deep blue primary (#141d3d) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#f7f8fcghostwhite
#020203black
Foreground
#030716black
#fcfcfdwhite
Card
#f4f5fbwhitesmoke
#040407black
Card foreground
#030612black
#ffffffwhite
Popover
#f7f8fcghostwhite
#020203black
Popover foreground
#030716black
#fcfcfdwhite
Primary
#141d3dmidnightblue
#141d3dmidnightblue
Primary foreground
#a3b0e0lightsteelblue
#a3b0e0lightsteelblue
Secondary
#3d141dblack
#3d141dblack
Secondary foreground
#e0a3b0lightpink
#e0a3b0lightpink
Muted
#e3cfd3lightgrey
#301c21black
Muted foreground
#5d5153dimgray
#aea2a5darkgray
Accent
#1d3d14darkgreen
#1d3d14darkgreen
Accent foreground
#b0e0a3palegreen
#b0e0a3palegreen
Destructive
#992c0bsaddlebrown
#f15e32tomato
Destructive foreground
#fce1d9mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#141d3dmidnightblue
#141d3dmidnightblue

Contrast

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

Light mode
Text on background18.99:1AAA
Text on card18.58:1AAA
Primary button7.71:1AAA
Secondary button7.59:1AAA
Muted text5.09:1AA
Accent8.09:1AAA
Destructive6.24:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.47:1AAA
Primary button7.71:1AAA
Secondary button7.59:1AAA
Muted text6.46:1AA
Accent8.09:1AAA
Destructive6.39:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 273.802);
  --foreground: oklch(0.135 0.035 265.552);
  --muted: oklch(0.871 0.023 2.78);
  --muted-foreground: oklch(0.446 0.017 3.07);
  --popover: oklch(0.981 0.005 273.802);
  --popover-foreground: oklch(0.135 0.035 265.552);
  --card: oklch(0.971 0.008 273.769);
  --card-foreground: oklch(0.124 0.03 264.553);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.243 0.062 269.686);
  --primary-foreground: oklch(0.765 0.07 272.615);
  --secondary: oklch(0.26 0.065 9.336);
  --secondary-foreground: oklch(0.778 0.074 4.616);
  --accent: oklch(0.325 0.076 139.355);
  --accent-foreground: oklch(0.859 0.097 138.967);
  --destructive: oklch(0.457 0.15 35.688);
  --destructive-foreground: oklch(0.93 0.032 37.62);
  --ring: oklch(0.243 0.062 269.686);
  --chart-1: oklch(0.243 0.062 269.686);
  --chart-2: oklch(0.26 0.065 9.336);
  --chart-3: oklch(0.325 0.076 139.355);
  --chart-4: oklch(0.289 0.074 9.709);
  --chart-5: oklch(0.241 0.066 269.355);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.007 270.544);
  --foreground: oklch(0.991 0.001 273.848);
  --muted: oklch(0.255 0.032 5.432);
  --muted-foreground: oklch(0.724 0.015 2.615);
  --popover: oklch(0.087 0.007 270.544);
  --popover-foreground: oklch(0.991 0.001 273.848);
  --card: oklch(0.109 0.008 270.544);
  --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.243 0.062 269.686);
  --primary-foreground: oklch(0.765 0.07 272.615);
  --secondary: oklch(0.26 0.065 9.336);
  --secondary-foreground: oklch(0.778 0.074 4.616);
  --accent: oklch(0.325 0.076 139.355);
  --accent-foreground: oklch(0.859 0.097 138.967);
  --destructive: oklch(0.667 0.19 37.004);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.243 0.062 269.686);
  --chart-1: oklch(0.243 0.062 269.686);
  --chart-2: oklch(0.26 0.065 9.336);
  --chart-3: oklch(0.325 0.076 139.355);
  --chart-4: oklch(0.289 0.074 9.709);
  --chart-5: oklch(0.241 0.066 269.355);
}