Concentration for shadcn/ui

Concentration is a shadcn/ui theme built around a light red primary color (#fbf5f3) with light yellow accents (#fbf9f3). The light mode uses a neutral background (#fefcfb). Dark mode keeps the light red primary (#fbf5f3) on a red-tinted background (#0a0605).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0a0605black
Foreground
#090301black
#faf6f5whitesmoke
Card
#fdf8f7snow
#0e0807black
Card foreground
#040201black
#fbf9f8snow
Popover
#fefcfbsnow
#0a0605black
Popover foreground
#090301black
#faf6f5whitesmoke
Primary
#fbf5f3whitesmoke
#fbf5f3whitesmoke
Primary foreground
#90442csienna
#90442csienna
Secondary
#fbf3f5lavenderblush
#fbf3f5lavenderblush
Secondary foreground
#902c47brown
#902c47brown
Muted
#ecdadfgainsboro
#251318black
Muted foreground
#423d3fdarkslategray
#c2bdbesilver
Accent
#fbf9f3floralwhite
#fbf9f3floralwhite
Accent foreground
#423614darkolivegreen
#423614darkolivegreen
Destructive
#7d2b03saddlebrown
#fb6e28tomato
Destructive foreground
#fdcdb4peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fbf5f3whitesmoke
#fbf5f3whitesmoke

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.69:1AAA
Primary button6.39:1AA
Secondary button7.31:1AAA
Muted text7.95:1AAA
Accent11.30:1AAA
Destructive6.55:1AA
Dark mode
Text on background18.76:1AAA
Text on card18.92:1AAA
Primary button6.39:1AA
Secondary button7.31:1AAA
Muted text9.53:1AAA
Accent11.30:1AAA
Destructive7.35:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 37.729);
  --foreground: oklch(0.11 0.018 47.912);
  --muted: oklch(0.904 0.02 359.408);
  --muted-foreground: oklch(0.366 0.007 359.351);
  --popover: oklch(0.992 0.003 37.729);
  --popover-foreground: oklch(0.11 0.018 47.912);
  --card: oklch(0.983 0.005 37.715);
  --card-foreground: oklch(0.087 0.014 47.912);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.975 0.007 37.707);
  --primary-foreground: oklch(0.479 0.11 37.609);
  --secondary: oklch(0.972 0.009 359.051);
  --secondary-foreground: oklch(0.453 0.135 8.309);
  --accent: oklch(0.983 0.008 90.183);
  --accent-foreground: oklch(0.338 0.053 89.337);
  --destructive: oklch(0.407 0.122 41.351);
  --destructive-foreground: oklch(0.883 0.065 47.967);
  --ring: oklch(0.975 0.007 37.707);
  --chart-1: oklch(0.975 0.007 37.707);
  --chart-2: oklch(0.972 0.009 359.051);
  --chart-3: oklch(0.983 0.008 90.183);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.975 0.008 37.705);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.009 41.648);
  --foreground: oklch(0.976 0.004 37.721);
  --muted: oklch(0.214 0.03 2.576);
  --muted-foreground: oklch(0.802 0.006 358.997);
  --popover: oklch(0.13 0.009 41.648);
  --popover-foreground: oklch(0.976 0.004 37.721);
  --card: oklch(0.143 0.011 40.396);
  --card-foreground: oklch(0.984 0.003 37.728);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.975 0.007 37.707);
  --primary-foreground: oklch(0.479 0.11 37.609);
  --secondary: oklch(0.972 0.009 359.051);
  --secondary-foreground: oklch(0.453 0.135 8.309);
  --accent: oklch(0.983 0.008 90.183);
  --accent-foreground: oklch(0.338 0.053 89.337);
  --destructive: oklch(0.701 0.189 43.285);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.975 0.007 37.707);
  --chart-1: oklch(0.975 0.007 37.707);
  --chart-2: oklch(0.972 0.009 359.051);
  --chart-3: oklch(0.983 0.008 90.183);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.975 0.008 37.705);
}