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 |
|---|---|---|
| — | #777777 | — |
| comment | #a1784cee | italic bold |
| string | #aaafebee | — |
| constant.numeric | #8fc2bbbb | — |
| meta.use, support.other.namespace | #ef6aa7dd | — |
| constant.language | #bDbe82 | |
| storage | #8B6ccfff | — |
| entity.name.function | #12ffa9f7 | — |
| meta.function-call | #cBaf6cff | — |
| support.function | #ADAeB2 | — |
| entity.name.function.misc | #E3E4A9 | — |
| entity.name.function.predicate | #A5DF93 | — |
| entity.name.function.io | #DFB3AC | — |
| variable.other.external-symbol | #BBDFDD | — |
| variable.language, variable.other | #3aafff | — |
| variable.parameter, variable.assignment | #3aafff | — |
| keyword.control | #cB5F5Df0 | |
| keyword.operator | #bB7Dbf | |
| keyword | #bB7Dbf | |
| entity.name.structure | #22ff99df | — |
| entity.name.type | #af77a9ee | — |
| meta.class, entity.name.class, entity.name.type.class | #ff4377 | — |
| support.class | #ef6aa7dd | — |
| invalid | #DFDFD5 | — |
| string source | #3399ffff | italic |
| entity.name.tag | #49a6d2 | — |
| entity.other.attribute-name | #4986c2cc | |
| source.php, source.asp, source.ruby, source.python, source.perl, punctuation.whitespace | — | — |
| text | — | — |
| source.css | — | — |
| source.js | — | — |
| markup.inserted.git_gutter | #6cc644 | — |
| markup.deleted.git_gutter | #ff7Dbf | — |
| markup.changed.git_gutter | #ff984c | — |
| markup.inserted | #12ffa9a0 | — |
| markup.deleted | #ff4377a0 | — |
| markup.changed, meta.diff.range | #a1784c | — |
| meta.diff.header | #a1784c | — |
| source.git-diff.command | #bB7Dbf | — |
| sublimelinter.mark.error | #D02000 | — |
| sublimelinter.mark.warning | #DDB700 | — |
| sublimelinter.gutter-mark | #FFFFFF | — |
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}!`;
}