Offensive for shadcn/ui

Offensive is a shadcn/ui theme built around a vivid cyan primary color (#129daf) with vivid green accents (#9daf12). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the vivid cyan primary (#129daf) on a cyan-tinted background (#050e0f).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#050e0fblack
Foreground
#020708black
#f8fbfcghostwhite
Card
#fcfdfdwhite
#050e0fblack
Card foreground
#020708black
#f8fbfcghostwhite
Popover
#fcfdfdwhite
#050e0fblack
Popover foreground
#020708black
#f8fbfcghostwhite
Primary
#129daflightseagreen
#129daflightseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#af129dmediumvioletred
#af129dmediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#edd9eblavender
#261224black
Muted foreground
#50494fdarkslategray
#b6afb5darkgray
Accent
#9daf12yellowgreen
#9daf12yellowgreen
Accent foreground
#000000black
#000000black
Destructive
#bc460bfirebrick
#f37130tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#129daflightseagreen
#129daflightseagreen

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button3.24:1AA Large
Secondary button6.16:1AA
Muted text6.52:1AA
Accent8.60:1AAA
Destructive5.22:1AA
Dark mode
Text on background18.74:1AAA
Text on card18.74:1AAA
Primary button3.24:1AA Large
Secondary button6.16:1AA
Muted text8.19:1AAA
Accent8.60:1AAA
Destructive7.20:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 206.43);
  --foreground: oklch(0.123 0.013 203.52);
  --muted: oklch(0.906 0.032 329.542);
  --muted-foreground: oklch(0.415 0.012 329.463);
  --popover: oklch(0.993 0.002 206.43);
  --popover-foreground: oklch(0.123 0.013 203.52);
  --card: oklch(0.993 0.002 206.43);
  --card-foreground: oklch(0.123 0.013 203.52);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.639 0.108 209.678);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.524 0.225 334.243);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.716 0.161 117.095);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.549 0.164 41.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.639 0.108 209.678);
  --chart-1: oklch(0.639 0.108 209.678);
  --chart-2: oklch(0.524 0.225 334.243);
  --chart-3: oklch(0.716 0.161 117.095);
  --chart-4: oklch(0.554 0.238 334.274);
  --chart-5: oklch(0.645 0.109 209.926);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.015 205.396);
  --foreground: oklch(0.987 0.003 206.42);
  --muted: oklch(0.219 0.045 331.333);
  --muted-foreground: oklch(0.762 0.01 329.289);
  --popover: oklch(0.155 0.015 205.396);
  --popover-foreground: oklch(0.987 0.003 206.42);
  --card: oklch(0.155 0.015 205.396);
  --card-foreground: oklch(0.987 0.003 206.42);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.639 0.108 209.678);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.524 0.225 334.243);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.716 0.161 117.095);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.694 0.177 44.059);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.639 0.108 209.678);
  --chart-1: oklch(0.639 0.108 209.678);
  --chart-2: oklch(0.524 0.225 334.243);
  --chart-3: oklch(0.716 0.161 117.095);
  --chart-4: oklch(0.554 0.238 334.274);
  --chart-5: oklch(0.645 0.109 209.926);
}