Wise for shadcn/ui

Wise is a shadcn/ui theme built around a near-black primary color (#040605) with near-black accents (#040606). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the near-black primary (#040605) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#010402black
Foreground
#031108black
#f5faf7whitesmoke
Card
#f8fbf9mintcream
#020804black
Card foreground
#020d06black
#f8fbf9mintcream
Popover
#f8fbf9mintcream
#020804black
Popover foreground
#020d06black
#f8fbf9mintcream
Primary
#040605black
#040605black
Primary foreground
#91ac9adarkseagreen
#91ac9adarkseagreen
Secondary
#050604black
#050604black
Secondary foreground
#95ac91darkseagreen
#95ac91darkseagreen
Muted
#d5e5d2gainsboro
#1e2d1ablack
Muted foreground
#4e5d4bdarkolivegreen
#a5b4a2darkgray
Accent
#040606black
#040606black
Accent foreground
#91aca7darkgray
#91aca7darkgray
Destructive
#cd210efirebrick
#f14532tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#040605black
#040605black

Contrast

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

Light mode
Text on background18.95:1AAA
Text on card19.03:1AAA
Primary button8.29:1AAA
Secondary button8.31:1AAA
Muted text5.32:1AA
Accent8.38:1AAA
Destructive5.49:1AA
Dark mode
Text on background19.52:1AAA
Text on card19.40:1AAA
Primary button8.29:1AAA
Secondary button8.31:1AAA
Muted text6.68:1AA
Accent8.38:1AAA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 157.221);
  --foreground: oklch(0.161 0.031 155.245);
  --muted: oklch(0.904 0.03 140.481);
  --muted-foreground: oklch(0.461 0.035 140.418);
  --popover: oklch(0.987 0.004 157.176);
  --popover-foreground: oklch(0.144 0.026 156.463);
  --card: oklch(0.987 0.004 157.176);
  --card-foreground: oklch(0.144 0.026 156.463);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.118 0.005 157.174);
  --primary-foreground: oklch(0.717 0.04 156.085);
  --secondary: oklch(0.118 0.006 140.093);
  --secondary-foreground: oklch(0.718 0.046 140.435);
  --accent: oklch(0.118 0.004 185.352);
  --accent-foreground: oklch(0.721 0.031 184.302);
  --destructive: oklch(0.545 0.207 30.495);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.118 0.005 157.174);
  --chart-1: oklch(0.118 0.005 157.174);
  --chart-2: oklch(0.118 0.006 140.093);
  --chart-3: oklch(0.118 0.004 185.352);
  --chart-4: oklch(0.161 0.009 140.448);
  --chart-5: oklch(0.118 0.006 157.155);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.014 156.936);
  --foreground: oklch(0.98 0.006 157.139);
  --muted: oklch(0.277 0.039 140.349);
  --muted-foreground: oklch(0.753 0.031 140.468);
  --popover: oklch(0.123 0.017 156.936);
  --popover-foreground: oklch(0.986 0.004 157.182);
  --card: oklch(0.123 0.017 156.936);
  --card-foreground: oklch(0.986 0.004 157.182);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.118 0.005 157.174);
  --primary-foreground: oklch(0.717 0.04 156.085);
  --secondary: oklch(0.118 0.006 140.093);
  --secondary-foreground: oklch(0.718 0.046 140.435);
  --accent: oklch(0.118 0.004 185.352);
  --accent-foreground: oklch(0.721 0.031 184.302);
  --destructive: oklch(0.639 0.211 30.153);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.118 0.005 157.174);
  --chart-1: oklch(0.118 0.005 157.174);
  --chart-2: oklch(0.118 0.006 140.093);
  --chart-3: oklch(0.118 0.004 185.352);
  --chart-4: oklch(0.161 0.009 140.448);
  --chart-5: oklch(0.118 0.006 157.155);
}