Globe for shadcn/ui

Globe is a shadcn/ui theme built around a muted blue primary color (#3b5263) with muted orange accents (#634c3b). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted blue primary (#3b5263) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#010304black
Foreground
#010305black
#ffffffwhite
Card
#f8fafcghostwhite
#030508black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fafcghostwhite
#030508black
Popover foreground
#000000black
#ffffffwhite
Primary
#3b5263darkslategray
#3b5263darkslategray
Primary foreground
#e2e9eelavender
#e2e9eelavender
Secondary
#634c3bdarkolivegreen
#634c3bdarkolivegreen
Secondary foreground
#eee7e2linen
#eee7e2linen
Muted
#f4f2f1whitesmoke
#0e0d0bblack
Muted foreground
#544e4adarkslategray
#b5afabdarkgray
Accent
#634c3bdarkolivegreen
#634c3bdarkolivegreen
Accent foreground
#eee7e2linen
#eee7e2linen
Destructive
#8e2606saddlebrown
#e63d0aorangered
Destructive foreground
#fdd5c9bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3b5263darkslategray
#3b5263darkslategray

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card20.08:1AAA
Primary button6.67:1AA
Secondary button6.50:1AA
Muted text7.33:1AAA
Accent6.50:1AA
Destructive6.40:1AA
Dark mode
Text on background20.68:1AAA
Text on card20.38:1AAA
Primary button6.67:1AA
Secondary button6.50:1AA
Muted text8.97:1AAA
Accent6.50:1AA
Destructive4.16: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.992 0.002 240.305);
  --foreground: oklch(0.09 0.014 229.953);
  --muted: oklch(0.962 0.002 60.25);
  --muted-foreground: oklch(0.429 0.01 59.97);
  --popover: oklch(0.984 0.003 240.326);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.003 240.326);
  --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.426 0.04 241.759);
  --primary-foreground: oklch(0.93 0.01 240.427);
  --secondary: oklch(0.437 0.041 58.85);
  --secondary-foreground: oklch(0.933 0.01 60.14);
  --accent: oklch(0.437 0.041 58.85);
  --accent-foreground: oklch(0.933 0.01 60.14);
  --destructive: oklch(0.431 0.145 35.419);
  --destructive-foreground: oklch(0.904 0.048 37.596);
  --ring: oklch(0.426 0.04 241.759);
  --chart-1: oklch(0.426 0.04 241.759);
  --chart-2: oklch(0.437 0.041 58.85);
  --chart-3: oklch(0.437 0.041 58.85);
  --chart-4: oklch(0.465 0.044 58.827);
  --chart-5: oklch(0.426 0.044 241.976);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.091 0.009 233.662);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.158 0.004 59.961);
  --muted-foreground: oklch(0.758 0.008 60.13);
  --popover: oklch(0.114 0.011 233.662);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.114 0.011 233.662);
  --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.426 0.04 241.759);
  --primary-foreground: oklch(0.93 0.01 240.427);
  --secondary: oklch(0.437 0.041 58.85);
  --secondary-foreground: oklch(0.933 0.01 60.14);
  --accent: oklch(0.437 0.041 58.85);
  --accent-foreground: oklch(0.933 0.01 60.14);
  --destructive: oklch(0.611 0.212 34.692);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.426 0.04 241.759);
  --chart-1: oklch(0.426 0.04 241.759);
  --chart-2: oklch(0.437 0.041 58.85);
  --chart-3: oklch(0.437 0.041 58.85);
  --chart-4: oklch(0.465 0.044 58.827);
  --chart-5: oklch(0.426 0.044 241.976);
}