Last for shadcn/ui

Last is a shadcn/ui theme built around a vivid yellow primary color (#faf87a) with vivid purple accents (#f87afa). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#faf87a) on a yellow-tinted background (#0b0b05).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0b05black
Foreground
#040401black
#fdfdfcwhite
Card
#fcfcfcsnow
#0e0e06black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#0b0b05black
Popover foreground
#040401black
#fdfdfcwhite
Primary
#faf87akhaki
#faf87akhaki
Primary foreground
#403f02darkolivegreen
#403f02darkolivegreen
Secondary
#7afaf8aquamarine
#7afaf8aquamarine
Secondary foreground
#02403fdarkslategray
#02403fdarkslategray
Muted
#ebf4f4whitesmoke
#0b1414black
Muted foreground
#5f6d6ddimgray
#92a0a0darkgray
Accent
#f87afaviolet
#f87afaviolet
Accent foreground
#3f0240midnightblue
#3f0240midnightblue
Destructive
#651801maroon
#fc3d03orangered
Destructive foreground
#feb19alightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#faf87akhaki
#faf87akhaki

Contrast

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

Light mode
Text on background20.52:1AAA
Text on card20.54:1AAA
Primary button9.73:1AAA
Secondary button9.33:1AAA
Muted text4.83:1AA
Accent7.08:1AAA
Destructive7.09:1AAA
Dark mode
Text on background19.42:1AAA
Text on card19.33:1AAA
Primary button9.73:1AAA
Secondary button9.33:1AAA
Muted text6.90:1AA
Accent7.08:1AAA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.107 0.018 108.447);
  --muted: oklch(0.961 0.01 195.797);
  --muted-foreground: oklch(0.523 0.017 195.408);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.107 0.018 108.447);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.956 0.148 108.018);
  --primary-foreground: oklch(0.357 0.076 108.626);
  --secondary: oklch(0.913 0.114 193.877);
  --secondary-foreground: oklch(0.336 0.056 192.973);
  --accent: oklch(0.769 0.215 326.787);
  --accent-foreground: oklch(0.261 0.116 327.51);
  --destructive: oklch(0.338 0.114 36.297);
  --destructive-foreground: oklch(0.829 0.096 37.639);
  --ring: oklch(0.956 0.148 108.018);
  --chart-1: oklch(0.956 0.148 108.018);
  --chart-2: oklch(0.913 0.114 193.877);
  --chart-3: oklch(0.769 0.215 326.787);
  --chart-4: oklch(0.92 0.104 194.073);
  --chart-5: oklch(0.962 0.152 108.055);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.015 107.446);
  --foreground: oklch(0.994 0.002 105.644);
  --muted: oklch(0.182 0.014 194.708);
  --muted-foreground: oklch(0.695 0.016 195.571);
  --popover: oklch(0.145 0.015 107.446);
  --popover-foreground: oklch(0.994 0.002 105.644);
  --card: oklch(0.162 0.017 107.406);
  --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.956 0.148 108.018);
  --primary-foreground: oklch(0.357 0.076 108.626);
  --secondary: oklch(0.913 0.114 193.877);
  --secondary-foreground: oklch(0.336 0.056 192.973);
  --accent: oklch(0.769 0.215 326.787);
  --accent-foreground: oklch(0.261 0.116 327.51);
  --destructive: oklch(0.649 0.233 33.986);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.956 0.148 108.018);
  --chart-1: oklch(0.956 0.148 108.018);
  --chart-2: oklch(0.913 0.114 193.877);
  --chart-3: oklch(0.769 0.215 326.787);
  --chart-4: oklch(0.92 0.104 194.073);
  --chart-5: oklch(0.962 0.152 108.055);
}