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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.52:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 9.55:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 6.72:1 | AA |
| Accent | 11.45:1 | AAA |
| Destructive | 6.76:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 9.55:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 7.99:1 | AAA |
| Accent | 11.45:1 | AAA |
| Destructive | 4.05:1 | AA Large |
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);
}