Corporal is a shadcn/ui theme built around a blue primary color (#3f96cf) with blue accents (#3f4ecf). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#3f96cf) on a blue-tinted background (#060b0e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060b0eblack |
| Foreground | #040e15black | #f8fafcghostwhite |
| Card | #ffffffwhite | #060b0eblack |
| Card foreground | #040e15black | #f8fafcghostwhite |
| Popover | #ffffffwhite | #060b0eblack |
| Popover foreground | #040e15black | #f8fafcghostwhite |
| Primary | #3f96cfsteelblue | #3f96cfsteelblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #3fcfc1mediumturquoise | #3fcfc1mediumturquoise |
| Secondary foreground | #0d3531darkslategray | #0d3531darkslategray |
| Muted | #d0e7e4gainsboro | #182f2ddarkslategray |
| Muted foreground | #5a6d6bdimgray | #92a5a4darkgray |
| Accent | #3f4ecfroyalblue | #3f4ecfroyalblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d43702orangered | #fc4103orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3f96cfsteelblue | #3f96cfsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 6.44:1 | AA |
| Secondary button | 6.94:1 | AA |
| Muted text | 4.22:1 | AA Large |
| Accent | 6.57:1 | AA |
| Destructive | 4.83:1 | AA |
| Text on background | 18.89:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 6.44:1 | AA |
| Secondary button | 6.94:1 | AA |
| Muted text | 5.47:1 | AA |
| Accent | 6.57:1 | AA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Corporal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.159 0.022 236.118);
--muted: oklch(0.91 0.024 189.46);
--muted-foreground: oklch(0.519 0.024 189.003);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.159 0.022 236.118);
--card: oklch(1 0 180);
--card-foreground: oklch(0.159 0.022 236.118);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.644 0.119 241.346);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.776 0.121 185.284);
--secondary-foreground: oklch(0.3 0.044 185.783);
--accent: oklch(0.493 0.198 271.996);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.573 0.2 34.982);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.644 0.119 241.346);
--chart-1: oklch(0.644 0.119 241.346);
--chart-2: oklch(0.776 0.121 185.284);
--chart-3: oklch(0.493 0.198 271.996);
--chart-4: oklch(0.788 0.117 185.719);
--chart-5: oklch(0.647 0.124 241.718);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.01 234.97);
--foreground: oklch(0.985 0.003 236.483);
--muted: oklch(0.286 0.029 187.506);
--muted-foreground: oklch(0.707 0.022 189.343);
--popover: oklch(0.145 0.01 234.97);
--popover-foreground: oklch(0.985 0.003 236.483);
--card: oklch(0.145 0.01 234.97);
--card-foreground: oklch(0.985 0.003 236.483);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.644 0.119 241.346);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.776 0.121 185.284);
--secondary-foreground: oklch(0.3 0.044 185.783);
--accent: oklch(0.493 0.198 271.996);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.652 0.23 34.686);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.644 0.119 241.346);
--chart-1: oklch(0.644 0.119 241.346);
--chart-2: oklch(0.776 0.121 185.284);
--chart-3: oklch(0.493 0.198 271.996);
--chart-4: oklch(0.788 0.117 185.719);
--chart-5: oklch(0.647 0.124 241.718);
}