Misnomer for shadcn/ui

Misnomer is a shadcn/ui theme built around a deep indigo primary color (#090925) with deep green accents (#092509). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the deep indigo primary (#090925) on a neutral background (#010104).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#010104black
Foreground
#060614black
#f5f5fawhitesmoke
Card
#f7f7fdghostwhite
#020208black
Card foreground
#040410black
#f8f8fbghostwhite
Popover
#fbfbfeghostwhite
#010104black
Popover foreground
#060614black
#f5f5fawhitesmoke
Primary
#090925black
#090925black
Primary foreground
#d2d2f4gainsboro
#d2d2f4gainsboro
Secondary
#250909black
#250909black
Secondary foreground
#e17f7flightcoral
#e17f7flightcoral
Muted
#f3ececlinen
#130c0cblack
Muted foreground
#735959dimgray
#a68c8crosybrown
Accent
#092509black
#092509black
Accent foreground
#2fca2flimegreen
#2fca2flimegreen
Destructive
#b33e00firebrick
#e65000orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#090925black
#090925black

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.11:1AAA
Primary button13.25:1AAA
Secondary button6.72:1AA
Muted text5.46:1AA
Accent7.49:1AAA
Destructive5.82:1AA
Dark mode
Text on background19.16:1AAA
Text on card19.48:1AAA
Primary button13.25:1AAA
Secondary button6.72:1AA
Muted text6.22:1AA
Accent7.49:1AAA
Destructive3.81:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 286.332);
  --foreground: oklch(0.13 0.033 280.815);
  --muted: oklch(0.949 0.008 17.291);
  --muted-foreground: oklch(0.49 0.035 18.421);
  --popover: oklch(0.989 0.004 286.332);
  --popover-foreground: oklch(0.13 0.033 280.815);
  --card: oklch(0.978 0.007 286.261);
  --card-foreground: oklch(0.12 0.028 281.212);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.161 0.057 277.748);
  --primary-foreground: oklch(0.873 0.048 285.368);
  --secondary: oklch(0.188 0.049 22.961);
  --secondary-foreground: oklch(0.703 0.121 20.593);
  --accent: oklch(0.236 0.061 143.326);
  --accent-foreground: oklch(0.734 0.228 142.814);
  --destructive: oklch(0.524 0.162 40.829);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.161 0.057 277.748);
  --chart-1: oklch(0.161 0.057 277.748);
  --chart-2: oklch(0.188 0.049 22.961);
  --chart-3: oklch(0.236 0.061 143.326);
  --chart-4: oklch(0.219 0.062 23.725);
  --chart-5: oklch(0.159 0.06 277.076);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.076 0.016 281.82);
  --foreground: oklch(0.972 0.006 286.286);
  --muted: oklch(0.163 0.012 18.495);
  --muted-foreground: oklch(0.663 0.032 17.993);
  --popover: oklch(0.076 0.016 281.82);
  --popover-foreground: oklch(0.972 0.006 286.286);
  --card: oklch(0.095 0.02 281.82);
  --card-foreground: oklch(0.981 0.004 286.325);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.161 0.057 277.748);
  --primary-foreground: oklch(0.873 0.048 285.368);
  --secondary: oklch(0.188 0.049 22.961);
  --secondary-foreground: oklch(0.703 0.121 20.593);
  --accent: oklch(0.236 0.061 143.326);
  --accent-foreground: oklch(0.734 0.228 142.814);
  --destructive: oklch(0.629 0.197 40.115);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.161 0.057 277.748);
  --chart-1: oklch(0.161 0.057 277.748);
  --chart-2: oklch(0.188 0.049 22.961);
  --chart-3: oklch(0.236 0.061 143.326);
  --chart-4: oklch(0.219 0.062 23.725);
  --chart-5: oklch(0.159 0.06 277.076);
}