Ordinary is a shadcn/ui theme built around a vivid deep green primary color (#176709) with vivid deep red accents (#670917). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the vivid deep green primary (#176709) on a green-tinted background (#060b05).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #060b05black |
| Foreground | #051103black | #fcfdfcwhite |
| Card | #f9fbf8mintcream | #070e06black |
| Card foreground | #040d03black | #ffffffwhite |
| Popover | #fcfdfcwhite | #060b05black |
| Popover foreground | #051103black | #fcfdfcwhite |
| Primary | #176709darkgreen | #176709darkgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #091767midnightblue | #091767midnightblue |
| Secondary foreground | #abb6f8lightsteelblue | #abb6f8lightsteelblue |
| Muted | #d2d4dflightgrey | #20222ddarkslategray |
| Muted foreground | #3d404cdarkslategray | #b3b5c2silver |
| Accent | #670917maroon | #670917maroon |
| Accent foreground | #f8abb6lightpink | #f8abb6lightpink |
| Destructive | #912a08saddlebrown | #e9430corangered |
| Destructive foreground | #fcdacfbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #176709darkgreen | #176709darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.95:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 7.02:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 7.00:1 | AAA |
| Accent | 7.04:1 | AAA |
| Destructive | 6.31:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 7.02:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 7.78:1 | AAA |
| Accent | 7.04:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Ordinary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 141.06);
--foreground: oklch(0.161 0.035 139.412);
--muted: oklch(0.872 0.015 278.059);
--muted-foreground: oklch(0.373 0.022 277.381);
--popover: oklch(0.993 0.003 141.06);
--popover-foreground: oklch(0.161 0.035 139.412);
--card: oklch(0.987 0.005 141.054);
--card-foreground: oklch(0.143 0.03 139.106);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.45 0.143 141.315);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.267 0.138 266.727);
--secondary-foreground: oklch(0.792 0.094 276.303);
--accent: oklch(0.331 0.125 21.057);
--accent-foreground: oklch(0.817 0.092 9.418);
--destructive: oklch(0.442 0.144 36.359);
--destructive-foreground: oklch(0.914 0.042 39.297);
--ring: oklch(0.45 0.143 141.315);
--chart-1: oklch(0.45 0.143 141.315);
--chart-2: oklch(0.267 0.138 266.727);
--chart-3: oklch(0.331 0.125 21.057);
--chart-4: oklch(0.289 0.153 266.47);
--chart-5: oklch(0.455 0.146 141.366);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.018 139.862);
--foreground: oklch(0.993 0.002 141.06);
--muted: oklch(0.254 0.021 276.972);
--muted-foreground: oklch(0.775 0.018 277.965);
--popover: oklch(0.139 0.018 139.862);
--popover-foreground: oklch(0.993 0.002 141.06);
--card: oklch(0.154 0.021 140.099);
--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.45 0.143 141.315);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.267 0.138 266.727);
--secondary-foreground: oklch(0.792 0.094 276.303);
--accent: oklch(0.331 0.125 21.057);
--accent-foreground: oklch(0.817 0.092 9.418);
--destructive: oklch(0.621 0.209 35.691);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.45 0.143 141.315);
--chart-1: oklch(0.45 0.143 141.315);
--chart-2: oklch(0.267 0.138 266.727);
--chart-3: oklch(0.331 0.125 21.057);
--chart-4: oklch(0.289 0.153 266.47);
--chart-5: oklch(0.455 0.146 141.366);
}