Trapezoid for shadcn/ui

Trapezoid is a shadcn/ui theme built around a vivid light red primary color (#fbbcc3) with vivid light orange accents (#fbd4bc). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light red primary (#fbbcc3) on a neutral background (#080203).

Color palette

TokenLightDark
Background
#ffffffwhite
#080203black
Foreground
#050101black
#fdfcfcsnow
Card
#ffffffwhite
#080203black
Card foreground
#050101black
#fdfcfcsnow
Popover
#ffffffwhite
#080203black
Popover foreground
#050101black
#fdfcfcsnow
Primary
#fbbcc3lightpink
#fbbcc3lightpink
Primary foreground
#7d0816maroon
#7d0816maroon
Secondary
#fbbce3pink
#fbbce3pink
Secondary foreground
#7d0850purple
#7d0850purple
Muted
#ecd9e5gainsboro
#26131eblack
Muted foreground
#564d53darkslategray
#b2a9afdarkgray
Accent
#fbd4bcpeachpuff
#fbd4bcpeachpuff
Accent foreground
#7d3508saddlebrown
#7d3508saddlebrown
Destructive
#ae1c09firebrick
#ed270corangered
Destructive foreground
#feeeecseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fbbcc3lightpink
#fbbcc3lightpink

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button6.81:1AA
Secondary button6.61:1AA
Muted text6.07:1AA
Accent6.38:1AA
Destructive6.25:1AA
Dark mode
Text on background20.06:1AAA
Text on card20.06:1AAA
Primary button6.81:1AA
Secondary button6.61:1AA
Muted text7.72:1AAA
Accent6.38:1AA
Destructive4.27:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.079 0.021 10.961);
  --muted: oklch(0.905 0.026 340.093);
  --muted-foreground: oklch(0.431 0.016 340.276);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.079 0.021 10.961);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.079 0.021 10.961);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.854 0.073 10.942);
  --primary-foreground: oklch(0.375 0.146 23.99);
  --secondary: oklch(0.863 0.087 341.574);
  --secondary-foreground: oklch(0.391 0.157 350.664);
  --accent: oklch(0.897 0.054 53.694);
  --accent-foreground: oklch(0.42 0.112 46.094);
  --destructive: oklch(0.484 0.182 30.914);
  --destructive-foreground: oklch(0.961 0.018 26.572);
  --ring: oklch(0.854 0.073 10.942);
  --chart-1: oklch(0.854 0.073 10.942);
  --chart-2: oklch(0.863 0.087 341.574);
  --chart-3: oklch(0.897 0.054 53.694);
  --chart-4: oklch(0.892 0.068 341.075);
  --chart-5: oklch(0.853 0.076 11.019);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.017 10.022);
  --foreground: oklch(0.991 0.002 8.957);
  --muted: oklch(0.216 0.037 342.98);
  --muted-foreground: oklch(0.743 0.014 339.881);
  --popover: oklch(0.105 0.017 10.022);
  --popover-foreground: oklch(0.991 0.002 8.957);
  --card: oklch(0.105 0.017 10.022);
  --card-foreground: oklch(0.991 0.002 8.957);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.854 0.073 10.942);
  --primary-foreground: oklch(0.375 0.146 23.99);
  --secondary: oklch(0.863 0.087 341.574);
  --secondary-foreground: oklch(0.391 0.157 350.664);
  --accent: oklch(0.897 0.054 53.694);
  --accent-foreground: oklch(0.42 0.112 46.094);
  --destructive: oklch(0.608 0.232 30.815);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.854 0.073 10.942);
  --chart-1: oklch(0.854 0.073 10.942);
  --chart-2: oklch(0.863 0.087 341.574);
  --chart-3: oklch(0.897 0.054 53.694);
  --chart-4: oklch(0.892 0.068 341.075);
  --chart-5: oklch(0.853 0.076 11.019);
}