Noun for shadcn/ui

Noun is a shadcn/ui theme built around a muted violet primary color (#7a7292) with muted purple accents (#8a7292). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#7a7292) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#ffffffwhite
#040307black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#040307black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#040307black
Popover foreground
#000000black
#ffffffwhite
Primary
#7a7292slategray
#7a7292slategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#727a92slategray
#727a92slategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#edeef2whitesmoke
#0d0e12black
Muted foreground
#58595adimgray
#a5a5a7darkgray
Accent
#8a7292gray
#8a7292gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#cf3c02orangered
#f24602orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7a7292slategray
#7a7292slategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button4.52:1AA
Secondary button4.27:1AA Large
Muted text6.07:1AA
Accent4.28:1AA Large
Destructive4.87:1AA
Dark mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button4.52:1AA
Secondary button4.27:1AA Large
Muted text7.84:1AAA
Accent4.28:1AA Large
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.951 0.005 271.359);
  --muted-foreground: oklch(0.463 0.002 271.365);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.571 0.05 296.233);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.581 0.039 270.67);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.586 0.056 317.602);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.57 0.191 36.648);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.571 0.05 296.233);
  --chart-1: oklch(0.571 0.05 296.233);
  --chart-2: oklch(0.581 0.039 270.67);
  --chart-3: oklch(0.586 0.056 317.602);
  --chart-4: oklch(0.609 0.036 270.767);
  --chart-5: oklch(0.563 0.062 295.816);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.016 297.578);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.164 0.008 270.895);
  --muted-foreground: oklch(0.723 0.002 271.384);
  --popover: oklch(0.103 0.016 297.578);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.103 0.016 297.578);
  --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.571 0.05 296.233);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.581 0.039 270.67);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.586 0.056 317.602);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.64 0.217 36.336);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.571 0.05 296.233);
  --chart-1: oklch(0.571 0.05 296.233);
  --chart-2: oklch(0.581 0.039 270.67);
  --chart-3: oklch(0.586 0.056 317.602);
  --chart-4: oklch(0.609 0.036 270.767);
  --chart-5: oklch(0.563 0.062 295.816);
}