Quota for shadcn/ui

Quota is a shadcn/ui theme built around an orange primary color (#df9b53) with blue accents (#5397df). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the orange primary (#df9b53) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fcfaf8snow
#040301black
Foreground
#100a05black
#fbfaf9snow
Card
#faf7f4whitesmoke
#080502black
Card foreground
#0c0804black
#fdfcfcsnow
Popover
#faf7f4whitesmoke
#080502black
Popover foreground
#0c0804black
#fdfcfcsnow
Primary
#df9b53sandybrown
#df9b53sandybrown
Primary foreground
#000000black
#000000black
Secondary
#5397dfcornflowerblue
#5397dfcornflowerblue
Secondary foreground
#000000black
#000000black
Muted
#dce5eflavender
#101923black
Muted foreground
#5f666ddimgray
#9299a0darkgray
Accent
#5397dfcornflowerblue
#5397dfcornflowerblue
Accent foreground
#000000black
#000000black
Destructive
#852100maroon
#ff4000orangered
Destructive foreground
#ffc9b8peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#df9b53sandybrown
#df9b53sandybrown

Contrast

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

Light mode
Text on background18.88:1AAA
Text on card18.77:1AAA
Primary button8.98:1AAA
Secondary button6.83:1AA
Muted text4.57:1AA
Accent6.83:1AA
Destructive6.46:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.83:1AAA
Primary button8.98:1AAA
Secondary button6.83:1AA
Muted text6.13:1AA
Accent6.83:1AA
Destructive3.51:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.004 69.615);
  --foreground: oklch(0.151 0.016 73.02);
  --muted: oklch(0.918 0.017 249.819);
  --muted-foreground: oklch(0.506 0.015 249.908);
  --popover: oklch(0.979 0.005 69.597);
  --popover-foreground: oklch(0.137 0.014 76.448);
  --card: oklch(0.979 0.005 69.597);
  --card-foreground: oklch(0.137 0.014 76.448);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.743 0.121 65.838);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.663 0.129 251.736);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.663 0.129 251.736);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.408 0.14 36.074);
  --destructive-foreground: oklch(0.88 0.066 39.239);
  --ring: oklch(0.743 0.121 65.838);
  --chart-1: oklch(0.743 0.121 65.838);
  --chart-2: oklch(0.663 0.129 251.736);
  --chart-3: oklch(0.663 0.129 251.736);
  --chart-4: oklch(0.687 0.119 251.392);
  --chart-5: oklch(0.746 0.125 65.541);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.01 77.31);
  --foreground: oklch(0.985 0.001 69.638);
  --muted: oklch(0.21 0.024 250.674);
  --muted-foreground: oklch(0.679 0.013 249.832);
  --popover: oklch(0.119 0.013 77.31);
  --popover-foreground: oklch(0.993 0.001 69.644);
  --card: oklch(0.119 0.013 77.31);
  --card-foreground: oklch(0.993 0.001 69.644);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.743 0.121 65.838);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.663 0.129 251.736);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.663 0.129 251.736);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.656 0.233 34.483);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.743 0.121 65.838);
  --chart-1: oklch(0.743 0.121 65.838);
  --chart-2: oklch(0.663 0.129 251.736);
  --chart-3: oklch(0.663 0.129 251.736);
  --chart-4: oklch(0.687 0.119 251.392);
  --chart-5: oklch(0.746 0.125 65.541);
}