vscode for shadcn/ui

vscode is a shadcn/ui theme built around a deep cyan primary color (#0d222b) with deep blue accents (#0d132b). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the deep cyan primary (#0d222b) on a neutral background (#020304).

Color palette

TokenLightDark
Background
#fbfdfewhite
#020304black
Foreground
#030a0cblack
#f8fbfcghostwhite
Card
#f7fbfdghostwhite
#030607black
Card foreground
#020608black
#fcfdfdwhite
Popover
#fbfdfewhite
#020304black
Popover foreground
#030a0cblack
#f8fbfcghostwhite
Primary
#0d222bblack
#0d222bblack
Primary foreground
#8ec5dcskyblue
#8ec5dcskyblue
Secondary
#0d2b25black
#0d2b25black
Secondary foreground
#40c4aalightseagreen
#40c4aalightseagreen
Muted
#dce0dfgainsboro
#1f2322black
Muted foreground
#4b5351darkslategray
#acb4b2darkgray
Accent
#0d132bblack
#0d132bblack
Accent foreground
#8e9edccornflowerblue
#8e9edccornflowerblue
Destructive
#d12b0afirebrick
#ea300borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#ebeeefwhitesmoke
#1b2022black
Input
#ebeeefwhitesmoke
#1b2022black
Ring
#0d222bblack
#0d222bblack

Contrast

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

Light mode
Text on background19.55:1AAA
Text on card19.55:1AAA
Primary button8.72:1AAA
Secondary button6.98:1AA
Muted text5.93:1AA
Accent7.04:1AAA
Destructive5.15:1AA
Dark mode
Text on background19.87:1AAA
Text on card19.95:1AAA
Primary button8.72:1AAA
Secondary button6.98:1AA
Muted text7.49:1AAA
Accent7.04:1AAA
Destructive4.26:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 225.011);
  --foreground: oklch(0.135 0.016 219.952);
  --muted: oklch(0.903 0.004 183.05);
  --muted-foreground: oklch(0.435 0.01 182.519);
  --popover: oklch(0.993 0.003 225.011);
  --popover-foreground: oklch(0.135 0.016 219.952);
  --card: oklch(0.986 0.005 225.041);
  --card-foreground: oklch(0.118 0.013 218.809);
  --border: oklch(0.947 0.004 225.025);
  --input: oklch(0.947 0.004 225.025);
  --primary: oklch(0.239 0.032 228.167);
  --primary-foreground: oklch(0.793 0.066 226.405);
  --secondary: oklch(0.264 0.037 178.079);
  --secondary-foreground: oklch(0.743 0.12 176.658);
  --accent: oklch(0.196 0.049 270.805);
  --accent-foreground: oklch(0.71 0.094 273.027);
  --destructive: oklch(0.56 0.205 32.279);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.239 0.032 228.167);
  --chart-1: oklch(0.239 0.032 228.167);
  --chart-2: oklch(0.264 0.037 178.079);
  --chart-3: oklch(0.196 0.049 270.805);
  --chart-4: oklch(0.306 0.045 177.712);
  --chart-5: oklch(0.24 0.033 228.443);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.007 220.918);
  --foreground: oklch(0.985 0.003 225.015);
  --muted: oklch(0.252 0.006 182.524);
  --muted-foreground: oklch(0.763 0.009 182.856);
  --popover: oklch(0.093 0.007 220.918);
  --popover-foreground: oklch(0.985 0.003 225.015);
  --card: oklch(0.117 0.008 220.918);
  --card-foreground: oklch(0.993 0.001 224.999);
  --border: oklch(0.24 0.009 225.452);
  --input: oklch(0.24 0.009 225.452);
  --primary: oklch(0.239 0.032 228.167);
  --primary-foreground: oklch(0.793 0.066 226.405);
  --secondary: oklch(0.264 0.037 178.079);
  --secondary-foreground: oklch(0.743 0.12 176.658);
  --accent: oklch(0.196 0.049 270.805);
  --accent-foreground: oklch(0.71 0.094 273.027);
  --destructive: oklch(0.607 0.224 32.205);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.239 0.032 228.167);
  --chart-1: oklch(0.239 0.032 228.167);
  --chart-2: oklch(0.264 0.037 178.079);
  --chart-3: oklch(0.196 0.049 270.805);
  --chart-4: oklch(0.306 0.045 177.712);
  --chart-5: oklch(0.24 0.033 228.443);
}