Ostrich is a shadcn/ui theme built around a neutral gray primary color (#666567) with muted light violet accents (#ded4e7). The light mode uses a neutral background (#faf7fd). Dark mode keeps the neutral gray primary (#666567) on a neutral background (#030204).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #030204black |
| Foreground | #050109black | #ffffffwhite |
| Card | #f8f3fcghostwhite | #050307black |
| Card foreground | #030104black | #ffffffwhite |
| Popover | #faf7fdghostwhite | #030204black |
| Popover foreground | #050109black | #ffffffwhite |
| Primary | #666567dimgray | #666567dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ebe7eelavender | #1c1721black |
| Secondary foreground | #534261darkslategray | #b6a7c3silver |
| Muted | #f0ecf3whitesmoke | #100c13black |
| Muted foreground | #62556ddimgray | #9f92aadarkgray |
| Accent | #ded4e7gainsboro | #2f213bdarkslategray |
| Accent foreground | #463159darkslategray | #c8b7d7thistle |
| Destructive | #983801saddlebrown | #fe5e01orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #666567dimgray | #666567dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 5.79:1 | AA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 7.21:1 | AAA |
| Text on background | 20.75:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 5.79:1 | AA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 6.61:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.79:1 | AA |
Paste this into your globals.css to use Ostrich in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.009 309.695);
--foreground: oklch(0.098 0.029 312.066);
--muted: oklch(0.949 0.009 309.688);
--muted-foreground: oklch(0.471 0.04 308.947);
--popover: oklch(0.98 0.009 309.695);
--popover-foreground: oklch(0.098 0.029 312.066);
--card: oklch(0.97 0.013 309.648);
--card-foreground: oklch(0.078 0.023 312.066);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.508 0.003 309.718);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.933 0.011 309.665);
--secondary-foreground: oklch(0.409 0.055 308.445);
--accent: oklch(0.885 0.028 309.469);
--accent-foreground: oklch(0.355 0.072 307.681);
--destructive: oklch(0.472 0.14 42.684);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.508 0.003 309.718);
--chart-1: oklch(0.508 0.003 309.718);
--chart-2: oklch(0.933 0.011 309.665);
--chart-3: oklch(0.885 0.028 309.469);
--chart-4: oklch(0.958 0.007 309.712);
--chart-5: oklch(0.503 0.014 309.513);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.012 310.926);
--foreground: oklch(1 0 180);
--muted: oklch(0.162 0.014 308.907);
--muted-foreground: oklch(0.68 0.036 309.255);
--popover: oklch(0.085 0.012 310.926);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.107 0.016 310.926);
--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.508 0.003 309.718);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.215 0.022 308.76);
--secondary-foreground: oklch(0.75 0.043 309.219);
--accent: oklch(0.277 0.049 307.949);
--accent-foreground: oklch(0.804 0.047 309.204);
--destructive: oklch(0.684 0.209 41.17);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.508 0.003 309.718);
--chart-1: oklch(0.508 0.003 309.718);
--chart-2: oklch(0.215 0.022 308.76);
--chart-3: oklch(0.277 0.049 307.949);
--chart-4: oklch(0.245 0.027 308.675);
--chart-5: oklch(0.503 0.014 309.513);
}