Atmosphere for shadcn/ui

Atmosphere is a shadcn/ui theme built around a muted blue primary color (#67829e) with muted orange accents (#9e8267). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted blue primary (#67829e) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#fbfcfewhite
#030507black
Foreground
#000000black
#fcfcfdwhite
Card
#f7fafdghostwhite
#04080bblack
Card foreground
#000000black
#ffffffwhite
Popover
#f7fafdghostwhite
#04080bblack
Popover foreground
#000000black
#ffffffwhite
Primary
#67829eslategray
#67829eslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#9e8267gray
#9e8267gray
Secondary foreground
#000000black
#000000black
Muted
#e9dbcegainsboro
#312416black
Muted foreground
#585450dimgray
#afaba7darkgray
Accent
#9e8267gray
#9e8267gray
Accent foreground
#000000black
#000000black
Destructive
#c54002firebrick
#e34a02orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#67829eslategray
#67829eslategray

Contrast

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

Light mode
Text on background20.51:1AAA
Text on card20.02:1AAA
Primary button3.99:1AA Large
Secondary button5.83:1AA
Muted text5.54:1AA
Accent5.83:1AA
Destructive5.12:1AA
Dark mode
Text on background19.90:1AAA
Text on card20.12:1AAA
Primary button3.99:1AA Large
Secondary button5.83:1AA
Muted text6.61:1AA
Accent5.83:1AA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 247.848);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.9 0.024 67.521);
  --muted-foreground: oklch(0.449 0.009 67.603);
  --popover: oklch(0.983 0.005 247.876);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.005 247.876);
  --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.596 0.053 248.728);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.625 0.052 66.642);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.625 0.052 66.642);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.557 0.179 38.641);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.596 0.053 248.728);
  --chart-1: oklch(0.596 0.053 248.728);
  --chart-2: oklch(0.625 0.052 66.642);
  --chart-3: oklch(0.625 0.052 66.642);
  --chart-4: oklch(0.649 0.048 66.803);
  --chart-5: oklch(0.595 0.06 248.865);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.113 0.009 241.747);
  --foreground: oklch(0.992 0.001 247.833);
  --muted: oklch(0.271 0.031 65.888);
  --muted-foreground: oklch(0.743 0.008 67.707);
  --popover: oklch(0.129 0.011 241.915);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.129 0.011 241.915);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.596 0.053 248.728);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.625 0.052 66.642);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.625 0.052 66.642);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.618 0.2 38.308);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.596 0.053 248.728);
  --chart-1: oklch(0.596 0.053 248.728);
  --chart-2: oklch(0.625 0.052 66.642);
  --chart-3: oklch(0.625 0.052 66.642);
  --chart-4: oklch(0.649 0.048 66.803);
  --chart-5: oklch(0.595 0.06 248.865);
}