Brick for shadcn/ui

Brick is a shadcn/ui theme built around a light purple primary color (#f2b5e1) with light red accents (#f2b5c2). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the light purple primary (#f2b5e1) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#040103black
Foreground
#080306black
#f8f7f8whitesmoke
Card
#fdfbfdsnow
#040103black
Card foreground
#080306black
#f8f7f8whitesmoke
Popover
#fdfbfdsnow
#040103black
Popover foreground
#080306black
#f8f7f8whitesmoke
Primary
#f2b5e1pink
#f2b5e1pink
Primary foreground
#64124cpurple
#64124cpurple
Secondary
#e5b5f2thistle
#e5b5f2thistle
Secondary foreground
#521264indigo
#521264indigo
Muted
#eee5f0lavender
#180f1ablack
Muted foreground
#4a494bdarkslategray
#b5b4b6silver
Accent
#f2b5c2lightpink
#f2b5c2lightpink
Accent foreground
#641223maroon
#641223maroon
Destructive
#c81309firebrick
#f41c10red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2b5e1pink
#f2b5e1pink

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card19.94:1AAA
Primary button7.21:1AAA
Secondary button7.51:1AAA
Muted text7.29:1AAA
Accent7.37:1AAA
Destructive5.92:1AA
Dark mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button7.21:1AAA
Secondary button7.51:1AAA
Muted text9.07:1AAA
Accent7.37:1AAA
Destructive4.19:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 335.244);
  --foreground: oklch(0.108 0.02 335.718);
  --muted: oklch(0.932 0.017 318.884);
  --muted-foreground: oklch(0.408 0.003 318.888);
  --popover: oklch(0.991 0.003 335.244);
  --popover-foreground: oklch(0.108 0.02 335.718);
  --card: oklch(0.991 0.003 335.244);
  --card-foreground: oklch(0.108 0.02 335.718);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.843 0.09 337.015);
  --primary-foreground: oklch(0.349 0.131 342.265);
  --secondary: oklch(0.836 0.097 318.838);
  --secondary-foreground: oklch(0.333 0.14 317.61);
  --accent: oklch(0.833 0.072 4.381);
  --accent-foreground: oklch(0.333 0.114 14.249);
  --destructive: oklch(0.528 0.209 29.474);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.843 0.09 337.015);
  --chart-1: oklch(0.843 0.09 337.015);
  --chart-2: oklch(0.836 0.097 318.838);
  --chart-3: oklch(0.833 0.072 4.381);
  --chart-4: oklch(0.864 0.08 318.853);
  --chart-5: oklch(0.842 0.093 337.091);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.017 335.774);
  --foreground: oklch(0.976 0.002 335.231);
  --muted: oklch(0.185 0.026 318.82);
  --muted-foreground: oklch(0.772 0.002 318.889);
  --popover: oklch(0.085 0.017 335.774);
  --popover-foreground: oklch(0.976 0.002 335.231);
  --card: oklch(0.085 0.017 335.774);
  --card-foreground: oklch(0.976 0.002 335.231);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.843 0.09 337.015);
  --primary-foreground: oklch(0.349 0.131 342.265);
  --secondary: oklch(0.836 0.097 318.838);
  --secondary-foreground: oklch(0.333 0.14 317.61);
  --accent: oklch(0.833 0.072 4.381);
  --accent-foreground: oklch(0.333 0.114 14.249);
  --destructive: oklch(0.614 0.242 29.45);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.843 0.09 337.015);
  --chart-1: oklch(0.843 0.09 337.015);
  --chart-2: oklch(0.836 0.097 318.838);
  --chart-3: oklch(0.833 0.072 4.381);
  --chart-4: oklch(0.864 0.08 318.853);
  --chart-5: oklch(0.842 0.093 337.091);
}