Latitude for shadcn/ui

Latitude is a shadcn/ui theme built around a vivid light green primary color (#97f29a) with vivid light purple accents (#f297ee). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#97f29a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#f8fcf8mintcream
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#f8fcf8mintcream
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#f8fcf8mintcream
Primary
#97f29apalegreen
#97f29apalegreen
Primary foreground
#0a4d0cdarkgreen
#0a4d0cdarkgreen
Secondary
#f297eeviolet
#f297eeviolet
Secondary foreground
#4d0a4bindigo
#4d0a4bindigo
Muted
#e3d8e3gainsboro
#271c26black
Muted foreground
#514350darkslategray
#bcaebbsilver
Accent
#f297eeviolet
#f297eeviolet
Accent foreground
#4d0a4bindigo
#4d0a4bindigo
Destructive
#cd3b0efirebrick
#f16237tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#97f29apalegreen
#97f29apalegreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.41:1AAA
Secondary button7.14:1AAA
Muted text6.71:1AA
Accent7.14:1AAA
Destructive4.97:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button7.41:1AAA
Secondary button7.14:1AAA
Muted text7.76:1AAA
Accent7.14:1AAA
Destructive6.55:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.895 0.019 326.724);
  --muted-foreground: oklch(0.402 0.027 327.113);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.882 0.147 144.938);
  --primary-foreground: oklch(0.366 0.114 143.128);
  --secondary: oklch(0.797 0.154 328.068);
  --secondary-foreground: oklch(0.3 0.123 329.648);
  --accent: oklch(0.797 0.154 328.068);
  --accent-foreground: oklch(0.3 0.123 329.648);
  --destructive: oklch(0.566 0.19 35.349);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.882 0.147 144.938);
  --chart-1: oklch(0.882 0.147 144.938);
  --chart-2: oklch(0.797 0.154 328.068);
  --chart-3: oklch(0.797 0.154 328.068);
  --chart-4: oklch(0.822 0.134 327.847);
  --chart-5: oklch(0.884 0.152 144.881);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.007 146.483);
  --muted: oklch(0.243 0.026 327.431);
  --muted-foreground: oklch(0.767 0.023 326.802);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.007 146.483);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.987 0.007 146.483);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.882 0.147 144.938);
  --primary-foreground: oklch(0.366 0.114 143.128);
  --secondary: oklch(0.797 0.154 328.068);
  --secondary-foreground: oklch(0.3 0.123 329.648);
  --accent: oklch(0.797 0.154 328.068);
  --accent-foreground: oklch(0.3 0.123 329.648);
  --destructive: oklch(0.672 0.186 37.151);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.882 0.147 144.938);
  --chart-1: oklch(0.882 0.147 144.938);
  --chart-2: oklch(0.797 0.154 328.068);
  --chart-3: oklch(0.797 0.154 328.068);
  --chart-4: oklch(0.822 0.134 327.847);
  --chart-5: oklch(0.884 0.152 144.881);
}