Scrambled for shadcn/ui

Scrambled is a shadcn/ui theme built around a green primary color (#c7d926) with indigo accents (#3826d9). The light mode uses a neutral background (#fefefb). Dark mode keeps the green primary (#c7d926) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fefefbwhite
#030401black
Foreground
#040401black
#f8f9f6whitesmoke
Card
#fdfdf6snow
#070703black
Card foreground
#000000black
#fbfbf9snow
Popover
#fdfdf6snow
#070703black
Popover foreground
#000000black
#fbfbf9snow
Primary
#c7d926greenyellow
#c7d926greenyellow
Primary foreground
#282b08black
#282b08black
Secondary
#3826d9royalblue
#3826d9royalblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dddbebgainsboro
#161424black
Muted foreground
#3b3946darkslategray
#bab9c6silver
Accent
#3826d9royalblue
#3826d9royalblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b14610sienna
#ed763btomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c7d926greenyellow
#c7d926greenyellow

Contrast

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

Light mode
Text on background20.32:1AAA
Text on card20.58:1AAA
Primary button9.27:1AAA
Secondary button8.57:1AAA
Muted text8.30:1AAA
Accent8.57:1AAA
Destructive5.58:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.45:1AAA
Primary button9.27:1AAA
Secondary button8.57:1AAA
Muted text9.32:1AAA
Accent8.57:1AAA
Destructive7.26:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.005 111.099);
  --foreground: oklch(0.104 0.015 112.4);
  --muted: oklch(0.898 0.021 290.579);
  --muted-foreground: oklch(0.352 0.022 289.805);
  --popover: oklch(0.993 0.009 111.184);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.993 0.009 111.184);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.843 0.184 115.75);
  --primary-foreground: oklch(0.278 0.054 114.846);
  --secondary: oklch(0.444 0.249 273.811);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.444 0.249 273.811);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.533 0.152 42.142);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.843 0.184 115.75);
  --chart-1: oklch(0.843 0.184 115.75);
  --chart-2: oklch(0.444 0.249 273.811);
  --chart-3: oklch(0.444 0.249 273.811);
  --chart-4: oklch(0.468 0.239 276.368);
  --chart-5: oklch(0.853 0.188 115.873);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.011 112.126);
  --foreground: oklch(0.98 0.003 111.076);
  --muted: oklch(0.203 0.03 288.005);
  --muted-foreground: oklch(0.79 0.018 290.584);
  --popover: oklch(0.127 0.014 112.126);
  --popover-foreground: oklch(0.987 0.002 111.055);
  --card: oklch(0.127 0.014 112.126);
  --card-foreground: oklch(0.987 0.002 111.055);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.843 0.184 115.75);
  --primary-foreground: oklch(0.278 0.054 114.846);
  --secondary: oklch(0.444 0.249 273.811);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.444 0.249 273.811);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.695 0.163 44.96);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.843 0.184 115.75);
  --chart-1: oklch(0.843 0.184 115.75);
  --chart-2: oklch(0.444 0.249 273.811);
  --chart-3: oklch(0.444 0.249 273.811);
  --chart-4: oklch(0.468 0.239 276.368);
  --chart-5: oklch(0.853 0.188 115.873);
}