Saas theme 2 for shadcn/ui

Saas theme 2 is a shadcn/ui theme built around a vivid light yellow primary color (#fffeb8) with muted light yellow accents (#edede9). The light mode uses a neutral background (#fefefb). Dark mode keeps the vivid light yellow primary (#fffeb8) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fefefbwhite
#030302black
Foreground
#090902black
#fdfdfcwhite
Card
#fefefbwhite
#030302black
Card foreground
#090902black
#fdfdfcwhite
Popover
#fefefbwhite
#030302black
Popover foreground
#090902black
#fdfdfcwhite
Primary
#fffeb8lemonchiffon
#fffeb8lemonchiffon
Primary foreground
#1f1e00black
#1f1e00black
Secondary
#edede9linen
#2f2f23darkslategray
Secondary foreground
#5a5949darkolivegreen
#cbcbb9silver
Muted
#eaeae6linen
#191915black
Muted foreground
#595954dimgray
#ababa6darkgray
Accent
#edede9linen
#2f2f23darkslategray
Accent foreground
#5a5949darkolivegreen
#cbcbb9silver
Destructive
#701600maroon
#eb2f00orangered
Destructive foreground
#ffb6a3lightpink
#ffffffwhite
Border
#e7e7e4gainsboro
#1e1e1ablack
Input
#e7e7e4gainsboro
#1e1e1ablack
Ring
#fffeb8lemonchiffon
#fffeb8lemonchiffon

Contrast

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

Light mode
Text on background19.70:1AAA
Text on card19.70:1AAA
Primary button16.15:1AAA
Secondary button6.02:1AA
Muted text5.83:1AA
Accent6.02:1AA
Destructive6.89:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button16.15:1AAA
Secondary button8.26:1AAA
Muted text7.66:1AAA
Accent8.26:1AAA
Destructive4.26:1AA Large

CSS variables

Paste this into your globals.css to use Saas theme 2 in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 105.671);
  --foreground: oklch(0.134 0.022 108.389);
  --muted: oklch(0.936 0.005 105.708);
  --muted-foreground: oklch(0.463 0.008 105.925);
  --popover: oklch(0.995 0.003 105.671);
  --popover-foreground: oklch(0.134 0.022 108.389);
  --card: oklch(0.995 0.003 105.671);
  --card-foreground: oklch(0.134 0.022 108.389);
  --border: oklch(0.927 0.004 105.694);
  --input: oklch(0.927 0.004 105.694);
  --primary: oklch(0.981 0.089 107.11);
  --primary-foreground: oklch(0.228 0.05 108.854);
  --secondary: oklch(0.944 0.005 105.717);
  --secondary-foreground: oklch(0.461 0.025 106.544);
  --accent: oklch(0.944 0.005 105.717);
  --accent-foreground: oklch(0.461 0.025 106.544);
  --destructive: oklch(0.358 0.127 34.473);
  --destructive-foreground: oklch(0.839 0.09 34.561);
  --ring: oklch(0.981 0.089 107.11);
  --chart-1: oklch(0.981 0.089 107.11);
  --chart-2: oklch(0.944 0.005 105.717);
  --chart-3: oklch(0.944 0.005 105.717);
  --chart-4: oklch(0.965 0.003 105.678);
  --chart-5: oklch(0.984 0.091 107.144);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.008 107.167);
  --foreground: oklch(0.995 0.002 105.659);
  --muted: oklch(0.211 0.007 106.187);
  --muted-foreground: oklch(0.739 0.007 105.79);
  --popover: oklch(0.099 0.008 107.167);
  --popover-foreground: oklch(0.995 0.002 105.659);
  --card: oklch(0.099 0.008 107.167);
  --card-foreground: oklch(0.995 0.002 105.659);
  --border: oklch(0.232 0.006 106.083);
  --input: oklch(0.232 0.006 106.083);
  --primary: oklch(0.981 0.089 107.11);
  --primary-foreground: oklch(0.228 0.05 108.854);
  --secondary: oklch(0.3 0.021 106.78);
  --secondary-foreground: oklch(0.836 0.025 106.129);
  --accent: oklch(0.3 0.021 106.78);
  --accent-foreground: oklch(0.836 0.025 106.129);
  --destructive: oklch(0.607 0.226 32.733);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.981 0.089 107.11);
  --chart-1: oklch(0.981 0.089 107.11);
  --chart-2: oklch(0.3 0.021 106.78);
  --chart-3: oklch(0.3 0.021 106.78);
  --chart-4: oklch(0.334 0.024 106.82);
  --chart-5: oklch(0.984 0.091 107.144);
}