Secret for shadcn/ui

Secret is a shadcn/ui theme built around a vivid yellow primary color (#fcea64) with vivid blue accents (#6476fc). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid yellow primary (#fcea64) on a yellow-tinted background (#0c0b03).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#0c0b03black
Foreground
#171503black
#fdfdfcwhite
Card
#fdfdfcwhite
#0c0b03black
Card foreground
#171503black
#fdfdfcwhite
Popover
#fdfdfcwhite
#0c0b03black
Popover foreground
#171503black
#fdfdfcwhite
Primary
#fcea64khaki
#fcea64khaki
Primary foreground
#2d2801black
#2d2801black
Secondary
#6476fcmediumslateblue
#6476fcmediumslateblue
Secondary foreground
#000000black
#000000black
Muted
#e6e6eblavender
#141519black
Muted foreground
#494c5fdarkslategray
#a0a2b6darkgray
Accent
#6476fcmediumslateblue
#6476fcmediumslateblue
Accent foreground
#000000black
#000000black
Destructive
#92290csaddlebrown
#ee552btomato
Destructive foreground
#fcddd5mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcea64khaki
#fcea64khaki

Contrast

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

Light mode
Text on background18.03:1AAA
Text on card18.03:1AAA
Primary button12.08:1AAA
Secondary button5.52:1AA
Muted text6.79:1AA
Accent5.52:1AA
Destructive6.45:1AA
Dark mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button12.08:1AAA
Secondary button5.52:1AA
Muted text7.23:1AAA
Accent5.52:1AA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 100.362);
  --foreground: oklch(0.191 0.034 102.792);
  --muted: oklch(0.926 0.006 280.228);
  --muted-foreground: oklch(0.421 0.032 279.019);
  --popover: oklch(0.994 0.002 100.362);
  --popover-foreground: oklch(0.191 0.034 102.792);
  --card: oklch(0.994 0.002 100.362);
  --card-foreground: oklch(0.191 0.034 102.792);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.927 0.153 101.818);
  --primary-foreground: oklch(0.273 0.056 101.784);
  --secondary: oklch(0.622 0.199 273.513);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.622 0.199 273.513);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.443 0.146 35.066);
  --destructive-foreground: oklch(0.92 0.036 35.943);
  --ring: oklch(0.927 0.153 101.818);
  --chart-1: oklch(0.927 0.153 101.818);
  --chart-2: oklch(0.622 0.199 273.513);
  --chart-3: oklch(0.622 0.199 273.513);
  --chart-4: oklch(0.656 0.179 274.722);
  --chart-5: oklch(0.932 0.157 101.801);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.019 103.282);
  --foreground: oklch(0.993 0.001 100.342);
  --muted: oklch(0.197 0.009 279.581);
  --muted-foreground: oklch(0.718 0.028 279.691);
  --popover: oklch(0.147 0.019 103.282);
  --popover-foreground: oklch(0.993 0.001 100.342);
  --card: oklch(0.147 0.019 103.282);
  --card-foreground: oklch(0.993 0.001 100.342);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.927 0.153 101.818);
  --primary-foreground: oklch(0.273 0.056 101.784);
  --secondary: oklch(0.622 0.199 273.513);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.622 0.199 273.513);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.65 0.196 35.782);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.927 0.153 101.818);
  --chart-1: oklch(0.927 0.153 101.818);
  --chart-2: oklch(0.622 0.199 273.513);
  --chart-3: oklch(0.622 0.199 273.513);
  --chart-4: oklch(0.656 0.179 274.722);
  --chart-5: oklch(0.932 0.157 101.801);
}