Tech for shadcn/ui

Tech is a shadcn/ui theme built around a vivid yellow primary color (#f7ce6e) with vivid blue accents (#6e97f7). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the vivid yellow primary (#f7ce6e) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fdfbf7snow
#040301black
Foreground
#040301black
#fcfbf8snow
Card
#fcf9f3floralwhite
#070603black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fdfbf7snow
#040301black
Popover foreground
#040301black
#fcfbf8snow
Primary
#f7ce6ekhaki
#f7ce6ekhaki
Primary foreground
#302303black
#302303black
Secondary
#6e97f7cornflowerblue
#6e97f7cornflowerblue
Secondary foreground
#031030black
#031030black
Muted
#dcdde0gainsboro
#1f2023black
Muted foreground
#3f424bdarkslategray
#b4b8c0silver
Accent
#6e97f7cornflowerblue
#6e97f7cornflowerblue
Accent foreground
#031030black
#031030black
Destructive
#8f390asaddlebrown
#f17532tomato
Destructive foreground
#fcdfcfbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7ce6ekhaki
#f7ce6ekhaki

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card20.00:1AAA
Primary button10.25:1AAA
Secondary button6.62:1AA
Muted text7.39:1AAA
Accent6.62:1AA
Destructive6.03:1AA
Dark mode
Text on background19.92:1AAA
Text on card19.90:1AAA
Primary button10.25:1AAA
Secondary button6.62:1AA
Muted text8.14:1AAA
Accent6.62:1AA
Destructive7.30:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 87.451);
  --foreground: oklch(0.098 0.011 92.623);
  --muted: oklch(0.898 0.003 267.398);
  --muted-foreground: oklch(0.38 0.016 267.134);
  --popover: oklch(0.989 0.006 87.451);
  --popover-foreground: oklch(0.098 0.011 92.623);
  --card: oklch(0.983 0.009 87.466);
  --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.868 0.124 86.494);
  --primary-foreground: oklch(0.264 0.051 84.788);
  --secondary: oklch(0.69 0.15 265.199);
  --secondary-foreground: oklch(0.186 0.068 261.731);
  --accent: oklch(0.69 0.15 265.199);
  --accent-foreground: oklch(0.186 0.068 261.731);
  --destructive: oklch(0.457 0.129 43.195);
  --destructive-foreground: oklch(0.923 0.038 50.156);
  --ring: oklch(0.868 0.124 86.494);
  --chart-1: oklch(0.868 0.124 86.494);
  --chart-2: oklch(0.69 0.15 265.199);
  --chart-3: oklch(0.69 0.15 265.199);
  --chart-4: oklch(0.72 0.134 265.577);
  --chart-5: oklch(0.872 0.127 86.39);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.009 91.719);
  --foreground: oklch(0.987 0.003 87.437);
  --muted: oklch(0.245 0.005 267.302);
  --muted-foreground: oklch(0.781 0.013 267.318);
  --popover: oklch(0.097 0.009 91.719);
  --popover-foreground: oklch(0.987 0.003 87.437);
  --card: oklch(0.122 0.011 91.719);
  --card-foreground: oklch(0.993 0.002 87.428);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.868 0.124 86.494);
  --primary-foreground: oklch(0.264 0.051 84.788);
  --secondary: oklch(0.69 0.15 265.199);
  --secondary-foreground: oklch(0.186 0.068 261.731);
  --accent: oklch(0.69 0.15 265.199);
  --accent-foreground: oklch(0.186 0.068 261.731);
  --destructive: oklch(0.697 0.171 45.667);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.868 0.124 86.494);
  --chart-1: oklch(0.868 0.124 86.494);
  --chart-2: oklch(0.69 0.15 265.199);
  --chart-3: oklch(0.69 0.15 265.199);
  --chart-4: oklch(0.72 0.134 265.577);
  --chart-5: oklch(0.872 0.127 86.39);
}