Forceful for shadcn/ui

Forceful is a shadcn/ui theme built around a near-white primary color (#f9fbf9) with muted light green accents (#c4d9c4). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the near-white primary (#f9fbf9) on a green-tinted background (#041004).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#041004black
Foreground
#051005black
#fcfdfcwhite
Card
#fcfdfcwhite
#041004black
Card foreground
#051005black
#fcfdfcwhite
Popover
#fcfdfcwhite
#041004black
Popover foreground
#051005black
#fcfdfcwhite
Primary
#f9fbf9mintcream
#f9fbf9mintcream
Primary foreground
#283428darkslategray
#283428darkslategray
Secondary
#d6e1d6gainsboro
#1f2320black
Secondary foreground
#384d38darkslategray
#b7beb7silver
Muted
#e5ebe5gainsboro
#141a14black
Muted foreground
#506d51darkolivegreen
#92af93darkseagreen
Accent
#c4d9c4lightgrey
#324333darkslategray
Accent foreground
#2a412adarkslategray
#cedacelightgrey
Destructive
#c34813chocolate
#d14d15chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9fbf9mintcream
#f9fbf9mintcream

Contrast

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

Light mode
Text on background19.03:1AAA
Text on card19.03:1AAA
Primary button12.50:1AAA
Secondary button6.81:1AA
Muted text4.75:1AA
Accent7.46:1AAA
Destructive4.93:1AA
Dark mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button12.50:1AAA
Secondary button8.39:1AAA
Muted text7.40:1AAA
Accent7.32:1AAA
Destructive4.39: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.993 0.003 146.03);
  --foreground: oklch(0.156 0.031 144.392);
  --muted: oklch(0.934 0.009 145.973);
  --muted-foreground: oklch(0.502 0.055 145.114);
  --popover: oklch(0.993 0.003 146.03);
  --popover-foreground: oklch(0.156 0.031 144.392);
  --card: oklch(0.993 0.003 146.03);
  --card-foreground: oklch(0.156 0.031 144.392);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.985 0.002 146.035);
  --primary-foreground: oklch(0.31 0.026 145.333);
  --secondary: oklch(0.898 0.019 145.876);
  --secondary-foreground: oklch(0.396 0.044 145.104);
  --accent: oklch(0.864 0.037 145.703);
  --accent-foreground: oklch(0.35 0.049 144.814);
  --destructive: oklch(0.564 0.168 39.818);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.985 0.002 146.035);
  --chart-1: oklch(0.985 0.002 146.035);
  --chart-2: oklch(0.898 0.019 145.876);
  --chart-3: oklch(0.864 0.037 145.703);
  --chart-4: oklch(0.92 0.015 145.919);
  --chart-5: oklch(0.986 0.003 146.031);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.033 144.267);
  --foreground: oklch(0.993 0.002 146.036);
  --muted: oklch(0.209 0.013 145.513);
  --muted-foreground: oklch(0.724 0.051 145.466);
  --popover: oklch(0.157 0.033 144.267);
  --popover-foreground: oklch(0.993 0.002 146.036);
  --card: oklch(0.157 0.033 144.267);
  --card-foreground: oklch(0.993 0.002 146.036);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.985 0.002 146.035);
  --primary-foreground: oklch(0.31 0.026 145.333);
  --secondary: oklch(0.251 0.008 145.799);
  --secondary-foreground: oklch(0.793 0.012 145.929);
  --accent: oklch(0.363 0.035 145.238);
  --accent-foreground: oklch(0.875 0.021 145.858);
  --destructive: oklch(0.593 0.178 39.727);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.985 0.002 146.035);
  --chart-1: oklch(0.985 0.002 146.035);
  --chart-2: oklch(0.251 0.008 145.799);
  --chart-3: oklch(0.363 0.035 145.238);
  --chart-4: oklch(0.283 0.009 145.783);
  --chart-5: oklch(0.986 0.003 146.031);
}