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 |
|---|---|---|
| — | #d2d6e0 | — |
| variable.parameter.function | #fafafa | bold |
| comment, punctuation.definition.comment | #4caf50 | |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array, punctuation.terminator | #9e9e9e | |
| punctuation.separator, punctuation.section, meta.brace, meta.delimiter | #9e9e9e | |
| keyword.operator | #9e9e9e | |
| keyword | #03a9f4 | bold |
| variable.declaration, variable.parameter, variable.other | #00bfa5 | |
| entity.name.filename.find-in-files | #ba68c8 | bold |
| constant.numeric.line-number.match.find-in-files | #03a9f4 | bold |
| entity.name.function, meta.require, support.function.any-method | #8bc34a | bold |
| support.class, entity.name.class, entity.name.type.class, entity.name.type.module, meta.class | #ba68c8 | bold |
| keyword.other.special-method | #ba68c8 | bold |
| storage | #03a9f4 | bold |
| support | #f48fb1 | |
| string, entity.other.inherited-class, punctuation.definition.string, support.constant.property-value | #ff5252 | |
| constant.numeric | #ff6e40 | |
| constant.other.symbol | #ff6e40 | |
| none | #ff6e40 | |
| constant.language.boolean | #ff6e40 | |
| constant, support.constant, variable.language | #ff6e40 | |
| entity.name.tag, punctuation.definition.tag | #03a9f4 | |
| entity.other.attribute-name | #00bfa5 | |
| entity.other.attribute-name.id, punctuation.definition.entity | #00bfa5 | |
| meta.selector, meta.object-literal.key | #ba68c8 | |
| markup.heading punctuation.definition.heading, entity.name.section | #03a9f4 | bold |
| keyword.other.unit | #ff6e40 | |
| markup.bold, punctuation.definition.bold | #ba68c8 | bold |
| markup.italic, punctuation.definition.italic | #ba68c8 | italic |
| markup.raw.inline | #ff5252 | |
| string.other.link | #fafafa | bold |
| meta.link | #03a9f4 | |
| markup.list | #ff6e40 | |
| markup.quote | #ff5252 | |
| meta.separator | #9e9e9e | |
| markup.inserted | #4caf50 | |
| markup.deleted | #ff5252 | |
| markup.changed | #8bc34a | |
| constant.other.color | #ff6e40 | |
| string.regexp | #ff6e40 | |
| constant.character.escape | #00bfa5 | |
| punctuation.section.embedded, variable.interpolation | #00bfa5 | |
| sublimelinter.mark.warning | #8bc34a | — |
| sublimelinter.gutter-mark | #8bc34a | — |
| sublimelinter.mark.error | #ff5252 | — |
| invalid, invalid.illegal | #fafafa | bold |
| invalid.broken | #ff5252 | bold |
| invalid.deprecated | #ff5252 | bold |
| invalid.unimplemented | #ff5252 | 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}!`;
}