Goodnight for shadcn/ui

Goodnight is a shadcn/ui theme built around a vivid light green primary color (#cbfbe2) with muted light green accents (#c6d7ce). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid light green primary (#cbfbe2) on a green-tinted background (#060e0a).

Color palette

TokenLightDark
Background
#fbfefcwhite
#060e0ablack
Foreground
#010402black
#f6f9f7whitesmoke
Card
#f7fdfamintcream
#08110dblack
Card foreground
#000000black
#f9fbfamintcream
Popover
#fbfefcwhite
#060e0ablack
Popover foreground
#010402black
#f6f9f7whitesmoke
Primary
#cbfbe2paleturquoise
#cbfbe2paleturquoise
Primary foreground
#042a16black
#042a16black
Secondary
#e3e8e5gainsboro
#2c302edarkslategray
Secondary foreground
#46534cdarkslategray
#c4cac7silver
Muted
#ebf4f0whitesmoke
#0b140fblack
Muted foreground
#38473fdarkslategray
#b8c7bfsilver
Accent
#c6d7celightgrey
#3b4e45darkslategray
Accent foreground
#2c3f35darkslategray
#d9e2degainsboro
Destructive
#6d2709saddlebrown
#d44c11chocolate
Destructive foreground
#f8c5afpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cbfbe2paleturquoise
#cbfbe2paleturquoise

Contrast

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

Light mode
Text on background20.28:1AAA
Text on card20.36:1AAA
Primary button13.64:1AAA
Secondary button6.49:1AA
Muted text8.76:1AAA
Accent7.50:1AAA
Destructive7.02:1AAA
Dark mode
Text on background18.42:1AAA
Text on card18.38:1AAA
Primary button13.64:1AAA
Secondary button8.03:1AAA
Muted text10.67:1AAA
Accent6.68:1AA
Destructive4.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 164.189);
  --foreground: oklch(0.099 0.014 164.404);
  --muted: oklch(0.96 0.012 163.973);
  --muted-foreground: oklch(0.383 0.024 162.58);
  --popover: oklch(0.994 0.004 164.189);
  --popover-foreground: oklch(0.099 0.014 164.404);
  --card: oklch(0.988 0.008 164.089);
  --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.947 0.058 162.59);
  --primary-foreground: oklch(0.253 0.057 155.97);
  --secondary: oklch(0.926 0.005 164.141);
  --secondary-foreground: oklch(0.428 0.019 163.114);
  --accent: oklch(0.864 0.022 163.601);
  --accent-foreground: oklch(0.348 0.03 161.81);
  --destructive: oklch(0.371 0.107 40.442);
  --destructive-foreground: oklch(0.863 0.067 44.362);
  --ring: oklch(0.947 0.058 162.59);
  --chart-1: oklch(0.947 0.058 162.59);
  --chart-2: oklch(0.926 0.005 164.141);
  --chart-3: oklch(0.864 0.022 163.601);
  --chart-4: oklch(0.948 0.004 164.188);
  --chart-5: oklch(0.948 0.06 162.529);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.015 162.917);
  --foreground: oklch(0.979 0.004 164.19);
  --muted: oklch(0.18 0.017 161.569);
  --muted-foreground: oklch(0.815 0.02 163.641);
  --popover: oklch(0.154 0.015 162.917);
  --popover-foreground: oklch(0.979 0.004 164.19);
  --card: oklch(0.168 0.018 161.516);
  --card-foreground: oklch(0.986 0.002 164.223);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.947 0.058 162.59);
  --primary-foreground: oklch(0.253 0.057 155.97);
  --secondary: oklch(0.305 0.008 163.623);
  --secondary-foreground: oklch(0.833 0.007 164.058);
  --accent: oklch(0.406 0.029 162.268);
  --accent-foreground: oklch(0.906 0.012 163.946);
  --destructive: oklch(0.597 0.183 39.284);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.947 0.058 162.59);
  --chart-1: oklch(0.947 0.058 162.59);
  --chart-2: oklch(0.305 0.008 163.623);
  --chart-3: oklch(0.406 0.029 162.268);
  --chart-4: oklch(0.335 0.009 163.6);
  --chart-5: oklch(0.948 0.06 162.529);
}