Noise for shadcn/ui

Noise is a shadcn/ui theme built around a deep blue primary color (#0e0f1b) with deep green accents (#0f1b0e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#0e0f1b) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#ffffffwhite
#010204black
Foreground
#050714black
#fcfcfdwhite
Card
#fcfcfcsnow
#030407black
Card foreground
#040610black
#ffffffwhite
Popover
#fcfcfcsnow
#030407black
Popover foreground
#040610black
#ffffffwhite
Primary
#0e0f1bblack
#0e0f1bblack
Primary foreground
#929ac8darkgray
#929ac8darkgray
Secondary
#1b0e0fblack
#1b0e0fblack
Secondary foreground
#c8929arosybrown
#c8929arosybrown
Muted
#eae1e2gainsboro
#1e1516black
Muted foreground
#4a3f41darkslategray
#c0b5b6silver
Accent
#0f1b0eblack
#0f1b0eblack
Accent foreground
#9ac892darkseagreen
#9ac892darkseagreen
Destructive
#911408darkred
#f44d3etomato
Destructive foreground
#fcd3cfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e0f1bblack
#0e0f1bblack

Contrast

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

Light mode
Text on background20.05:1AAA
Text on card19.78:1AAA
Primary button6.94:1AA
Secondary button7.20:1AAA
Muted text7.86:1AAA
Accent9.32:1AAA
Destructive6.68:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.54:1AAA
Primary button6.94:1AA
Secondary button7.20:1AAA
Muted text8.97:1AAA
Accent9.32:1AAA
Destructive3.51: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.137 0.029 273.66);
  --muted: oklch(0.917 0.011 8.034);
  --muted-foreground: oklch(0.381 0.015 8.732);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.126 0.024 273.271);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.126 0.024 273.271);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.175 0.024 276.855);
  --primary-foreground: oklch(0.696 0.069 277.649);
  --secondary: oklch(0.182 0.023 10.923);
  --secondary-foreground: oklch(0.715 0.066 9.993);
  --accent: oklch(0.207 0.031 141.193);
  --accent-foreground: oklch(0.787 0.09 141.278);
  --destructive: oklch(0.421 0.16 30.1);
  --destructive-foreground: oklch(0.9 0.047 24.17);
  --ring: oklch(0.175 0.024 276.855);
  --chart-1: oklch(0.175 0.024 276.855);
  --chart-2: oklch(0.182 0.023 10.923);
  --chart-3: oklch(0.207 0.031 141.193);
  --chart-4: oklch(0.213 0.031 11.386);
  --chart-5: oklch(0.173 0.027 276.561);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.01 275.075);
  --foreground: oklch(0.991 0.002 279.317);
  --muted: oklch(0.207 0.016 9.635);
  --muted-foreground: oklch(0.782 0.013 8.145);
  --popover: oklch(0.104 0.013 275.075);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.104 0.013 275.075);
  --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.175 0.024 276.855);
  --primary-foreground: oklch(0.696 0.069 277.649);
  --secondary: oklch(0.182 0.023 10.923);
  --secondary-foreground: oklch(0.715 0.066 9.993);
  --accent: oklch(0.207 0.031 141.193);
  --accent-foreground: oklch(0.787 0.09 141.278);
  --destructive: oklch(0.653 0.205 29.052);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.175 0.024 276.855);
  --chart-1: oklch(0.175 0.024 276.855);
  --chart-2: oklch(0.182 0.023 10.923);
  --chart-3: oklch(0.207 0.031 141.193);
  --chart-4: oklch(0.213 0.031 11.386);
  --chart-5: oklch(0.173 0.027 276.561);
}