Yellowish for shadcn/ui

Yellowish is a shadcn/ui theme built around a near-white primary color (#fdfefb) with near-white accents (#fefbfd). The light mode uses a neutral background (#fafcf8). Dark mode keeps the near-white primary (#fdfefb) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fafcf8snow
#030401black
Foreground
#000000black
#fdfdfcwhite
Card
#fafcf8snow
#030401black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fafcf8snow
#030401black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#fdfefbwhite
#fdfefbwhite
Primary foreground
#3a4c15darkolivegreen
#3a4c15darkolivegreen
Secondary
#fbfdfewhite
#fbfdfewhite
Secondary foreground
#153a4cdarkslategray
#153a4cdarkslategray
Muted
#d2dbe0gainsboro
#1f292ddarkslategray
Muted foreground
#5d5f5fdimgray
#a0a1a2darkgray
Accent
#fefbfdsnow
#fefbfdsnow
Accent foreground
#9c2b76mediumvioletred
#9c2b76mediumvioletred
Destructive
#b20a01darkred
#fe1c10red
Destructive foreground
#ffe7e6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fdfefbwhite
#fdfefbwhite

Contrast

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

Light mode
Text on background20.30:1AAA
Text on card20.30:1AAA
Primary button9.31:1AAA
Secondary button11.81:1AAA
Muted text4.57:1AA
Accent6.76:1AA
Destructive6.09:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button9.31:1AAA
Secondary button11.81:1AAA
Muted text5.76:1AA
Accent6.76:1AA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 121.565);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.886 0.012 228.928);
  --muted-foreground: oklch(0.483 0.002 228.801);
  --popover: oklch(0.988 0.004 121.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.004 121.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.995 0.004 121.557);
  --primary-foreground: oklch(0.388 0.082 125.862);
  --secondary: oklch(0.993 0.002 228.783);
  --secondary-foreground: oklch(0.33 0.053 233.368);
  --accent: oklch(0.991 0.004 337.346);
  --accent-foreground: oklch(0.488 0.168 344.252);
  --destructive: oklch(0.482 0.194 29.793);
  --destructive-foreground: oklch(0.947 0.026 21.257);
  --ring: oklch(0.995 0.004 121.557);
  --chart-1: oklch(0.995 0.004 121.557);
  --chart-2: oklch(0.993 0.002 228.783);
  --chart-3: oklch(0.991 0.004 337.346);
  --chart-4: oklch(1.015 0.005 48.692);
  --chart-5: oklch(0.995 0.004 121.56);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.012 121.215);
  --foreground: oklch(0.993 0.001 121.516);
  --muted: oklch(0.272 0.015 229.652);
  --muted-foreground: oklch(0.708 0.002 228.782);
  --popover: oklch(0.1 0.012 121.215);
  --popover-foreground: oklch(0.993 0.001 121.516);
  --card: oklch(0.1 0.012 121.215);
  --card-foreground: oklch(0.993 0.001 121.516);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.995 0.004 121.557);
  --primary-foreground: oklch(0.388 0.082 125.862);
  --secondary: oklch(0.993 0.002 228.783);
  --secondary-foreground: oklch(0.33 0.053 233.368);
  --accent: oklch(0.991 0.004 337.346);
  --accent-foreground: oklch(0.488 0.168 344.252);
  --destructive: oklch(0.633 0.25 29.462);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.995 0.004 121.557);
  --chart-1: oklch(0.995 0.004 121.557);
  --chart-2: oklch(0.993 0.002 228.783);
  --chart-3: oklch(0.991 0.004 337.346);
  --chart-4: oklch(1.015 0.005 48.692);
  --chart-5: oklch(0.995 0.004 121.56);
}