Focused for shadcn/ui

Focused is a shadcn/ui theme built around a teal primary color (#78bfa9) with pink accents (#bf788e). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#78bfa9) on a teal-tinted background (#060e0c).

Color palette

TokenLightDark
Background
#ffffffwhite
#060e0cblack
Foreground
#06140fblack
#ffffffwhite
Card
#fcfcfcsnow
#08120fblack
Card foreground
#04100cblack
#ffffffwhite
Popover
#ffffffwhite
#060e0cblack
Popover foreground
#06140fblack
#ffffffwhite
Primary
#78bfa9mediumaquamarine
#78bfa9mediumaquamarine
Primary foreground
#020303black
#020303black
Secondary
#bf788erosybrown
#bf788erosybrown
Secondary foreground
#030202black
#030202black
Muted
#e7d5dagainsboro
#2a181eblack
Muted foreground
#4d3d42darkslategray
#c2b2b7silver
Accent
#bf788erosybrown
#bf788erosybrown
Accent foreground
#030202black
#030202black
Destructive
#b9160efirebrick
#ee2117crimson
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#78bfa9mediumaquamarine
#78bfa9mediumaquamarine

Contrast

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

Light mode
Text on background18.83:1AAA
Text on card18.94:1AAA
Primary button9.68:1AAA
Secondary button6.20:1AA
Muted text7.22:1AAA
Accent6.20:1AA
Destructive6.37:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.04:1AAA
Primary button9.68:1AAA
Secondary button6.20:1AA
Muted text8.28:1AAA
Accent6.20:1AA
Destructive4.32: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.176 0.023 171.769);
  --muted: oklch(0.888 0.022 356.318);
  --muted-foreground: oklch(0.378 0.025 357.417);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.176 0.023 171.769);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.159 0.02 173.143);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.752 0.08 171.961);
  --primary-foreground: oklch(0.096 0.008 175.76);
  --secondary: oklch(0.654 0.094 359.547);
  --secondary-foreground: oklch(0.087 0.009 355.426);
  --accent: oklch(0.654 0.094 359.547);
  --accent-foreground: oklch(0.087 0.009 355.426);
  --destructive: oklch(0.501 0.194 29.355);
  --destructive-foreground: oklch(0.99 0.004 20.946);
  --ring: oklch(0.752 0.08 171.961);
  --chart-1: oklch(0.752 0.08 171.961);
  --chart-2: oklch(0.654 0.094 359.547);
  --chart-3: oklch(0.654 0.094 359.547);
  --chart-4: oklch(0.681 0.086 359.062);
  --chart-5: oklch(0.758 0.085 171.662);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.015 173.745);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.236 0.031 359.263);
  --muted-foreground: oklch(0.779 0.02 356.352);
  --popover: oklch(0.155 0.015 173.745);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.17 0.017 172.552);
  --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.752 0.08 171.961);
  --primary-foreground: oklch(0.096 0.008 175.76);
  --secondary: oklch(0.654 0.094 359.547);
  --secondary-foreground: oklch(0.087 0.009 355.426);
  --accent: oklch(0.654 0.094 359.547);
  --accent-foreground: oklch(0.087 0.009 355.426);
  --destructive: oklch(0.606 0.234 29.327);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.752 0.08 171.961);
  --chart-1: oklch(0.752 0.08 171.961);
  --chart-2: oklch(0.654 0.094 359.547);
  --chart-3: oklch(0.654 0.094 359.547);
  --chart-4: oklch(0.681 0.086 359.062);
  --chart-5: oklch(0.758 0.085 171.662);
}