Chubby for shadcn/ui

Chubby is a shadcn/ui theme built around a light indigo primary color (#b2b4dc) with light yellow accents (#dcdab2). The light mode uses a neutral background (#f6f7fd). Dark mode keeps the light indigo primary (#b2b4dc) on an indigo-tinted background (#07070d).

Color palette

TokenLightDark
Background
#f6f7fdghostwhite
#07070dblack
Foreground
#010104black
#f8f8fcghostwhite
Card
#f2f3fcaliceblue
#090911black
Card foreground
#000000black
#fcfcfdwhite
Popover
#f2f3fcaliceblue
#090911black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#b2b4dclightsteelblue
#b2b4dclightsteelblue
Primary foreground
#1d1e3fmidnightblue
#1d1e3fmidnightblue
Secondary
#dcdab2palegoldenrod
#dcdab2palegoldenrod
Secondary foreground
#3f3e1ddarkolivegreen
#3f3e1ddarkolivegreen
Muted
#efefdcbeige
#232310black
Muted foreground
#4a4a45darkslategray
#babab5silver
Accent
#dcdab2palegoldenrod
#dcdab2palegoldenrod
Accent foreground
#3f3e1ddarkolivegreen
#3f3e1ddarkolivegreen
Destructive
#981010darkred
#d41616firebrick
Destructive foreground
#fcdfdfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b2b4dclightsteelblue
#b2b4dclightsteelblue

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card18.96:1AAA
Primary button7.95:1AAA
Secondary button7.68:1AAA
Muted text7.63:1AAA
Accent7.68:1AAA
Destructive6.91:1AA
Dark mode
Text on background18.95:1AAA
Text on card19.35:1AAA
Primary button7.95:1AAA
Secondary button7.68:1AAA
Muted text8.19:1AAA
Accent7.68:1AAA
Destructive5.33:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0.009 284.649);
  --foreground: oklch(0.07 0.022 276.303);
  --muted: oklch(0.946 0.025 105.257);
  --muted-foreground: oklch(0.408 0.009 105.189);
  --popover: oklch(0.965 0.013 284.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.965 0.013 284.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.781 0.057 283.442);
  --primary-foreground: oklch(0.253 0.061 279.6);
  --secondary: oklch(0.88 0.053 105.81);
  --secondary-foreground: oklch(0.355 0.05 106.948);
  --accent: oklch(0.88 0.053 105.81);
  --accent-foreground: oklch(0.355 0.05 106.948);
  --destructive: oklch(0.435 0.168 28.007);
  --destructive-foreground: oklch(0.926 0.032 17.744);
  --ring: oklch(0.781 0.057 283.442);
  --chart-1: oklch(0.781 0.057 283.442);
  --chart-2: oklch(0.88 0.053 105.81);
  --chart-3: oklch(0.88 0.053 105.81);
  --chart-4: oklch(0.896 0.046 105.665);
  --chart-5: oklch(0.777 0.062 283.314);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.015 282.413);
  --foreground: oklch(0.981 0.004 284.733);
  --muted: oklch(0.249 0.032 106.782);
  --muted-foreground: oklch(0.788 0.008 104.978);
  --popover: oklch(0.144 0.017 282.359);
  --popover-foreground: oklch(0.991 0.002 284.771);
  --card: oklch(0.144 0.017 282.359);
  --card-foreground: oklch(0.991 0.002 284.771);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.781 0.057 283.442);
  --primary-foreground: oklch(0.253 0.061 279.6);
  --secondary: oklch(0.88 0.053 105.81);
  --secondary-foreground: oklch(0.355 0.05 106.948);
  --accent: oklch(0.88 0.053 105.81);
  --accent-foreground: oklch(0.355 0.05 106.948);
  --destructive: oklch(0.554 0.217 28.287);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.781 0.057 283.442);
  --chart-1: oklch(0.781 0.057 283.442);
  --chart-2: oklch(0.88 0.053 105.81);
  --chart-3: oklch(0.88 0.053 105.81);
  --chart-4: oklch(0.896 0.046 105.665);
  --chart-5: oklch(0.777 0.062 283.314);
}