Forceful for shadcn/ui

Forceful is a shadcn/ui theme built around a violet primary color (#852ed1) with teal accents (#2ed185). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the violet primary (#852ed1) on a violet-tinted background (#0a060e).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#0a060eblack
Foreground
#0b050fblack
#f7f6f9whitesmoke
Card
#fdfcfdwhite
#0a060eblack
Card foreground
#0b050fblack
#f7f6f9whitesmoke
Popover
#fdfcfdwhite
#0a060eblack
Popover foreground
#0b050fblack
#f7f6f9whitesmoke
Primary
#852ed1blueviolet
#852ed1blueviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d1852eperu
#d1852eperu
Secondary foreground
#000000black
#000000black
Muted
#ebdfd1gainsboro
#2e2214black
Muted foreground
#4b433adarkslategray
#c5bdb4silver
Accent
#2ed185mediumseagreen
#2ed185mediumseagreen
Accent foreground
#092a1bblack
#092a1bblack
Destructive
#c30e04firebrick
#fa2014red
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#852ed1blueviolet
#852ed1blueviolet

Contrast

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

Light mode
Text on background19.61:1AAA
Text on card19.61:1AAA
Primary button6.34:1AA
Secondary button7.10:1AAA
Muted text7.38:1AAA
Accent7.79:1AAA
Destructive6.00:1AA
Dark mode
Text on background18.64:1AAA
Text on card18.64:1AAA
Primary button6.34:1AA
Secondary button7.10:1AAA
Muted text8.34:1AAA
Accent7.79:1AAA
Destructive3.97:1AA Large

CSS variables

Paste this into your globals.css to use Forceful in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 309.761);
  --foreground: oklch(0.131 0.027 309.625);
  --muted: oklch(0.909 0.023 71.217);
  --muted-foreground: oklch(0.388 0.019 70.948);
  --popover: oklch(0.991 0.002 309.761);
  --popover-foreground: oklch(0.131 0.027 309.625);
  --card: oklch(0.991 0.002 309.761);
  --card-foreground: oklch(0.131 0.027 309.625);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.516 0.231 303.017);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.682 0.135 64.791);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.763 0.17 156.991);
  --accent-foreground: oklch(0.255 0.048 159.662);
  --destructive: oklch(0.517 0.207 29.61);
  --destructive-foreground: oklch(0.989 0.005 20.953);
  --ring: oklch(0.516 0.231 303.017);
  --chart-1: oklch(0.516 0.231 303.017);
  --chart-2: oklch(0.682 0.135 64.791);
  --chart-3: oklch(0.763 0.17 156.991);
  --chart-4: oklch(0.699 0.129 66.083);
  --chart-5: oklch(0.516 0.238 302.531);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.021 309.601);
  --foreground: oklch(0.974 0.005 309.733);
  --muted: oklch(0.262 0.03 69.646);
  --muted-foreground: oklch(0.803 0.016 71.273);
  --popover: oklch(0.134 0.021 309.601);
  --popover-foreground: oklch(0.974 0.005 309.733);
  --card: oklch(0.134 0.021 309.601);
  --card-foreground: oklch(0.974 0.005 309.733);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.516 0.231 303.017);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.682 0.135 64.791);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.763 0.17 156.991);
  --accent-foreground: oklch(0.255 0.048 159.662);
  --destructive: oklch(0.628 0.245 29.408);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.516 0.231 303.017);
  --chart-1: oklch(0.516 0.231 303.017);
  --chart-2: oklch(0.682 0.135 64.791);
  --chart-3: oklch(0.763 0.17 156.991);
  --chart-4: oklch(0.699 0.129 66.083);
  --chart-5: oklch(0.516 0.238 302.531);
}