Trailer for shadcn/ui

Trailer is a shadcn/ui theme built around a vivid orange primary color (#c7701a) with vivid violet accents (#701ac7). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the vivid orange primary (#c7701a) on a neutral background (#070503).

Color palette

TokenLightDark
Background
#fcfaf8snow
#070503black
Foreground
#000000black
#fbfaf8snow
Card
#faf7f5whitesmoke
#0b0805black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fcfaf8snow
#070503black
Popover foreground
#000000black
#fbfaf8snow
Primary
#c7701achocolate
#c7701achocolate
Primary foreground
#000000black
#000000black
Secondary
#1ac770mediumseagreen
#1ac770mediumseagreen
Secondary foreground
#02120ablack
#02120ablack
Muted
#d3ded9gainsboro
#212c26darkslategray
Muted foreground
#5f6d66dimgray
#92a099darkgray
Accent
#701ac7blueviolet
#701ac7blueviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#751600maroon
#ff4c24orangered
Destructive foreground
#ffb8a8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c7701achocolate
#c7701achocolate

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card19.72:1AAA
Primary button5.75:1AA
Secondary button8.60:1AAA
Muted text3.94:1AA Large
Accent7.89:1AAA
Destructive6.77:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.54:1AAA
Primary button5.75:1AA
Secondary button8.60:1AAA
Muted text5.31:1AA
Accent7.89:1AAA
Destructive3.32:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.003 67.788);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.892 0.015 164.709);
  --muted-foreground: oklch(0.521 0.021 164.067);
  --popover: oklch(0.986 0.003 67.788);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.978 0.005 67.77);
  --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.63 0.141 58.5);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.729 0.179 153.82);
  --secondary-foreground: oklch(0.164 0.03 162.373);
  --accent: oklch(0.467 0.234 298.669);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.367 0.133 33.692);
  --destructive-foreground: oklch(0.845 0.086 33.042);
  --ring: oklch(0.63 0.141 58.5);
  --chart-1: oklch(0.63 0.141 58.5);
  --chart-2: oklch(0.729 0.179 153.82);
  --chart-3: oklch(0.467 0.234 298.669);
  --chart-4: oklch(0.766 0.189 153.752);
  --chart-5: oklch(0.635 0.145 57.82);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.009 73.618);
  --foreground: oklch(0.985 0.002 67.794);
  --muted: oklch(0.28 0.019 163.221);
  --muted-foreground: oklch(0.693 0.019 164.396);
  --popover: oklch(0.118 0.009 73.618);
  --popover-foreground: oklch(0.985 0.002 67.794);
  --card: oklch(0.135 0.011 73.503);
  --card-foreground: oklch(0.993 0.001 67.808);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.63 0.141 58.5);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.729 0.179 153.82);
  --secondary-foreground: oklch(0.164 0.03 162.373);
  --accent: oklch(0.467 0.234 298.669);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.668 0.221 33.732);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.63 0.141 58.5);
  --chart-1: oklch(0.63 0.141 58.5);
  --chart-2: oklch(0.729 0.179 153.82);
  --chart-3: oklch(0.467 0.234 298.669);
  --chart-4: oklch(0.766 0.189 153.752);
  --chart-5: oklch(0.635 0.145 57.82);
}