DuoTone Dark Faithful
Publisher: glennslThemes in package: 5
Faithful DuoTone Dark Themes for Visual Studio Code
Faithful DuoTone Dark Themes for Visual Studio Code
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #88b4e7 | — |
| entity.name.class, entity.other.inherited-class, entity.name.function, entity.name.tag, entity.other.attribute-name | #d6e9ff | — |
| variable, variable.language, variable.other, variable.parameter | #88b4e7 | |
| support.type, support.class | #5d8cc0 | — |
| comment, punctuation | #586f89 | — |
| string, constant.numeric, constant.character, constant.other, storage.type, support.constant, constant.language, support.function | #34FEBB | — |
| keyword, storage | #32AE85 | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.parameters, punctuation.definition.array | #42675A | — |
| entity.other.attribute-name.html | #88b4e7 | |
| text.html.mt | #5d8cc0 | — |
| text.html.mt meta.tag.sgml.html meta.tag.sgml.doctype.html, text.html.mt meta.tag.sgml.html meta.tag.sgml.doctype.html, entity.name.tag.doctype.html, text.html.mt comment.block.html | #586f89 | — |
| entity.name.class, entity.other.inherited-class, entity.name.function, entity.name.tag, entity.other.attribute-name | #d6e9ff | — |
| variable.other.php, variable.other.php punctuation.definition.variable.php, source.php source.php.embedded.block.html meta.function.php meta.function.arguments.php meta.function.argument.no-default.php variable.other.php, source.php source.php.embedded.block.html variable.other.property.php, source.php source.php.embedded.block.html meta.function.php | #88b4e7 | |
| punctuation.definition.comment.js, source.php source.php.embedded.block.html punctuation.section.embedded.begin.php, source.php source.php.embedded.block.html comment.line.double-slash.php punctuation.definition.comment.php, source.php source.php.embedded.block.html variable.other.php | #586f89 | — |
| source.js support.function.dom.js | #5d8cc0 | — |
| source.js comment.line.double-slash.js punctuation.definition.comment.js | #586f89 | — |
| source.js keyword.operator.js, source.js meta.function.js | #32AE85 | — |
| source.js meta.brace.curly.js | #42675A | — |
| source.reason support.property-value | #88b4e7 | |
| source.reason entity.name.class | #586f89 | — |
| source.ocaml support.constant.property-value | #88b4e7 | |
| source.ocaml constant.numeric | #586f89 | — |
| entity.other.attribute-name | #34FEBB | — |
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}!`;
}