Dishonest for shadcn/ui

Dishonest is a shadcn/ui theme built around a vivid deep indigo primary color (#020227) with neutral gray accents (#ccccd1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep indigo primary (#020227) on an indigo-tinted background (#05050f).

Color palette

TokenLightDark
Background
#ffffffwhite
#05050fblack
Foreground
#010104black
#f6f6f8whitesmoke
Card
#ffffffwhite
#05050fblack
Card foreground
#010104black
#f6f6f8whitesmoke
Popover
#ffffffwhite
#05050fblack
Popover foreground
#010104black
#f6f6f8whitesmoke
Primary
#020227black
#020227black
Primary foreground
#c5c5fclightsteelblue
#c5c5fclightsteelblue
Secondary
#ccccd1lightgrey
#202022black
Secondary foreground
#333338darkslategray
#b9b9bcsilver
Muted
#e7e7f3lavender
#0c0c18black
Muted foreground
#525252darkslategray
#adadaddarkgray
Accent
#ccccd1lightgrey
#202022black
Accent foreground
#333338darkslategray
#b9b9bcsilver
Destructive
#67270amaroon
#ed7740coral
Destructive foreground
#f7c3ablightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#020227black
#020227black

Contrast

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

Light mode
Text on background20.84:1AAA
Text on card20.84:1AAA
Primary button12.25:1AAA
Secondary button7.86:1AAA
Muted text6.39:1AA
Accent7.86:1AAA
Destructive7.14:1AAA
Dark mode
Text on background18.76:1AAA
Text on card18.76:1AAA
Primary button12.25:1AAA
Secondary button8.26:1AAA
Muted text8.64:1AAA
Accent8.26:1AAA
Destructive7.30:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.076 0.016 282.092);
  --muted: oklch(0.933 0.015 286.098);
  --muted-foreground: oklch(0.437 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.076 0.016 282.092);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.076 0.016 282.092);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.135 0.076 269.995);
  --primary-foreground: oklch(0.842 0.076 284.659);
  --secondary: oklch(0.847 0.007 286.257);
  --secondary-foreground: oklch(0.323 0.009 285.861);
  --accent: oklch(0.847 0.007 286.257);
  --accent-foreground: oklch(0.323 0.009 285.861);
  --destructive: oklch(0.362 0.1 41.961);
  --destructive-foreground: oklch(0.858 0.068 46.111);
  --ring: oklch(0.135 0.076 269.995);
  --chart-1: oklch(0.135 0.076 269.995);
  --chart-2: oklch(0.847 0.007 286.257);
  --chart-3: oklch(0.847 0.007 286.257);
  --chart-4: oklch(0.872 0.006 286.284);
  --chart-5: oklch(0.133 0.079 268.606);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.024 282.365);
  --foreground: oklch(0.975 0.002 286.354);
  --muted: oklch(0.161 0.024 283.386);
  --muted-foreground: oklch(0.749 0 158.199);
  --popover: oklch(0.124 0.024 282.365);
  --popover-foreground: oklch(0.975 0.002 286.354);
  --card: oklch(0.124 0.024 282.365);
  --card-foreground: oklch(0.975 0.002 286.354);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.135 0.076 269.995);
  --primary-foreground: oklch(0.842 0.076 284.659);
  --secondary: oklch(0.246 0.002 286.216);
  --secondary-foreground: oklch(0.786 0.004 286.311);
  --accent: oklch(0.246 0.002 286.216);
  --accent-foreground: oklch(0.786 0.004 286.311);
  --destructive: oklch(0.696 0.162 43.799);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.135 0.076 269.995);
  --chart-1: oklch(0.135 0.076 269.995);
  --chart-2: oklch(0.246 0.002 286.216);
  --chart-3: oklch(0.246 0.002 286.216);
  --chart-4: oklch(0.277 0.003 286.205);
  --chart-5: oklch(0.133 0.079 268.606);
}