Visual Studio Dark Theme
Publisher: AdrienThemes in package: 1
Visual Studio dark color theme
Visual Studio dark color theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #FFFFFF | — |
| comment | #608B4E | |
| variable | #FFFFFF | |
| keyword | #569CD6 | |
| keyword.operator.comparison | #FFFFFF | |
| keyword.operator.assignment | #FFFFFF | |
| keyword.operator.arithmetic | #FFFFFF | |
| constant.numeric | #B5CEA8 | |
| constant | #B4CEA8 | |
| constant.language | #569CD6 | |
| constant.language.boolean | #569CD6 | |
| string | #D69D85 | |
| constant.character.escape, string source | #E3BBAB | |
| meta.preprocessor | #9B9B9B | |
| keyword.control.import | #9B9B9B | |
| entity.name.function, keyword.other.name-of-parameter.objc | #FFFFFF | |
| entity.name.type | #4EC9B0 | |
| storage.type | #569CD6 | |
| storage.modifier | #569CD6 | |
| entity.other.inherited-class | #4EC9B0 | |
| variable.parameter | — | |
| storage.type.method | #70727E | |
| meta.section entity.name.section, declaration.section entity.name.section | — | |
| support.function | #FFFFFF | |
| support.class, support.type | #FFFFFF | |
| support.constant | #B5CEA8 | |
| support.variable | #FFFFFF | |
| keyword.operator.js | #687687 | — |
| invalid | #ff3333 | — |
| invalid.deprecated.trailing-whitespace | — | — |
| text source, string.unquoted | — | — |
| meta.xml-processing, declaration.xml-processing | #68685B | |
| meta.doctype, declaration.doctype | #808080 | |
| meta.doctype.DTD, declaration.doctype.DTD | — | |
| meta.tag, declaration.tag | #808080 | |
| entity.name.tag | #569CD6 | |
| entity.other.attribute-name | #92CAF4 | |
| string.quoted.double.xml, string.quoted.double.html | #C8C8C8 | |
| markup.heading | #0C07FF | |
| markup.quote | #000000 | |
| markup.list | #B90690 | — |
| meta.selector.css entity.name.tag | #D7BA7D | — |
| meta.selector.css entity.other.attribute-name.tag.pseudo-class | #D7BA7D | — |
| meta.selector.css entity.other.attribute-name.id | #D7BA7D | — |
| meta.selector.css entity.other.attribute-name.class | #D7BA7D | — |
| support.type.property-name.css | #9CDCFE | — |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #C8C8C8 | — |
| meta.preprocessor.at-rule keyword.control.at-rule | #87CEFA | — |
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}!`;
}