Focused for shadcn/ui

Focused is a shadcn/ui theme built around a vivid deep yellow primary color (#191400) with vivid deep green accents (#121900). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep yellow primary (#191400) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040401black
#f9f8f6whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#040401black
#f9f8f6whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#040401black
#f9f8f6whitesmoke
Primary
#191400black
#191400black
Primary foreground
#e2b603orange
#e2b603orange
Secondary
#190800black
#190800black
Secondary foreground
#fc834fcoral
#fc834fcoral
Muted
#e5e2e0gainsboro
#1f1b1ablack
Muted foreground
#554944darkolivegreen
#bbafaadarkgray
Accent
#121900black
#121900black
Accent foreground
#9fe203chartreuse
#9fe203chartreuse
Destructive
#8b210edarkred
#e93e20orangered
Destructive foreground
#fad7d1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#191400black
#191400black

Contrast

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

Light mode
Text on background20.52:1AAA
Text on card20.52:1AAA
Primary button9.55:1AAA
Secondary button7.90:1AAA
Muted text6.72:1AA
Accent11.45:1AAA
Destructive6.76:1AA
Dark mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button9.55:1AAA
Secondary button7.90:1AAA
Muted text7.99:1AAA
Accent11.45:1AAA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.102 0.015 100.108);
  --muted: oklch(0.915 0.004 44.933);
  --muted-foreground: oklch(0.416 0.018 44.595);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.102 0.015 100.108);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.102 0.015 100.108);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.192 0.039 97.505);
  --primary-foreground: oklch(0.792 0.161 90.832);
  --secondary: oklch(0.159 0.038 54.203);
  --secondary-foreground: oklch(0.738 0.162 42.835);
  --accent: oklch(0.199 0.048 123.273);
  --accent-foreground: oklch(0.836 0.218 128.051);
  --destructive: oklch(0.421 0.145 32.28);
  --destructive-foreground: oklch(0.907 0.041 29.692);
  --ring: oklch(0.192 0.039 97.505);
  --chart-1: oklch(0.192 0.039 97.505);
  --chart-2: oklch(0.159 0.038 54.203);
  --chart-3: oklch(0.199 0.048 123.273);
  --chart-4: oklch(0.199 0.053 47.411);
  --chart-5: oklch(0.193 0.04 97.564);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.003 95.076);
  --muted: oklch(0.226 0.006 44.719);
  --muted-foreground: oklch(0.763 0.015 44.785);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.98 0.003 95.076);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.98 0.003 95.076);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.192 0.039 97.505);
  --primary-foreground: oklch(0.792 0.161 90.832);
  --secondary: oklch(0.159 0.038 54.203);
  --secondary-foreground: oklch(0.738 0.162 42.835);
  --accent: oklch(0.199 0.048 123.273);
  --accent-foreground: oklch(0.836 0.218 128.051);
  --destructive: oklch(0.618 0.211 32.302);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.192 0.039 97.505);
  --chart-1: oklch(0.192 0.039 97.505);
  --chart-2: oklch(0.159 0.038 54.203);
  --chart-3: oklch(0.199 0.048 123.273);
  --chart-4: oklch(0.199 0.053 47.411);
  --chart-5: oklch(0.193 0.04 97.564);
}