Tonight for shadcn/ui

Tonight is a shadcn/ui theme built around a vivid light green primary color (#abfccc) with vivid light orange accents (#fcccab). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the vivid light green primary (#abfccc) on a green-tinted background (#051009).

Color palette

TokenLightDark
Background
#f8fcfamintcream
#051009black
Foreground
#010402black
#f9fbfamintcream
Card
#f8fcfamintcream
#051009black
Card foreground
#010402black
#f9fbfamintcream
Popover
#f8fcfamintcream
#051009black
Popover foreground
#010402black
#f9fbfamintcream
Primary
#abfcccpaleturquoise
#abfcccpaleturquoise
Primary foreground
#010f06black
#010f06black
Secondary
#ccabfcplum
#ccabfcplum
Secondary foreground
#300471midnightblue
#300471midnightblue
Muted
#edebeflavender
#111014black
Muted foreground
#58535fdimgray
#a5a0acdarkgray
Accent
#fcccabnavajowhite
#fcccabnavajowhite
Accent foreground
#713004saddlebrown
#713004saddlebrown
Destructive
#7c2d0esaddlebrown
#e86430chocolate
Destructive foreground
#f8d2c3peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#abfcccpaleturquoise
#abfcccpaleturquoise

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button16.34:1AAA
Secondary button7.82:1AAA
Muted text6.29:1AA
Accent6.73:1AA
Destructive6.70:1AA
Dark mode
Text on background18.68:1AAA
Text on card18.68:1AAA
Primary button16.34:1AAA
Secondary button7.82:1AAA
Muted text7.42:1AAA
Accent6.73:1AA
Destructive6.31:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 160.121);
  --foreground: oklch(0.099 0.017 160.089);
  --muted: oklch(0.943 0.005 304.261);
  --muted-foreground: oklch(0.452 0.021 303.679);
  --popover: oklch(0.987 0.005 160.121);
  --popover-foreground: oklch(0.099 0.017 160.089);
  --card: oklch(0.987 0.005 160.121);
  --card-foreground: oklch(0.099 0.017 160.089);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.926 0.103 157.334);
  --primary-foreground: oklch(0.148 0.032 159.129);
  --secondary: oklch(0.799 0.116 302.205);
  --secondary-foreground: oklch(0.288 0.158 289.747);
  --accent: oklch(0.878 0.07 55.306);
  --accent-foreground: oklch(0.393 0.105 47.244);
  --destructive: oklch(0.408 0.117 39.595);
  --destructive-foreground: oklch(0.893 0.048 42.743);
  --ring: oklch(0.926 0.103 157.334);
  --chart-1: oklch(0.926 0.103 157.334);
  --chart-2: oklch(0.799 0.116 302.205);
  --chart-3: oklch(0.878 0.07 55.306);
  --chart-4: oklch(0.834 0.095 302.687);
  --chart-5: oklch(0.928 0.106 157.241);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.022 158.599);
  --foreground: oklch(0.986 0.003 160.171);
  --muted: oklch(0.176 0.008 303.666);
  --muted-foreground: oklch(0.712 0.019 303.968);
  --popover: oklch(0.157 0.022 158.599);
  --popover-foreground: oklch(0.986 0.003 160.171);
  --card: oklch(0.157 0.022 158.599);
  --card-foreground: oklch(0.986 0.003 160.171);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.926 0.103 157.334);
  --primary-foreground: oklch(0.148 0.032 159.129);
  --secondary: oklch(0.799 0.116 302.205);
  --secondary-foreground: oklch(0.288 0.158 289.747);
  --accent: oklch(0.878 0.07 55.306);
  --accent-foreground: oklch(0.393 0.105 47.244);
  --destructive: oklch(0.661 0.176 40.43);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.926 0.103 157.334);
  --chart-1: oklch(0.926 0.103 157.334);
  --chart-2: oklch(0.799 0.116 302.205);
  --chart-3: oklch(0.878 0.07 55.306);
  --chart-4: oklch(0.834 0.095 302.687);
  --chart-5: oklch(0.928 0.106 157.241);
}