Nun for shadcn/ui

Nun is a shadcn/ui theme built around a deep orange primary color (#764e1e) with deep yellow accents (#71761e). The light mode uses a neutral background (#fefdfb). Dark mode keeps the deep orange primary (#764e1e) on an orange-tinted background (#0c0804).

Color palette

TokenLightDark
Background
#fefdfbsnow
#0c0804black
Foreground
#040301black
#faf8f4whitesmoke
Card
#fefdfbsnow
#0c0804black
Card foreground
#040301black
#faf8f4whitesmoke
Popover
#fefdfbsnow
#0c0804black
Popover foreground
#040301black
#faf8f4whitesmoke
Primary
#764e1esaddlebrown
#764e1esaddlebrown
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#76231esaddlebrown
#76231esaddlebrown
Secondary foreground
#f3d4d2pink
#f3d4d2pink
Muted
#f1e5e4linen
#1b0f0eblack
Muted foreground
#4e4241darkslategray
#beb2b1silver
Accent
#71761eolivedrab
#71761eolivedrab
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ae1f0ffirebrick
#dd2713crimson
Destructive foreground
#fef2f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#764e1esaddlebrown
#764e1esaddlebrown

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button7.28:1AAA
Secondary button7.50:1AAA
Muted text7.82:1AAA
Accent4.88:1AA
Destructive6.40:1AA
Dark mode
Text on background18.82:1AAA
Text on card18.82:1AAA
Primary button7.28:1AAA
Secondary button7.50:1AAA
Muted text9.10:1AAA
Accent4.88:1AA
Destructive4.81:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 73.197);
  --foreground: oklch(0.096 0.011 81.199);
  --muted: oklch(0.931 0.013 21.071);
  --muted-foreground: oklch(0.39 0.017 21.48);
  --popover: oklch(0.994 0.003 73.197);
  --popover-foreground: oklch(0.096 0.011 81.199);
  --card: oklch(0.994 0.003 73.197);
  --card-foreground: oklch(0.096 0.011 81.199);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.459 0.082 68.33);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.385 0.117 27.068);
  --secondary-foreground: oklch(0.896 0.035 21.422);
  --accent: oklch(0.544 0.107 112.322);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.485 0.18 30.52);
  --destructive-foreground: oklch(0.97 0.013 25.099);
  --ring: oklch(0.459 0.082 68.33);
  --chart-1: oklch(0.459 0.082 68.33);
  --chart-2: oklch(0.385 0.117 27.068);
  --chart-3: oklch(0.544 0.107 112.322);
  --chart-4: oklch(0.412 0.126 27.17);
  --chart-5: oklch(0.462 0.085 67.846);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.015 79.9);
  --foreground: oklch(0.979 0.005 73.181);
  --muted: oklch(0.184 0.021 22.622);
  --muted-foreground: oklch(0.773 0.014 21.124);
  --popover: oklch(0.138 0.015 79.9);
  --popover-foreground: oklch(0.979 0.005 73.181);
  --card: oklch(0.138 0.015 79.9);
  --card-foreground: oklch(0.979 0.005 73.181);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.459 0.082 68.33);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.385 0.117 27.068);
  --secondary-foreground: oklch(0.896 0.035 21.422);
  --accent: oklch(0.544 0.107 112.322);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.578 0.217 30.514);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.459 0.082 68.33);
  --chart-1: oklch(0.459 0.082 68.33);
  --chart-2: oklch(0.385 0.117 27.068);
  --chart-3: oklch(0.544 0.107 112.322);
  --chart-4: oklch(0.412 0.126 27.17);
  --chart-5: oklch(0.462 0.085 67.846);
}