Open for shadcn/ui

Open is a shadcn/ui theme built around a neutral gray primary color (#8f968d) with neutral gray accents (#8d968f). The light mode uses a neutral background (#fcfefb). Dark mode keeps the neutral gray primary (#8f968d) on a neutral background (#040803).

Color palette

TokenLightDark
Background
#fcfefbwhite
#040803black
Foreground
#000000black
#ffffffwhite
Card
#fcfefbwhite
#040803black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfefbwhite
#040803black
Popover foreground
#000000black
#ffffffwhite
Primary
#8f968dgray
#8f968dgray
Primary foreground
#000000black
#000000black
Secondary
#94968dgray
#94968dgray
Secondary foreground
#000000black
#000000black
Muted
#f5f6eewhitesmoke
#0f1109black
Muted foreground
#5d5f59dimgray
#a5a6a0darkgray
Accent
#8d968flightslategray
#8d968flightslategray
Accent foreground
#000000black
#000000black
Destructive
#dc5309chocolate
#eb590aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8f968dgray
#8f968dgray

Contrast

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

Light mode
Text on background20.65:1AAA
Text on card20.65:1AAA
Primary button6.90:1AA
Secondary button6.98:1AA
Muted text5.95:1AA
Accent6.87:1AA
Destructive3.96:1AA Large
Dark mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button6.90:1AA
Secondary button6.98:1AA
Muted text7.76:1AAA
Accent6.87:1AA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 136.619);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.971 0.011 116.535);
  --muted-foreground: oklch(0.481 0.009 116.662);
  --popover: oklch(0.994 0.003 136.619);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.003 136.619);
  --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.664 0.015 136.675);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.668 0.013 116.68);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.663 0.014 152.277);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.618 0.185 41.453);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.664 0.015 136.675);
  --chart-1: oklch(0.664 0.015 136.675);
  --chart-2: oklch(0.668 0.013 116.68);
  --chart-3: oklch(0.663 0.014 152.277);
  --chart-4: oklch(0.692 0.012 116.642);
  --chart-5: oklch(0.67 0.026 136.726);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.019 135.122);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.172 0.016 118.033);
  --muted-foreground: oklch(0.722 0.008 116.53);
  --popover: oklch(0.124 0.019 135.122);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.019 135.122);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.664 0.015 136.675);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.668 0.013 116.68);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.663 0.014 152.277);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.648 0.195 41.332);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.664 0.015 136.675);
  --chart-1: oklch(0.664 0.015 136.675);
  --chart-2: oklch(0.668 0.013 116.68);
  --chart-3: oklch(0.663 0.014 152.277);
  --chart-4: oklch(0.692 0.012 116.642);
  --chart-5: oklch(0.67 0.026 136.726);
}