Order is a shadcn/ui theme built around a muted purple primary color (#b37aa7) with muted green accents (#7ab386). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the muted purple primary (#b37aa7) on a purple-tinted background (#0e070c).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #0e070cblack |
| Foreground | #040104black | #faf5f9whitesmoke |
| Card | #fcf8fbsnow | #0e070cblack |
| Card foreground | #040104black | #faf5f9whitesmoke |
| Popover | #fcf8fbsnow | #0e070cblack |
| Popover foreground | #040104black | #faf5f9whitesmoke |
| Primary | #b37aa7rosybrown | #b37aa7rosybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #7ab386darkseagreen | #7ab386darkseagreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #dfece2gainsboro | #132016black |
| Muted foreground | #526b57dimgray | #94ad99darkseagreen |
| Accent | #7ab386darkseagreen | #7ab386darkseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #b41b0efirebrick | #f04c3dtomato |
| Destructive foreground | #fef6f6snow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b37aa7rosybrown | #b37aa7rosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 8.59:1 | AAA |
| Muted text | 4.78:1 | AA |
| Accent | 8.59:1 | AAA |
| Destructive | 6.33:1 | AA |
| Text on background | 18.51:1 | AAA |
| Text on card | 18.51:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 8.59:1 | AAA |
| Muted text | 6.97:1 | AA |
| Accent | 8.59:1 | AAA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Order in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 332.091);
--foreground: oklch(0.084 0.024 333.176);
--muted: oklch(0.931 0.02 151.681);
--muted-foreground: oklch(0.501 0.043 150.649);
--popover: oklch(0.983 0.006 332.091);
--popover-foreground: oklch(0.084 0.024 333.176);
--card: oklch(0.983 0.006 332.091);
--card-foreground: oklch(0.084 0.024 333.176);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.652 0.093 333.98);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.714 0.088 149.953);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.714 0.088 149.953);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.495 0.188 30.086);
--destructive-foreground: oklch(0.98 0.009 23.668);
--ring: oklch(0.652 0.093 333.98);
--chart-1: oklch(0.652 0.093 333.98);
--chart-2: oklch(0.714 0.088 149.953);
--chart-3: oklch(0.714 0.088 149.953);
--chart-4: oklch(0.735 0.082 150.185);
--chart-5: oklch(0.651 0.103 334.188);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.017 333.314);
--foreground: oklch(0.974 0.008 332.131);
--muted: oklch(0.228 0.028 149.999);
--muted-foreground: oklch(0.723 0.039 151.165);
--popover: oklch(0.141 0.017 333.314);
--popover-foreground: oklch(0.974 0.008 332.131);
--card: oklch(0.141 0.017 333.314);
--card-foreground: oklch(0.974 0.008 332.131);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.652 0.093 333.98);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.714 0.088 149.953);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.714 0.088 149.953);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.646 0.204 29.081);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.652 0.093 333.98);
--chart-1: oklch(0.652 0.093 333.98);
--chart-2: oklch(0.714 0.088 149.953);
--chart-3: oklch(0.714 0.088 149.953);
--chart-4: oklch(0.735 0.082 150.185);
--chart-5: oklch(0.651 0.103 334.188);
}