Floor for shadcn/ui

Floor is a shadcn/ui theme built around a vivid yellow primary color (#f3cd7c) with vivid green accents (#ddf37c). The light mode uses a neutral background (#fefdfb). Dark mode keeps the vivid yellow primary (#f3cd7c) on a yellow-tinted background (#0b0904).

Color palette

TokenLightDark
Background
#fefdfbsnow
#0b0904black
Foreground
#040301black
#fbfaf9snow
Card
#fdfbf7snow
#0e0c06black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fefdfbsnow
#0b0904black
Popover foreground
#040301black
#fbfaf9snow
Primary
#f3cd7ckhaki
#f3cd7ckhaki
Primary foreground
#382805black
#382805black
Secondary
#f3927cdarksalmon
#f3927cdarksalmon
Secondary foreground
#380f05black
#380f05black
Muted
#e8cfc9lightgrey
#361d17black
Muted foreground
#695854dimgray
#ab9a96rosybrown
Accent
#ddf37ckhaki
#ddf37ckhaki
Accent foreground
#2f3805darkgreen
#2f3805darkgreen
Destructive
#700d00maroon
#ff1e00red
Destructive foreground
#ffaea3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f3cd7ckhaki
#f3cd7ckhaki

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card20.30:1AAA
Primary button9.40:1AAA
Secondary button7.43:1AAA
Muted text4.54:1AA
Accent10.17:1AAA
Destructive6.76:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.21:1AAA
Primary button9.40:1AAA
Secondary button7.43:1AAA
Muted text5.82:1AA
Accent10.17:1AAA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 86.018);
  --foreground: oklch(0.1 0.014 92.948);
  --muted: oklch(0.874 0.029 32.703);
  --muted-foreground: oklch(0.475 0.023 32.755);
  --popover: oklch(0.994 0.003 86.018);
  --popover-foreground: oklch(0.1 0.014 92.948);
  --card: oklch(0.988 0.006 86.028);
  --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.864 0.109 85.324);
  --primary-foreground: oklch(0.288 0.054 82.467);
  --secondary: oklch(0.756 0.122 33.493);
  --secondary-foreground: oklch(0.235 0.069 34.934);
  --accent: oklch(0.923 0.146 117.933);
  --accent-foreground: oklch(0.321 0.071 119.912);
  --destructive: oklch(0.35 0.134 31.769);
  --destructive-foreground: oklch(0.826 0.097 27.659);
  --ring: oklch(0.864 0.109 85.324);
  --chart-1: oklch(0.864 0.109 85.324);
  --chart-2: oklch(0.756 0.122 33.493);
  --chart-3: oklch(0.923 0.146 117.933);
  --chart-4: oklch(0.78 0.108 33.309);
  --chart-5: oklch(0.868 0.112 85.244);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.012 90.326);
  --foreground: oklch(0.986 0.002 86.014);
  --muted: oklch(0.261 0.041 33.461);
  --muted-foreground: oklch(0.7 0.021 32.694);
  --popover: oklch(0.139 0.012 90.326);
  --popover-foreground: oklch(0.986 0.002 86.014);
  --card: oklch(0.154 0.014 87.906);
  --card-foreground: oklch(0.993 0.001 86.01);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.864 0.109 85.324);
  --primary-foreground: oklch(0.288 0.054 82.467);
  --secondary: oklch(0.756 0.122 33.493);
  --secondary-foreground: oklch(0.235 0.069 34.934);
  --accent: oklch(0.923 0.146 117.933);
  --accent-foreground: oklch(0.321 0.071 119.912);
  --destructive: oklch(0.635 0.251 30.526);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.864 0.109 85.324);
  --chart-1: oklch(0.864 0.109 85.324);
  --chart-2: oklch(0.756 0.122 33.493);
  --chart-3: oklch(0.923 0.146 117.933);
  --chart-4: oklch(0.78 0.108 33.309);
  --chart-5: oklch(0.868 0.112 85.244);
}