Forceful is a shadcn/ui theme built around an indigo primary color (#5054e2) with muted light indigo accents (#d3d4de). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the indigo primary (#5054e2) on an indigo-tinted background (#05050a).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #05050ablack |
| Foreground | #000000black | #f9f9fbghostwhite |
| Card | #f4f5fawhitesmoke | #07070eblack |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #f4f5fawhitesmoke | #07070eblack |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #5054e2royalblue | #5054e2royalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #eaeaeclavender | #19191fblack |
| Secondary foreground | #4e4e56darkslategray | #acadbedarkgray |
| Muted | #d0d0e7gainsboro | #18192fblack |
| Muted foreground | #424242darkslategray | #bdbdbdsilver |
| Accent | #d3d4delightgrey | #242433darkslategray |
| Accent foreground | #373749darkslategray | #babacfsilver |
| Destructive | #7b2809saddlebrown | #da4610chocolate |
| Destructive foreground | #facdbdpeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5054e2royalblue | #5054e2royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 5.64:1 | AA |
| Secondary button | 6.83:1 | AA |
| Muted text | 6.63:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 6.75:1 | AA |
| Text on background | 19.31:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 5.64:1 | AA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 9.18:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use Forceful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.005 284.716);
--foreground: oklch(0 0 0);
--muted: oklch(0.865 0.031 284.15);
--muted-foreground: oklch(0.38 0 180);
--popover: oklch(0.97 0.008 284.668);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.97 0.008 284.668);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.531 0.211 275.058);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.936 0.003 284.758);
--secondary-foreground: oklch(0.426 0.013 284.259);
--accent: oklch(0.872 0.014 284.518);
--accent-foreground: oklch(0.345 0.03 283.158);
--destructive: oklch(0.399 0.122 37.941);
--destructive-foreground: oklch(0.883 0.056 40.956);
--ring: oklch(0.531 0.211 275.058);
--chart-1: oklch(0.531 0.211 275.058);
--chart-2: oklch(0.936 0.003 284.758);
--chart-3: oklch(0.872 0.014 284.518);
--chart-4: oklch(0.96 0.002 284.778);
--chart-5: oklch(0.527 0.219 274.467);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.013 282.332);
--foreground: oklch(0.982 0.003 284.749);
--muted: oklch(0.224 0.044 280.726);
--muted-foreground: oklch(0.797 0 180);
--popover: oklch(0.132 0.015 282.315);
--popover-foreground: oklch(0.991 0.002 284.779);
--card: oklch(0.132 0.015 282.315);
--card-foreground: oklch(0.991 0.002 284.779);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.531 0.211 275.058);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.216 0.013 283.717);
--secondary-foreground: oklch(0.752 0.024 284.22);
--accent: oklch(0.267 0.028 282.788);
--accent-foreground: oklch(0.796 0.029 284.155);
--destructive: oklch(0.6 0.193 37.128);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.531 0.211 275.058);
--chart-1: oklch(0.531 0.211 275.058);
--chart-2: oklch(0.216 0.013 283.717);
--chart-3: oklch(0.267 0.028 282.788);
--chart-4: oklch(0.246 0.016 283.622);
--chart-5: oklch(0.527 0.219 274.467);
}