Fat for shadcn/ui

Fat is a shadcn/ui theme built around an orange primary color (#d9a345) with green accents (#c5d945). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the orange primary (#d9a345) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbf7snow
#000000black
Foreground
#080602black
#fbfaf9snow
Card
#fdfbf7snow
#000000black
Card foreground
#080602black
#fbfaf9snow
Popover
#fdfbf7snow
#000000black
Popover foreground
#080602black
#fbfaf9snow
Primary
#d9a345peru
#d9a345peru
Primary foreground
#000000black
#000000black
Secondary
#d95845indianred
#d95845indianred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ead5d2gainsboro
#2d1815black
Muted foreground
#656261dimgray
#9e9a9adarkgray
Accent
#c5d945yellowgreen
#c5d945yellowgreen
Accent foreground
#3d440edarkolivegreen
#3d440edarkolivegreen
Destructive
#d42502firebrick
#fd411corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d9a345peru
#d9a345peru

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button9.23:1AAA
Secondary button3.85:1AA Large
Muted text4.30:1AA Large
Accent6.58:1AA
Destructive5.16:1AA
Dark mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button9.23:1AAA
Secondary button3.85:1AA Large
Muted text6.00:1AA
Accent6.58:1AA
Destructive3.53: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.988 0.005 81.513);
  --foreground: oklch(0.122 0.014 87.849);
  --muted: oklch(0.889 0.023 28.087);
  --muted-foreground: oklch(0.499 0.004 27.979);
  --popover: oklch(0.988 0.005 81.513);
  --popover-foreground: oklch(0.122 0.014 87.849);
  --card: oklch(0.988 0.005 81.513);
  --card-foreground: oklch(0.122 0.014 87.849);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.748 0.127 78.152);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.624 0.165 31.017);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.843 0.169 116.73);
  --accent-foreground: oklch(0.367 0.075 116.848);
  --destructive: oklch(0.56 0.211 31.933);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.748 0.127 78.152);
  --chart-1: oklch(0.748 0.127 78.152);
  --chart-2: oklch(0.624 0.165 31.017);
  --chart-3: oklch(0.843 0.169 116.73);
  --chart-4: oklch(0.646 0.154 30.648);
  --chart-5: oklch(0.753 0.131 77.809);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.001 81.514);
  --muted: oklch(0.238 0.034 29.31);
  --muted-foreground: oklch(0.689 0.004 27.963);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.001 81.514);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.001 81.514);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.748 0.127 78.152);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.624 0.165 31.017);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.843 0.169 116.73);
  --accent-foreground: oklch(0.367 0.075 116.848);
  --destructive: oklch(0.654 0.228 32.794);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.748 0.127 78.152);
  --chart-1: oklch(0.748 0.127 78.152);
  --chart-2: oklch(0.624 0.165 31.017);
  --chart-3: oklch(0.843 0.169 116.73);
  --chart-4: oklch(0.646 0.154 30.648);
  --chart-5: oklch(0.753 0.131 77.809);
}