Last for shadcn/ui

Last is a shadcn/ui theme built around a muted violet primary color (#695393) with muted green accents (#539369). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted violet primary (#695393) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#020203black
Foreground
#080410black
#f9f8fbghostwhite
Card
#fcfcfdwhite
#020203black
Card foreground
#080410black
#f9f8fbghostwhite
Popover
#fcfcfdwhite
#020203black
Popover foreground
#080410black
#f9f8fbghostwhite
Primary
#695393rebeccapurple
#695393rebeccapurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#936953sienna
#936953sienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e1dddbgainsboro
#24201eblack
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#539369mediumseagreen
#539369mediumseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6f0606maroon
#e30d0dred
Destructive foreground
#faadadlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#695393rebeccapurple
#695393rebeccapurple

Contrast

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

Light mode
Text on background19.74:1AAA
Text on card19.74:1AAA
Primary button6.46:1AA
Secondary button4.78:1AA
Muted text6.26:1AA
Accent3.66:1AA Large
Destructive6.83:1AA
Dark mode
Text on background19.61:1AAA
Text on card19.61:1AAA
Primary button6.46:1AA
Secondary button4.78:1AA
Muted text7.68:1AAA
Accent3.66:1AA Large
Destructive4.86:1AA

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 302.176);
  --foreground: oklch(0.126 0.029 301.383);
  --muted: oklch(0.9 0.005 50.586);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.991 0.002 302.176);
  --popover-foreground: oklch(0.126 0.029 301.383);
  --card: oklch(0.991 0.002 302.176);
  --card-foreground: oklch(0.126 0.029 301.383);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.492 0.102 298.718);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.558 0.063 49.303);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.608 0.092 154.171);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.344 0.135 28.289);
  --destructive-foreground: oklch(0.822 0.091 19.201);
  --ring: oklch(0.492 0.102 298.718);
  --chart-1: oklch(0.492 0.102 298.718);
  --chart-2: oklch(0.558 0.063 49.303);
  --chart-3: oklch(0.608 0.092 154.171);
  --chart-4: oklch(0.585 0.067 49.293);
  --chart-5: oklch(0.487 0.113 298.245);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.009 302.556);
  --foreground: oklch(0.982 0.004 302.146);
  --muted: oklch(0.248 0.007 50.304);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.085 0.009 302.556);
  --popover-foreground: oklch(0.982 0.004 302.146);
  --card: oklch(0.085 0.009 302.556);
  --card-foreground: oklch(0.982 0.004 302.146);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.492 0.102 298.718);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.558 0.063 49.303);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.608 0.092 154.171);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.577 0.232 28.807);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.492 0.102 298.718);
  --chart-1: oklch(0.492 0.102 298.718);
  --chart-2: oklch(0.558 0.063 49.303);
  --chart-3: oklch(0.608 0.092 154.171);
  --chart-4: oklch(0.585 0.067 49.293);
  --chart-5: oklch(0.487 0.113 298.245);
}