Regular for shadcn/ui

Regular is a shadcn/ui theme built around a muted teal primary color (#b8c6c2) with muted cyan accents (#b8c4c6). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted teal primary (#b8c6c2) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#010403black
Foreground
#020806black
#fcfdfdwhite
Card
#fcfdfdwhite
#010403black
Card foreground
#020806black
#fcfdfdwhite
Popover
#fcfdfdwhite
#010403black
Popover foreground
#020806black
#fcfdfdwhite
Primary
#b8c6c2silver
#b8c6c2silver
Primary foreground
#222a28darkslategray
#222a28darkslategray
Secondary
#b8c6bbsilver
#b8c6bbsilver
Secondary foreground
#222a24darkslategray
#222a24darkslategray
Muted
#cee9d3gainsboro
#16311bblack
Muted foreground
#415845darkslategray
#a7beabdarkgray
Accent
#b8c4c6silver
#b8c4c6silver
Accent foreground
#22292adarkslategray
#22292adarkslategray
Destructive
#b93a13firebrick
#e9572bchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b8c6c2silver
#b8c6c2silver

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button8.33:1AAA
Secondary button8.32:1AAA
Muted text5.97:1AA
Accent8.26:1AAA
Destructive5.72:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button8.33:1AAA
Secondary button8.32:1AAA
Muted text7.11:1AAA
Accent8.26:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 175.563);
  --foreground: oklch(0.124 0.015 175.83);
  --muted: oklch(0.907 0.04 150.753);
  --muted-foreground: oklch(0.436 0.041 149.94);
  --popover: oklch(0.993 0.002 175.563);
  --popover-foreground: oklch(0.124 0.015 175.83);
  --card: oklch(0.993 0.002 175.563);
  --card-foreground: oklch(0.124 0.015 175.83);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.815 0.017 175.013);
  --primary-foreground: oklch(0.278 0.013 174.205);
  --secondary: oklch(0.813 0.022 151.013);
  --secondary-foreground: oklch(0.276 0.017 150.476);
  --accent: oklch(0.811 0.013 212.684);
  --accent-foreground: oklch(0.275 0.01 212.765);
  --destructive: oklch(0.53 0.169 36.02);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.815 0.017 175.013);
  --chart-1: oklch(0.815 0.017 175.013);
  --chart-2: oklch(0.813 0.022 151.013);
  --chart-3: oklch(0.811 0.013 212.684);
  --chart-4: oklch(0.836 0.019 151.073);
  --chart-5: oklch(0.818 0.021 174.85);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.011 175.811);
  --foreground: oklch(0.993 0.001 175.592);
  --muted: oklch(0.285 0.051 148.379);
  --muted-foreground: oklch(0.779 0.036 150.718);
  --popover: oklch(0.098 0.011 175.811);
  --popover-foreground: oklch(0.993 0.001 175.592);
  --card: oklch(0.098 0.011 175.811);
  --card-foreground: oklch(0.993 0.001 175.592);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.815 0.017 175.013);
  --primary-foreground: oklch(0.278 0.013 174.205);
  --secondary: oklch(0.813 0.022 151.013);
  --secondary-foreground: oklch(0.276 0.017 150.476);
  --accent: oklch(0.811 0.013 212.684);
  --accent-foreground: oklch(0.275 0.01 212.765);
  --destructive: oklch(0.644 0.189 36.805);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.815 0.017 175.013);
  --chart-1: oklch(0.815 0.017 175.013);
  --chart-2: oklch(0.813 0.022 151.013);
  --chart-3: oklch(0.811 0.013 212.684);
  --chart-4: oklch(0.836 0.019 151.073);
  --chart-5: oklch(0.818 0.021 174.85);
}