Abyss++
Publisher: GlydricThemes in package: 3
Default Abyss theme with few tweaks here and there to suit my style
Default Abyss theme with few tweaks here and there to suit my style
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #68c | — |
| meta.embedded, source.groovy.embedded | #9cdcfe | — |
| string | #ce9178 | — |
| comment, comment.block.js | #457dadd3 | — |
| support.type, support.class, entity.name.function | #9cdcfe | — |
| constant.numeric | #9de | — |
| entity.other.attribute-name | #db8 | — |
| entity.name.tag, keyword | #18c | — |
| support.function | #27f | — |
| variable.parameter | #27f | — |
| variable | — | |
| storage | #258 | — |
| storage.type | #9966b8 | — |
| entity.name.class, entity.name.scope-resolution, entity.name.namespace | #feb | underline |
| constant.language | #AE81FF | — |
| entity.other.inherited-class | #db8 | underline |
| support.function, entity.name.function | #C8B482 | — |
| support.constant | #9966b8 | — |
| support.other.variable | — | |
| invalid | #A22D44 | — |
| invalid.deprecated | #A22D44 | — |
| meta.diff, meta.diff.header | #E0EDDD | — |
| markup.deleted | #dc322f | — |
| markup.changed | #cb4b16 | — |
| markup.inserted | #1c5a54 | — |
| markup.quote | #2a4 | — |
| markup.bold, markup.italic | #2a4 | — |
| markup.bold | — | bold |
| markup.italic | — | — |
| markup.inline.raw | #9966b8 | — |
| markup.heading, markup.heading.setext | #68c | 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}!`;
}