Fat for shadcn/ui

Fat is a shadcn/ui theme built around a vivid yellow primary color (#bcae15) with muted light yellow accents (#dbd9cd). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the vivid yellow primary (#bcae15) on a yellow-tinted background (#0c0b03).

Color palette

TokenLightDark
Background
#fdfcf7snow
#0c0b03black
Foreground
#0e0d02black
#fdfdfcwhite
Card
#fdfcf7snow
#0c0b03black
Card foreground
#0e0d02black
#fdfdfcwhite
Popover
#fdfcf7snow
#0c0b03black
Popover foreground
#0e0d02black
#fdfdfcwhite
Primary
#bcae15goldenrod
#bcae15goldenrod
Primary foreground
#050401black
#050401black
Secondary
#eae9e6linen
#1b1a13black
Secondary foreground
#55544adarkolivegreen
#bdbba3darkgray
Muted
#ecebealinen
#151513black
Muted foreground
#56564ddarkolivegreen
#b2b1a9darkgray
Accent
#dbd9cdlightgrey
#33311fdarkslategray
Accent foreground
#444231darkslategray
#d0ceb3silver
Destructive
#801f05maroon
#f13b09orangered
Destructive foreground
#fdc8bapeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bcae15goldenrod
#bcae15goldenrod

Contrast

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

Light mode
Text on background18.98:1AAA
Text on card18.98:1AAA
Primary button9.00:1AAA
Secondary button6.29:1AA
Muted text6.23:1AA
Accent7.17:1AAA
Destructive6.67:1AA
Dark mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button9.00:1AAA
Secondary button8.96:1AAA
Muted text8.47:1AAA
Accent8.24:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.006 102.318);
  --foreground: oklch(0.154 0.027 105.594);
  --muted: oklch(0.941 0.003 102.256);
  --muted-foreground: oklch(0.45 0.014 102.714);
  --popover: oklch(0.99 0.006 102.318);
  --popover-foreground: oklch(0.154 0.027 105.594);
  --card: oklch(0.99 0.006 102.318);
  --card-foreground: oklch(0.154 0.027 105.594);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.74 0.152 103.539);
  --primary-foreground: oklch(0.107 0.019 106.135);
  --secondary: oklch(0.935 0.004 102.281);
  --secondary-foreground: oklch(0.442 0.016 102.787);
  --accent: oklch(0.884 0.017 102.524);
  --accent-foreground: oklch(0.377 0.028 103.311);
  --destructive: oklch(0.398 0.136 34.807);
  --destructive-foreground: oklch(0.876 0.063 35.978);
  --ring: oklch(0.74 0.152 103.539);
  --chart-1: oklch(0.74 0.152 103.539);
  --chart-2: oklch(0.935 0.004 102.281);
  --chart-3: oklch(0.884 0.017 102.524);
  --chart-4: oklch(0.957 0.003 102.257);
  --chart-5: oklch(0.749 0.155 103.447);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.148 0.02 104.952);
  --foreground: oklch(0.993 0.001 102.229);
  --muted: oklch(0.196 0.004 102.514);
  --muted-foreground: oklch(0.76 0.013 102.48);
  --popover: oklch(0.148 0.02 104.952);
  --popover-foreground: oklch(0.993 0.001 102.229);
  --card: oklch(0.148 0.02 104.952);
  --card-foreground: oklch(0.993 0.001 102.229);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.74 0.152 103.539);
  --primary-foreground: oklch(0.107 0.019 106.135);
  --secondary: oklch(0.217 0.013 103.15);
  --secondary-foreground: oklch(0.788 0.034 102.882);
  --accent: oklch(0.309 0.03 103.594);
  --accent-foreground: oklch(0.846 0.036 102.882);
  --destructive: oklch(0.628 0.223 33.83);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.74 0.152 103.539);
  --chart-1: oklch(0.74 0.152 103.539);
  --chart-2: oklch(0.217 0.013 103.15);
  --chart-3: oklch(0.309 0.03 103.594);
  --chart-4: oklch(0.254 0.017 103.227);
  --chart-5: oklch(0.749 0.155 103.447);
}