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 |
|---|---|---|
| — | #EAD4AF | — |
| comment | #908476 | — |
| string | #AAB11E | — |
| punctuation.separator.key-value | #CF8498 | — |
| constant | #CC869B | — |
| variable | #EAD4AF | — |
| variable.other.object | #CAB990 | — |
| variable.other.class, variable.other.constant | #F1C050 | — |
| meta.property.object, entity.name.tag | #EAD4AF | — |
| meta.function, meta.function.static.arrow, meta.function.arrow | #EAD4AF | — |
| keyword, string.regexp punctuation.definition | #FB4938 | — |
| storage, storage.type | #FB4938 | — |
| markup.underline.link | #FB4938 | — |
| entity.name.class, entity.name.type.class | #BABC52 | — |
| entity.other.inherited-class, tag.decorator, tag.decorator entity.name.tag | #7BA093 | — |
| entity.name.function, meta.function entity.name.function | #8AB572 | — |
| variable.parameter, meta.function storage.type | #FD971F | — |
| entity.name.tag | #FB4938 | italic |
| entity.other.attribute-name | #8AB572 | italic |
| support.type, support.class, support.function, variable.language, support.constant, string.regexp keyword.control | #F1C050 | — |
| punctuation.template-string.element, string.regexp punctuation.definition.group, constant.character.escape | #8AB572 | — |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| keyword.operator, keyword.operator.logical, meta.property-name, meta.brace, punctuation.definition.parameters.begin, punctuation.definition.parameters.end, keyword.other.parenthesis | #CAB990 | — |
| keyword.operator.ternary | #7BA093 | — |
| punctuation.separator.parameter | #EAD4AF | — |
| keyword.operator.module | #FB4938 | — |
| sublimelinter.mark.error | #D02000 | — |
| sublimelinter.mark.warning | #DDB700 | — |
| sublimelinter.gutter-mark | #FFFFFF | — |
| markup.inserted | #70c060 | — |
| markup.changed | #DDB700 | — |
| markup.deleted | #FB4938 | — |
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}!`;
}