Half is a shadcn/ui theme built around a muted blue primary color (#a8b6cd) with muted indigo accents (#aca8cd). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the muted blue primary (#a8b6cd) on a neutral background (#030507).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f9fcghostwhite | #030507black |
| Foreground | #040910black | #f6f7f9whitesmoke |
| Card | #f8f9fcghostwhite | #030507black |
| Card foreground | #040910black | #f6f7f9whitesmoke |
| Popover | #f8f9fcghostwhite | #030507black |
| Popover foreground | #040910black | #f6f7f9whitesmoke |
| Primary | #a8b6cdlightsteelblue | #a8b6cdlightsteelblue |
| Primary foreground | #181f2ablack | #181f2ablack |
| Secondary | #a8c8cdlightsteelblue | #a8c8cdlightsteelblue |
| Secondary foreground | #18282adarkslategray | #18282adarkslategray |
| Muted | #eef1f2whitesmoke | #0d1111black |
| Muted foreground | #50696ddimgray | #92acafdarkgray |
| Accent | #aca8cdlightsteelblue | #aca8cdlightsteelblue |
| Accent foreground | #1a182ablack | #1a182ablack |
| Destructive | #bf3203firebrick | #e73c04orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a8b6cdlightsteelblue | #a8b6cdlightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.00:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 8.60:1 | AAA |
| Muted text | 5.16:1 | AA |
| Accent | 7.61:1 | AAA |
| Destructive | 5.72:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 8.60:1 | AAA |
| Muted text | 7.91:1 | AAA |
| Accent | 7.61:1 | AAA |
| Destructive | 4.15:1 | AA Large |
Paste this into your globals.css to use Half in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 259.939);
--foreground: oklch(0.136 0.02 253.87);
--muted: oklch(0.956 0.004 206.418);
--muted-foreground: oklch(0.503 0.03 206.258);
--popover: oklch(0.983 0.004 259.939);
--popover-foreground: oklch(0.136 0.02 253.87);
--card: oklch(0.983 0.004 259.939);
--card-foreground: oklch(0.136 0.02 253.87);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.772 0.036 259.922);
--primary-foreground: oklch(0.238 0.024 259.798);
--secondary: oklch(0.811 0.036 206.263);
--secondary-foreground: oklch(0.264 0.022 206.324);
--accent: oklch(0.746 0.053 290.395);
--accent-foreground: oklch(0.222 0.035 288.588);
--destructive: oklch(0.532 0.184 35.267);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.772 0.036 259.922);
--chart-1: oklch(0.772 0.036 259.922);
--chart-2: oklch(0.811 0.036 206.263);
--chart-3: oklch(0.746 0.053 290.395);
--chart-4: oklch(0.833 0.032 206.274);
--chart-5: oklch(0.77 0.041 259.913);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.011 253.236);
--foreground: oklch(0.976 0.002 259.937);
--muted: oklch(0.173 0.005 206.294);
--muted-foreground: oklch(0.725 0.028 206.272);
--popover: oklch(0.11 0.011 253.236);
--popover-foreground: oklch(0.976 0.002 259.937);
--card: oklch(0.11 0.011 253.236);
--card-foreground: oklch(0.976 0.002 259.937);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.772 0.036 259.922);
--primary-foreground: oklch(0.238 0.024 259.798);
--secondary: oklch(0.811 0.036 206.263);
--secondary-foreground: oklch(0.264 0.022 206.324);
--accent: oklch(0.746 0.053 290.395);
--accent-foreground: oklch(0.222 0.035 288.588);
--destructive: oklch(0.612 0.214 34.922);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.772 0.036 259.922);
--chart-1: oklch(0.772 0.036 259.922);
--chart-2: oklch(0.811 0.036 206.263);
--chart-3: oklch(0.746 0.053 290.395);
--chart-4: oklch(0.833 0.032 206.274);
--chart-5: oklch(0.77 0.041 259.913);
}