Lasting for shadcn/ui

Lasting is a shadcn/ui theme built around a muted light yellow primary color (#d7d3bc) with neutral gray accents (#d8d8d4). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the muted light yellow primary (#d7d3bc) on a neutral background (#080702).

Color palette

TokenLightDark
Background
#fcfbf8snow
#080702black
Foreground
#171403black
#ffffffwhite
Card
#fafaf4floralwhite
#0c0b04black
Card foreground
#121002black
#ffffffwhite
Popover
#fcfbf8snow
#080702black
Popover foreground
#171403black
#ffffffwhite
Primary
#d7d3bclightgrey
#d7d3bclightgrey
Primary foreground
#3d3924darkslategray
#3d3924darkslategray
Secondary
#d8d8d4lightgrey
#1c1c1cblack
Secondary foreground
#403f3adarkslategray
#b6b6b4silver
Muted
#e7e6dfgainsboro
#201f18black
Muted foreground
#4b4b48darkslategray
#b7b6b4silver
Accent
#d8d8d4lightgrey
#1c1c1cblack
Accent foreground
#403f3adarkslategray
#b6b6b4silver
Destructive
#b33300firebrick
#ff6224tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d7d3bclightgrey
#d7d3bclightgrey

Contrast

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

Light mode
Text on background17.87:1AAA
Text on card18.17:1AAA
Primary button7.71:1AAA
Secondary button7.37:1AAA
Muted text6.98:1AA
Accent7.37:1AAA
Destructive6.22:1AA
Dark mode
Text on background20.15:1AAA
Text on card19.75:1AAA
Primary button7.71:1AAA
Secondary button8.36:1AAA
Muted text8.16:1AAA
Accent8.36:1AAA
Destructive7.01:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 99.409);
  --foreground: oklch(0.189 0.033 101.662);
  --muted: oklch(0.923 0.009 99.487);
  --muted-foreground: oklch(0.412 0.004 99.491);
  --popover: oklch(0.989 0.005 99.409);
  --popover-foreground: oklch(0.189 0.033 101.662);
  --card: oklch(0.983 0.007 99.444);
  --card-foreground: oklch(0.171 0.029 102.23);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.864 0.031 99.848);
  --primary-foreground: oklch(0.343 0.034 100.515);
  --secondary: oklch(0.881 0.005 99.422);
  --secondary-foreground: oklch(0.368 0.009 99.688);
  --accent: oklch(0.881 0.005 99.422);
  --accent-foreground: oklch(0.368 0.009 99.688);
  --destructive: oklch(0.51 0.171 36.827);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.864 0.031 99.848);
  --chart-1: oklch(0.864 0.031 99.848);
  --chart-2: oklch(0.881 0.005 99.422);
  --chart-3: oklch(0.881 0.005 99.422);
  --chart-4: oklch(0.903 0.004 99.405);
  --chart-5: oklch(0.868 0.035 99.901);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.016 102.749);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.238 0.013 100.055);
  --muted-foreground: oklch(0.776 0.004 99.41);
  --popover: oklch(0.128 0.016 102.749);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.146 0.018 102.363);
  --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.864 0.031 99.848);
  --primary-foreground: oklch(0.343 0.034 100.515);
  --secondary: oklch(0.227 0.001 99.402);
  --secondary-foreground: oklch(0.775 0.002 99.375);
  --accent: oklch(0.227 0.001 99.402);
  --accent-foreground: oklch(0.775 0.002 99.375);
  --destructive: oklch(0.692 0.204 39.279);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.864 0.031 99.848);
  --chart-1: oklch(0.864 0.031 99.848);
  --chart-2: oklch(0.227 0.001 99.402);
  --chart-3: oklch(0.227 0.001 99.402);
  --chart-4: oklch(0.26 0.001 99.406);
  --chart-5: oklch(0.868 0.035 99.901);
}