Brisk for shadcn/ui

Brisk is a shadcn/ui theme built around a green primary color (#3c7241) with muted green accents (#b6c3b7). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#3c7241) on a green-tinted background (#040b05).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b05black
Foreground
#010401black
#ffffffwhite
Card
#ffffffwhite
#040b05black
Card foreground
#010401black
#ffffffwhite
Popover
#ffffffwhite
#040b05black
Popover foreground
#010401black
#ffffffwhite
Primary
#3c7241darkolivegreen
#3c7241darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d5d7d6lightgrey
#213123darkslategray
Secondary foreground
#3c3e3cdarkslategray
#b6cdb8silver
Muted
#d4e2d6gainsboro
#1d2b1eblack
Muted foreground
#5c705edimgray
#8fa391darkseagreen
Accent
#b6c3b7silver
#2b4a2edarkslategray
Accent foreground
#202721black
#c8dfcblightgrey
Destructive
#bf400dfirebrick
#ef561achocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3c7241darkolivegreen
#3c7241darkolivegreen

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button5.74:1AA
Secondary button7.46:1AAA
Muted text3.98:1AA Large
Accent8.38:1AAA
Destructive5.33:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button5.74:1AA
Secondary button8.16:1AAA
Muted text5.53:1AA
Accent7.01:1AAA
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.099 0.023 146.918);
  --muted: oklch(0.9 0.023 148.304);
  --muted-foreground: oklch(0.524 0.037 147.762);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.099 0.023 146.918);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.099 0.023 146.918);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.5 0.095 146.147);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.878 0.003 148.559);
  --secondary-foreground: oklch(0.362 0.005 148.44);
  --accent: oklch(0.805 0.022 148.284);
  --accent-foreground: oklch(0.264 0.016 147.914);
  --destructive: oklch(0.546 0.172 38.137);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.5 0.095 146.147);
  --chart-1: oklch(0.5 0.095 146.147);
  --chart-2: oklch(0.878 0.003 148.559);
  --chart-3: oklch(0.805 0.022 148.284);
  --chart-4: oklch(0.901 0.002 148.566);
  --chart-5: oklch(0.506 0.103 145.933);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.02 147.614);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.271 0.031 147.242);
  --muted-foreground: oklch(0.695 0.035 148.016);
  --popover: oklch(0.138 0.02 147.614);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.02 147.614);
  --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.5 0.095 146.147);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.293 0.033 147.262);
  --secondary-foreground: oklch(0.826 0.038 148.064);
  --accent: oklch(0.376 0.059 146.64);
  --accent-foreground: oklch(0.881 0.037 148.121);
  --destructive: oklch(0.653 0.199 38.729);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.5 0.095 146.147);
  --chart-1: oklch(0.5 0.095 146.147);
  --chart-2: oklch(0.293 0.033 147.262);
  --chart-3: oklch(0.376 0.059 146.64);
  --chart-4: oklch(0.326 0.038 147.207);
  --chart-5: oklch(0.506 0.103 145.933);
}