Corral for shadcn/ui

Corral is a shadcn/ui theme built around a vivid red primary color (#f73826) with vivid cyan accents (#26e6f7). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the vivid red primary (#f73826) on a red-tinted background (#0b0505).

Color palette

TokenLightDark
Background
#fcf8f8snow
#0b0505black
Foreground
#000000black
#f9f6f5whitesmoke
Card
#faf5f5whitesmoke
#0e0706black
Card foreground
#000000black
#fbf9f9snow
Popover
#fcf8f8snow
#0b0505black
Popover foreground
#000000black
#f9f6f5whitesmoke
Primary
#f73826orangered
#f73826orangered
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#26e6f7aqua
#26e6f7aqua
Secondary foreground
#03484fdarkslategray
#03484fdarkslategray
Muted
#ecf3f4whitesmoke
#0b1213black
Muted foreground
#3f4f50darkslategray
#afbfc0silver
Accent
#26e6f7aqua
#26e6f7aqua
Accent foreground
#03484fdarkslategray
#03484fdarkslategray
Destructive
#b12006firebrick
#f84e30tomato
Destructive foreground
#feeeeblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f73826orangered
#f73826orangered

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.44:1AAA
Primary button3.78:1AA Large
Secondary button6.71:1AA
Muted text7.63:1AAA
Accent6.71:1AA
Destructive6.04:1AA
Dark mode
Text on background18.81:1AAA
Text on card19.04:1AAA
Primary button3.78:1AA Large
Secondary button6.71:1AA
Muted text9.90:1AAA
Accent6.71:1AA
Destructive3.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 23.617);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.959 0.008 203.509);
  --muted-foreground: oklch(0.413 0.02 203.221);
  --popover: oklch(0.983 0.004 23.617);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.974 0.005 23.636);
  --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.638 0.228 29.874);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.845 0.139 204.93);
  --secondary-foreground: oklch(0.368 0.062 204.994);
  --accent: oklch(0.845 0.139 204.93);
  --accent-foreground: oklch(0.368 0.062 204.994);
  --destructive: oklch(0.492 0.183 31.793);
  --destructive-foreground: oklch(0.962 0.018 29.541);
  --ring: oklch(0.638 0.228 29.874);
  --chart-1: oklch(0.638 0.228 29.874);
  --chart-2: oklch(0.845 0.139 204.93);
  --chart-3: oklch(0.845 0.139 204.93);
  --chart-4: oklch(0.852 0.136 204.481);
  --chart-5: oklch(0.641 0.233 29.956);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.013 26.669);
  --foreground: oklch(0.975 0.004 23.62);
  --muted: oklch(0.177 0.011 203.165);
  --muted-foreground: oklch(0.792 0.017 203.392);
  --popover: oklch(0.125 0.013 26.669);
  --popover-foreground: oklch(0.975 0.004 23.62);
  --card: oklch(0.138 0.015 26.34);
  --card-foreground: oklch(0.983 0.003 23.607);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.638 0.228 29.874);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.845 0.139 204.93);
  --secondary-foreground: oklch(0.368 0.062 204.994);
  --accent: oklch(0.845 0.139 204.93);
  --accent-foreground: oklch(0.368 0.062 204.994);
  --destructive: oklch(0.659 0.21 32.382);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.638 0.228 29.874);
  --chart-1: oklch(0.638 0.228 29.874);
  --chart-2: oklch(0.845 0.139 204.93);
  --chart-3: oklch(0.845 0.139 204.93);
  --chart-4: oklch(0.852 0.136 204.481);
  --chart-5: oklch(0.641 0.233 29.956);
}