Vast for shadcn/ui

Vast is a shadcn/ui theme built around a near-black primary color (#000000) with muted red accents (#d0a9a9). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#000000) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040101black
#fbf8f8snow
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#fdfcfcsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#040101black
#fbf8f8snow
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#dac8c8lightgrey
#181111black
Secondary foreground
#432d2ddarkslategray
#bd9e9erosybrown
Muted
#e0d6d6gainsboro
#291f1fblack
Muted foreground
#5f5959dimgray
#a6a0a0darkgray
Accent
#d0a9a9tan
#341d1dblack
Accent foreground
#2e1919black
#d3b1b1silver
Destructive
#c04211firebrick
#ec5f27chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#000000black
#000000black

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.54:1AAA
Primary button7.37:1AAA
Secondary button7.91:1AAA
Muted text4.83:1AA
Accent7.85:1AAA
Destructive5.18:1AA
Dark mode
Text on background19.88:1AAA
Text on card20.19:1AAA
Primary button7.37:1AAA
Secondary button7.60:1AAA
Muted text6.24:1AA
Accent7.95:1AAA
Destructive6.24:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.082 0.015 20.892);
  --muted: oklch(0.885 0.011 17.365);
  --muted-foreground: oklch(0.469 0.007 17.411);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.082 0.015 20.892);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.848 0.021 17.567);
  --secondary-foreground: oklch(0.323 0.033 19.042);
  --accent: oklch(0.771 0.045 18.178);
  --accent-foreground: oklch(0.243 0.033 19.77);
  --destructive: oklch(0.553 0.17 38.512);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.848 0.021 17.567);
  --chart-3: oklch(0.771 0.045 18.178);
  --chart-4: oklch(0.873 0.017 17.484);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.003 17.213);
  --muted: oklch(0.25 0.016 18.248);
  --muted-foreground: oklch(0.712 0.006 17.307);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.003 17.213);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.002 17.185);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.186 0.013 18.4);
  --secondary-foreground: oklch(0.727 0.037 18.032);
  --accent: oklch(0.263 0.036 19.772);
  --accent-foreground: oklch(0.789 0.04 18.029);
  --destructive: oklch(0.66 0.187 39.791);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.186 0.013 18.4);
  --chart-3: oklch(0.263 0.036 19.772);
  --chart-4: oklch(0.217 0.017 18.583);
  --chart-5: oklch(0 0 0);
}