Nose for shadcn/ui

Nose is a shadcn/ui theme built around a muted violet primary color (#7a6e81) with muted green accents (#75816e). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the muted violet primary (#7a6e81) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#030104black
Foreground
#000000black
#f8f6f8whitesmoke
Card
#f9f3fcghostwhite
#060208black
Card foreground
#000000black
#faf9fbghostwhite
Popover
#f9f3fcghostwhite
#060208black
Popover foreground
#000000black
#faf9fbghostwhite
Primary
#7a6e81gray
#7a6e81gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#75816egray
#75816egray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eaeee8linen
#141711black
Muted foreground
#4e514ddarkslategray
#afb2aedarkgray
Accent
#75816egray
#75816egray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ad2001firebrick
#fe4016orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7a6e81gray
#7a6e81gray

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.22:1AAA
Primary button4.77:1AA
Secondary button4.07:1AA Large
Muted text6.84:1AA
Accent4.07:1AA Large
Destructive7.05:1AAA
Dark mode
Text on background19.33:1AAA
Text on card19.61:1AAA
Primary button4.77:1AA
Secondary button4.07:1AA Large
Muted text8.42:1AAA
Accent4.07:1AA Large
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.009 313.551);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.943 0.009 133.666);
  --muted-foreground: oklch(0.432 0.009 133.731);
  --popover: oklch(0.971 0.013 313.522);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.971 0.013 313.522);
  --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.557 0.033 313.247);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.589 0.032 133.956);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.589 0.032 133.956);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.483 0.179 32.739);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.557 0.033 313.247);
  --chart-1: oklch(0.557 0.033 313.247);
  --chart-2: oklch(0.589 0.032 133.956);
  --chart-3: oklch(0.589 0.032 133.956);
  --chart-4: oklch(0.616 0.034 133.958);
  --chart-5: oklch(0.552 0.045 313.107);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.082 0.02 315.657);
  --foreground: oklch(0.976 0.003 313.587);
  --muted: oklch(0.2 0.013 134.041);
  --muted-foreground: oklch(0.761 0.007 133.667);
  --popover: oklch(0.103 0.025 315.657);
  --popover-foreground: oklch(0.984 0.002 313.594);
  --card: oklch(0.103 0.025 315.657);
  --card-foreground: oklch(0.984 0.002 313.594);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.557 0.033 313.247);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.589 0.032 133.956);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.589 0.032 133.956);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.655 0.23 33.209);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.557 0.033 313.247);
  --chart-1: oklch(0.557 0.033 313.247);
  --chart-2: oklch(0.589 0.032 133.956);
  --chart-3: oklch(0.589 0.032 133.956);
  --chart-4: oklch(0.616 0.034 133.958);
  --chart-5: oklch(0.552 0.045 313.107);
}