Allocation for shadcn/ui

Allocation is a shadcn/ui theme built around a vivid orange primary color (#f18a22) with muted light orange accents (#e3ded8). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the vivid orange primary (#f18a22) on an orange-tinted background (#0d0a07).

Color palette

TokenLightDark
Background
#fdfaf7snow
#0d0a07black
Foreground
#0c0803black
#fcfaf8snow
Card
#fdfaf7snow
#0d0a07black
Card foreground
#0c0803black
#fcfaf8snow
Popover
#fdfaf7snow
#0d0a07black
Popover foreground
#0c0803black
#fcfaf8snow
Primary
#f18a22goldenrod
#f18a22goldenrod
Primary foreground
#000000black
#000000black
Secondary
#e3ded8gainsboro
#2d2925darkslategray
Secondary foreground
#514539darkolivegreen
#c8c2bcsilver
Muted
#dfd9d2gainsboro
#2d2620darkslategray
Muted foreground
#42403edarkslategray
#c1bfbdsilver
Accent
#e3ded8gainsboro
#2d2925darkslategray
Accent foreground
#514539darkolivegreen
#c8c2bcsilver
Destructive
#d41d0cfirebrick
#f12513orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f18a22goldenrod
#f18a22goldenrod

Contrast

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

Light mode
Text on background19.18:1AAA
Text on card19.18:1AAA
Primary button8.37:1AAA
Secondary button6.95:1AA
Muted text7.36:1AAA
Accent6.95:1AA
Destructive5.27:1AA
Dark mode
Text on background18.93:1AAA
Text on card18.93:1AAA
Primary button8.37:1AAA
Secondary button8.19:1AAA
Muted text8.11:1AAA
Accent8.19:1AAA
Destructive4.17:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.005 67.763);
  --foreground: oklch(0.137 0.016 75.732);
  --muted: oklch(0.888 0.011 67.68);
  --muted-foreground: oklch(0.372 0.004 67.698);
  --popover: oklch(0.986 0.005 67.763);
  --popover-foreground: oklch(0.137 0.016 75.732);
  --card: oklch(0.986 0.005 67.763);
  --card-foreground: oklch(0.137 0.016 75.732);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.729 0.163 58.603);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.903 0.01 67.702);
  --secondary-foreground: oklch(0.398 0.025 67.011);
  --accent: oklch(0.903 0.01 67.702);
  --accent-foreground: oklch(0.398 0.025 67.011);
  --destructive: oklch(0.556 0.215 30.086);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.729 0.163 58.603);
  --chart-1: oklch(0.729 0.163 58.603);
  --chart-2: oklch(0.903 0.01 67.702);
  --chart-3: oklch(0.903 0.01 67.702);
  --chart-4: oklch(0.926 0.008 67.732);
  --chart-5: oklch(0.734 0.167 58.015);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.009 69.736);
  --foreground: oklch(0.986 0.003 67.784);
  --muted: oklch(0.275 0.015 67.124);
  --muted-foreground: oklch(0.806 0.003 67.775);
  --popover: oklch(0.149 0.009 69.736);
  --popover-foreground: oklch(0.986 0.003 67.784);
  --card: oklch(0.149 0.009 69.736);
  --card-foreground: oklch(0.986 0.003 67.784);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.729 0.163 58.603);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.283 0.009 67.43);
  --secondary-foreground: oklch(0.817 0.011 67.673);
  --accent: oklch(0.283 0.009 67.43);
  --accent-foreground: oklch(0.817 0.011 67.673);
  --destructive: oklch(0.614 0.235 30.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.729 0.163 58.603);
  --chart-1: oklch(0.729 0.163 58.603);
  --chart-2: oklch(0.283 0.009 67.43);
  --chart-3: oklch(0.283 0.009 67.43);
  --chart-4: oklch(0.314 0.011 67.412);
  --chart-5: oklch(0.734 0.167 58.015);
}