Secret for shadcn/ui

Secret is a shadcn/ui theme built around a vivid yellow primary color (#c0990c) with vivid purple accents (#990cc0). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the vivid yellow primary (#c0990c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfbf8snow
#000000black
Foreground
#141105black
#fbfaf9snow
Card
#fcfbf8snow
#000000black
Card foreground
#141105black
#fbfaf9snow
Popover
#fcfbf8snow
#000000black
Popover foreground
#141105black
#fbfaf9snow
Primary
#c0990cdarkgoldenrod
#c0990cdarkgoldenrod
Primary foreground
#000000black
#000000black
Secondary
#0cc099lightseagreen
#0cc099lightseagreen
Secondary foreground
#000000black
#000000black
Muted
#eef1f0whitesmoke
#0e1110black
Muted foreground
#5c6a67dimgray
#95a39fdarkgray
Accent
#990cc0darkviolet
#990cc0darkviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c51f02firebrick
#e82502orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c0990cdarkgoldenrod
#c0990cdarkgoldenrod

Contrast

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

Light mode
Text on background18.22:1AAA
Text on card18.22:1AAA
Primary button7.78:1AAA
Secondary button8.99:1AAA
Muted text4.98:1AA
Accent6.63:1AA
Destructive5.88:1AA
Dark mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button7.78:1AAA
Secondary button8.99:1AAA
Muted text7.26:1AAA
Accent6.63:1AA
Destructive4.46: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.988 0.004 93.905);
  --foreground: oklch(0.178 0.024 95.346);
  --muted: oklch(0.956 0.003 181.979);
  --muted-foreground: oklch(0.513 0.018 181.089);
  --popover: oklch(0.988 0.004 93.905);
  --popover-foreground: oklch(0.178 0.024 95.346);
  --card: oklch(0.988 0.004 93.905);
  --card-foreground: oklch(0.178 0.024 95.346);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.699 0.141 90.096);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.719 0.139 171.157);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.51 0.244 316.234);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.528 0.201 31.565);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.699 0.141 90.096);
  --chart-1: oklch(0.699 0.141 90.096);
  --chart-2: oklch(0.719 0.139 171.157);
  --chart-3: oklch(0.51 0.244 316.234);
  --chart-4: oklch(0.759 0.147 171.076);
  --chart-5: oklch(0.705 0.143 89.74);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.002 93.883);
  --muted: oklch(0.173 0.005 181.315);
  --muted-foreground: oklch(0.702 0.016 181.408);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.002 93.883);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.002 93.883);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.699 0.141 90.096);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.719 0.139 171.157);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.51 0.244 316.234);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.597 0.229 31.378);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.699 0.141 90.096);
  --chart-1: oklch(0.699 0.141 90.096);
  --chart-2: oklch(0.719 0.139 171.157);
  --chart-3: oklch(0.51 0.244 316.234);
  --chart-4: oklch(0.759 0.147 171.076);
  --chart-5: oklch(0.705 0.143 89.74);
}