Utilized is a shadcn/ui theme built around a deep blue primary color (#154166) with deep orange accents (#663915). The light mode uses a neutral background (#f7fafd). Dark mode keeps the deep blue primary (#154166) on a blue-tinted background (#040b10).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fafdghostwhite | #040b10black |
| Foreground | #010304black | #fcfcfdwhite |
| Card | #f7fafdghostwhite | #040b10black |
| Card foreground | #010304black | #fcfcfdwhite |
| Popover | #f7fafdghostwhite | #040b10black |
| Popover foreground | #010304black | #fcfcfdwhite |
| Primary | #154166darkslategray | #154166darkslategray |
| Primary foreground | #bbd9f1powderblue | #bbd9f1powderblue |
| Secondary | #663915saddlebrown | #663915saddlebrown |
| Secondary foreground | #f1d4bbwheat | #f1d4bbwheat |
| Muted | #f0edealinen | #15120fblack |
| Muted foreground | #63615fdimgray | #a09e9cdarkgray |
| Accent | #663915saddlebrown | #663915saddlebrown |
| Accent foreground | #f1d4bbwheat | #f1d4bbwheat |
| Destructive | #752306maroon | #f5632etomato |
| Destructive foreground | #fbc5b1lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #154166darkslategray | #154166darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 6.88:1 | AA |
| Muted text | 5.28:1 | AA |
| Accent | 6.88:1 | AA |
| Destructive | 6.86:1 | AA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 6.88:1 | AA |
| Muted text | 7.01:1 | AAA |
| Accent | 6.88:1 | AA |
| Destructive | 6.70:1 | AA |
Paste this into your globals.css to use Utilized in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.005 242.254);
--foreground: oklch(0.09 0.012 232.717);
--muted: oklch(0.947 0.005 62.13);
--muted-foreground: oklch(0.493 0.004 62.09);
--popover: oklch(0.984 0.005 242.254);
--popover-foreground: oklch(0.09 0.012 232.717);
--card: oklch(0.984 0.005 242.254);
--card-foreground: oklch(0.09 0.012 232.717);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.365 0.079 247.07);
--primary-foreground: oklch(0.871 0.046 242.915);
--secondary: oklch(0.393 0.08 56.425);
--secondary-foreground: oklch(0.887 0.046 61.46);
--accent: oklch(0.393 0.08 56.425);
--accent-foreground: oklch(0.887 0.046 61.46);
--destructive: oklch(0.382 0.12 37.694);
--destructive-foreground: oklch(0.866 0.068 40.907);
--ring: oklch(0.365 0.079 247.07);
--chart-1: oklch(0.365 0.079 247.07);
--chart-2: oklch(0.393 0.08 56.425);
--chart-3: oklch(0.393 0.08 56.425);
--chart-4: oklch(0.426 0.088 56.205);
--chart-5: oklch(0.366 0.082 247.417);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.016 239.042);
--foreground: oklch(0.992 0.001 242.203);
--muted: oklch(0.183 0.007 61.682);
--muted-foreground: oklch(0.7 0.004 62.127);
--popover: oklch(0.144 0.016 239.042);
--popover-foreground: oklch(0.992 0.001 242.203);
--card: oklch(0.144 0.016 239.042);
--card-foreground: oklch(0.992 0.001 242.203);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.365 0.079 247.07);
--primary-foreground: oklch(0.871 0.046 242.915);
--secondary: oklch(0.393 0.08 56.425);
--secondary-foreground: oklch(0.887 0.046 61.46);
--accent: oklch(0.393 0.08 56.425);
--accent-foreground: oklch(0.887 0.046 61.46);
--destructive: oklch(0.678 0.191 38.933);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.365 0.079 247.07);
--chart-1: oklch(0.365 0.079 247.07);
--chart-2: oklch(0.393 0.08 56.425);
--chart-3: oklch(0.393 0.08 56.425);
--chart-4: oklch(0.426 0.088 56.205);
--chart-5: oklch(0.366 0.082 247.417);
}