Request for shadcn/ui

Request is a shadcn/ui theme built around an indigo primary color (#4f3dc2) with green accents (#3dc24f). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the indigo primary (#4f3dc2) on a neutral background (#030307).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#030307black
Foreground
#000000black
#f6f6f9whitesmoke
Card
#f9f8fcghostwhite
#030307black
Card foreground
#000000black
#f6f6f9whitesmoke
Popover
#f9f8fcghostwhite
#030307black
Popover foreground
#000000black
#f6f6f9whitesmoke
Primary
#4f3dc2slateblue
#4f3dc2slateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c24f3dindianred
#c24f3dindianred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4f1f1whitesmoke
#0e0c0bblack
Muted foreground
#5f5e5ddimgray
#a2a0a0darkgray
Accent
#3dc24flimegreen
#3dc24flimegreen
Accent foreground
#0c2710black
#0c2710black
Destructive
#921f02darkred
#fc491dorangered
Destructive foreground
#fed3c8peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4f3dc2slateblue
#4f3dc2slateblue

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button7.55:1AAA
Secondary button4.69:1AA
Muted text5.76:1AA
Accent6.86:1AA
Destructive6.36:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.08:1AAA
Primary button7.55:1AAA
Secondary button4.69:1AA
Muted text7.50:1AAA
Accent6.86:1AA
Destructive3.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 292.453);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.961 0.003 27.947);
  --muted-foreground: oklch(0.482 0.002 27.955);
  --popover: oklch(0.981 0.005 292.453);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.005 292.453);
  --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.466 0.197 281.62);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.575 0.151 30.993);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.718 0.193 145.295);
  --accent-foreground: oklch(0.244 0.054 146.371);
  --destructive: oklch(0.431 0.154 33.721);
  --destructive-foreground: oklch(0.9 0.051 34.353);
  --ring: oklch(0.466 0.197 281.62);
  --chart-1: oklch(0.466 0.197 281.62);
  --chart-2: oklch(0.575 0.151 30.993);
  --chart-3: oklch(0.718 0.193 145.295);
  --chart-4: oklch(0.597 0.142 30.635);
  --chart-5: oklch(0.461 0.206 280.663);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.016 291.122);
  --foreground: oklch(0.974 0.004 292.469);
  --muted: oklch(0.156 0.004 28.094);
  --muted-foreground: oklch(0.707 0.002 27.947);
  --popover: oklch(0.102 0.016 291.122);
  --popover-foreground: oklch(0.974 0.004 292.469);
  --card: oklch(0.102 0.016 291.122);
  --card-foreground: oklch(0.974 0.004 292.469);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.466 0.197 281.62);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.575 0.151 30.993);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.718 0.193 145.295);
  --accent-foreground: oklch(0.244 0.054 146.371);
  --destructive: oklch(0.659 0.221 34.274);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.466 0.197 281.62);
  --chart-1: oklch(0.466 0.197 281.62);
  --chart-2: oklch(0.575 0.151 30.993);
  --chart-3: oklch(0.718 0.193 145.295);
  --chart-4: oklch(0.597 0.142 30.635);
  --chart-5: oklch(0.461 0.206 280.663);
}