Force is a shadcn/ui theme built around a red primary color (#e79283) with cyan accents (#83d8e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#e79283) on a red-tinted background (#0e0706).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0706black |
| Foreground | #170603black | #ffffffwhite |
| Card | #ffffffwhite | #0e0706black |
| Card foreground | #170603black | #ffffffwhite |
| Popover | #ffffffwhite | #0e0706black |
| Popover foreground | #170603black | #ffffffwhite |
| Primary | #e79283darksalmon | #e79283darksalmon |
| Primary foreground | #2f0f09black | #2f0f09black |
| Secondary | #83d8e7skyblue | #83d8e7skyblue |
| Secondary foreground | #09292fdarkslategray | #09292fdarkslategray |
| Muted | #d1dee0gainsboro | #1f2c2edarkslategray |
| Muted foreground | #556568dimgray | #97a7aadarkgray |
| Accent | #83d8e7skyblue | #83d8e7skyblue |
| Accent foreground | #09292fdarkslategray | #09292fdarkslategray |
| Destructive | #600f0bmaroon | #e12319crimson |
| Destructive foreground | #f5aca8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e79283darksalmon | #e79283darksalmon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 7.40:1 | AAA |
| Secondary button | 9.46:1 | AAA |
| Muted text | 4.42:1 | AA Large |
| Accent | 9.46:1 | AAA |
| Destructive | 7.20:1 | AAA |
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 7.40:1 | AAA |
| Secondary button | 9.46:1 | AAA |
| Muted text | 5.80:1 | AA |
| Accent | 9.46:1 | AAA |
| Destructive | 4.71:1 | AA |
Paste this into your globals.css to use Force in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.149 0.033 36.52);
--muted: oklch(0.892 0.014 209.435);
--muted-foreground: oklch(0.494 0.02 209.445);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.149 0.033 36.52);
--card: oklch(1 0 180);
--card-foreground: oklch(0.149 0.033 36.52);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.743 0.107 30.625);
--primary-foreground: oklch(0.219 0.055 31.947);
--secondary: oklch(0.834 0.085 209.996);
--secondary-foreground: oklch(0.262 0.038 211.454);
--accent: oklch(0.834 0.085 209.996);
--accent-foreground: oklch(0.262 0.038 211.454);
--destructive: oklch(0.32 0.115 28.638);
--destructive-foreground: oklch(0.813 0.087 22.527);
--ring: oklch(0.743 0.107 30.625);
--chart-1: oklch(0.743 0.107 30.625);
--chart-2: oklch(0.834 0.085 209.996);
--chart-3: oklch(0.834 0.085 209.996);
--chart-4: oklch(0.85 0.078 209.82);
--chart-5: oklch(0.743 0.112 30.701);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.014 32.569);
--foreground: oklch(1 0 180);
--muted: oklch(0.281 0.018 209.549);
--muted-foreground: oklch(0.718 0.019 209.429);
--popover: oklch(0.14 0.014 32.569);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.14 0.014 32.569);
--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.743 0.107 30.625);
--primary-foreground: oklch(0.219 0.055 31.947);
--secondary: oklch(0.834 0.085 209.996);
--secondary-foreground: oklch(0.262 0.038 211.454);
--accent: oklch(0.834 0.085 209.996);
--accent-foreground: oklch(0.262 0.038 211.454);
--destructive: oklch(0.583 0.222 29.214);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.743 0.107 30.625);
--chart-1: oklch(0.743 0.107 30.625);
--chart-2: oklch(0.834 0.085 209.996);
--chart-3: oklch(0.834 0.085 209.996);
--chart-4: oklch(0.85 0.078 209.82);
--chart-5: oklch(0.743 0.112 30.701);
}