Oblong for shadcn/ui

Oblong is a shadcn/ui theme built around a vivid green primary color (#28eb49) with vivid teal accents (#28ebaa). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#28eb49) on a green-tinted background (#060e08).

Color palette

TokenLightDark
Background
#ffffffwhite
#060e08black
Foreground
#010402black
#fbfdfcwhite
Card
#ffffffwhite
#060e08black
Card foreground
#010402black
#fbfdfcwhite
Popover
#ffffffwhite
#060e08black
Popover foreground
#010402black
#fbfdfcwhite
Primary
#28eb49limegreen
#28eb49limegreen
Primary foreground
#064110darkgreen
#064110darkgreen
Secondary
#69eb28lawngreen
#69eb28lawngreen
Secondary foreground
#1a4106darkgreen
#1a4106darkgreen
Muted
#dde1dagainsboro
#20251eblack
Muted foreground
#586652dimgray
#a0ad99darkgray
Accent
#28ebaamediumspringgreen
#28ebaamediumspringgreen
Accent foreground
#06412edarkslategray
#06412edarkslategray
Destructive
#a12c12brown
#e74723chocolate
Destructive foreground
#fcece8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#28eb49limegreen
#28eb49limegreen

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button7.38:1AAA
Secondary button7.50:1AAA
Muted text4.62:1AA
Accent7.52:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.13:1AAA
Primary button7.38:1AAA
Secondary button7.50:1AAA
Muted text6.65:1AA
Accent7.52:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.018 149.738);
  --muted: oklch(0.905 0.011 134.888);
  --muted-foreground: oklch(0.492 0.035 135.204);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.098 0.018 149.738);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.098 0.018 149.738);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.82 0.249 144.699);
  --primary-foreground: oklch(0.329 0.098 145.09);
  --secondary: oklch(0.834 0.246 138.158);
  --secondary-foreground: oklch(0.335 0.096 137.778);
  --accent: oklch(0.835 0.172 163.78);
  --accent-foreground: oklch(0.335 0.067 164.564);
  --destructive: oklch(0.472 0.157 33.714);
  --destructive-foreground: oklch(0.955 0.019 32.673);
  --ring: oklch(0.82 0.249 144.699);
  --chart-1: oklch(0.82 0.249 144.699);
  --chart-2: oklch(0.834 0.246 138.158);
  --chart-3: oklch(0.835 0.172 163.78);
  --chart-4: oklch(0.841 0.237 137.701);
  --chart-5: oklch(0.829 0.255 144.55);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.019 149.778);
  --foreground: oklch(0.993 0.003 150.778);
  --muted: oklch(0.256 0.015 135.132);
  --muted-foreground: oklch(0.732 0.032 135.051);
  --popover: oklch(0.153 0.019 149.778);
  --popover-foreground: oklch(0.993 0.003 150.778);
  --card: oklch(0.153 0.019 149.778);
  --card-foreground: oklch(0.993 0.003 150.778);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.82 0.249 144.699);
  --primary-foreground: oklch(0.329 0.098 145.09);
  --secondary: oklch(0.834 0.246 138.158);
  --secondary-foreground: oklch(0.335 0.096 137.778);
  --accent: oklch(0.835 0.172 163.78);
  --accent-foreground: oklch(0.335 0.067 164.564);
  --destructive: oklch(0.622 0.202 33.836);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.82 0.249 144.699);
  --chart-1: oklch(0.82 0.249 144.699);
  --chart-2: oklch(0.834 0.246 138.158);
  --chart-3: oklch(0.835 0.172 163.78);
  --chart-4: oklch(0.841 0.237 137.701);
  --chart-5: oklch(0.829 0.255 144.55);
}