Concrete for shadcn/ui

Concrete is a shadcn/ui theme built around a muted deep indigo primary color (#262334) with muted deep green accents (#233426). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the muted deep indigo primary (#262334) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#020104black
Foreground
#05030cblack
#f9f8fcghostwhite
Card
#f9f8fcghostwhite
#020104black
Card foreground
#05030cblack
#f9f8fcghostwhite
Popover
#f9f8fcghostwhite
#020104black
Popover foreground
#05030cblack
#f9f8fcghostwhite
Primary
#262334darkslategray
#262334darkslategray
Primary foreground
#bdb9cfsilver
#bdb9cfsilver
Secondary
#342623darkslategray
#342623darkslategray
Secondary foreground
#cfbdb9silver
#cfbdb9silver
Muted
#f2eeeewhitesmoke
#110e0dblack
Muted foreground
#493936darkslategray
#c9b9b6silver
Accent
#233426darkslategray
#233426darkslategray
Accent foreground
#b9cfbdsilver
#b9cfbdsilver
Destructive
#a20901darkred
#fe261borangered
Destructive foreground
#ffd8d6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#262334darkslategray
#262334darkslategray

Contrast

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

Light mode
Text on background19.37:1AAA
Text on card19.37:1AAA
Primary button8.02:1AAA
Secondary button8.07:1AAA
Muted text9.49:1AAA
Accent8.03:1AAA
Destructive6.21:1AA
Dark mode
Text on background19.69:1AAA
Text on card19.69:1AAA
Primary button8.02:1AAA
Secondary button8.07:1AAA
Muted text10.16:1AAA
Accent8.03:1AAA
Destructive3.81:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 293.215);
  --foreground: oklch(0.111 0.024 291.382);
  --muted: oklch(0.952 0.004 29.482);
  --muted-foreground: oklch(0.362 0.024 29.846);
  --popover: oklch(0.981 0.005 293.215);
  --popover-foreground: oklch(0.111 0.024 291.382);
  --card: oklch(0.981 0.005 293.215);
  --card-foreground: oklch(0.111 0.024 291.382);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.267 0.031 291.057);
  --primary-foreground: oklch(0.796 0.031 292.558);
  --secondary: oklch(0.283 0.022 29.944);
  --secondary-foreground: oklch(0.812 0.022 29.584);
  --accent: oklch(0.304 0.033 148.708);
  --accent-foreground: oklch(0.834 0.035 149.678);
  --destructive: oklch(0.451 0.181 29.857);
  --destructive-foreground: oklch(0.915 0.043 21.534);
  --ring: oklch(0.267 0.031 291.057);
  --chart-1: oklch(0.267 0.031 291.057);
  --chart-2: oklch(0.283 0.022 29.944);
  --chart-3: oklch(0.304 0.033 148.708);
  --chart-4: oklch(0.312 0.025 29.972);
  --chart-5: oklch(0.263 0.035 290.632);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.077 0.017 291.511);
  --foreground: oklch(0.981 0.005 293.212);
  --muted: oklch(0.167 0.006 29.647);
  --muted-foreground: oklch(0.797 0.019 29.566);
  --popover: oklch(0.077 0.017 291.511);
  --popover-foreground: oklch(0.981 0.005 293.212);
  --card: oklch(0.077 0.017 291.511);
  --card-foreground: oklch(0.981 0.005 293.212);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.267 0.031 291.057);
  --primary-foreground: oklch(0.796 0.031 292.558);
  --secondary: oklch(0.283 0.022 29.944);
  --secondary-foreground: oklch(0.812 0.022 29.584);
  --accent: oklch(0.304 0.033 148.708);
  --accent-foreground: oklch(0.834 0.035 149.678);
  --destructive: oklch(0.638 0.245 29.29);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.267 0.031 291.057);
  --chart-1: oklch(0.267 0.031 291.057);
  --chart-2: oklch(0.283 0.022 29.944);
  --chart-3: oklch(0.304 0.033 148.708);
  --chart-4: oklch(0.312 0.025 29.972);
  --chart-5: oklch(0.263 0.035 290.632);
}