Receipt for shadcn/ui

Receipt is a shadcn/ui theme built around a deep orange primary color (#5b3e2f) with deep violet accents (#3e2f5b). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#5b3e2f) on an orange-tinted background (#0e0906).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0906black
Foreground
#000000black
#fbf9f8snow
Card
#fcfcfcsnow
#120b08black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fcfcfcsnow
#120b08black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#5b3e2fdarkolivegreen
#5b3e2fdarkolivegreen
Primary foreground
#e8dbd3gainsboro
#e8dbd3gainsboro
Secondary
#2f5b3edarkslategray
#2f5b3edarkslategray
Secondary foreground
#d3e8dbgainsboro
#d3e8dbgainsboro
Muted
#f0f4f2whitesmoke
#0b0f0cblack
Muted foreground
#536a5bdimgray
#95ac9ddarkseagreen
Accent
#3e2f5bdarkslategray
#3e2f5bdarkslategray
Accent foreground
#dbd3e8gainsboro
#dbd3e8gainsboro
Destructive
#922b0csaddlebrown
#de4212orangered
Destructive foreground
#fcded5antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5b3e2fdarkolivegreen
#5b3e2fdarkolivegreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.11:1AAA
Secondary button6.08:1AA
Muted text5.29:1AA
Accent8.23:1AAA
Destructive6.41:1AA
Dark mode
Text on background18.86:1AAA
Text on card19.02:1AAA
Primary button7.11:1AAA
Secondary button6.08:1AA
Muted text7.97:1AAA
Accent8.23:1AAA
Destructive4.30:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.964 0.006 157.864);
  --muted-foreground: oklch(0.5 0.036 156.385);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.393 0.047 49.203);
  --primary-foreground: oklch(0.899 0.018 50.403);
  --secondary: oklch(0.43 0.069 153.926);
  --secondary-foreground: oklch(0.913 0.029 157.298);
  --accent: oklch(0.344 0.077 298.432);
  --accent-foreground: oklch(0.88 0.03 301.681);
  --destructive: oklch(0.445 0.144 35.915);
  --destructive-foreground: oklch(0.922 0.036 37.613);
  --ring: oklch(0.393 0.047 49.203);
  --chart-1: oklch(0.393 0.047 49.203);
  --chart-2: oklch(0.43 0.069 153.926);
  --chart-3: oklch(0.344 0.077 298.432);
  --chart-4: oklch(0.463 0.075 153.858);
  --chart-5: oklch(0.394 0.052 49.041);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.012 54.077);
  --foreground: oklch(0.985 0.002 50.627);
  --muted: oklch(0.162 0.009 156.819);
  --muted-foreground: oklch(0.723 0.033 156.994);
  --popover: oklch(0.158 0.014 50.979);
  --popover-foreground: oklch(0.992 0.001 50.644);
  --card: oklch(0.158 0.014 50.979);
  --card-foreground: oklch(0.992 0.001 50.644);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.393 0.047 49.203);
  --primary-foreground: oklch(0.899 0.018 50.403);
  --secondary: oklch(0.43 0.069 153.926);
  --secondary-foreground: oklch(0.913 0.029 157.298);
  --accent: oklch(0.344 0.077 298.432);
  --accent-foreground: oklch(0.88 0.03 301.681);
  --destructive: oklch(0.601 0.2 35.473);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.393 0.047 49.203);
  --chart-1: oklch(0.393 0.047 49.203);
  --chart-2: oklch(0.43 0.069 153.926);
  --chart-3: oklch(0.344 0.077 298.432);
  --chart-4: oklch(0.463 0.075 153.858);
  --chart-5: oklch(0.394 0.052 49.041);
}