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 |
|---|---|---|
| — | #e0e0fa | — |
| comment | #9ba9c7 | — |
| string | #f283a7 | — |
| constant.numeric | #f5d5e8 | — |
| constant.language | #e0e0fa | — |
| constant.character, constant.other | #e0e0fa | — |
| variable | #e0e0fa | — |
| keyword.operator | #91d4f0 | bold |
| punctuation.definition.tag | #9ba9c7 | — |
| keyword | #e0e0fa | bold |
| storage | #e0e0fa | bold |
| storage.type | #e0e0fa | bold |
| entity.name.class | #dad4e7 | underline |
| entity.other.inherited-class | #b6a9cf | italic |
| entity.name.function | #91d4f0 | |
| variable.parameter | #b2cfdf | italic |
| support.function | #21b09f | italic |
| support.constant | #00FFFF | |
| support.type, support.class | #00FFFF | italic |
| entity.name.tag | #dae4f9 | bold |
| entity.other.attribute-name | #a1aecb | |
| entity.other.attribute-name.class.scss | #c6d5f4 | — |
| entity.other.attribute-name.id.scss | #c7859b | — |
| support.type.property-name.scss | #cacfda | — |
| support.constant.property-value.scss | #b7abcf | — |
| variable.parameter.scss | #e0e0fa | — |
| entity.other.attribute-name.tag.pseudo-class | #21b09f | — |
| variable.parameter.url | #21b09f | — |
| entity.other.attribute-name.class.css | #c6d5f4 | — |
| entity.other.attribute-name.id.css | #c7859b | — |
| support.type.property-name.css | #cacfda | — |
| meta.property-value support.constant.property-value.css | #b7abcf | — |
| meta.preprocessor.at-rule keyword.control.at-rule | #21b09f | — |
| meta.property-value support.constant.named-color.css, meta.property-value constant | #81DF97 | — |
| meta.constructor.argument.css | #aeb4c5 | — |
| meta.structure.dictionary.json string.quoted.double.json | #c7859b | — |
| meta.structure.dictionary.json string.quoted.double.json | #c7859b | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #cacfda | — |
| invalid | #ba7336 | |
| invalid.deprecated | #ba7336 | — |
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}!`;
}