Tech for shadcn/ui

Tech is a shadcn/ui theme built around a teal primary color (#33c7ac) with muted light teal accents (#b8d5d0). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the teal primary (#33c7ac) on a teal-tinted background (#050a09).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#050a09black
Foreground
#020807black
#ffffffwhite
Card
#f8fbfbghostwhite
#070e0cblack
Card foreground
#010403black
#ffffffwhite
Popover
#fcfdfdwhite
#050a09black
Popover foreground
#020807black
#ffffffwhite
Primary
#33c7aclightseagreen
#33c7aclightseagreen
Primary foreground
#092420black
#092420black
Secondary
#d5e1dfgainsboro
#171c1bblack
Secondary foreground
#374e49darkslategray
#acb9b7darkgray
Muted
#dde4e3gainsboro
#1b2221black
Muted foreground
#4d5151darkslategray
#aeb2b1darkgray
Accent
#b8d5d0lightsteelblue
#2a3c38darkslategray
Accent foreground
#223a35darkslategray
#c3d5d1lightgrey
Destructive
#79320csaddlebrown
#e35e16chocolate
Destructive foreground
#f9d3bepeachpuff
#ffffffwhite
Border
#eff0f0whitesmoke
#252727darkslategray
Input
#eff0f0whitesmoke
#252727darkslategray
Ring
#33c7aclightseagreen
#33c7aclightseagreen

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.85:1AAA
Primary button7.68:1AAA
Secondary button6.69:1AA
Muted text6.22:1AA
Accent7.84:1AAA
Destructive6.64:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.52:1AAA
Primary button7.68:1AAA
Secondary button8.52:1AAA
Muted text7.55:1AAA
Accent7.65:1AAA
Destructive3.55:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 184.267);
  --foreground: oklch(0.125 0.014 184.07);
  --muted: oklch(0.913 0.007 184.094);
  --muted-foreground: oklch(0.432 0.006 183.921);
  --popover: oklch(0.993 0.002 184.267);
  --popover-foreground: oklch(0.125 0.014 184.07);
  --card: oklch(0.987 0.003 184.222);
  --card-foreground: oklch(0.099 0.011 184.07);
  --border: oklch(0.955 0.001 184.284);
  --input: oklch(0.955 0.001 184.284);
  --primary: oklch(0.747 0.127 177.177);
  --primary-foreground: oklch(0.24 0.034 179.241);
  --secondary: oklch(0.901 0.013 183.913);
  --secondary-foreground: oklch(0.402 0.029 182.25);
  --accent: oklch(0.852 0.032 183.279);
  --accent-foreground: oklch(0.327 0.031 181.439);
  --destructive: oklch(0.41 0.11 44.316);
  --destructive-foreground: oklch(0.892 0.051 49.978);
  --ring: oklch(0.747 0.127 177.177);
  --chart-1: oklch(0.747 0.127 177.177);
  --chart-2: oklch(0.901 0.013 183.913);
  --chart-3: oklch(0.852 0.032 183.279);
  --chart-4: oklch(0.922 0.01 184.007);
  --chart-5: oklch(0.756 0.13 176.847);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.01 184.15);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.245 0.01 183.177);
  --muted-foreground: oklch(0.761 0.005 184.119);
  --popover: oklch(0.139 0.01 184.15);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.154 0.012 182.74);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.272 0.003 183.974);
  --input: oklch(0.272 0.003 183.974);
  --primary: oklch(0.747 0.127 177.177);
  --primary-foreground: oklch(0.24 0.034 179.241);
  --secondary: oklch(0.22 0.007 183.432);
  --secondary-foreground: oklch(0.776 0.016 183.765);
  --accent: oklch(0.339 0.023 182.348);
  --accent-foreground: oklch(0.858 0.019 183.705);
  --destructive: oklch(0.644 0.182 43.155);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.747 0.127 177.177);
  --chart-1: oklch(0.747 0.127 177.177);
  --chart-2: oklch(0.22 0.007 183.432);
  --chart-3: oklch(0.339 0.023 182.348);
  --chart-4: oklch(0.254 0.009 183.356);
  --chart-5: oklch(0.756 0.13 176.847);
}