Honest for shadcn/ui

Honest is a shadcn/ui theme built around a deep teal primary color (#0b1814) with deep yellow accents (#18140b). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#0b1814) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#ffffffwhite
#020303black
Foreground
#010403black
#f5f9f8whitesmoke
Card
#fcfcfcsnow
#030706black
Card foreground
#000000black
#f9fbfamintcream
Popover
#fcfcfcsnow
#030706black
Popover foreground
#000000black
#f9fbfamintcream
Primary
#0b1814black
#0b1814black
Primary foreground
#8dc9b7mediumaquamarine
#8dc9b7mediumaquamarine
Secondary
#140b18black
#140b18black
Secondary foreground
#b78dc9darkgray
#b78dc9darkgray
Muted
#e3d1ebgainsboro
#26142eblack
Muted foreground
#56485bdimgray
#b1a4b7darkgray
Accent
#18140bblack
#18140bblack
Accent foreground
#c9b78dtan
#c9b78dtan
Destructive
#6c0904maroon
#ec1409red
Destructive foreground
#fcaba6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b1814black
#0b1814black

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.54:1AAA
Primary button9.64:1AAA
Secondary button7.00:1AAA
Muted text5.89:1AA
Accent9.27:1AAA
Destructive6.84:1AA
Dark mode
Text on background19.42:1AAA
Text on card19.48:1AAA
Primary button9.64:1AAA
Secondary button7.00:1AAA
Muted text7.23:1AAA
Accent9.27:1AAA
Destructive4.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.014 176.88);
  --muted: oklch(0.883 0.04 315.86);
  --muted-foreground: oklch(0.422 0.036 315.714);
  --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.197 0.02 173.211);
  --primary-foreground: oklch(0.79 0.068 173.846);
  --secondary: oklch(0.171 0.029 315.368);
  --secondary-foreground: oklch(0.703 0.098 315.508);
  --accent: oklch(0.195 0.018 87.411);
  --accent-foreground: oklch(0.784 0.061 87.509);
  --destructive: oklch(0.34 0.131 29.684);
  --destructive-foreground: oklch(0.818 0.096 22.715);
  --ring: oklch(0.197 0.02 173.211);
  --chart-1: oklch(0.197 0.02 173.211);
  --chart-2: oklch(0.171 0.029 315.368);
  --chart-3: oklch(0.195 0.018 87.411);
  --chart-4: oklch(0.201 0.04 315.244);
  --chart-5: oklch(0.198 0.021 172.93);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.008 176.785);
  --foreground: oklch(0.98 0.004 176.53);
  --muted: oklch(0.23 0.054 315.058);
  --muted-foreground: oklch(0.735 0.032 315.868);
  --popover: oklch(0.122 0.01 176.785);
  --popover-foreground: oklch(0.986 0.003 176.573);
  --card: oklch(0.122 0.01 176.785);
  --card-foreground: oklch(0.986 0.003 176.573);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.197 0.02 173.211);
  --primary-foreground: oklch(0.79 0.068 173.846);
  --secondary: oklch(0.171 0.029 315.368);
  --secondary-foreground: oklch(0.703 0.098 315.508);
  --accent: oklch(0.195 0.018 87.411);
  --accent-foreground: oklch(0.784 0.061 87.509);
  --destructive: oklch(0.597 0.239 29.508);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.197 0.02 173.211);
  --chart-1: oklch(0.197 0.02 173.211);
  --chart-2: oklch(0.171 0.029 315.368);
  --chart-3: oklch(0.195 0.018 87.411);
  --chart-4: oklch(0.201 0.04 315.244);
  --chart-5: oklch(0.198 0.021 172.93);
}