Forceful for shadcn/ui

Forceful is a shadcn/ui theme built around a near-black primary color (#1c1c1c) with near-black accents (#1c1c1c). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#1c1c1c) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#ffffffwhite
#030202black
Foreground
#120303black
#ffffffwhite
Card
#fcfcfcsnow
#070303black
Card foreground
#0d0202black
#ffffffwhite
Popover
#fcfcfcsnow
#070303black
Popover foreground
#0d0202black
#ffffffwhite
Primary
#1c1c1cblack
#1c1c1cblack
Primary foreground
#b5b5b5silver
#b5b5b5silver
Secondary
#1c1c1cblack
#1c1c1cblack
Secondary foreground
#b5b5b5silver
#b5b5b5silver
Muted
#e2d5d5gainsboro
#2a1d1dblack
Muted foreground
#685e5edimgray
#a19797darkgray
Accent
#1c1c1cblack
#1c1c1cblack
Accent foreground
#b5b5b5silver
#b5b5b5silver
Destructive
#9e2f00saddlebrown
#ff540aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1c1c1cblack
#1c1c1cblack

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card20.01:1AAA
Primary button8.30:1AAA
Secondary button8.30:1AAA
Muted text4.37:1AA Large
Accent8.30:1AAA
Destructive7.31:1AAA
Dark mode
Text on background20.74:1AAA
Text on card20.49:1AAA
Primary button8.30:1AAA
Secondary button8.30:1AAA
Muted text5.71:1AA
Accent8.30:1AAA
Destructive3.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.128 0.033 22.808);
  --muted: oklch(0.882 0.015 17.442);
  --muted-foreground: oklch(0.493 0.013 17.595);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.115 0.028 22.562);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.115 0.028 22.562);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.227 0 164.055);
  --primary-foreground: oklch(0.773 0 180);
  --secondary: oklch(0.227 0 164.055);
  --secondary-foreground: oklch(0.773 0 180);
  --accent: oklch(0.227 0 164.055);
  --accent-foreground: oklch(0.773 0 180);
  --destructive: oklch(0.471 0.154 38.099);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.227 0 164.055);
  --chart-1: oklch(0.227 0 164.055);
  --chart-2: oklch(0.227 0 164.055);
  --chart-3: oklch(0.227 0 164.055);
  --chart-4: oklch(0.259 0 167.471);
  --chart-5: oklch(0.225 0.003 17.351);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.009 18.982);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.247 0.021 18.714);
  --muted-foreground: oklch(0.684 0.012 17.444);
  --popover: oklch(0.108 0.011 18.982);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.108 0.011 18.982);
  --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.227 0 164.055);
  --primary-foreground: oklch(0.773 0 180);
  --secondary: oklch(0.227 0 164.055);
  --secondary-foreground: oklch(0.773 0 180);
  --accent: oklch(0.227 0 164.055);
  --accent-foreground: oklch(0.773 0 180);
  --destructive: oklch(0.675 0.218 37.932);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.227 0 164.055);
  --chart-1: oklch(0.227 0 164.055);
  --chart-2: oklch(0.227 0 164.055);
  --chart-3: oklch(0.227 0 164.055);
  --chart-4: oklch(0.259 0 167.471);
  --chart-5: oklch(0.225 0.003 17.351);
}