Hundred for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.43:1AAA
Text on card20.06:1AAA
Primary button10.27:1AAA
Secondary button6.93:1AA
Muted text5.26:1AA
Accent3.68:1AA Large
Destructive6.25:1AA
Dark mode
Text on background19.29:1AAA
Text on card19.47:1AAA
Primary button10.27:1AAA
Secondary button6.93:1AA
Muted text7.25:1AAA
Accent3.68:1AA Large
Destructive6.57:1AA

CSS variables

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);
}