Brisk for shadcn/ui

Brisk is a shadcn/ui theme built around a vivid purple primary color (#941070) with vivid cyan accents (#107094). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid purple primary (#941070) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfdsnow
#000000black
Foreground
#090107black
#ffffffwhite
Card
#fdf7fbsnow
#030303black
Card foreground
#040103black
#ffffffwhite
Popover
#fefbfdsnow
#000000black
Popover foreground
#090107black
#ffffffwhite
Primary
#941070purple
#941070purple
Primary foreground
#fbdaf2mistyrose
#fbdaf2mistyrose
Secondary
#709410olivedrab
#709410olivedrab
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e0e2d9gainsboro
#23261dblack
Muted foreground
#63665cdimgray
#a0a399darkgray
Accent
#107094teal
#107094teal
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#99350asaddlebrown
#f16427chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#941070purple
#941070purple

Contrast

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

Light mode
Text on background20.04:1AAA
Text on card19.64:1AAA
Primary button6.40:1AA
Secondary button3.54:1AA Large
Muted text4.49:1AA Large
Accent5.54:1AA
Destructive7.30:1AAA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.40:1AA
Secondary button3.54:1AA Large
Muted text6.00:1AA
Accent5.54:1AA
Destructive6.59:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 334.603);
  --foreground: oklch(0.105 0.03 335.404);
  --muted: oklch(0.91 0.013 118.81);
  --muted-foreground: oklch(0.504 0.015 119.098);
  --popover: oklch(0.991 0.004 334.603);
  --popover-foreground: oklch(0.105 0.03 335.404);
  --card: oklch(0.982 0.009 334.681);
  --card-foreground: oklch(0.083 0.024 335.404);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.452 0.184 342.698);
  --primary-foreground: oklch(0.923 0.048 335.414);
  --secondary: oklch(0.617 0.151 125.066);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.513 0.098 229.773);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.469 0.143 39.393);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.452 0.184 342.698);
  --chart-1: oklch(0.452 0.184 342.698);
  --chart-2: oklch(0.617 0.151 125.066);
  --chart-3: oklch(0.513 0.098 229.773);
  --chart-4: oklch(0.658 0.161 125.138);
  --chart-5: oklch(0.456 0.188 342.972);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.262 0.017 119.72);
  --muted-foreground: oklch(0.71 0.014 118.913);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.452 0.184 342.698);
  --primary-foreground: oklch(0.923 0.048 335.414);
  --secondary: oklch(0.617 0.151 125.066);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.513 0.098 229.773);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.674 0.188 40.887);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.452 0.184 342.698);
  --chart-1: oklch(0.452 0.184 342.698);
  --chart-2: oklch(0.617 0.151 125.066);
  --chart-3: oklch(0.513 0.098 229.773);
  --chart-4: oklch(0.658 0.161 125.138);
  --chart-5: oklch(0.456 0.188 342.972);
}