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 |
|---|---|---|
| — | #EDE7CB | — |
| comment | #728083 | — |
| constant | #B4DC35 | — |
| constant.other.placeholder, constant.character.escape | #FD4040 | — |
| entity, support.class, support.type | #FF942C | — |
| invalid | — | — |
| keyword | #269FD9 | — |
| markup | #EDE7CB | — |
| storage | #26B5A3 | — |
| string | #B4DC35 | — |
| variable.language | #FD4040 | — |
| constant.language.source.cs | #FD4040 | — |
| meta.new-object.source.cs storage.modifier, meta.method.body.source.cs storage.modifier | #269FD9 | — |
| meta.new-object.source.cs meta.method | #FF942C | — |
| meta.keyword.using.source.cs | #FF942C | — |
| entity.name.function.source.cs | #EDE7CB | — |
| source.cs storage.type | #FF942C | — |
| meta.method.return-type.source.cs | #FF942C | — |
| comment.block.documentation.source.cs entity, comment.block.documentation.source.cs punctuation.definition.tag | #26B5A3 | — |
| meta.class-struct-block.base-classes.c++ | #FF942C | — |
| storage.type.c | #FF942C | — |
| entity.name.function.c++, entity.name.function.c | #EDE7CB | — |
| comment.block.documentation.javadoc keyword.other.documentation | #26B5A3 | — |
| meta.function.destructor.c++ entity.name.function.c++, meta.function.constructor.c++ entity.name.function.c++ | #FD4040 | — |
| storage.modifier.import.java | #FF942C | — |
| source.java storage.type | #FF942C | — |
| entity.name.function.java | #EDE7CB | — |
| comment.block.documentation.javadoc keyword.other.documentation | #26B5A3 | — |
| storage.type.annotation.java | #26B5A3 | — |
| brackethighlighter.curly | #EDE7CB | — |
| brackethighlighter.round | #EDE7CB | — |
| brackethighlighter.square | #EDE7CB | — |
| brackethighlighter.tag | #FF942C | — |
| brackethighlighter.angle | #FF942C | — |
| brackethighlighter.quote | #B4DC35 | — |
| brackethighlighter.unmatched | #FD4040 | — |
| markup.deleted | #FD4040 | — |
| markup.inserted | #B4DC35 | — |
| markup.changed | #269FD9 | — |
| markup.ignored | #728083 | — |
| markup.untracked | #728083 | — |
| support.function.construct.php | #269FD9 | — |
| source.php variable.other.global | #FD4040 | — |
| keyword.other.phpdoc.php | #26B5A3 | — |
| support.other.namespace.use.php | #FF942C | — |
| support.function.magic.php | #FD4040 | — |
| variable.function.constructor.js, variable.other.class.js | #FF942C | — |
| punctuation.separator.key-value.js | #EDE7CB | — |
| source.js support.type.object | #FD4040 | — |
| support.type.property-name.scss | #269FD9 | — |
| support.constant.property-value.scss, support.constant.font-name.scss, support.constant.color.w3c-standard-color-name.scss | #B4DC35 | — |
| support.function.misc.scss | #FF942C | — |
| punctuation.definition.entity.scss | #FD4040 | — |
| variable.interpolation.scss | #B4DC35 | — |
| variable.parameter.url.scss | #B4DC35 | — |
| support.type.property-name.css | #269FD9 | — |
| support.constant.property-value.css, support.constant.font-name.css, support.constant.color.w3c-standard-color-name.css | #B4DC35 | — |
| support.function.misc.css | #FF942C | — |
| punctuation.definition.entity.css | #FD4040 | — |
| punctuation.definition.tag | #FD4040 | — |
| punctuation.definition.heading.markdown | #FD4040 | — |
| meta.dummy.line-break | — | — |
| meta.separator.markdown | #728083 | — |
| markup.italic | #269FD9 | — |
| markup.bold | #FF942C | — |
| markup.quote | #B4DC35 | — |
| markup.raw | #FD4040 | — |
| markup.underline.link | #26B5A3 | — |
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}!`;
}