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 |
|---|---|---|
| — | #FFF6E5 | — |
| comment, punctuation.definition.comment, punctuation.whitespace.comment | #7F8B98 | — |
| meta.brace, punctuation, punctuation.section, punctuation.definition | #FFF6E5 | — |
| punctuation.definition.tag | #B5C6D8 | — |
| keyword.operator | #B5C6D8 | — |
| string, variable.parameter.url, punctuation.definition.string | #67D8E6 | — |
| string.regexp, string.regexp punctuation.definition | #7ECEFD | — |
| constant.character.escape | #FFF6E5 | — |
| constant.numeric, keyword.other.unit, keyword.unit | #2185C5 | — |
| constant.language, constant.character, constant.other, constant.other.color.rgb-value.scss, support.constant, punctuation.definition.constant | #7ECEFD | — |
| variable | #FF7F66 | — |
| keyword | #FFF6E5 | — |
| storage | #FF7F66 | — |
| storage.type | #2185C5 | — |
| entity.name.class | #00ff00 | — |
| variable.parameter | #FF7F66 | — |
| entity.name.tag, keyword.control.html.elements, meta.tag.sgml, keyword.doctype | #2185C5 | — |
| meta.attribute, entity.other.attribute-name | #7ECEFD | — |
| support.function | #FF7F66 | — |
| support.type, support.class | #FFF6E5 | — |
| invalid, keyword.other.important.css | #E85451 | — |
| invalid.deprecated | #E85451 | — |
| meta.structure.dictionary.json string.quoted.double.json | #7ECEFD | — |
| meta.diff, meta.diff.header | #7ECEFD | — |
| markup.deleted | #E85451 | — |
| markup.inserted | #24B279 | — |
| markup.changed | #FDC77E | — |
| svn entity.name | #FF7F66 | — |
| constant.numeric.line-number.find-in-files - match | #7F8B98 | — |
| source.css.embedded, source.js.embedded, markup.raw | — | italic |
| meta.property-name, support.type.property-name | #B5C6D8 | — |
| entity.other.attribute-name.class | #7ECEFD | — |
| keyword.control.at-rule, variable.other.less, variable.declaration.less | #FF7F66 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #FF7F66 | — |
| markup.list, text.html.markdown punctuation.definition, meta.separator.markdown | #FF7F66 | — |
| markup.heading | #2185C5 | — |
| markup.quote, meta.paragraph.list | #7ECEFD | — |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.underline.link.markdown, meta.link.inline punctuation.definition.metadata, meta.link.reference.markdown punctuation.definition.constant, meta.link.reference.markdown constant.other.reference | #7F8B98 | — |
| meta.paragraph.markdown meta.dummy.line-break | — | — |
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}!`;
}