Morning for shadcn/ui

Morning is a shadcn/ui theme built around a near-white primary color (#ffffff) with neutral gray accents (#e1e0e0). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#ffffff) on a red-tinted background (#0c0303).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0303black
Foreground
#090202black
#f9f6f6whitesmoke
Card
#fcfcfcsnow
#100404black
Card foreground
#040101black
#fbf9f9snow
Popover
#ffffffwhite
#0c0303black
Popover foreground
#090202black
#f9f6f6whitesmoke
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#e1e0e0gainsboro
#241919black
Secondary foreground
#484747darkslategray
#c4ababdarkgray
Muted
#ecdfdfgainsboro
#201313black
Muted foreground
#4d4c4cdarkslategray
#b3b2b2darkgray
Accent
#e1e0e0gainsboro
#241919black
Accent foreground
#484747darkslategray
#c4ababdarkgray
Destructive
#ce4003chocolate
#f64c04orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background20.56:1AAA
Text on card20.34:1AAA
Primary button12.63:1AAA
Secondary button7.02:1AAA
Muted text6.61:1AA
Accent7.02:1AAA
Destructive4.81:1AA
Dark mode
Text on background18.96:1AAA
Text on card19.21:1AAA
Primary button12.63:1AAA
Secondary button7.92:1AAA
Muted text8.51:1AAA
Accent7.92:1AAA
Destructive3.51:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.023 22.07);
  --muted: oklch(0.915 0.013 17.402);
  --muted-foreground: oklch(0.417 0.002 17.238);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.1 0.023 22.07);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.08 0.018 22.07);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.907 0.001 17.17);
  --secondary-foreground: oklch(0.398 0.002 17.237);
  --accent: oklch(0.907 0.001 17.17);
  --accent-foreground: oklch(0.398 0.002 17.237);
  --destructive: oklch(0.572 0.187 37.676);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.907 0.001 17.17);
  --chart-3: oklch(0.907 0.001 17.17);
  --chart-4: oklch(0.931 0 17.167);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.022 21.037);
  --foreground: oklch(0.975 0.004 17.225);
  --muted: oklch(0.205 0.02 18.969);
  --muted-foreground: oklch(0.764 0.002 17.196);
  --popover: oklch(0.118 0.022 21.037);
  --popover-foreground: oklch(0.975 0.004 17.225);
  --card: oklch(0.131 0.026 21.239);
  --card-foreground: oklch(0.983 0.003 17.202);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.228 0.017 18.451);
  --secondary-foreground: oklch(0.764 0.028 17.787);
  --accent: oklch(0.228 0.017 18.451);
  --accent-foreground: oklch(0.764 0.028 17.787);
  --destructive: oklch(0.653 0.216 37.32);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.228 0.017 18.451);
  --chart-3: oklch(0.228 0.017 18.451);
  --chart-4: oklch(0.258 0.02 18.553);
  --chart-5: oklch(1 0 180);
}