Jack's AG Theme
Publisher: JackAGThemes in package: 1
The Singularity Edition VS Code Theme. Neon void aesthetics with glassmorphism support.
The Singularity Edition VS Code Theme. Neon void aesthetics with glassmorphism support.
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 |
|---|---|---|
| comment, punctuation.definition.comment | #546e7a | italic |
| variable, string constant.other.placeholder | #a9b8e8 | — |
| constant.other.php | #a9b8e8 | — |
| constant.language, constant.numeric, constant.other | #ffcb6b | — |
| keyword, storage.type, storage.modifier | #c792ea | italic |
| keyword.operator, punctuation | #89ddff | — |
| entity.name.function, support.function, entity.name.method, meta.function-call | #56b6d4 | bold |
| string, string.template | #c3e88d | — |
| entity.name.type, support.class, support.type | #ffcb6b | italic |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #ff5f56 | — |
| entity.other.attribute-name | #ffcb6b | italic |
| markup.heading, entity.name.section | #56b6d4 | bold |
| markup.bold, punctuation.definition.bold | #ffcb6b | bold |
| markup.italic, punctuation.definition.italic | #c792ea | italic |
| markup.inline.raw | #89ddff | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #56b6d4 | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #56b6d4 | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json | #c3e88d | — |
| source.css entity.other.attribute-name.class | #ffcb6b | italic |
| source.css entity.other.attribute-name.id | #56b6d4 | bold |
| source.css support.type.property-name | #a9b8e8 | — |
| source.css constant.numeric | #c792ea | — |
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}!`;
}