Brisk for shadcn/ui

Brisk is a shadcn/ui theme built around a deep indigo primary color (#1f1a60) with deep green accents (#1a601f). The light mode uses a neutral background (#fcfbfd). Dark mode keeps the deep indigo primary (#1f1a60) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#fcfbfdsnow
#020203black
Foreground
#010104black
#f6f6f8whitesmoke
Card
#f8f8fcghostwhite
#040307black
Card foreground
#000000black
#f9f9fbghostwhite
Popover
#f8f8fcghostwhite
#040307black
Popover foreground
#000000black
#f9f9fbghostwhite
Primary
#1f1a60midnightblue
#1f1a60midnightblue
Primary foreground
#c2bfedlightsteelblue
#c2bfedlightsteelblue
Secondary
#601f1amaroon
#601f1amaroon
Secondary foreground
#edc2bflightpink
#edc2bflightpink
Muted
#eceaealinen
#151413black
Muted foreground
#4d3e3ddarkslategray
#c2b3b2silver
Accent
#1a601fdarkgreen
#1a601fdarkgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c31609firebrick
#f64437tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1f1a60midnightblue
#1f1a60midnightblue

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card19.80:1AAA
Primary button8.68:1AAA
Secondary button7.64:1AAA
Muted text8.43:1AAA
Accent7.66:1AAA
Destructive6.12:1AA
Dark mode
Text on background19.23:1AAA
Text on card19.53:1AAA
Primary button8.68:1AAA
Secondary button7.64:1AAA
Muted text9.11:1AAA
Accent7.66:1AAA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 289.426);
  --foreground: oklch(0.073 0.02 285.135);
  --muted: oklch(0.938 0.002 22.239);
  --muted-foreground: oklch(0.379 0.022 22.943);
  --popover: oklch(0.98 0.006 289.372);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.006 289.372);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.277 0.119 278.287);
  --primary-foreground: oklch(0.822 0.065 287.935);
  --secondary: oklch(0.34 0.096 27.407);
  --secondary-foreground: oklch(0.851 0.05 22.963);
  --accent: oklch(0.431 0.12 144.091);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.52 0.204 29.757);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.277 0.119 278.287);
  --chart-1: oklch(0.277 0.119 278.287);
  --chart-2: oklch(0.34 0.096 27.407);
  --chart-3: oklch(0.431 0.12 144.091);
  --chart-4: oklch(0.367 0.106 27.531);
  --chart-5: oklch(0.275 0.124 277.401);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.009 287.884);
  --foreground: oklch(0.975 0.003 289.424);
  --muted: oklch(0.191 0.003 22.401);
  --muted-foreground: oklch(0.779 0.018 22.481);
  --popover: oklch(0.105 0.012 287.884);
  --popover-foreground: oklch(0.983 0.002 289.442);
  --card: oklch(0.105 0.012 287.884);
  --card-foreground: oklch(0.983 0.002 289.442);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.277 0.119 278.287);
  --primary-foreground: oklch(0.822 0.065 287.935);
  --secondary: oklch(0.34 0.096 27.407);
  --secondary-foreground: oklch(0.851 0.05 22.963);
  --accent: oklch(0.431 0.12 144.091);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.646 0.216 28.7);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.277 0.119 278.287);
  --chart-1: oklch(0.277 0.119 278.287);
  --chart-2: oklch(0.34 0.096 27.407);
  --chart-3: oklch(0.431 0.12 144.091);
  --chart-4: oklch(0.367 0.106 27.531);
  --chart-5: oklch(0.275 0.124 277.401);
}