Yellow for shadcn/ui

Yellow is a shadcn/ui theme built around a muted cyan primary color (#aac9cf) with muted red accents (#cfb0aa). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted cyan primary (#aac9cf) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#ffffffwhite
#010304black
Foreground
#061114black
#ffffffwhite
Card
#ffffffwhite
#010304black
Card foreground
#061114black
#ffffffwhite
Popover
#ffffffwhite
#010304black
Popover foreground
#061114black
#ffffffwhite
Primary
#aac9cflightsteelblue
#aac9cflightsteelblue
Primary foreground
#1a2a2edarkslategray
#1a2a2edarkslategray
Secondary
#cfb0aatan
#cfb0aatan
Secondary foreground
#2e1d1ablack
#2e1d1ablack
Muted
#e9d6d2gainsboro
#2d1916black
Muted foreground
#4c403ddarkslategray
#c2b5b3silver
Accent
#cfb0aatan
#cfb0aatan
Accent foreground
#2e1d1ablack
#2e1d1ablack
Destructive
#921701darkred
#fd4221orangered
Destructive foreground
#fed0c7pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#aac9cflightsteelblue
#aac9cflightsteelblue

Contrast

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

Light mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button8.46:1AAA
Secondary button8.01:1AAA
Muted text7.13:1AAA
Accent8.01:1AAA
Destructive6.39:1AA
Dark mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button8.46:1AAA
Secondary button8.01:1AAA
Muted text8.34:1AAA
Accent8.01:1AAA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.169 0.018 211.067);
  --muted: oklch(0.891 0.022 31.107);
  --muted-foreground: oklch(0.383 0.018 31.208);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.169 0.018 211.067);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.169 0.018 211.067);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.815 0.034 211.103);
  --primary-foreground: oklch(0.273 0.023 211.475);
  --secondary: oklch(0.784 0.037 31.209);
  --secondary-foreground: oklch(0.251 0.027 31.648);
  --accent: oklch(0.784 0.037 31.209);
  --accent-foreground: oklch(0.251 0.027 31.648);
  --destructive: oklch(0.426 0.16 32.017);
  --destructive-foreground: oklch(0.895 0.054 29.806);
  --ring: oklch(0.815 0.034 211.103);
  --chart-1: oklch(0.815 0.034 211.103);
  --chart-2: oklch(0.784 0.037 31.209);
  --chart-3: oklch(0.784 0.037 31.209);
  --chart-4: oklch(0.809 0.032 31.172);
  --chart-5: oklch(0.817 0.038 211.123);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.009 207.693);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.24 0.032 31.881);
  --muted-foreground: oklch(0.783 0.015 31.087);
  --popover: oklch(0.096 0.009 207.693);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.096 0.009 207.693);
  --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.815 0.034 211.103);
  --primary-foreground: oklch(0.273 0.023 211.475);
  --secondary: oklch(0.784 0.037 31.209);
  --secondary-foreground: oklch(0.251 0.027 31.648);
  --accent: oklch(0.784 0.037 31.209);
  --accent-foreground: oklch(0.251 0.027 31.648);
  --destructive: oklch(0.655 0.227 32.256);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.815 0.034 211.103);
  --chart-1: oklch(0.815 0.034 211.103);
  --chart-2: oklch(0.784 0.037 31.209);
  --chart-3: oklch(0.784 0.037 31.209);
  --chart-4: oklch(0.809 0.032 31.172);
  --chart-5: oklch(0.817 0.038 211.123);
}