Brilliant for shadcn/ui

Brilliant is a shadcn/ui theme built around a light purple primary color (#e5bdd9) with light red accents (#e5bdc5). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#e5bdd9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0e020ablack
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#090107black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#0e020ablack
#ffffffwhite
Primary
#e5bdd9thistle
#e5bdd9thistle
Primary foreground
#511f42darkslategray
#511f42darkslategray
Secondary
#ddbde5thistle
#ddbde5thistle
Secondary foreground
#471f51darkslategray
#471f51darkslategray
Muted
#decfe2gainsboro
#2c1d30darkslategray
Muted foreground
#444045darkslategray
#bebabfsilver
Accent
#e5bdc5thistle
#e5bdc5thistle
Accent foreground
#511f29maroon
#511f29maroon
Destructive
#d2320ffirebrick
#e03610orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5bdd9thistle
#e5bdd9thistle

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card20.16:1AAA
Primary button7.76:1AAA
Secondary button7.88:1AAA
Muted text6.85:1AA
Accent7.87:1AAA
Destructive4.99:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.76:1AAA
Secondary button7.88:1AAA
Muted text8.29:1AAA
Accent7.87:1AAA
Destructive4.46:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.119 0.039 337.479);
  --muted: oklch(0.873 0.031 319.454);
  --muted-foreground: oklch(0.376 0.011 319.452);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.119 0.039 337.479);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.103 0.033 336.65);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.842 0.059 337.138);
  --primary-foreground: oklch(0.327 0.088 340.584);
  --secondary: oklch(0.838 0.065 319.463);
  --secondary-foreground: oklch(0.32 0.095 319.244);
  --accent: oklch(0.836 0.047 4.684);
  --accent-foreground: oklch(0.317 0.075 9.93);
  --destructive: oklch(0.566 0.2 33.145);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.842 0.059 337.138);
  --chart-1: oklch(0.842 0.059 337.138);
  --chart-2: oklch(0.838 0.065 319.463);
  --chart-3: oklch(0.836 0.047 4.684);
  --chart-4: oklch(0.865 0.054 319.46);
  --chart-5: oklch(0.841 0.063 337.224);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.257 0.041 319.452);
  --muted-foreground: oklch(0.794 0.009 319.447);
  --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.842 0.059 337.138);
  --primary-foreground: oklch(0.327 0.088 340.584);
  --secondary: oklch(0.838 0.065 319.463);
  --secondary-foreground: oklch(0.32 0.095 319.244);
  --accent: oklch(0.836 0.047 4.684);
  --accent-foreground: oklch(0.317 0.075 9.93);
  --destructive: oklch(0.594 0.211 33.1);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.842 0.059 337.138);
  --chart-1: oklch(0.842 0.059 337.138);
  --chart-2: oklch(0.838 0.065 319.463);
  --chart-3: oklch(0.836 0.047 4.684);
  --chart-4: oklch(0.865 0.054 319.46);
  --chart-5: oklch(0.841 0.063 337.224);
}