Little for shadcn/ui

Little is a shadcn/ui theme built around a neutral gray primary color (#4a4a4a) with muted light red accents (#dcd0d0). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the neutral gray primary (#4a4a4a) on a red-tinted background (#0b0505).

Color palette

TokenLightDark
Background
#fdf7f7snow
#0b0505black
Foreground
#0d0303black
#ffffffwhite
Card
#fcf2f2lavenderblush
#0e0606black
Card foreground
#090202black
#ffffffwhite
Popover
#fdf7f7snow
#0b0505black
Popover foreground
#0d0303black
#ffffffwhite
Primary
#4a4a4adarkslategray
#4a4a4adarkslategray
Primary foreground
#e3e3e3gainsboro
#e3e3e3gainsboro
Secondary
#eae6e6linen
#171212black
Secondary foreground
#554949darkslategray
#b6a4a4darkgray
Muted
#efe1e1mistyrose
#1e1010black
Muted foreground
#644f4fdimgray
#b09b9brosybrown
Accent
#dcd0d0lightgrey
#271b1bblack
Accent foreground
#463535darkslategray
#c7adadsilver
Destructive
#750a00maroon
#ff311forangered
Destructive foreground
#ffb0a8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4a4a4adarkslategray
#4a4a4adarkslategray

Contrast

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

Light mode
Text on background19.17:1AAA
Text on card18.78:1AAA
Primary button6.91:1AA
Secondary button6.97:1AA
Muted text5.96:1AA
Accent7.70:1AAA
Destructive6.67:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.03:1AAA
Primary button6.91:1AA
Secondary button7.80:1AAA
Muted text7.04:1AAA
Accent7.94:1AAA
Destructive3.67:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 17.278);
  --foreground: oklch(0.116 0.026 21.871);
  --muted: oklch(0.921 0.015 17.431);
  --muted-foreground: oklch(0.448 0.029 18.287);
  --popover: oklch(0.98 0.007 17.278);
  --popover-foreground: oklch(0.116 0.026 21.871);
  --card: oklch(0.97 0.011 17.341);
  --card-foreground: oklch(0.101 0.022 21.811);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.409 0 190.305);
  --primary-foreground: oklch(0.916 0 180);
  --secondary: oklch(0.928 0.004 17.229);
  --secondary-foreground: oklch(0.417 0.017 17.86);
  --accent: oklch(0.868 0.013 17.401);
  --accent-foreground: oklch(0.347 0.025 18.416);
  --destructive: oklch(0.359 0.14 30.912);
  --destructive-foreground: oklch(0.83 0.094 25.054);
  --ring: oklch(0.409 0 190.305);
  --chart-1: oklch(0.409 0 190.305);
  --chart-2: oklch(0.928 0.004 17.229);
  --chart-3: oklch(0.868 0.013 17.401);
  --chart-4: oklch(0.952 0.003 17.204);
  --chart-5: oklch(0.405 0.006 17.403);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.014 19.332);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.193 0.023 19.429);
  --muted-foreground: oklch(0.708 0.025 17.766);
  --popover: oklch(0.123 0.014 19.332);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.017 19.445);
  --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.409 0 190.305);
  --primary-foreground: oklch(0.916 0 180);
  --secondary: oklch(0.188 0.007 17.829);
  --secondary-foreground: oklch(0.736 0.021 17.639);
  --accent: oklch(0.237 0.02 18.674);
  --accent-foreground: oklch(0.771 0.03 17.831);
  --destructive: oklch(0.646 0.24 30.034);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.409 0 190.305);
  --chart-1: oklch(0.409 0 190.305);
  --chart-2: oklch(0.188 0.007 17.829);
  --chart-3: oklch(0.237 0.02 18.674);
  --chart-4: oklch(0.221 0.01 17.922);
  --chart-5: oklch(0.405 0.006 17.403);
}