Globe for shadcn/ui

Globe is a shadcn/ui theme built around a light purple primary color (#dea9e0) with light pink accents (#e0a9c6). The light mode uses a neutral background (#fcf7fc). Dark mode keeps the light purple primary (#dea9e0) on a neutral background (#080208).

Color palette

TokenLightDark
Background
#fcf7fcsnow
#080208black
Foreground
#110311black
#f8f6f9whitesmoke
Card
#fbf4fbghostwhite
#0c040cblack
Card foreground
#0d020dblack
#fbf9fbsnow
Popover
#fbf4fbghostwhite
#0c040cblack
Popover foreground
#0d020dblack
#fbf9fbsnow
Primary
#dea9e0plum
#dea9e0plum
Primary foreground
#3e1740darkslategray
#3e1740darkslategray
Secondary
#c3a9e0plum
#c3a9e0plum
Secondary foreground
#2a1740midnightblue
#2a1740midnightblue
Muted
#e8e2eelavender
#17111dblack
Muted foreground
#545058dimgray
#aba7afdarkgray
Accent
#e0a9c6plum
#e0a9c6plum
Accent foreground
#40172ddarkslategray
#40172ddarkslategray
Destructive
#6b0401maroon
#fe3b34tomato
Destructive foreground
#ffa29flightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dea9e0plum
#dea9e0plum

Contrast

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

Light mode
Text on background19.05:1AAA
Text on card18.79:1AAA
Primary button7.73:1AAA
Secondary button7.75:1AAA
Muted text6.19:1AA
Accent7.72:1AAA
Destructive6.66:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.35:1AAA
Primary button7.73:1AAA
Secondary button7.75:1AAA
Muted text7.84:1AAA
Accent7.72:1AAA
Destructive3.56: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.983 0.008 324.671);
  --foreground: oklch(0.137 0.042 326.467);
  --muted: oklch(0.92 0.018 306.876);
  --muted-foreground: oklch(0.438 0.014 306.708);
  --popover: oklch(0.974 0.012 324.698);
  --popover-foreground: oklch(0.122 0.037 326.549);
  --card: oklch(0.974 0.012 324.698);
  --card-foreground: oklch(0.122 0.037 326.549);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.801 0.096 325.339);
  --primary-foreground: oklch(0.283 0.086 326.254);
  --secondary: oklch(0.775 0.082 305.812);
  --secondary-foreground: oklch(0.253 0.076 302.909);
  --accent: oklch(0.794 0.075 345.674);
  --accent-foreground: oklch(0.275 0.07 349.502);
  --destructive: oklch(0.333 0.133 29.884);
  --destructive-foreground: oklch(0.804 0.111 21.964);
  --ring: oklch(0.801 0.096 325.339);
  --chart-1: oklch(0.801 0.096 325.339);
  --chart-2: oklch(0.775 0.082 305.812);
  --chart-3: oklch(0.794 0.075 345.674);
  --chart-4: oklch(0.805 0.071 306.035);
  --chart-5: oklch(0.8 0.102 325.382);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.024 326.189);
  --foreground: oklch(0.976 0.004 324.645);
  --muted: oklch(0.19 0.026 305.408);
  --muted-foreground: oklch(0.733 0.013 306.899);
  --popover: oklch(0.124 0.028 326.12);
  --popover-foreground: oklch(0.984 0.003 324.636);
  --card: oklch(0.124 0.028 326.12);
  --card-foreground: oklch(0.984 0.003 324.636);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.801 0.096 325.339);
  --primary-foreground: oklch(0.283 0.086 326.254);
  --secondary: oklch(0.775 0.082 305.812);
  --secondary-foreground: oklch(0.253 0.076 302.909);
  --accent: oklch(0.794 0.075 345.674);
  --accent-foreground: oklch(0.275 0.07 349.502);
  --destructive: oklch(0.653 0.231 27.835);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.801 0.096 325.339);
  --chart-1: oklch(0.801 0.096 325.339);
  --chart-2: oklch(0.775 0.082 305.812);
  --chart-3: oklch(0.794 0.075 345.674);
  --chart-4: oklch(0.805 0.071 306.035);
  --chart-5: oklch(0.8 0.102 325.382);
}