gothic-theme-vscode
Publisher: ryoh827Themes in package: 1
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, string.quoted.docstring | #A6A6A6 | |
| emphasis, markup.italic, support | — | italic |
| strong, markup.bold | — | bold |
| markup.underline | — | underline |
| constant | #A7FF9D | — |
| string | #A7FF9D | — |
| storage | #E599FF | — |
| entity.name.type, support.type, entity.name.namespace, entity.name.type.interface, support.class, entity.name.class, entity.name.type.class, entity.other.inherited-class | #B3D8FF | — |
| entity.name.function, entity.name.method, support.function | #C1FFFD | — |
| entity | #C1FFFD | — |
| invalid | #FC9700 | — |
| keyword | #E599FF | — |
| markup.changed | #FF948A | — |
| markup.deleted | #FC9700 | — |
| markup.heading | #E599FF | — |
| markup.inline.raw, markup.raw | #E599FF | — |
| markup.inserted | #A7FF9D | — |
| markup.list | #C1FFFD | — |
| markup.quote | #BDBDBD | — |
| markup.underline.link | #B3D8FF | — |
| punctuation | #A7FF9D | — |
| variable | #F2F2F2 | — |
| variable.parameter | #FF948A | — |
| entity.name.tag.html | #E599FF | — |
| entity.other.attribute-name.html | #C1FFFD | — |
| meta.paragraph.markdown | #F2F2F2 | — |
| entity.name.section.markdown | #E599FF | bold |
| markup.list | #F2F2F2 | — |
| punctuation.definition.list.begin.markdown | #A7FF9D | — |
| markup.bold.markdown, markup.italic.markdown | #A7FF9D | — |
| markup.quote.markdown meta.paragraph.markdown | #BDBDBD | italic |
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}!`;
}