Globe for shadcn/ui

Globe is a shadcn/ui theme built around a deep green primary color (#43552a) with deep pink accents (#552a43). The light mode uses a neutral background (#fafcf8). Dark mode keeps the deep green primary (#43552a) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fafcf8snow
#030401black
Foreground
#050802black
#ffffffwhite
Card
#f8faf4whitesmoke
#050803black
Card foreground
#030401black
#ffffffwhite
Popover
#fafcf8snow
#030401black
Popover foreground
#050802black
#ffffffwhite
Primary
#43552adarkolivegreen
#43552adarkolivegreen
Primary foreground
#dae6ccgainsboro
#dae6ccgainsboro
Secondary
#2a4355darkslategray
#2a4355darkslategray
Secondary foreground
#ccdae6gainsboro
#ccdae6gainsboro
Muted
#d7e2eagainsboro
#152028black
Muted foreground
#5c646adimgray
#959ca3darkgray
Accent
#552a43darkslategray
#552a43darkslategray
Accent foreground
#e6ccdagainsboro
#e6ccdagainsboro
Destructive
#8a370asaddlebrown
#db570fchocolate
Destructive foreground
#fbdccbbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#43552adarkolivegreen
#43552adarkolivegreen

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.60:1AAA
Primary button6.26:1AA
Secondary button7.27:1AAA
Muted text4.56:1AA
Accent7.77:1AAA
Destructive6.16:1AA
Dark mode
Text on background20.57:1AAA
Text on card20.17:1AAA
Primary button6.26:1AA
Secondary button7.27:1AAA
Muted text5.96:1AA
Accent7.77:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 125.818);
  --foreground: oklch(0.126 0.018 124.95);
  --muted: oklch(0.906 0.016 240.53);
  --muted-foreground: oklch(0.5 0.014 240.667);
  --popover: oklch(0.989 0.006 125.818);
  --popover-foreground: oklch(0.126 0.018 124.95);
  --card: oklch(0.983 0.009 125.858);
  --card-foreground: oklch(0.1 0.014 124.95);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.424 0.07 128.3);
  --primary-foreground: oklch(0.909 0.037 126.287);
  --secondary: oklch(0.37 0.044 242.35);
  --secondary-foreground: oklch(0.882 0.022 240.635);
  --accent: oklch(0.352 0.072 346.38);
  --accent-foreground: oklch(0.87 0.035 342.743);
  --destructive: oklch(0.446 0.125 43.273);
  --destructive-foreground: oklch(0.915 0.042 50.103);
  --ring: oklch(0.424 0.07 128.3);
  --chart-1: oklch(0.424 0.07 128.3);
  --chart-2: oklch(0.37 0.044 242.35);
  --chart-3: oklch(0.352 0.072 346.38);
  --chart-4: oklch(0.399 0.049 242.403);
  --chart-5: oklch(0.429 0.075 128.518);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.013 124.977);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.237 0.022 241.761);
  --muted-foreground: oklch(0.69 0.013 240.538);
  --popover: oklch(0.1 0.013 124.977);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.017 124.977);
  --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.424 0.07 128.3);
  --primary-foreground: oklch(0.909 0.037 126.287);
  --secondary: oklch(0.37 0.044 242.35);
  --secondary-foreground: oklch(0.882 0.022 240.635);
  --accent: oklch(0.352 0.072 346.38);
  --accent-foreground: oklch(0.87 0.035 342.743);
  --destructive: oklch(0.621 0.181 42.346);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.424 0.07 128.3);
  --chart-1: oklch(0.424 0.07 128.3);
  --chart-2: oklch(0.37 0.044 242.35);
  --chart-3: oklch(0.352 0.072 346.38);
  --chart-4: oklch(0.399 0.049 242.403);
  --chart-5: oklch(0.429 0.075 128.518);
}