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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 8.72:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 5.93:1 | AA |
| Accent | 7.04:1 | AAA |
| Destructive | 5.15:1 | AA |
| Text on background | 19.87:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 8.72:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 7.49:1 | AAA |
| Accent | 7.04:1 | AAA |
| Destructive | 4.26:1 | AA Large |
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);
}