Custom Abyss Theme
Publisher: Tommytang111Themes in package: 1
A customized version of the Abyss theme with green comments, red strings, and a lighter minimap.
A customized version of the Abyss theme with green comments, red strings, and a lighter minimap.
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 |
|---|---|---|
| — | #6688cc | — |
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown | #6688cc | — |
| comment | #02b302 | — |
| string | #ff4444 | — |
| constant.numeric | #f280d0 | — |
| constant.language | #f280d0 | — |
| constant.character, constant.other | #f280d0 | — |
| variable | — | |
| keyword | #225588 | — |
| storage | #225588 | |
| storage.type | #9966b8 | italic |
| entity.name.class, entity.name.type, entity.name.namespace, entity.name.scope-resolution | #ffffff | underline |
| entity.other.inherited-class | #00aeff | italic underline |
| entity.name.function | #00aeff | |
| variable.parameter | #2277ff | italic |
| entity.name.tag | #225588 | |
| entity.other.attribute-name | #00aeff | |
| support.function | #9966b8 | |
| support.constant | #9966b8 | |
| support.type, support.class | #9966b8 | italic |
| support.other.variable | — | |
| invalid | #A22D44 | |
| invalid.deprecated | #A22D44 | — |
| meta.diff, meta.diff.header | #E0EDDD | italic |
| markup.deleted | #dc322f | |
| markup.changed | #cb4b16 | |
| markup.inserted | #219186 | — |
| markup.quote | #22aa44 | — |
| markup.bold, markup.italic | #22aa44 | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inline.raw | #9966b8 | |
| markup.heading, markup.heading.setext | #6688cc | 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}!`;
}