Concrete for shadcn/ui

Concrete is a shadcn/ui theme built around a deep blue primary color (#172369) with deep yellow accents (#695c17). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the deep blue primary (#172369) on a blue-tinted background (#05060a).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#05060ablack
Foreground
#010104black
#ffffffwhite
Card
#f7f8fdghostwhite
#07080dblack
Card foreground
#000000black
#ffffffwhite
Popover
#fbfbfeghostwhite
#05060ablack
Popover foreground
#010104black
#ffffffwhite
Primary
#172369midnightblue
#172369midnightblue
Primary foreground
#c0c8f1lightsteelblue
#c0c8f1lightsteelblue
Secondary
#695c17darkolivegreen
#695c17darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f7f6edseashell
#121008black
Muted foreground
#545140darkolivegreen
#bfbcabsilver
Accent
#695c17darkolivegreen
#695c17darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d83a0eorangered
#f0400forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#172369midnightblue
#172369midnightblue

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card19.75:1AAA
Primary button8.62:1AAA
Secondary button6.66:1AA
Muted text7.36:1AAA
Accent6.66:1AA
Destructive4.65:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.00:1AAA
Primary button8.62:1AAA
Secondary button6.66:1AA
Muted text9.95:1AAA
Accent6.66:1AA
Destructive3.86: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.99 0.004 278.266);
  --foreground: oklch(0.075 0.019 268.281);
  --muted: oklch(0.971 0.012 98.484);
  --muted-foreground: oklch(0.432 0.026 99.068);
  --popover: oklch(0.99 0.004 278.266);
  --popover-foreground: oklch(0.075 0.019 268.281);
  --card: oklch(0.979 0.007 278.213);
  --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.297 0.122 269.573);
  --primary-foreground: oklch(0.84 0.059 277.204);
  --secondary: oklch(0.474 0.088 98.85);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.474 0.088 98.85);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.583 0.201 34.427);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.297 0.122 269.573);
  --chart-1: oklch(0.297 0.122 269.573);
  --chart-2: oklch(0.474 0.088 98.85);
  --chart-3: oklch(0.474 0.088 98.85);
  --chart-4: oklch(0.514 0.096 98.796);
  --chart-5: oklch(0.295 0.127 269.061);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.011 275.288);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.173 0.017 99.575);
  --muted-foreground: oklch(0.792 0.023 98.705);
  --popover: oklch(0.123 0.011 275.288);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.012 275.667);
  --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.297 0.122 269.573);
  --primary-foreground: oklch(0.84 0.059 277.204);
  --secondary: oklch(0.474 0.088 98.85);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.474 0.088 98.85);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.63 0.218 34.331);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.297 0.122 269.573);
  --chart-1: oklch(0.297 0.122 269.573);
  --chart-2: oklch(0.474 0.088 98.85);
  --chart-3: oklch(0.474 0.088 98.85);
  --chart-4: oklch(0.514 0.096 98.796);
  --chart-5: oklch(0.295 0.127 269.061);
}