Hundred is a shadcn/ui theme built around an indigo primary color (#342999) with green accents (#299934). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#342999) on a neutral background (#030208).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030208black |
| Foreground | #050311black | #f7f7f8whitesmoke |
| Card | #fcfcfcsnow | #04030cblack |
| Card foreground | #04030dblack | #f9f9faghostwhite |
| Popover | #ffffffwhite | #030208black |
| Popover foreground | #050311black | #f7f7f8whitesmoke |
| Primary | #342999darkslateblue | #342999darkslateblue |
| Primary foreground | #f8f7fdghostwhite | #f8f7fdghostwhite |
| Secondary | #993429brown | #993429brown |
| Secondary foreground | #fdf8f7snow | #fdf8f7snow |
| Muted | #f2e5e3mistyrose | #1c0f0dblack |
| Muted foreground | #5e5e5edimgray | #a1a1a1darkgray |
| Accent | #299934forestgreen | #299934forestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #853100saddlebrown | #fa5c00orangered |
| Destructive foreground | #ffd2b8peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #342999darkslateblue | #342999darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 10.27:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 5.26:1 | AA |
| Accent | 3.68:1 | AA Large |
| Destructive | 6.25:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 10.27:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 7.25:1 | AAA |
| Accent | 3.68:1 | AA Large |
| Destructive | 6.57:1 | AA |
Paste this into your globals.css to use Hundred in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.117 0.034 286.518);
--muted: oklch(0.931 0.015 25.123);
--muted-foreground: oklch(0.483 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.117 0.034 286.518);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.105 0.03 287.268);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.375 0.173 278.452);
--primary-foreground: oklch(0.978 0.008 290.862);
--secondary: oklch(0.47 0.138 29.498);
--secondary-foreground: oklch(0.982 0.006 25.038);
--accent: oklch(0.6 0.171 144.42);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.427 0.126 43.157);
--destructive-foreground: oklch(0.895 0.062 51.699);
--ring: oklch(0.375 0.173 278.452);
--chart-1: oklch(0.375 0.173 278.452);
--chart-2: oklch(0.47 0.138 29.498);
--chart-3: oklch(0.6 0.171 144.42);
--chart-4: oklch(0.497 0.146 29.538);
--chart-5: oklch(0.372 0.181 277.478);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.022 288.241);
--foreground: oklch(0.975 0.002 290.975);
--muted: oklch(0.184 0.023 26.478);
--muted-foreground: oklch(0.708 0 158.199);
--popover: oklch(0.096 0.022 288.241);
--popover-foreground: oklch(0.975 0.002 290.975);
--card: oklch(0.11 0.025 288.131);
--card-foreground: oklch(0.984 0.001 290.988);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.375 0.173 278.452);
--primary-foreground: oklch(0.978 0.008 290.862);
--secondary: oklch(0.47 0.138 29.498);
--secondary-foreground: oklch(0.982 0.006 25.038);
--accent: oklch(0.6 0.171 144.42);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.675 0.208 41.048);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.375 0.173 278.452);
--chart-1: oklch(0.375 0.173 278.452);
--chart-2: oklch(0.47 0.138 29.498);
--chart-3: oklch(0.6 0.171 144.42);
--chart-4: oklch(0.497 0.146 29.538);
--chart-5: oklch(0.372 0.181 277.478);
}