Data for shadcn/ui

Data is a shadcn/ui theme built around a yellow primary color (#e5d980) with blue accents (#808ce5). The light mode uses a neutral background (#fefefb). Dark mode keeps the yellow primary (#e5d980) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fefefbwhite
#040401black
Foreground
#121002black
#fbfbf8snow
Card
#fdfcf7snow
#080702black
Card foreground
#0e0c02black
#fdfdfcwhite
Popover
#fefefbwhite
#040401black
Popover foreground
#121002black
#fbfbf8snow
Primary
#e5d980khaki
#e5d980khaki
Primary foreground
#2a2609black
#2a2609black
Secondary
#808ce5cornflowerblue
#808ce5cornflowerblue
Secondary foreground
#090d2ablack
#090d2ablack
Muted
#f1f1f4whitesmoke
#0b0b0eblack
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#808ce5cornflowerblue
#808ce5cornflowerblue
Accent foreground
#090d2ablack
#090d2ablack
Destructive
#c00202firebrick
#fd0d0dred
Destructive foreground
#fff5f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5d980khaki
#e5d980khaki

Contrast

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

Light mode
Text on background18.84:1AAA
Text on card19.11:1AAA
Primary button10.57:1AAA
Secondary button6.15:1AA
Muted text5.48:1AA
Accent6.15:1AA
Destructive6.04:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.78:1AAA
Primary button10.57:1AAA
Secondary button6.15:1AA
Muted text7.31:1AAA
Accent6.15:1AA
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 100.388);
  --foreground: oklch(0.172 0.03 103.257);
  --muted: oklch(0.959 0.004 280.266);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(0.996 0.004 100.388);
  --popover-foreground: oklch(0.172 0.03 103.257);
  --card: oklch(0.991 0.008 100.446);
  --card-foreground: oklch(0.153 0.027 103.976);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.876 0.111 101.787);
  --primary-foreground: oklch(0.267 0.046 101.79);
  --secondary: oklch(0.668 0.132 276.497);
  --secondary-foreground: oklch(0.175 0.06 272.811);
  --accent: oklch(0.668 0.132 276.497);
  --accent-foreground: oklch(0.175 0.06 272.811);
  --destructive: oklch(0.508 0.207 29.142);
  --destructive-foreground: oklch(0.978 0.011 17.34);
  --ring: oklch(0.876 0.111 101.787);
  --chart-1: oklch(0.876 0.111 101.787);
  --chart-2: oklch(0.668 0.132 276.497);
  --chart-3: oklch(0.668 0.132 276.497);
  --chart-4: oklch(0.702 0.118 277.163);
  --chart-5: oklch(0.882 0.116 101.807);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.013 103.614);
  --foreground: oklch(0.988 0.004 100.388);
  --muted: oklch(0.153 0.006 279.658);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0.102 0.013 103.614);
  --popover-foreground: oklch(0.988 0.004 100.388);
  --card: oklch(0.128 0.016 103.614);
  --card-foreground: oklch(0.994 0.002 100.359);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.876 0.111 101.787);
  --primary-foreground: oklch(0.267 0.046 101.79);
  --secondary: oklch(0.668 0.132 276.497);
  --secondary-foreground: oklch(0.175 0.06 272.811);
  --accent: oklch(0.668 0.132 276.497);
  --accent-foreground: oklch(0.175 0.06 272.811);
  --destructive: oklch(0.626 0.253 28.913);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.876 0.111 101.787);
  --chart-1: oklch(0.876 0.111 101.787);
  --chart-2: oklch(0.668 0.132 276.497);
  --chart-3: oklch(0.668 0.132 276.497);
  --chart-4: oklch(0.702 0.118 277.163);
  --chart-5: oklch(0.882 0.116 101.807);
}