Corral is a shadcn/ui theme built around a muted violet primary color (#6f627f) with muted purple accents (#7e627f). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted violet primary (#6f627f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #000000black |
| Foreground | #0a0410black | #fcfcfdwhite |
| Card | #faf7fdghostwhite | #030303black |
| Card foreground | #07030cblack | #ffffffwhite |
| Popover | #faf7fdghostwhite | #030303black |
| Popover foreground | #07030cblack | #ffffffwhite |
| Primary | #6f627fdimgray | #6f627fdimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #62637fdimgray | #62637fdimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e2e3eelavender | #11121dblack |
| Muted foreground | #646468dimgray | #97979bdarkgray |
| Accent | #7e627fgray | #7e627fgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c92403firebrick | #f12b04orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6f627fdimgray | #6f627fdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 5.64:1 | AA |
| Secondary button | 5.85:1 | AA |
| Muted text | 4.60:1 | AA |
| Accent | 5.35:1 | AA |
| Destructive | 5.62:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 5.64:1 | AA |
| Secondary button | 5.85:1 | AA |
| Muted text | 6.41:1 | AA |
| Accent | 5.35:1 | AA |
| Destructive | 4.12:1 | AA Large |
Paste this into your globals.css to use Corral in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 307.065);
--foreground: oklch(0.127 0.032 306.805);
--muted: oklch(0.918 0.015 284.517);
--muted-foreground: oklch(0.505 0.006 284.59);
--popover: oklch(0.98 0.008 307.017);
--popover-foreground: oklch(0.115 0.027 308.365);
--card: oklch(0.98 0.008 307.017);
--card-foreground: oklch(0.115 0.027 308.365);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.519 0.048 305.977);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.508 0.045 283.144);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.533 0.056 325.259);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.539 0.202 32.034);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.519 0.048 305.977);
--chart-1: oklch(0.519 0.048 305.977);
--chart-2: oklch(0.508 0.045 283.144);
--chart-3: oklch(0.533 0.056 325.259);
--chart-4: oklch(0.532 0.047 283.13);
--chart-5: oklch(0.513 0.059 305.69);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 307.084);
--muted: oklch(0.186 0.023 282.436);
--muted-foreground: oklch(0.678 0.006 284.658);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.519 0.048 305.977);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.508 0.045 283.144);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.533 0.056 325.259);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.617 0.233 31.827);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.519 0.048 305.977);
--chart-1: oklch(0.519 0.048 305.977);
--chart-2: oklch(0.508 0.045 283.144);
--chart-3: oklch(0.533 0.056 325.259);
--chart-4: oklch(0.532 0.047 283.13);
--chart-5: oklch(0.513 0.059 305.69);
}