Small for shadcn/ui

Small is a shadcn/ui theme built around an orange primary color (#e4ba72) with muted light orange accents (#d5d2cd). The light mode uses a neutral background (#fefdfb). Dark mode keeps the orange primary (#e4ba72) on a neutral background (#080602).

Color palette

TokenLightDark
Background
#fefdfbsnow
#080602black
Foreground
#040301black
#ffffffwhite
Card
#fcfbf7snow
#0c0904black
Card foreground
#000000black
#ffffffwhite
Popover
#fefdfbsnow
#080602black
Popover foreground
#040301black
#ffffffwhite
Primary
#e4ba72burlywood
#e4ba72burlywood
Primary foreground
#1e1506black
#1e1506black
Secondary
#d5d2cdlightgrey
#2e2c28darkslategray
Secondary foreground
#3d3934darkslategray
#c8c5c0silver
Muted
#e9e3d8gainsboro
#272116black
Muted foreground
#675d4cdimgray
#b3a998darkgray
Accent
#d5d2cdlightgrey
#2e2c28darkslategray
Accent foreground
#3d3934darkslategray
#c8c5c0silver
Destructive
#e20703red
#f60804red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e4ba72burlywood
#e4ba72burlywood

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button9.93:1AAA
Secondary button7.60:1AAA
Muted text5.05:1AA
Accent7.60:1AAA
Destructive4.92:1AA
Dark mode
Text on background20.26:1AAA
Text on card19.91:1AAA
Primary button9.93:1AAA
Secondary button8.07:1AAA
Muted text6.86:1AA
Accent8.07:1AAA
Destructive4.23:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 81.514);
  --foreground: oklch(0.097 0.01 87.637);
  --muted: oklch(0.917 0.017 81.499);
  --muted-foreground: oklch(0.482 0.029 81.312);
  --popover: oklch(0.994 0.002 81.514);
  --popover-foreground: oklch(0.097 0.01 87.637);
  --card: oklch(0.987 0.005 81.513);
  --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.811 0.103 80.185);
  --primary-foreground: oklch(0.203 0.031 80.339);
  --secondary: oklch(0.865 0.007 81.511);
  --secondary-foreground: oklch(0.347 0.011 81.468);
  --accent: oklch(0.865 0.007 81.511);
  --accent-foreground: oklch(0.347 0.011 81.468);
  --destructive: oklch(0.575 0.234 29.27);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.811 0.103 80.185);
  --chart-1: oklch(0.811 0.103 80.185);
  --chart-2: oklch(0.865 0.007 81.511);
  --chart-3: oklch(0.865 0.007 81.511);
  --chart-4: oklch(0.888 0.006 81.512);
  --chart-5: oklch(0.814 0.107 80.053);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.013 87.53);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.251 0.022 81.008);
  --muted-foreground: oklch(0.739 0.026 81.451);
  --popover: oklch(0.122 0.013 87.53);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.015 87.081);
  --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.811 0.103 80.185);
  --primary-foreground: oklch(0.203 0.031 80.339);
  --secondary: oklch(0.295 0.008 81.483);
  --secondary-foreground: oklch(0.826 0.008 81.51);
  --accent: oklch(0.295 0.008 81.483);
  --accent-foreground: oklch(0.826 0.008 81.51);
  --destructive: oklch(0.613 0.249 29.266);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.811 0.103 80.185);
  --chart-1: oklch(0.811 0.103 80.185);
  --chart-2: oklch(0.295 0.008 81.483);
  --chart-3: oklch(0.295 0.008 81.483);
  --chart-4: oklch(0.326 0.009 81.481);
  --chart-5: oklch(0.814 0.107 80.053);
}