Flashy for shadcn/ui

Flashy is a shadcn/ui theme built around a muted light purple primary color (#e8d9e3) with muted light red accents (#e8d9dc). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light purple primary (#e8d9e3) on a neutral background (#070306).

Color palette

TokenLightDark
Background
#ffffffwhite
#070306black
Foreground
#12030dblack
#ffffffwhite
Card
#ffffffwhite
#070306black
Card foreground
#12030dblack
#ffffffwhite
Popover
#ffffffwhite
#070306black
Popover foreground
#12030dblack
#ffffffwhite
Primary
#e8d9e3gainsboro
#e8d9e3gainsboro
Primary foreground
#59364edarkslategray
#59364edarkslategray
Secondary
#e5d9e8gainsboro
#e5d9e8gainsboro
Secondary foreground
#523659darkslategray
#523659darkslategray
Muted
#e6d6eagainsboro
#251529black
Muted foreground
#534856darkslategray
#b4a9b7darkgray
Accent
#e8d9dcgainsboro
#e8d9dcgainsboro
Accent foreground
#59363ddarkslategray
#59363ddarkslategray
Destructive
#66290bsaddlebrown
#e7601dchocolate
Destructive foreground
#f6c5acwheat
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e8d9e3gainsboro
#e8d9e3gainsboro

Contrast

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

Light mode
Text on background20.10:1AAA
Text on card20.10:1AAA
Primary button7.49:1AAA
Secondary button7.59:1AAA
Muted text6.26:1AA
Accent7.61:1AAA
Destructive7.17:1AAA
Dark mode
Text on background20.49:1AAA
Text on card20.49:1AAA
Primary button7.49:1AAA
Secondary button7.59:1AAA
Muted text7.66:1AAA
Accent7.61:1AAA
Destructive6.10:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.134 0.041 338.759);
  --muted: oklch(0.896 0.032 319.454);
  --muted-foreground: oklch(0.418 0.027 319.461);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.134 0.041 338.759);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.134 0.041 338.759);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.9 0.021 336.304);
  --primary-foreground: oklch(0.384 0.061 338.631);
  --secondary: oklch(0.899 0.023 319.452);
  --secondary-foreground: oklch(0.38 0.066 319.444);
  --accent: oklch(0.898 0.017 3.681);
  --accent-foreground: oklch(0.377 0.05 6.704);
  --destructive: oklch(0.363 0.096 43.492);
  --destructive-foreground: oklch(0.86 0.066 47.932);
  --ring: oklch(0.9 0.021 336.304);
  --chart-1: oklch(0.9 0.021 336.304);
  --chart-2: oklch(0.899 0.023 319.452);
  --chart-3: oklch(0.898 0.017 3.681);
  --chart-4: oklch(0.925 0.017 319.45);
  --chart-5: oklch(0.899 0.024 336.358);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.017 336.268);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.225 0.044 319.427);
  --muted-foreground: oklch(0.748 0.024 319.453);
  --popover: oklch(0.109 0.017 336.268);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.109 0.017 336.268);
  --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.9 0.021 336.304);
  --primary-foreground: oklch(0.384 0.061 338.631);
  --secondary: oklch(0.899 0.023 319.452);
  --secondary-foreground: oklch(0.38 0.066 319.444);
  --accent: oklch(0.898 0.017 3.681);
  --accent-foreground: oklch(0.377 0.05 6.704);
  --destructive: oklch(0.653 0.183 42.554);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.9 0.021 336.304);
  --chart-1: oklch(0.9 0.021 336.304);
  --chart-2: oklch(0.899 0.023 319.452);
  --chart-3: oklch(0.898 0.017 3.681);
  --chart-4: oklch(0.925 0.017 319.45);
  --chart-5: oklch(0.899 0.024 336.358);
}