Ornery is a shadcn/ui theme built around a light blue primary color (#acc1dd) with light indigo accents (#afacdd). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#acc1dd) on a blue-tinted background (#050a0f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a0fblack |
| Foreground | #020508black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #060c13black |
| Card foreground | #010204black | #ffffffwhite |
| Popover | #fcfcfcsnow | #060c13black |
| Popover foreground | #010204black | #ffffffwhite |
| Primary | #acc1ddlightsteelblue | #acc1ddlightsteelblue |
| Primary foreground | #19293edarkslategray | #19293edarkslategray |
| Secondary | #acdaddlightblue | #acdaddlightblue |
| Secondary foreground | #193b3edarkslategray | #193b3edarkslategray |
| Muted | #d6e9eagainsboro | #152729black |
| Muted foreground | #5e6d6edimgray | #91a0a1darkgray |
| Accent | #afacddlightsteelblue | #afacddlightsteelblue |
| Accent foreground | #1c193emidnightblue | #1c193emidnightblue |
| Destructive | #9f3e09saddlebrown | #f26a21chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #acc1ddlightsteelblue | #acc1ddlightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 4.30:1 | AA Large |
| Accent | 7.74:1 | AAA |
| Destructive | 6.64:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 7.74:1 | AAA |
| Destructive | 6.87:1 | AA |
Paste this into your globals.css to use Ornery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.109 0.015 245.514);
--muted: oklch(0.921 0.02 201.991);
--muted-foreground: oklch(0.523 0.018 201.871);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.087 0.012 245.514);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.087 0.012 245.514);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.804 0.046 255.19);
--primary-foreground: oklch(0.277 0.044 255.521);
--secondary: oklch(0.856 0.048 201.716);
--secondary-foreground: oklch(0.329 0.04 201.611);
--accent: oklch(0.763 0.07 287.668);
--accent-foreground: oklch(0.239 0.067 283.051);
--destructive: oklch(0.491 0.141 42.64);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.804 0.046 255.19);
--chart-1: oklch(0.804 0.046 255.19);
--chart-2: oklch(0.856 0.048 201.716);
--chart-3: oklch(0.763 0.07 287.668);
--chart-4: oklch(0.875 0.042 201.772);
--chart-5: oklch(0.803 0.049 255.203);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.016 250.616);
--foreground: oklch(0.992 0 254.956);
--muted: oklch(0.259 0.025 201.558);
--muted-foreground: oklch(0.694 0.017 201.962);
--popover: oklch(0.151 0.019 253.401);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.151 0.019 253.401);
--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.804 0.046 255.19);
--primary-foreground: oklch(0.277 0.044 255.521);
--secondary: oklch(0.856 0.048 201.716);
--secondary-foreground: oklch(0.329 0.04 201.611);
--accent: oklch(0.763 0.07 287.668);
--accent-foreground: oklch(0.239 0.067 283.051);
--destructive: oklch(0.683 0.185 44.107);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.804 0.046 255.19);
--chart-1: oklch(0.804 0.046 255.19);
--chart-2: oklch(0.856 0.048 201.716);
--chart-3: oklch(0.763 0.07 287.668);
--chart-4: oklch(0.875 0.042 201.772);
--chart-5: oklch(0.803 0.049 255.203);
}