Ornery is a shadcn/ui theme built around a neutral gray primary color (#e1e1e0) with neutral gray accents (#e0e0e1). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the neutral gray primary (#e1e1e0) on a green-tinted background (#0e1005).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #0e1005black |
| Foreground | #0f1202black | #fdfdfcwhite |
| Card | #f9faf5whitesmoke | #111406black |
| Card foreground | #0b0e02black | #ffffffwhite |
| Popover | #f9faf5whitesmoke | #111406black |
| Popover foreground | #0b0e02black | #ffffffwhite |
| Primary | #e1e1e0gainsboro | #e1e1e0gainsboro |
| Primary foreground | #484946darkslategray | #484946darkslategray |
| Secondary | #e0e0e1gainsboro | #e0e0e1gainsboro |
| Secondary foreground | #464649darkslategray | #464649darkslategray |
| Muted | #d7d4e2gainsboro | #1f1d2bblack |
| Muted foreground | #5b5770dimgray | #938fa8lightslategray |
| Accent | #e0e0e1gainsboro | #e0e0e1gainsboro |
| Accent foreground | #464649darkslategray | #464649darkslategray |
| Destructive | #681408maroon | #de2a12orangered |
| Destructive foreground | #f8b3aalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e1e1e0gainsboro | #e1e1e0gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.37:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 6.92:1 | AA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 4.73:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 7.12:1 | AAA |
| Text on background | 18.88:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 6.92:1 | AA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 5.32:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 4.73:1 | AA |
Paste this into your globals.css to use Ornery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 114.917);
--foreground: oklch(0.174 0.033 117.332);
--muted: oklch(0.877 0.02 294.406);
--muted-foreground: oklch(0.47 0.042 293.129);
--popover: oklch(0.983 0.008 114.965);
--popover-foreground: oklch(0.154 0.029 116.422);
--card: oklch(0.983 0.008 114.965);
--card-foreground: oklch(0.154 0.029 116.422);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.909 0.002 114.857);
--primary-foreground: oklch(0.403 0.005 115.041);
--secondary: oklch(0.907 0.002 294.789);
--secondary-foreground: oklch(0.396 0.005 294.599);
--accent: oklch(0.907 0.002 294.789);
--accent-foreground: oklch(0.396 0.005 294.599);
--destructive: oklch(0.339 0.119 31.063);
--destructive-foreground: oklch(0.829 0.082 27.412);
--ring: oklch(0.909 0.002 114.857);
--chart-1: oklch(0.909 0.002 114.857);
--chart-2: oklch(0.907 0.002 294.789);
--chart-3: oklch(0.907 0.002 294.789);
--chart-4: oklch(0.93 0.001 294.799);
--chart-5: oklch(0.911 0.004 114.908);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.165 0.023 116.744);
--foreground: oklch(0.994 0.002 114.864);
--muted: oklch(0.239 0.027 292.617);
--muted-foreground: oklch(0.662 0.038 293.734);
--popover: oklch(0.182 0.027 117.314);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.182 0.027 117.314);
--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.909 0.002 114.857);
--primary-foreground: oklch(0.403 0.005 115.041);
--secondary: oklch(0.907 0.002 294.789);
--secondary-foreground: oklch(0.396 0.005 294.599);
--accent: oklch(0.907 0.002 294.789);
--accent-foreground: oklch(0.396 0.005 294.599);
--destructive: oklch(0.581 0.216 30.964);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.909 0.002 114.857);
--chart-1: oklch(0.909 0.002 114.857);
--chart-2: oklch(0.907 0.002 294.789);
--chart-3: oklch(0.907 0.002 294.789);
--chart-4: oklch(0.93 0.001 294.799);
--chart-5: oklch(0.911 0.004 114.908);
}