Last for shadcn/ui

Last is a shadcn/ui theme built around a neutral gray primary color (#5f5e5d) with neutral gray accents (#5f5f5d). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the neutral gray primary (#5f5e5d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#000000black
Foreground
#120503black
#fbf9f9snow
Card
#fdfcfcsnow
#000000black
Card foreground
#120503black
#fbf9f9snow
Popover
#fdfcfcsnow
#000000black
Popover foreground
#120503black
#fbf9f9snow
Primary
#5f5e5ddimgray
#5f5e5ddimgray
Primary foreground
#f7f7f7whitesmoke
#f7f7f7whitesmoke
Secondary
#5f5d5edimgray
#5f5d5edimgray
Secondary foreground
#f7f7f7whitesmoke
#f7f7f7whitesmoke
Muted
#eeecedwhitesmoke
#131112black
Muted foreground
#6a4e59dimgray
#b195a0rosybrown
Accent
#5f5f5ddimgray
#5f5f5ddimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#801b05maroon
#e23008orangered
Destructive foreground
#fdc6balightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5f5e5ddimgray
#5f5e5ddimgray

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button6.05:1AA
Secondary button6.06:1AA
Muted text6.27:1AA
Accent6.42:1AA
Destructive6.71:1AA
Dark mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button6.05:1AA
Secondary button6.06:1AA
Muted text6.88:1AA
Accent6.42:1AA
Destructive4.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 26.452);
  --foreground: oklch(0.135 0.028 33.431);
  --muted: oklch(0.945 0.003 351.668);
  --muted-foreground: oklch(0.457 0.04 353.971);
  --popover: oklch(0.991 0.002 26.452);
  --popover-foreground: oklch(0.135 0.028 33.431);
  --card: oklch(0.991 0.002 26.452);
  --card-foreground: oklch(0.135 0.028 33.431);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.482 0.002 26.47);
  --primary-foreground: oklch(0.977 0 26.442);
  --secondary: oklch(0.482 0.003 351.749);
  --secondary-foreground: oklch(0.977 0 351.597);
  --accent: oklch(0.484 0.002 79.927);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.394 0.139 33.393);
  --destructive-foreground: oklch(0.872 0.065 32.874);
  --ring: oklch(0.482 0.002 26.47);
  --chart-1: oklch(0.482 0.002 26.47);
  --chart-2: oklch(0.482 0.003 351.749);
  --chart-3: oklch(0.484 0.002 79.927);
  --chart-4: oklch(0.509 0.003 351.75);
  --chart-5: oklch(0.479 0.009 26.57);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.003 26.457);
  --muted: oklch(0.18 0.004 352.199);
  --muted-foreground: oklch(0.699 0.036 353.003);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.003 26.457);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.003 26.457);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.482 0.002 26.47);
  --primary-foreground: oklch(0.977 0 26.442);
  --secondary: oklch(0.482 0.003 351.749);
  --secondary-foreground: oklch(0.977 0 351.597);
  --accent: oklch(0.484 0.002 79.927);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.594 0.217 32.647);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.482 0.002 26.47);
  --chart-1: oklch(0.482 0.002 26.47);
  --chart-2: oklch(0.482 0.003 351.749);
  --chart-3: oklch(0.484 0.002 79.927);
  --chart-4: oklch(0.509 0.003 351.75);
  --chart-5: oklch(0.479 0.009 26.57);
}