MultiTheme
Publisher: Arturo ArevaloThemes in package: 336
A collection of themes ported from TextMate
A collection of themes ported from TextMate
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #000000 | — |
| text | #000000 | — |
| constant.numeric - source.css | #EE000B | |
| comment | #9A9A9A | |
| text.html meta.tag | #00359E | |
| text.html.basic meta.tag string.quoted - source | #001EFF | — |
| text.html.basic constant.character.entity.html | #000000 | bold |
| text.html meta.tag.a - string | #106800 | |
| text.html meta.tag.img - string | #6D232E | — |
| text.html meta.tag.form - string | #FF9700 | — |
| text.html meta.tag.table - string | #009079 | — |
| source.js.embedded.html punctuation.definition.tag - source.php, source.js.embedded.html entity.name.tag.script, source.js.embedded entity.other.attribute-name - source.js string | #842B44 | |
| source.js comment - source.php | #9A9A9A | — |
| source.js meta.function - source.php | #000000 | |
| source.js meta.class - source.php, source.js support.function - source.php | #24C696 | — |
| source.js string - source.php, source.js keyword.operator | #0035FF | |
| source.js support.class | #7E00B7 | — |
| source.js storage | #000000 | bold |
| source.js storage - storage.type.function - source.php, source.js constant - source.php, source.js keyword - source.php, source.js variable.language, source.js meta.brace, source.js punctuation.definition.parameters.begin, source.js punctuation.definition.parameters.end | #05208C | bold |
| source.js string.regexp, source.js string.regexp constant | #106800 | — |
| source.css.embedded.html punctuation.definition.tag, source.css.embedded.html entity.name.tag.style, source.css.embedded entity.other.attribute-name - meta.selector | #8D00B7 | — |
| source.css meta.at-rule.import.css | #009C7F | bold |
| source.css keyword.other.important | #EE000B | bold |
| source.css meta.at-rule.media | #430303 | bold |
| source.css string | #106800 | — |
| source.css meta.selector, source.css meta.property-list, source.css meta.at-rule | #DA29FF | — |
| source.css punctuation.separator - source.php, source.css punctuation.terminator - source.php | #DA29FF | bold |
| source.css meta.property-name | #05208C | — |
| source.css meta.property-value | #0035FF | — |
| source.php punctuation.section.embedded.begin, source.php punctuation.section.embedded.end | #EE000B | bold |
| source.php - punctuation.section | #000000 | |
| source.php variable, source.php meta.function.arguments | #000000 | — |
| source.php punctuation - string - variable - meta.function | #05208C | — |
| source.php storage.type | #24BF96 | — |
| source.php keyword - comment, source.php storage.type.class, source.php storage.type.interface, source.php storage.modifier, source.php constant.language | #009714 | — |
| source.php support, source.php storage, source.php keyword.operator, source.php storage.type.function | #0035FF | — |
| source.php variable.other.global | #0092F2 | — |
| source.php support.constant, source.php constant.language.php | #551D02 | — |
| source.php string, source.php string keyword.operator | #E20000 | |
| source.php string.quoted.double variable | #FF6200 | — |
| source.php comment | #FF9404 | — |
| invalid | #EE000B | bold |
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}!`;
}