Frequent for shadcn/ui

Frequent is a shadcn/ui theme built around a vivid purple primary color (#de3eef) with muted light purple accents (#d8ced9). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid purple primary (#de3eef) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fefbfewhite
#040104black
Foreground
#100312black
#ffffffwhite
Card
#fefbfewhite
#040104black
Card foreground
#100312black
#ffffffwhite
Popover
#fefbfewhite
#040104black
Popover foreground
#100312black
#ffffffwhite
Primary
#de3eefmediumorchid
#de3eefmediumorchid
Primary foreground
#000000black
#000000black
Secondary
#ece9eclavender
#151316black
Secondary foreground
#564d56dimgray
#b1a9b2darkgray
Muted
#e7e3e8gainsboro
#1b171cblack
Muted foreground
#584f59dimgray
#afa6b0darkgray
Accent
#d8ced9lightgrey
#2d242edarkslategray
Accent foreground
#403442darkslategray
#c8bac9silver
Destructive
#c41d03firebrick
#fb2504orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#de3eefmediumorchid
#de3eefmediumorchid

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button6.02:1AA
Secondary button6.73:1AA
Muted text6.19:1AA
Accent7.71:1AAA
Destructive5.96:1AA
Dark mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button6.02:1AA
Secondary button8.07:1AAA
Muted text7.49:1AAA
Accent8.08:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 322.648);
  --foreground: oklch(0.134 0.043 324.202);
  --muted: oklch(0.921 0.008 322.66);
  --muted-foreground: oklch(0.44 0.02 322.806);
  --popover: oklch(0.991 0.005 322.648);
  --popover-foreground: oklch(0.134 0.043 324.202);
  --card: oklch(0.991 0.005 322.648);
  --card-foreground: oklch(0.134 0.043 324.202);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.666 0.27 323.52);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.938 0.004 322.644);
  --secondary-foreground: oklch(0.431 0.019 322.805);
  --accent: oklch(0.863 0.017 322.708);
  --accent-foreground: oklch(0.343 0.03 322.96);
  --destructive: oklch(0.525 0.202 31.161);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.666 0.27 323.52);
  --chart-1: oklch(0.666 0.27 323.52);
  --chart-2: oklch(0.938 0.004 322.644);
  --chart-3: oklch(0.863 0.017 322.708);
  --chart-4: oklch(0.961 0.002 322.637);
  --chart-5: oklch(0.67 0.276 323.496);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.02 324.441);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.212 0.011 322.829);
  --muted-foreground: oklch(0.735 0.018 322.722);
  --popover: oklch(0.085 0.02 324.441);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.085 0.02 324.441);
  --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.666 0.27 323.52);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.191 0.006 322.751);
  --secondary-foreground: oklch(0.744 0.017 322.718);
  --accent: oklch(0.274 0.022 322.935);
  --accent-foreground: oklch(0.806 0.025 322.75);
  --destructive: oklch(0.631 0.245 30.938);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.666 0.27 323.52);
  --chart-1: oklch(0.666 0.27 323.52);
  --chart-2: oklch(0.191 0.006 322.751);
  --chart-3: oklch(0.274 0.022 322.935);
  --chart-4: oklch(0.224 0.008 322.767);
  --chart-5: oklch(0.67 0.276 323.496);
}