LastRP for shadcn/ui

LastRP is a shadcn/ui theme built around a deep blue primary color (#2f4e68) with orange accents (#bea069). The light mode uses a neutral background (#ffffff). Dark mode switches to a blue primary (#2081ca) on a neutral background (#313235).

Color palette

TokenLightDark
Background
#ffffffwhite
#313235darkslategray
Foreground
#0c0a09black
#fafaf9snow
Card
#f7f7f7whitesmoke
#070709black
Card foreground
#0c0a09black
#fafaf9snow
Popover
#ffffffwhite
#0c0a09black
Popover foreground
#0c0a09black
#fafaf9snow
Primary
#2f4e68darkslategray
#2081casteelblue
Primary foreground
#ffffffwhite
#ecececwhitesmoke
Secondary
#f7f7f7whitesmoke
#1f396amidnightblue
Secondary foreground
#1c1917black
#ecececwhitesmoke
Muted
#f5f5f4whitesmoke
#1d2b4fmidnightblue
Muted foreground
#78716cdimgray
#ecececwhitesmoke
Accent
#bea069darkkhaki
#6357bbslateblue
Accent foreground
#ffffffwhite
#ecececwhitesmoke
Destructive
#d91818crimson
#7f1d1dmaroon
Destructive foreground
#fafaf9snow
#fafaf9snow
Border
#e7e5e4gainsboro
#292524darkslategray
Input
#e7e5e4gainsboro
#292524darkslategray
Ring
#0c0a09black
#a16207saddlebrown

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card18.49:1AAA
Primary button8.71:1AAA
Secondary button16.32:1AAA
Muted text4.39:1AA Large
Accent2.49:1Fail
Destructive4.92:1AA
Dark mode
Text on background12.24:1AAA
Text on card19.31:1AAA
Primary button3.51:1AA Large
Secondary button9.60:1AAA
Muted text11.73:1AAA
Accent4.91:1AA
Destructive9.58:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.147 0.004 49.314);
  --muted: oklch(0.97 0.001 106.424);
  --muted-foreground: oklch(0.553 0.012 58.069);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.147 0.004 49.314);
  --card: oklch(0.977 0 180);
  --card-foreground: oklch(0.147 0.004 49.314);
  --border: oklch(0.923 0.003 48.716);
  --input: oklch(0.923 0.003 48.716);
  --primary: oklch(0.412 0.057 245.124);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.976 0 180);
  --secondary-foreground: oklch(0.216 0.006 56.043);
  --accent: oklch(0.72 0.081 81.979);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.563 0.22 28.243);
  --destructive-foreground: oklch(0.985 0.001 106.424);
  --ring: oklch(0.147 0.004 49.314);
  --chart-1: oklch(0.412 0.057 245.124);
  --chart-2: oklch(0.976 0 180);
  --chart-3: oklch(0.72 0.081 81.979);
  --chart-4: oklch(0.999 0 180);
  --chart-5: oklch(0.412 0.061 245.365);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.318 0.005 273.911);
  --foreground: oklch(0.985 0.001 106.424);
  --muted: oklch(0.298 0.068 265.78);
  --muted-foreground: oklch(0.943 0 180);
  --popover: oklch(0.147 0.004 49.314);
  --popover-foreground: oklch(0.985 0.001 106.424);
  --card: oklch(0.127 0.006 283.771);
  --card-foreground: oklch(0.985 0.001 106.424);
  --border: oklch(0.269 0.006 34.297);
  --input: oklch(0.269 0.006 34.297);
  --primary: oklch(0.586 0.141 246.914);
  --primary-foreground: oklch(0.943 0 180);
  --secondary: oklch(0.352 0.091 261.598);
  --secondary-foreground: oklch(0.943 0 180);
  --accent: oklch(0.52 0.152 285.349);
  --accent-foreground: oklch(0.943 0 180);
  --destructive: oklch(0.396 0.133 25.721);
  --destructive-foreground: oklch(0.985 0.001 106.424);
  --ring: oklch(0.554 0.121 66.531);
  --chart-1: oklch(0.586 0.141 246.914);
  --chart-2: oklch(0.352 0.091 261.598);
  --chart-3: oklch(0.52 0.152 285.349);
  --chart-4: oklch(0.377 0.1 261.577);
  --chart-5: oklch(0.588 0.145 247.37);
}