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 |
|---|---|---|
| — | #F8F8F2 | — |
| comment | #000000 | italic |
| string | #96ceb4 | — |
| constant.numeric | #fff3c5 | — |
| constant.language | #ff6f6a | — |
| constant.character, constant.other | #90cc99 | — |
| variable | #c8c5ff | — |
| keyword | #d09399 | — |
| storage | #F92672 | |
| storage.type | #66D9EF | italic |
| entity.name.class | #bfccec | underline |
| entity.other.inherited-class | #9b5c2e | italic underline |
| entity.name.function | #ffd2a7 | |
| variable.parameter | #c0c5fe | italic |
| entity.name.tag | #c44a87 | |
| entity.other.attribute-name | #A6E22E | |
| support.function | #4f7377 | |
| support.constant | #28aaaa | |
| support.type, support.class | #a06a34 | — |
| support.other.variable | — | |
| source.ruby | #c5c8c6 | — |
| constant.other.symbol.ruby.19syntax | #99cc99 | — |
| variable.other.constant.ruby | #c6c5e2 | — |
| entity.name.type.class.ruby | #ffff9a | — |
| entity.name.type.module.ruby | #ffeb9b | — |
| source.ruby.embedded.source | #ededed | — |
| source.ruby.embedded.source punctuation.section.embedded.ruby | #0b9ba0 | — |
| storage.modifier.import.java | #95cbfe | — |
| storage.modifier.java | #a0d2ff | — |
| entity.name.type.class.java | #ffffb6 | underline |
| storage.type.primitive.array.java | #cfcb82 | — |
| storage.type.object.array.java | #cfcb90 | — |
| constant.numeric.java | #f770fd | — |
| storage.type.java | #cfcb89 | — |
| keyword.operator.dereference.java | #ededed | — |
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}!`;
}