Yellowish for shadcn/ui

Yellowish is a shadcn/ui theme built around a light blue primary color (#cce4f5) with light green accents (#e4f5cc). The light mode uses a neutral background (#f6fafd). Dark mode keeps the light blue primary (#cce4f5) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#f6fafdghostwhite
#010304black
Foreground
#020608black
#fcfdfdwhite
Card
#f6fafdghostwhite
#010304black
Card foreground
#020608black
#fcfdfdwhite
Popover
#f6fafdghostwhite
#010304black
Popover foreground
#020608black
#fcfdfdwhite
Primary
#cce4f5lavender
#cce4f5lavender
Primary foreground
#184f77darkslategray
#184f77darkslategray
Secondary
#f5cce4mistyrose
#f5cce4mistyrose
Secondary foreground
#77184fpurple
#77184fpurple
Muted
#eae6e8lavender
#191517black
Muted foreground
#6a5862dimgray
#a795a0darkgray
Accent
#e4f5ccbeige
#e4f5ccbeige
Accent foreground
#172207black
#172207black
Destructive
#cb1d10firebrick
#d41e11firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cce4f5lavender
#cce4f5lavender

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button6.58:1AA
Secondary button7.21:1AAA
Muted text5.32:1AA
Accent14.35:1AAA
Destructive5.64:1AA
Dark mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button6.58:1AA
Secondary button7.21:1AAA
Muted text6.42:1AA
Accent14.35:1AAA
Destructive5.24:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.006 238.447);
  --foreground: oklch(0.114 0.013 230.568);
  --muted: oklch(0.929 0.006 341.166);
  --muted-foreground: oklch(0.482 0.027 342.294);
  --popover: oklch(0.984 0.006 238.447);
  --popover-foreground: oklch(0.114 0.013 230.568);
  --card: oklch(0.984 0.006 238.447);
  --card-foreground: oklch(0.114 0.013 230.568);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.906 0.035 238.926);
  --primary-foreground: oklch(0.414 0.088 244.254);
  --secondary: oklch(0.887 0.055 342.414);
  --secondary-foreground: oklch(0.391 0.14 350.076);
  --accent: oklch(0.947 0.057 125.897);
  --accent-foreground: oklch(0.234 0.049 128.592);
  --destructive: oklch(0.539 0.207 29.702);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.906 0.035 238.926);
  --chart-1: oklch(0.906 0.035 238.926);
  --chart-2: oklch(0.887 0.055 342.414);
  --chart-3: oklch(0.947 0.057 125.897);
  --chart-4: oklch(0.915 0.041 342.033);
  --chart-5: oklch(0.906 0.036 238.953);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.091 0.01 230.687);
  --foreground: oklch(0.992 0.001 238.378);
  --muted: oklch(0.201 0.009 342.026);
  --muted-foreground: oklch(0.69 0.025 341.84);
  --popover: oklch(0.091 0.01 230.687);
  --popover-foreground: oklch(0.992 0.001 238.378);
  --card: oklch(0.091 0.01 230.687);
  --card-foreground: oklch(0.992 0.001 238.378);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.906 0.035 238.926);
  --primary-foreground: oklch(0.414 0.088 244.254);
  --secondary: oklch(0.887 0.055 342.414);
  --secondary-foreground: oklch(0.391 0.14 350.076);
  --accent: oklch(0.947 0.057 125.897);
  --accent-foreground: oklch(0.234 0.049 128.592);
  --destructive: oklch(0.557 0.214 29.709);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.906 0.035 238.926);
  --chart-1: oklch(0.906 0.035 238.926);
  --chart-2: oklch(0.887 0.055 342.414);
  --chart-3: oklch(0.947 0.057 125.897);
  --chart-4: oklch(0.915 0.041 342.033);
  --chart-5: oklch(0.906 0.036 238.953);
}