Robust for shadcn/ui

Robust is a shadcn/ui theme built around a light indigo primary color (#d9d6eb) with neutral gray accents (#bfb5b5). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the light indigo primary (#d9d6eb) on an indigo-tinted background (#07060e).

Color palette

TokenLightDark
Background
#f8f7fdghostwhite
#07060eblack
Foreground
#070515black
#f7f6f8whitesmoke
Card
#f4f3fcghostwhite
#090812black
Card foreground
#060411black
#f9f9fbghostwhite
Popover
#f8f7fdghostwhite
#07060eblack
Popover foreground
#070515black
#f7f6f8whitesmoke
Primary
#d9d6ebgainsboro
#d9d6ebgainsboro
Primary foreground
#352e60darkslategray
#352e60darkslategray
Secondary
#cccccclightgrey
#23222adarkslategray
Secondary foreground
#333333darkslategray
#bab8c6silver
Muted
#e6d1d1gainsboro
#1c192eblack
Muted foreground
#424242darkslategray
#bdbdbdsilver
Accent
#bfb5b5silver
#302d43darkslategray
Accent foreground
#231f1fblack
#cac8dalightgrey
Destructive
#721604maroon
#ed2e07orangered
Destructive foreground
#fcb8ablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d9d6ebgainsboro
#d9d6ebgainsboro

Contrast

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

Light mode
Text on background18.89:1AAA
Text on card18.43:1AAA
Primary button8.60:1AAA
Secondary button7.86:1AAA
Muted text6.87:1AA
Accent8.17:1AAA
Destructive6.88:1AA
Dark mode
Text on background18.70:1AAA
Text on card18.96:1AAA
Primary button8.60:1AAA
Secondary button8.05:1AAA
Muted text9.10:1AAA
Accent8.08:1AAA
Destructive4.19:1AA Large

CSS variables

Paste this into your globals.css to use Robust in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.008 292.387);
  --foreground: oklch(0.13 0.036 288.079);
  --muted: oklch(0.877 0.024 17.617);
  --muted-foreground: oklch(0.38 0 180);
  --popover: oklch(0.978 0.008 292.387);
  --popover-foreground: oklch(0.13 0.036 288.079);
  --card: oklch(0.967 0.012 292.305);
  --card-foreground: oklch(0.119 0.032 289.107);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.884 0.029 291.913);
  --primary-foreground: oklch(0.337 0.085 286.994);
  --secondary: oklch(0.845 0 164.055);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(0.782 0.011 17.391);
  --accent-foreground: oklch(0.244 0.007 17.653);
  --destructive: oklch(0.361 0.129 32.994);
  --destructive-foreground: oklch(0.844 0.082 31.55);
  --ring: oklch(0.884 0.029 291.913);
  --chart-1: oklch(0.884 0.029 291.913);
  --chart-2: oklch(0.845 0 164.055);
  --chart-3: oklch(0.782 0.011 17.391);
  --chart-4: oklch(0.869 0 165.964);
  --chart-5: oklch(0.882 0.032 291.856);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.02 290.656);
  --foreground: oklch(0.975 0.003 292.493);
  --muted: oklch(0.228 0.041 288.832);
  --muted-foreground: oklch(0.797 0 180);
  --popover: oklch(0.129 0.02 290.656);
  --popover-foreground: oklch(0.975 0.003 292.493);
  --card: oklch(0.14 0.023 289.81);
  --card-foreground: oklch(0.983 0.002 292.51);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.884 0.029 291.913);
  --primary-foreground: oklch(0.337 0.085 286.994);
  --secondary: oklch(0.257 0.016 291.366);
  --secondary-foreground: oklch(0.789 0.02 292.07);
  --accent: oklch(0.31 0.04 289.968);
  --accent-foreground: oklch(0.84 0.025 291.969);
  --destructive: oklch(0.612 0.228 32);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.884 0.029 291.913);
  --chart-1: oklch(0.884 0.029 291.913);
  --chart-2: oklch(0.257 0.016 291.366);
  --chart-3: oklch(0.31 0.04 289.968);
  --chart-4: oklch(0.286 0.018 291.305);
  --chart-5: oklch(0.882 0.032 291.856);
}