Concentrate for shadcn/ui

Concentrate is a shadcn/ui theme built around a light cyan primary color (#f0f9fa) with light green accents (#f9faf0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light cyan primary (#f0f9fa) on a cyan-tinted background (#040f10).

Color palette

TokenLightDark
Background
#ffffffwhite
#040f10black
Foreground
#010404black
#f8fbfbghostwhite
Card
#ffffffwhite
#040f10black
Card foreground
#010404black
#f8fbfbghostwhite
Popover
#ffffffwhite
#040f10black
Popover foreground
#010404black
#f8fbfbghostwhite
Primary
#f0f9faaliceblue
#f0f9faaliceblue
Primary foreground
#14383ddarkslategray
#14383ddarkslategray
Secondary
#faf0f9lavenderblush
#faf0f9lavenderblush
Secondary foreground
#8a2e7frebeccapurple
#8a2e7frebeccapurple
Muted
#e5cde2gainsboro
#321a2fdarkslategray
Muted foreground
#4e3b4cdarkslategray
#c4b1c2silver
Accent
#f9faf0floralwhite
#f9faf0floralwhite
Accent foreground
#383d14darkolivegreen
#383d14darkolivegreen
Destructive
#ad210bfirebrick
#f02d0forangered
Destructive foreground
#feeeecseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0f9faaliceblue
#f0f9faaliceblue

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button11.78:1AAA
Secondary button6.78:1AA
Muted text6.88:1AA
Accent10.79:1AAA
Destructive6.24:1AA
Dark mode
Text on background18.68:1AAA
Text on card18.68:1AAA
Primary button11.78:1AAA
Secondary button6.78:1AA
Muted text7.83:1AAA
Accent10.79:1AAA
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.012 203.138);
  --muted: oklch(0.874 0.038 329.634);
  --muted-foreground: oklch(0.381 0.038 330.249);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.098 0.012 203.138);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.098 0.012 203.138);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.975 0.01 206.383);
  --primary-foreground: oklch(0.318 0.042 207.033);
  --secondary: oklch(0.965 0.016 329.326);
  --secondary-foreground: oklch(0.466 0.158 332.748);
  --accent: oklch(0.981 0.013 112.037);
  --accent-foreground: oklch(0.346 0.061 115.236);
  --destructive: oklch(0.484 0.178 31.456);
  --destructive-foreground: oklch(0.961 0.017 28.031);
  --ring: oklch(0.975 0.01 206.383);
  --chart-1: oklch(0.975 0.01 206.383);
  --chart-2: oklch(0.965 0.016 329.326);
  --chart-3: oklch(0.981 0.013 112.037);
  --chart-4: oklch(0.991 0.004 329.18);
  --chart-5: oklch(0.975 0.01 206.38);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.018 205.284);
  --foreground: oklch(0.986 0.003 206.423);
  --muted: oklch(0.261 0.051 331.224);
  --muted-foreground: oklch(0.78 0.032 329.603);
  --popover: oklch(0.157 0.018 205.284);
  --popover-foreground: oklch(0.986 0.003 206.423);
  --card: oklch(0.157 0.018 205.284);
  --card-foreground: oklch(0.986 0.003 206.423);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.975 0.01 206.383);
  --primary-foreground: oklch(0.318 0.042 207.033);
  --secondary: oklch(0.965 0.016 329.326);
  --secondary-foreground: oklch(0.466 0.158 332.748);
  --accent: oklch(0.981 0.013 112.037);
  --accent-foreground: oklch(0.346 0.061 115.236);
  --destructive: oklch(0.616 0.23 31.331);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.975 0.01 206.383);
  --chart-1: oklch(0.975 0.01 206.383);
  --chart-2: oklch(0.965 0.016 329.326);
  --chart-3: oklch(0.981 0.013 112.037);
  --chart-4: oklch(0.991 0.004 329.18);
  --chart-5: oklch(0.975 0.01 206.38);
}