Laptop for shadcn/ui

Laptop is a shadcn/ui theme built around a vivid blue primary color (#0c95e4) with vivid orange accents (#e45b0c). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#0c95e4) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#030f16black
#f9fafbghostwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#030c12black
#fcfdfdwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#030c12black
#fcfdfdwhite
Primary
#0c95e4dodgerblue
#0c95e4dodgerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e45b0cchocolate
#e45b0cchocolate
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ede0d9antiquewhite
#261912black
Muted foreground
#584941darkolivegreen
#beafa7darkgray
Accent
#e45b0cchocolate
#e45b0cchocolate
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#873008saddlebrown
#f26726chocolate
Destructive foreground
#fcd6c5peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c95e4dodgerblue
#0c95e4dodgerblue

Contrast

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

Light mode
Text on background19.37:1AAA
Text on card19.29:1AAA
Primary button3.27:1AA Large
Secondary button3.62:1AA Large
Muted text6.66:1AA
Accent3.62:1AA Large
Destructive6.33:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.29:1AAA
Primary button3.27:1AA Large
Secondary button3.62:1AA Large
Muted text8.00:1AAA
Accent3.62:1AA Large
Destructive6.74:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.161 0.025 232.311);
  --muted: oklch(0.916 0.018 52.323);
  --muted-foreground: oklch(0.419 0.024 51.849);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.147 0.022 229.673);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.147 0.022 229.673);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.644 0.156 243.801);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.64 0.186 42.981);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.64 0.186 42.981);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.431 0.128 40.647);
  --destructive-foreground: oklch(0.904 0.048 46.334);
  --ring: oklch(0.644 0.156 243.801);
  --chart-1: oklch(0.644 0.156 243.801);
  --chart-2: oklch(0.64 0.186 42.981);
  --chart-3: oklch(0.64 0.186 42.981);
  --chart-4: oklch(0.67 0.195 42.868);
  --chart-5: oklch(0.648 0.159 244.336);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.001 232.596);
  --muted: oklch(0.229 0.025 51.124);
  --muted-foreground: oklch(0.765 0.021 52.227);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.992 0.001 232.588);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 232.588);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.644 0.156 243.801);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.64 0.186 42.981);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.64 0.186 42.981);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.679 0.187 41.991);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.644 0.156 243.801);
  --chart-1: oklch(0.644 0.156 243.801);
  --chart-2: oklch(0.64 0.186 42.981);
  --chart-3: oklch(0.64 0.186 42.981);
  --chart-4: oklch(0.67 0.195 42.868);
  --chart-5: oklch(0.648 0.159 244.336);
}