Focused is a shadcn/ui theme built around a deep indigo primary color (#120f38) with deep green accents (#0f3812). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the deep indigo primary (#120f38) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #000000black |
| Foreground | #02020eblack | #fcfcfdwhite |
| Card | #fbfbfeghostwhite | #000000black |
| Card foreground | #02020eblack | #fcfcfdwhite |
| Popover | #fbfbfeghostwhite | #000000black |
| Popover foreground | #02020eblack | #fcfcfdwhite |
| Primary | #120f38midnightblue | #120f38midnightblue |
| Primary foreground | #9b96e3mediumpurple | #9b96e3mediumpurple |
| Secondary | #38120fblack | #38120fblack |
| Secondary foreground | #e39b96darksalmon | #e39b96darksalmon |
| Muted | #f4e7e6linen | #190c0bblack |
| Muted foreground | #4f4140darkslategray | #bfb1b0silver |
| Accent | #0f3812darkgreen | #0f3812darkgreen |
| Accent foreground | #46ce4flimegreen | #46ce4flimegreen |
| Destructive | #810e0emaroon | #e82c2ccrimson |
| Destructive foreground | #f9c8c8pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #120f38midnightblue | #120f38midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.97:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 8.05:1 | AAA |
| Accent | 6.36:1 | AA |
| Destructive | 7.07:1 | AAA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 9.23:1 | AAA |
| Accent | 6.36:1 | AA |
| Destructive | 4.36:1 | AA Large |
Paste this into your globals.css to use Focused in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 289.402);
--foreground: oklch(0.097 0.036 282.913);
--muted: oklch(0.938 0.015 22.393);
--muted-foreground: oklch(0.39 0.019 22.806);
--popover: oklch(0.989 0.004 289.402);
--popover-foreground: oklch(0.097 0.036 282.913);
--card: oklch(0.989 0.004 289.402);
--card-foreground: oklch(0.097 0.036 282.913);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.203 0.077 279.942);
--primary-foreground: oklch(0.708 0.111 286.241);
--secondary: oklch(0.243 0.062 26.784);
--secondary-foreground: oklch(0.76 0.087 23.842);
--accent: oklch(0.303 0.08 144.354);
--accent-foreground: oklch(0.751 0.205 144.173);
--destructive: oklch(0.386 0.147 27.727);
--destructive-foreground: oklch(0.875 0.056 18.274);
--ring: oklch(0.203 0.077 279.942);
--chart-1: oklch(0.203 0.077 279.942);
--chart-2: oklch(0.243 0.062 26.784);
--chart-3: oklch(0.303 0.08 144.354);
--chart-4: oklch(0.273 0.073 27.075);
--chart-5: oklch(0.201 0.081 279.201);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.001 289.455);
--muted: oklch(0.172 0.024 24.24);
--muted-foreground: oklch(0.773 0.015 22.446);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.001 289.455);
--card: oklch(0 0 0);
--card-foreground: oklch(0.991 0.001 289.455);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.203 0.077 279.942);
--primary-foreground: oklch(0.708 0.111 286.241);
--secondary: oklch(0.243 0.062 26.784);
--secondary-foreground: oklch(0.76 0.087 23.842);
--accent: oklch(0.303 0.08 144.354);
--accent-foreground: oklch(0.751 0.205 144.173);
--destructive: oklch(0.602 0.221 27.083);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.203 0.077 279.942);
--chart-1: oklch(0.203 0.077 279.942);
--chart-2: oklch(0.243 0.062 26.784);
--chart-3: oklch(0.303 0.08 144.354);
--chart-4: oklch(0.273 0.073 27.075);
--chart-5: oklch(0.201 0.081 279.201);
}