GitHub Dark Mode
Publisher: markusylisiurunenThemes in package: 1
GitHub Dark Mode theme for Visual Studio Code
GitHub Dark Mode theme for Visual Studio Code
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, punctuation.definition.comment, string.comment | #8b949e | — |
| variable.other.constant, entity.name.type | #c9d1d9 | — |
| constant, entity.name.constant, variable.language, variable.object.property, variable.other.object.property, variable.other.constant.property | #79c0ff | — |
| constant.language.import-export-all | #c9d1d9 | — |
| meta.object.member, variable.other.property | #79c0ff | — |
| meta.brace, meta.objectliteral | #c9d1d9 | — |
| entity, entity.name, support.function | #d2a8ff | — |
| variable.parameter | #c9d1d9 | — |
| entity.name.tag | #7ee787 | — |
| keyword | #ff7b72 | — |
| keyword.operator.assignment | #79c0ff | — |
| keyword.operator.type, keyword.operator.optional | #c9d1d9 | — |
| storage, storage.type | #ff7b72 | — |
| storage.type.function.arrow | #79c0ff | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #c9d1d9 | — |
| string, punctuation.definition.string, string punctuation.section.embedded source | #a5d6ff | — |
| punctuation.definition.template-expression, punctuation.definition.parameters, punctuation.definition.block | #c9d1d9 | — |
| support | #79c0ff | — |
| support.type | #ff7b72 | — |
| source.json support.type.property-name | #a5d6ff | — |
| meta.property-name | #79c0ff | — |
| variable | #ffa657 | — |
| variable.other | #c9d1d9 | — |
| invalid.broken | #f0f6fc | italic |
| invalid.deprecated | #f0f6fc | italic |
| invalid.illegal | #f0f6fc | italic |
| invalid.unimplemented | #f0f6fc | italic |
| carriage-return | #f0f6fc | italic underline |
| message.error | #ff7b72 | — |
| string source | #c9d1d9 | — |
| string variable | #79c0ff | — |
| source.regexp, string.regexp | #a5d6ff | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #a5d6ff | — |
| string.regexp constant.character.escape | #7ee787 | bold |
| support.constant | #79c0ff | — |
| support.variable | #79c0ff | — |
| meta.module-reference | #79c0ff | — |
| punctuation.definition.list.begin.markdown | #ffa657 | — |
| markup.heading, markup.heading entity.name | #79c0ff | bold |
| markup.quote | #7ee787 | — |
| markup.italic | #c9d1d9 | italic |
| markup.bold | #c9d1d9 | bold |
| markup.raw | #79c0ff | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #ffdcd7 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #aff5b4 | — |
| markup.changed, punctuation.definition.changed | #ffdfb6 | — |
| markup.ignored, markup.untracked | #c9d1d9 | — |
| meta.diff.range | #d2a8ff | bold |
| meta.diff.header | #79c0ff | — |
| meta.separator | #79c0ff | bold |
| meta.output | #79c0ff | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #8b949e | — |
| brackethighlighter.unmatched | #f85149 | — |
| constant.other.reference.link, string.other.link | #a5d6ff | underline |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}