Latter for shadcn/ui

Latter is a shadcn/ui theme built around a vivid pink primary color (#8e1060) with vivid green accents (#108e3e). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid pink primary (#8e1060) on a pink-tinted background (#0a0508).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0508black
Foreground
#090106black
#ffffffwhite
Card
#ffffffwhite
#0a0508black
Card foreground
#090106black
#ffffffwhite
Popover
#ffffffwhite
#0a0508black
Popover foreground
#090106black
#ffffffwhite
Primary
#8e1060purple
#8e1060purple
Primary foreground
#fad6edmistyrose
#fad6edmistyrose
Secondary
#108e3eforestgreen
#108e3eforestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ddeee3gainsboro
#112217black
Muted foreground
#5a5e5bdimgray
#a1a5a3darkgray
Accent
#108e3eforestgreen
#108e3eforestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a43e0esaddlebrown
#ee763fcoral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8e1060purple
#8e1060purple

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button6.63:1AA
Secondary button4.21:1AA Large
Muted text5.45:1AA
Accent4.21:1AA Large
Destructive6.41:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button6.63:1AA
Secondary button4.21:1AA Large
Muted text6.67:1AA
Accent4.21:1AA Large
Destructive7.31:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.103 0.032 339.11);
  --muted: oklch(0.933 0.022 158.198);
  --muted-foreground: oklch(0.477 0.006 158.45);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.103 0.032 339.11);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.103 0.032 339.11);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.435 0.172 348.83);
  --primary-foreground: oklch(0.913 0.051 339.87);
  --secondary: oklch(0.567 0.155 148.944);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.567 0.155 148.944);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.5 0.146 40.934);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.435 0.172 348.83);
  --chart-1: oklch(0.435 0.172 348.83);
  --chart-2: oklch(0.567 0.155 148.944);
  --chart-3: oklch(0.567 0.155 148.944);
  --chart-4: oklch(0.607 0.167 148.84);
  --chart-5: oklch(0.438 0.175 349.218);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.013 338.858);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.232 0.03 155.492);
  --muted-foreground: oklch(0.718 0.005 158.558);
  --popover: oklch(0.127 0.013 338.858);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.127 0.013 338.858);
  --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.435 0.172 348.83);
  --primary-foreground: oklch(0.913 0.051 339.87);
  --secondary: oklch(0.567 0.155 148.944);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.567 0.155 148.944);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.697 0.164 43.727);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.435 0.172 348.83);
  --chart-1: oklch(0.435 0.172 348.83);
  --chart-2: oklch(0.567 0.155 148.944);
  --chart-3: oklch(0.567 0.155 148.944);
  --chart-4: oklch(0.607 0.167 148.84);
  --chart-5: oklch(0.438 0.175 349.218);
}