An Old Hope Italic for shadcn/ui

An Old Hope Italic is a shadcn/ui theme built around a neutral gray primary color (#686b78) with muted deep blue accents (#3f424a). The light mode uses a blue-tinted background (#1c1d21). Dark mode keeps the neutral gray primary (#686b78) on a blue-tinted background (#1c1d21).

Color palette

TokenLightDark
Background
#1c1d21black
#1c1d21black
Foreground
#cbcdd2lightgrey
#cbcdd2lightgrey
Card
#17181cblack
#17181cblack
Card foreground
#d9dadegainsboro
#d9dadegainsboro
Popover
#151619black
#151619black
Popover foreground
#e6e7ealavender
#e6e7ealavender
Primary
#686b78dimgray
#686b78dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#bfbfbfsilver
#bfbfbfsilver
Secondary foreground
#262626darkslategray
#262626darkslategray
Muted
#24262edarkslategray
#24262edarkslategray
Muted foreground
#9ea2b3darkgray
#9ea2b3darkgray
Accent
#3f424adarkslategray
#3f424adarkslategray
Accent foreground
#dbdce1gainsboro
#dbdce1gainsboro
Destructive
#f54724orangered
#f54724orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#2b2b2bdarkslategray
#2b2b2bdarkslategray
Input
#333333darkslategray
#333333darkslategray
Ring
#686b78dimgray
#686b78dimgray

Contrast

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

Light mode
Text on background10.57:1AAA
Text on card12.66:1AAA
Primary button5.28:1AA
Secondary button8.25:1AAA
Muted text5.95:1AA
Accent7.36:1AAA
Destructive3.62:1AA Large
Dark mode
Text on background10.57:1AAA
Text on card12.66:1AAA
Primary button5.28:1AA
Secondary button8.25:1AAA
Muted text5.95:1AA
Accent7.36:1AAA
Destructive3.62:1AA Large

CSS variables

Paste this into your globals.css to use An Old Hope Italic in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.232 0.008 274.607);
  --foreground: oklch(0.848 0.007 268.732);
  --muted: oklch(0.269 0.015 274.291);
  --muted-foreground: oklch(0.714 0.025 274.588);
  --popover: oklch(0.2 0.006 274.651);
  --popover-foreground: oklch(0.929 0.003 268.767);
  --card: oklch(0.211 0.007 274.635);
  --card-foreground: oklch(0.889 0.005 268.751);
  --border: oklch(0.29 0 180);
  --input: oklch(0.321 0 180);
  --primary: oklch(0.531 0.02 275.634);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.379 0.015 274.504);
  --accent-foreground: oklch(0.896 0.006 274.954);
  --destructive: oklch(0.646 0.216 33.032);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.531 0.02 275.634);
  --chart-1: oklch(0.531 0.02 275.634);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.379 0.015 274.504);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.524 0.029 275.368);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.232 0.008 274.607);
  --foreground: oklch(0.848 0.007 268.732);
  --muted: oklch(0.269 0.015 274.291);
  --muted-foreground: oklch(0.714 0.025 274.588);
  --popover: oklch(0.2 0.006 274.651);
  --popover-foreground: oklch(0.929 0.003 268.767);
  --card: oklch(0.211 0.007 274.635);
  --card-foreground: oklch(0.889 0.005 268.751);
  --border: oklch(0.29 0 180);
  --input: oklch(0.321 0 180);
  --primary: oklch(0.531 0.02 275.634);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.379 0.015 274.504);
  --accent-foreground: oklch(0.896 0.006 274.954);
  --destructive: oklch(0.646 0.216 33.032);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.531 0.02 275.634);
  --chart-1: oklch(0.531 0.02 275.634);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.379 0.015 274.504);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.524 0.029 275.368);
}