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 | — |
| comment, punctuation.definition.comment | #AAAAAA | — |
| keyword.operator.class, constant.other, source.php.embedded.line, text.html | #000000 | — |
| keyword, storage, storage.type, entity.name.tag.css, constant.other.php | #EE3E34 | — |
| entity.name.function, meta.function-call, support.function, keyword.other.special-method, meta.block-level | #673AB7 | — |
| entity.other.attribute-name | #EE3E34 | — |
| keyword.operator, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.definition.tag.*.*, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | #4CAF50 | — |
| string, constant.other.symbol, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter | #4CAF50 | — |
| entity.name.class, entity.name.type.class, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter | #0062BD | — |
| constant.numeric, constant.language, support.constant, constant.character, variable.parameter, punctuation.section.embedded, keyword.other.unit | #FF9800 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #EE3E34 | — |
| variable, support.other.variable, string.other.link, entity.name.tag.inline.any.html, entity.name.tag.block.any.html, entity.name.tag.script.html, entity.name.tag.structure.any.html, meta.tag.structure.any.html, entity.name.tag | #0062BD | — |
| invalid | — | — |
| meta.separator | — | — |
| invalid.deprecated | — | — |
| *url*, *link*, *uri* | — | — |
| source.php.embedded, source.css.embedded, source.js.embedded, source.*.embedded | — | — |
| markup.bold | #EE3E34 | bold underline |
| markup.italic | #FF9800 | italic |
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}!`;
}