Console for shadcn/ui

Console is a shadcn/ui theme built around a muted pink primary color (#6e3f59) with muted blue accents (#3f596e). The light mode uses a neutral background (#fdf6fa). Dark mode keeps the muted pink primary (#6e3f59) on a pink-tinted background (#0e060b).

Color palette

TokenLightDark
Background
#fdf6fasnow
#0e060bblack
Foreground
#080205black
#f9f6f8whitesmoke
Card
#fdf6fasnow
#0e060bblack
Card foreground
#080205black
#f9f6f8whitesmoke
Popover
#fdf6fasnow
#0e060bblack
Popover foreground
#080205black
#f9f6f8whitesmoke
Primary
#6e3f59dimgray
#6e3f59dimgray
Primary foreground
#f4ecf0whitesmoke
#f4ecf0whitesmoke
Secondary
#596e3fdarkolivegreen
#596e3fdarkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ebeee7linen
#151811black
Muted foreground
#40433ddarkslategray
#c0c2bcsilver
Accent
#3f596edarkslategray
#3f596edarkslategray
Accent foreground
#ecf0f4whitesmoke
#ecf0f4whitesmoke
Destructive
#b31914firebrick
#ea4843tomato
Destructive foreground
#fefbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6e3f59dimgray
#6e3f59dimgray

Contrast

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

Light mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button7.16:1AAA
Secondary button5.62:1AA
Muted text8.60:1AAA
Accent6.39:1AA
Destructive6.64:1AA
Dark mode
Text on background18.63:1AAA
Text on card18.63:1AAA
Primary button7.16:1AAA
Secondary button5.62:1AA
Muted text9.96:1AAA
Accent6.39:1AA
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.009 342.84);
  --foreground: oklch(0.105 0.024 342.58);
  --muted: oklch(0.946 0.011 126.577);
  --muted-foreground: oklch(0.378 0.011 126.815);
  --popover: oklch(0.981 0.009 342.84);
  --popover-foreground: oklch(0.105 0.024 342.58);
  --card: oklch(0.981 0.009 342.84);
  --card-foreground: oklch(0.105 0.024 342.58);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.434 0.074 346.503);
  --primary-foreground: oklch(0.95 0.011 342.893);
  --secondary: oklch(0.509 0.074 128.517);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.452 0.047 243.735);
  --accent-foreground: oklch(0.953 0.007 242.29);
  --destructive: oklch(0.492 0.187 28.736);
  --destructive-foreground: oklch(0.99 0.004 19.665);
  --ring: oklch(0.434 0.074 346.503);
  --chart-1: oklch(0.434 0.074 346.503);
  --chart-2: oklch(0.509 0.074 128.517);
  --chart-3: oklch(0.452 0.047 243.735);
  --chart-4: oklch(0.541 0.079 128.54);
  --chart-5: oklch(0.433 0.082 346.933);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.02 344.242);
  --foreground: oklch(0.975 0.004 342.717);
  --muted: oklch(0.204 0.016 127.466);
  --muted-foreground: oklch(0.811 0.009 126.577);
  --popover: oklch(0.138 0.02 344.242);
  --popover-foreground: oklch(0.975 0.004 342.717);
  --card: oklch(0.138 0.02 344.242);
  --card-foreground: oklch(0.975 0.004 342.717);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.434 0.074 346.503);
  --primary-foreground: oklch(0.95 0.011 342.893);
  --secondary: oklch(0.509 0.074 128.517);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.452 0.047 243.735);
  --accent-foreground: oklch(0.953 0.007 242.29);
  --destructive: oklch(0.633 0.199 26.555);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.434 0.074 346.503);
  --chart-1: oklch(0.434 0.074 346.503);
  --chart-2: oklch(0.509 0.074 128.517);
  --chart-3: oklch(0.452 0.047 243.735);
  --chart-4: oklch(0.541 0.079 128.54);
  --chart-5: oklch(0.433 0.082 346.933);
}