CEMIRAD is a shadcn/ui theme built around a vivid orange primary color (#fc9100) with near-white accents (#f5f5f5). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid orange primary (#fc9100) on a neutral background (#0a0a0a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0a0ablack |
| Foreground | #0a0a0ablack | #fafafasnow |
| Card | #ffffffwhite | #0a0a0ablack |
| Card foreground | #0a0a0ablack | #fafafasnow |
| Popover | #ffffffwhite | #0a0a0ablack |
| Popover foreground | #0a0a0ablack | #fafafasnow |
| Primary | #fc9100darkorange | #fc9100darkorange |
| Primary foreground | #fafafasnow | #171717black |
| Secondary | #4a4e33darkolivegreen | #4a4e33darkolivegreen |
| Secondary foreground | #ede7e7linen | #fffcfcsnow |
| Muted | #f5f5f5whitesmoke | #262626darkslategray |
| Muted foreground | #737373dimgray | #a3a3a3darkgray |
| Accent | #f5f5f5whitesmoke | #4a4e33darkolivegreen |
| Accent foreground | #171717black | #d2d0d0lightgrey |
| Destructive | #ef4444tomato | #d21515firebrick |
| Destructive foreground | #fafafasnow | #fafafasnow |
| Border | #e5e5e5gainsboro | #262626darkslategray |
| Input | #e5e5e5gainsboro | #262626darkslategray |
| Ring | #0a0a0ablack | #d4d4d4lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 2.18:1 | Fail |
| Secondary button | 7.07:1 | AAA |
| Muted text | 4.35:1 | AA Large |
| Accent | 16.45:1 | AAA |
| Destructive | 3.60:1 | AA Large |
| Text on background | 18.97:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 8.47:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 5.63:1 | AA |
| Destructive | 5.21:1 | AA |
Paste this into your globals.css to use CEMIRAD in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.145 0 180);
--muted: oklch(0.97 0 180);
--muted-foreground: oklch(0.556 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.145 0 180);
--card: oklch(1 0 180);
--card-foreground: oklch(0.145 0 180);
--border: oklch(0.922 0 168.69);
--input: oklch(0.922 0 168.69);
--primary: oklch(0.755 0.174 61.492);
--primary-foreground: oklch(0.985 0 180);
--secondary: oklch(0.412 0.043 115.158);
--secondary-foreground: oklch(0.933 0.007 17.278);
--accent: oklch(0.97 0 180);
--accent-foreground: oklch(0.204 0 180);
--destructive: oklch(0.637 0.208 25.326);
--destructive-foreground: oklch(0.985 0 180);
--ring: oklch(0.145 0 180);
--chart-1: oklch(0.755 0.174 61.492);
--chart-2: oklch(0.412 0.043 115.158);
--chart-3: oklch(0.97 0 180);
--chart-4: oklch(0.445 0.047 115.189);
--chart-5: oklch(0.76 0.178 60.837);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0 180);
--foreground: oklch(0.985 0 180);
--muted: oklch(0.269 0 180);
--muted-foreground: oklch(0.715 0 158.199);
--popover: oklch(0.145 0 180);
--popover-foreground: oklch(0.985 0 180);
--card: oklch(0.145 0 180);
--card-foreground: oklch(0.985 0 180);
--border: oklch(0.269 0 180);
--input: oklch(0.269 0 180);
--primary: oklch(0.755 0.174 61.492);
--primary-foreground: oklch(0.204 0 180);
--secondary: oklch(0.412 0.043 115.158);
--secondary-foreground: oklch(0.993 0.004 17.218);
--accent: oklch(0.412 0.043 115.158);
--accent-foreground: oklch(0.859 0.002 17.197);
--destructive: oklch(0.549 0.216 28.329);
--destructive-foreground: oklch(0.985 0 180);
--ring: oklch(0.87 0 180);
--chart-1: oklch(0.755 0.174 61.492);
--chart-2: oklch(0.412 0.043 115.158);
--chart-3: oklch(0.412 0.043 115.158);
--chart-4: oklch(0.445 0.047 115.189);
--chart-5: oklch(0.76 0.178 60.837);
}