Quota for shadcn/ui

Quota is a shadcn/ui theme built around a light violet primary color (#e0cbf6) with light green accents (#e0f6cb). The light mode uses a neutral background (#faf8fc). Dark mode keeps the light violet primary (#e0cbf6) on a violet-tinted background (#0a0510).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#0a0510black
Foreground
#030104black
#f7f5fawhitesmoke
Card
#f7f4fawhitesmoke
#0d0613black
Card foreground
#000000black
#faf8fbghostwhite
Popover
#f7f4fawhitesmoke
#0d0613black
Popover foreground
#000000black
#faf8fbghostwhite
Primary
#e0cbf6lavender
#e0cbf6lavender
Primary foreground
#471579indigo
#471579indigo
Secondary
#e0f6cbbeige
#e0f6cbbeige
Secondary foreground
#142306black
#142306black
Muted
#f2f7eewhitesmoke
#0d1108black
Muted foreground
#4a4e46darkslategray
#b5b9b1silver
Accent
#e0f6cbbeige
#e0f6cbbeige
Accent foreground
#142306black
#142306black
Destructive
#be110efirebrick
#ed1612red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e0cbf6lavender
#e0cbf6lavender

Contrast

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

Light mode
Text on background19.67:1AAA
Text on card19.32:1AAA
Primary button8.50:1AAA
Secondary button14.30:1AAA
Muted text7.82:1AAA
Accent14.30:1AAA
Destructive6.42:1AA
Dark mode
Text on background18.62:1AAA
Text on card18.88:1AAA
Primary button8.50:1AAA
Secondary button14.30:1AAA
Muted text9.55:1AAA
Accent14.30:1AAA
Destructive4.44: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.981 0.006 308.395);
  --foreground: oklch(0.081 0.018 310.04);
  --muted: oklch(0.97 0.013 128.615);
  --muted-foreground: oklch(0.418 0.016 128.88);
  --popover: oklch(0.972 0.009 308.361);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.972 0.009 308.361);
  --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.873 0.062 307.668);
  --primary-foreground: oklch(0.34 0.155 300.743);
  --secondary: oklch(0.946 0.061 129.201);
  --secondary-foreground: oklch(0.234 0.052 131.614);
  --accent: oklch(0.946 0.061 129.201);
  --accent-foreground: oklch(0.234 0.052 131.614);
  --destructive: oklch(0.508 0.201 28.786);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.873 0.062 307.668);
  --chart-1: oklch(0.873 0.062 307.668);
  --chart-2: oklch(0.946 0.061 129.201);
  --chart-3: oklch(0.946 0.061 129.201);
  --chart-4: oklch(0.959 0.046 129.002);
  --chart-5: oklch(0.872 0.065 307.632);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.027 308.227);
  --foreground: oklch(0.973 0.007 308.386);
  --muted: oklch(0.171 0.02 129.672);
  --muted-foreground: oklch(0.781 0.013 128.651);
  --popover: oklch(0.142 0.031 306.853);
  --popover-foreground: oklch(0.982 0.004 308.411);
  --card: oklch(0.142 0.031 306.853);
  --card-foreground: oklch(0.982 0.004 308.411);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.873 0.062 307.668);
  --primary-foreground: oklch(0.34 0.155 300.743);
  --secondary: oklch(0.946 0.061 129.201);
  --secondary-foreground: oklch(0.234 0.052 131.614);
  --accent: oklch(0.946 0.061 129.201);
  --accent-foreground: oklch(0.234 0.052 131.614);
  --destructive: oklch(0.6 0.238 28.89);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.873 0.062 307.668);
  --chart-1: oklch(0.873 0.062 307.668);
  --chart-2: oklch(0.946 0.061 129.201);
  --chart-3: oklch(0.946 0.061 129.201);
  --chart-4: oklch(0.959 0.046 129.002);
  --chart-5: oklch(0.872 0.065 307.632);
}