Aggressive Denim for shadcn/ui

Aggressive Denim is a shadcn/ui theme built around a vivid blue primary color (#113ebb) with vivid yellow accents (#bb8e11). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#113ebb) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#ffffffwhite
#010204black
Foreground
#020309black
#ffffffwhite
Card
#fcfcfcsnow
#030408black
Card foreground
#010204black
#ffffffwhite
Popover
#fcfcfcsnow
#030408black
Popover foreground
#010204black
#ffffffwhite
Primary
#113ebbmediumblue
#113ebbmediumblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#bb8e11darkgoldenrod
#bb8e11darkgoldenrod
Secondary foreground
#000000black
#000000black
Muted
#f1ece0beige
#1f1b0eblack
Muted foreground
#5c584ddimgray
#b2aea3darkgray
Accent
#bb8e11darkgoldenrod
#bb8e11darkgoldenrod
Accent foreground
#000000black
#000000black
Destructive
#6b1200maroon
#ff2a00orangered
Destructive foreground
#ffae9elightpink
#ffffffwhite
Border
#ededeewhitesmoke
#19191ablack
Input
#ededeewhitesmoke
#19191ablack
Ring
#113ebbmediumblue
#113ebbmediumblue

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.30:1AAA
Primary button8.61:1AAA
Secondary button6.95:1AA
Muted text6.01:1AA
Accent6.95:1AA
Destructive6.89:1AA
Dark mode
Text on background20.75:1AAA
Text on card20.51:1AAA
Primary button8.61:1AAA
Secondary button6.95:1AA
Muted text7.75:1AAA
Accent6.95:1AA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.102 0.019 260.161);
  --muted: oklch(0.943 0.017 90.251);
  --muted-foreground: oklch(0.46 0.018 90.365);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.081 0.015 260.161);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.081 0.015 260.161);
  --border: oklch(0.946 0.001 270.111);
  --input: oklch(0.946 0.001 270.111);
  --primary: oklch(0.429 0.2 264.041);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.67 0.134 85.059);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.67 0.134 85.059);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.343 0.125 33.398);
  --destructive-foreground: oklch(0.825 0.098 31.742);
  --ring: oklch(0.429 0.2 264.041);
  --chart-1: oklch(0.429 0.2 264.041);
  --chart-2: oklch(0.67 0.134 85.059);
  --chart-3: oklch(0.67 0.134 85.059);
  --chart-4: oklch(0.707 0.141 84.954);
  --chart-5: oklch(0.429 0.206 263.946);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.011 263.56);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.223 0.023 90.305);
  --muted-foreground: oklch(0.752 0.016 90.272);
  --popover: oklch(0.106 0.013 263.56);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.106 0.013 263.56);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.214 0.002 270.032);
  --input: oklch(0.214 0.002 270.032);
  --primary: oklch(0.429 0.2 264.041);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.67 0.134 85.059);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.67 0.134 85.059);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.641 0.245 31.636);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.429 0.2 264.041);
  --chart-1: oklch(0.429 0.2 264.041);
  --chart-2: oklch(0.67 0.134 85.059);
  --chart-3: oklch(0.67 0.134 85.059);
  --chart-4: oklch(0.707 0.141 84.954);
  --chart-5: oklch(0.429 0.206 263.946);
}