Ornery is a shadcn/ui theme built around a purple primary color (#c18ac1) with muted light red accents (#d5cdcd). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the purple primary (#c18ac1) on a neutral background (#080208).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fcsnow | #080208black |
| Foreground | #080208black | #fdfbfdsnow |
| Card | #faf4faghostwhite | #0c030cblack |
| Card foreground | #040104black | #ffffffwhite |
| Popover | #faf4faghostwhite | #0c030cblack |
| Popover foreground | #040104black | #ffffffwhite |
| Primary | #c18ac1orchid | #c18ac1orchid |
| Primary foreground | #110911black | #110911black |
| Secondary | #ebebeblinen | #252225darkslategray |
| Secondary foreground | #525252darkslategray | #c0b9c0silver |
| Muted | #e7cbcblightgrey | #341834darkslategray |
| Muted foreground | #554e4edarkslategray | #b1aab1darkgray |
| Accent | #d5cdcdlightgrey | #3b303bdarkslategray |
| Accent foreground | #3d3434darkslategray | #d4c9d4lightgrey |
| Destructive | #c1450bchocolate | #f1560eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c18ac1orchid | #c18ac1orchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.51:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 7.18:1 | AAA |
| Secondary button | 6.53:1 | AA |
| Muted text | 5.31:1 | AA |
| Accent | 7.75:1 | AAA |
| Destructive | 5.10:1 | AA |
| Text on background | 19.93:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 7.18:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 6.95:1 | AA |
| Accent | 7.84:1 | AAA |
| Destructive | 3.45:1 | AA Large |
Paste this into your globals.css to use Ornery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.007 325.627);
--foreground: oklch(0.108 0.029 327.332);
--muted: oklch(0.865 0.032 17.786);
--muted-foreground: oklch(0.431 0.009 17.494);
--popover: oklch(0.975 0.01 325.654);
--popover-foreground: oklch(0.085 0.023 327.332);
--card: oklch(0.975 0.01 325.654);
--card-foreground: oklch(0.085 0.023 327.332);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.706 0.1 326.573);
--primary-foreground: oklch(0.154 0.021 326.541);
--secondary: oklch(0.939 0 180);
--secondary-foreground: oklch(0.437 0 180);
--accent: oklch(0.856 0.008 17.316);
--accent-foreground: oklch(0.333 0.013 17.816);
--destructive: oklch(0.556 0.17 39.919);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.706 0.1 326.573);
--chart-1: oklch(0.706 0.1 326.573);
--chart-2: oklch(0.939 0 180);
--chart-3: oklch(0.856 0.008 17.316);
--chart-4: oklch(0.962 0 180);
--chart-5: oklch(0.705 0.11 326.661);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.027 327.221);
--foreground: oklch(0.992 0.003 325.602);
--muted: oklch(0.262 0.064 327.2);
--muted-foreground: oklch(0.746 0.012 325.694);
--popover: oklch(0.124 0.031 327.231);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.031 327.231);
--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.706 0.1 326.573);
--primary-foreground: oklch(0.154 0.021 326.541);
--secondary: oklch(0.257 0.008 325.819);
--secondary-foreground: oklch(0.794 0.012 325.687);
--accent: oklch(0.325 0.026 326.158);
--accent-foreground: oklch(0.848 0.019 325.74);
--destructive: oklch(0.655 0.203 39.558);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.706 0.1 326.573);
--chart-1: oklch(0.706 0.1 326.573);
--chart-2: oklch(0.257 0.008 325.819);
--chart-3: oklch(0.325 0.026 326.158);
--chart-4: oklch(0.288 0.01 325.832);
--chart-5: oklch(0.705 0.11 326.661);
}