Future for shadcn/ui

Future is a shadcn/ui theme built around a neutral gray primary color (#7e777a) with neutral gray accents (#7e7777). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#7e777a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#120209black
#fdfcfcsnow
Card
#ffffffwhite
#000000black
Card foreground
#120209black
#fdfcfcsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#120209black
#fdfcfcsnow
Primary
#7e777agray
#7e777agray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7e777egray
#7e777egray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4ecf3whitesmoke
#130b13black
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#7e7777gray
#7e7777gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#7d1b0cmaroon
#e93f25orangered
Destructive foreground
#f9cac3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7e777agray
#7e777agray

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button4.37:1AA Large
Secondary button4.36:1AA Large
Muted text7.06:1AAA
Accent4.37:1AA Large
Destructive6.98:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button4.37:1AA Large
Secondary button4.36:1AA Large
Muted text8.90:1AAA
Accent4.37:1AA Large
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.13 0.04 350.943);
  --muted: oklch(0.951 0.012 327.675);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.13 0.04 350.943);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.13 0.04 350.943);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.576 0.01 349.217);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.577 0.014 327.775);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.576 0.008 22.383);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.389 0.135 31.651);
  --destructive-foreground: oklch(0.878 0.055 28.381);
  --ring: oklch(0.576 0.01 349.217);
  --chart-1: oklch(0.576 0.01 349.217);
  --chart-2: oklch(0.577 0.014 327.775);
  --chart-3: oklch(0.576 0.008 22.383);
  --chart-4: oklch(0.603 0.014 327.767);
  --chart-5: oklch(0.571 0.02 349.702);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 348.752);
  --muted: oklch(0.166 0.019 328.625);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 348.752);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 348.752);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.576 0.01 349.217);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.577 0.014 327.775);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.576 0.008 22.383);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.62 0.211 31.661);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.576 0.01 349.217);
  --chart-1: oklch(0.576 0.01 349.217);
  --chart-2: oklch(0.577 0.014 327.775);
  --chart-3: oklch(0.576 0.008 22.383);
  --chart-4: oklch(0.603 0.014 327.767);
  --chart-5: oklch(0.571 0.02 349.702);
}