mastoid-color-theme-vsc
Publisher: dpfgThemes in package: 1
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 |
|---|---|---|
| — | #000000 | — |
| comment | #006600 | |
| keyword, storage | #336699 | |
| constant.numeric | #33AAAA | |
| string | #006600 | |
| constant | #000000 | |
| constant.language | #000000 | |
| variable.language, variable.other | #000000 | |
| constant.character.escaped, constant.character.escape, string source | ||
| other.preprocessor | #1A921C | |
| entity.name.preprocessor | #0C450D | |
| entity.name.function, keyword.other.name-of-parameter.objc | #000000 | |
| entity.name.class | #111111 | — |
| entity.other.inherited-class | — | |
| variable.parameter | — | |
| storage.type.method | #70727E | |
| meta.section entity.name.section, declaration.section entity.name.section | — | |
| support.function | #000000 | |
| support.class, support.type | #000000 | |
| support.constant | #000000 | |
| support.other.variable | #000000 | |
| keyword.operator.js | #000000 | — |
| invalid | #FFFFFF | — |
| invalid.trailing-whitespace | — | — |
| text source, string.unquoted | — | — |
| meta.xml-processing, declaration.xml-processing | #4F4F4F | |
| meta.doctype, declaration.doctype | #888888 | |
| meta.doctype.DTD, declaration.doctype.DTD | — | |
| meta.tag, declaration.tag | #336699 | |
| entity.name.tag | — | |
| entity.other.attribute-name | — | |
| markup.heading | #336699 | |
| markup.quote | #000000 | |
| markup.list | #B90690 | — |
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}!`;
}