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 |
|---|---|---|
| — | #3f4e5c | — |
| variable.parameter.function | #222222 | bold |
| comment, punctuation.definition.comment | #00aa00 | |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array, punctuation.terminator | #bb9900 | |
| punctuation.separator, punctuation.section, meta.brace, meta.delimiter | #bb9900 | |
| keyword.operator | #bb9900 | |
| keyword | #0000cc | bold |
| variable.declaration, variable.parameter, variable.other | #0088aa | |
| entity.name.filename.find-in-files | #aa00ee | bold |
| constant.numeric.line-number.match.find-in-files | #0000cc | bold |
| entity.name.function, meta.require, support.function.any-method | #0088aa | bold |
| support.class, entity.name.class, entity.name.type.class, entity.name.type.module, meta.class | #aa00ee | bold |
| keyword.other.special-method | #aa00ee | bold |
| storage | #0000cc | bold |
| support | #dd44aa | |
| string, entity.other.inherited-class, punctuation.definition.string, support.constant.property-value | #cc0000 | |
| constant.numeric | #dd6600 | |
| constant.other.symbol | #dd6600 | |
| none | #dd6600 | |
| constant.language.boolean | #dd6600 | |
| constant, support.constant, variable.language | #dd6600 | |
| entity.name.tag, punctuation.definition.tag | #0000cc | |
| entity.other.attribute-name | #0088aa | |
| entity.other.attribute-name.id, punctuation.definition.entity | #0088aa | |
| meta.selector, meta.object-literal.key | #aa00ee | |
| markup.heading punctuation.definition.heading, entity.name.section | #0000cc | bold |
| keyword.other.unit | #dd6600 | |
| markup.bold, punctuation.definition.bold | #aa00ee | bold |
| markup.italic, punctuation.definition.italic | #aa00ee | italic |
| markup.raw.inline | #cc0000 | |
| string.other.link | #222222 | bold |
| meta.link | #0000cc | |
| markup.list | #dd6600 | |
| markup.quote | #bb9900 | |
| meta.separator | #bb9900 | |
| markup.inserted | #00aa00 | |
| markup.deleted | #cc0000 | |
| markup.changed | #bb9900 | |
| constant.other.color | #dd6600 | |
| string.regexp | #dd6600 | |
| constant.character.escape | #00aa00 | |
| punctuation.section.embedded, variable.interpolation | #aa00ee | |
| sublimelinter.mark.warning | #bb9900 | — |
| sublimelinter.gutter-mark | #bb9900 | — |
| sublimelinter.mark.error | #cc0000 | — |
| invalid, invalid.illegal | #f8f8f8 | bold |
| invalid.broken | #cc0000 | bold |
| invalid.deprecated | #cc0000 | bold |
| invalid.unimplemented | #cc0000 | 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}!`;
}