Ordination is a shadcn/ui theme built around a near-white primary color (#fbfbfe) with near-white accents (#fbfefb). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fbfbfe) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #010309black | #f9fafbghostwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #010205black | #fcfcfdwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #010205black | #fcfcfdwhite |
| Primary | #fbfbfeghostwhite | #fbfbfeghostwhite |
| Primary foreground | #1e3ea9darkslateblue | #1e3ea9darkslateblue |
| Secondary | #fefbfbsnow | #fefbfbsnow |
| Secondary foreground | #a91e3ebrown | #a91e3ebrown |
| Muted | #f0e5e8linen | #1a0f11black |
| Muted foreground | #69595ddimgray | #a6969adarkgray |
| Accent | #fbfefbwhite | #fbfefbwhite |
| Accent foreground | #1e520fdarkgreen | #1e520fdarkgreen |
| Destructive | #99350bsaddlebrown | #f06428chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fbfbfeghostwhite | #fbfbfeghostwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.62:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 8.79:1 | AAA |
| Secondary button | 6.92:1 | AA |
| Muted text | 5.36:1 | AA |
| Accent | 9.12:1 | AAA |
| Destructive | 7.33:1 | AAA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 8.79:1 | AAA |
| Secondary button | 6.92:1 | AA |
| Muted text | 6.65:1 | AA |
| Accent | 9.12:1 | AAA |
| Destructive | 6.57:1 | AA |
Paste this into your globals.css to use Ordination in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.022 261.231);
--muted: oklch(0.932 0.012 1.331);
--muted-foreground: oklch(0.481 0.021 2.149);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.078 0.017 261.231);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.078 0.017 261.231);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.99 0.004 272.618);
--primary-foreground: oklch(0.416 0.175 265.763);
--secondary: oklch(0.99 0.004 1.072);
--secondary-foreground: oklch(0.482 0.173 14.496);
--accent: oklch(0.995 0.005 138.336);
--accent-foreground: oklch(0.39 0.112 139.608);
--destructive: oklch(0.469 0.142 39.535);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.99 0.004 272.618);
--chart-1: oklch(0.99 0.004 272.618);
--chart-2: oklch(0.99 0.004 1.072);
--chart-3: oklch(0.995 0.005 138.336);
--chart-4: oklch(1.02 0.008 180.745);
--chart-5: oklch(0.99 0.004 272.616);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.001 272.643);
--muted: oklch(0.184 0.019 3.785);
--muted-foreground: oklch(0.689 0.019 1.72);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.992 0.001 272.65);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.992 0.001 272.65);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.99 0.004 272.618);
--primary-foreground: oklch(0.416 0.175 265.763);
--secondary: oklch(0.99 0.004 1.072);
--secondary-foreground: oklch(0.482 0.173 14.496);
--accent: oklch(0.995 0.005 138.336);
--accent-foreground: oklch(0.39 0.112 139.608);
--destructive: oklch(0.672 0.186 40.992);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.99 0.004 272.618);
--chart-1: oklch(0.99 0.004 272.618);
--chart-2: oklch(0.99 0.004 1.072);
--chart-3: oklch(0.995 0.005 138.336);
--chart-4: oklch(1.02 0.008 180.745);
--chart-5: oklch(0.99 0.004 272.616);
}