Consulting for shadcn/ui

Consulting is a shadcn/ui theme built around a purple primary color (#8c449c) with muted purple accents (#c3b3c7). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#8c449c) on a neutral background (#070208).

Color palette

TokenLightDark
Background
#ffffffwhite
#070208black
Foreground
#040104black
#ffffffwhite
Card
#fcfcfcsnow
#0b030cblack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#0b030cblack
Popover foreground
#000000black
#ffffffwhite
Primary
#8c449crebeccapurple
#8c449crebeccapurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cfc8d0lightgrey
#2d222fdarkslategray
Secondary foreground
#362f37darkslategray
#c8b8ccsilver
Muted
#efeaf0whitesmoke
#140f15black
Muted foreground
#625266dimgray
#aa99addarkgray
Accent
#c3b3c7silver
#442c49darkslategray
Accent foreground
#271e29darkslategray
#dbc9dethistle
Destructive
#ab3a0dfirebrick
#e84e11orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8c449crebeccapurple
#8c449crebeccapurple

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.54:1AAA
Primary button6.12:1AA
Secondary button7.91:1AAA
Muted text6.08:1AA
Accent8.10:1AAA
Destructive6.30:1AA
Dark mode
Text on background20.55:1AAA
Text on card20.34:1AAA
Primary button6.12:1AA
Secondary button8.07:1AAA
Muted text7.09:1AAA
Accent7.88:1AAA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.082 0.026 322.512);
  --muted: oklch(0.943 0.009 319.999);
  --muted-foreground: oklch(0.461 0.038 320.062);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.514 0.151 319.989);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.84 0.013 320.006);
  --secondary-foreground: oklch(0.315 0.017 320.039);
  --accent: oklch(0.786 0.033 320.029);
  --accent-foreground: oklch(0.251 0.024 320.069);
  --destructive: oklch(0.505 0.156 38.43);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.514 0.151 319.989);
  --chart-1: oklch(0.514 0.151 319.989);
  --chart-2: oklch(0.84 0.013 320.006);
  --chart-3: oklch(0.786 0.033 320.029);
  --chart-4: oklch(0.865 0.011 320.003);
  --chart-5: oklch(0.514 0.161 319.943);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.026 322);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.177 0.013 320.054);
  --muted-foreground: oklch(0.704 0.034 320.035);
  --popover: oklch(0.121 0.03 321.64);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.03 321.64);
  --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.514 0.151 319.989);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.271 0.028 320.076);
  --secondary-foreground: oklch(0.802 0.032 320.028);
  --accent: oklch(0.334 0.059 320.099);
  --accent-foreground: oklch(0.856 0.035 320.028);
  --destructive: oklch(0.632 0.2 38.005);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.514 0.151 319.989);
  --chart-1: oklch(0.514 0.151 319.989);
  --chart-2: oklch(0.271 0.028 320.076);
  --chart-3: oklch(0.334 0.059 320.099);
  --chart-4: oklch(0.301 0.033 320.078);
  --chart-5: oklch(0.514 0.161 319.943);
}