Noise for shadcn/ui

Noise is a shadcn/ui theme built around a muted light purple primary color (#f9f6f9) with muted light teal accents (#f6f9f9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light purple primary (#f9f6f9) on a neutral background (#070407).

Color palette

TokenLightDark
Background
#ffffffwhite
#070407black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#0a050ablack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#0a050ablack
Popover foreground
#000000black
#ffffffwhite
Primary
#f9f6f9whitesmoke
#f9f6f9whitesmoke
Primary foreground
#734875dimgray
#734875dimgray
Secondary
#f9f9f6whitesmoke
#f9f9f6whitesmoke
Secondary foreground
#363521darkslategray
#363521darkslategray
Muted
#edede3beige
#1c1b12black
Muted foreground
#494837darkslategray
#c8c7b6silver
Accent
#f6f9f9whitesmoke
#f6f9f9whitesmoke
Accent foreground
#213635darkslategray
#213635darkslategray
Destructive
#a23901saddlebrown
#e95201orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9f6f9whitesmoke
#f9f6f9whitesmoke

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.70:1AA
Secondary button11.79:1AAA
Muted text7.84:1AAA
Accent12.07:1AAA
Destructive6.69:1AA
Dark mode
Text on background20.45:1AAA
Text on card20.19:1AAA
Primary button6.70:1AA
Secondary button11.79:1AAA
Muted text10.08:1AAA
Accent12.07:1AAA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.943 0.013 104.202);
  --muted-foreground: oklch(0.397 0.027 105.072);
  --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.975 0.006 324.166);
  --primary-foreground: oklch(0.467 0.088 325.12);
  --secondary: oklch(0.981 0.005 104.052);
  --secondary-foreground: oklch(0.323 0.033 105.523);
  --accent: oklch(0.98 0.004 193.528);
  --accent-foreground: oklch(0.314 0.027 191.908);
  --destructive: oklch(0.49 0.15 41.257);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.975 0.006 324.166);
  --chart-1: oklch(0.975 0.006 324.166);
  --chart-2: oklch(0.981 0.005 104.052);
  --chart-3: oklch(0.98 0.004 193.528);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.975 0.007 324.171);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.013 325.047);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.222 0.018 105.234);
  --muted-foreground: oklch(0.827 0.023 104.441);
  --popover: oklch(0.128 0.015 325.047);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.128 0.015 325.047);
  --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.975 0.006 324.166);
  --primary-foreground: oklch(0.467 0.088 325.12);
  --secondary: oklch(0.981 0.005 104.052);
  --secondary-foreground: oklch(0.323 0.033 105.523);
  --accent: oklch(0.98 0.004 193.528);
  --accent-foreground: oklch(0.314 0.027 191.908);
  --destructive: oklch(0.638 0.199 40.215);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.975 0.006 324.166);
  --chart-1: oklch(0.975 0.006 324.166);
  --chart-2: oklch(0.981 0.005 104.052);
  --chart-3: oklch(0.98 0.004 193.528);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.975 0.007 324.171);
}