Laptop for shadcn/ui

Laptop is a shadcn/ui theme built around a deep teal primary color (#2a5a51) with muted light teal accents (#dae2e0). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the deep teal primary (#2a5a51) on a neutral background (#030706).

Color palette

TokenLightDark
Background
#f8fcfbmintcream
#030706black
Foreground
#020d0bblack
#f5faf9mintcream
Card
#f5faf9mintcream
#050a09black
Card foreground
#020907black
#f8fcfbmintcream
Popover
#f8fcfbmintcream
#030706black
Popover foreground
#020d0bblack
#f5faf9mintcream
Primary
#2a5a51darkslategray
#2a5a51darkslategray
Primary foreground
#cee8e3gainsboro
#cee8e3gainsboro
Secondary
#eaebeblavender
#1a2322black
Secondary foreground
#4e5554darkslategray
#adc2besilver
Muted
#cee3e0gainsboro
#1c312ddarkslategray
Muted foreground
#364946darkslategray
#b6c9c5silver
Accent
#dae2e0gainsboro
#243834darkslategray
Accent foreground
#3d4d4adarkslategray
#bbd3cflightsteelblue
Destructive
#a70f02darkred
#fd3c2borangered
Destructive foreground
#ffdfdcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2a5a51darkslategray
#2a5a51darkslategray

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card19.04:1AAA
Primary button6.05:1AA
Secondary button6.40:1AA
Muted text7.15:1AAA
Accent6.74:1AA
Destructive6.22:1AA
Dark mode
Text on background19.21:1AAA
Text on card19.24:1AAA
Primary button6.05:1AA
Secondary button8.58:1AAA
Muted text7.96:1AAA
Accent7.88:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 184.216);
  --foreground: oklch(0.146 0.02 182.989);
  --muted: oklch(0.9 0.023 183.606);
  --muted-foreground: oklch(0.389 0.025 182.494);
  --popover: oklch(0.987 0.004 184.216);
  --popover-foreground: oklch(0.146 0.02 182.989);
  --card: oklch(0.981 0.005 184.167);
  --card-foreground: oklch(0.127 0.017 184.033);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.432 0.054 180.133);
  --primary-foreground: oklch(0.911 0.028 183.477);
  --secondary: oklch(0.94 0.002 184.261);
  --secondary-foreground: oklch(0.443 0.009 183.79);
  --accent: oklch(0.906 0.009 184.052);
  --accent-foreground: oklch(0.405 0.021 182.826);
  --destructive: oklch(0.462 0.182 30.291);
  --destructive-foreground: oklch(0.928 0.036 23.998);
  --ring: oklch(0.432 0.054 180.133);
  --chart-1: oklch(0.432 0.054 180.133);
  --chart-2: oklch(0.94 0.002 184.261);
  --chart-3: oklch(0.906 0.009 184.052);
  --chart-4: oklch(0.963 0.001 184.281);
  --chart-5: oklch(0.437 0.058 179.81);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.009 184.156);
  --foreground: oklch(0.981 0.006 184.149);
  --muted: oklch(0.294 0.028 181.361);
  --muted-foreground: oklch(0.82 0.021 183.603);
  --popover: oklch(0.121 0.009 184.156);
  --popover-foreground: oklch(0.981 0.006 184.149);
  --card: oklch(0.139 0.01 184.156);
  --card-foreground: oklch(0.987 0.004 184.204);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.432 0.054 180.133);
  --primary-foreground: oklch(0.911 0.028 183.477);
  --secondary: oklch(0.247 0.013 182.781);
  --secondary-foreground: oklch(0.798 0.024 183.49);
  --accent: oklch(0.322 0.027 181.858);
  --accent-foreground: oklch(0.848 0.027 183.434);
  --destructive: oklch(0.651 0.23 29.795);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.432 0.054 180.133);
  --chart-1: oklch(0.432 0.054 180.133);
  --chart-2: oklch(0.247 0.013 182.781);
  --chart-3: oklch(0.322 0.027 181.858);
  --chart-4: oklch(0.282 0.016 182.682);
  --chart-5: oklch(0.437 0.058 179.81);
}