Gunacode
Publisher: Valentin BarralThemes in package: 2
Gunacode color theme for VS Code.
Gunacode color theme for VS Code.
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 | #8C8C8C | italic |
| keyword, keyword.control, keyword.operator, keyword.other, punctuation.definition, punctuation.separator, punctuation.terminator, punctuation.accessor | #ED9366 | — |
| punctuation.section | #6E7580 | — |
| string, string.quoted | #B3AA59 | — |
| constant.numeric, constant.language, constant.other, support.constant | #0095B3 | — |
| entity.name.function | #A37ACC | — |
| variable.function, support.function, support.macro | #ED9366 | italic |
| variable.annotation | #FFA352 | italic |
| variable.language, variable.parameter, variable.member | #0095B3 | italic |
| storage, storage.type | #6E7580 | italic |
| storage.modifier, support.type | #5E8A63 | italic |
| support.class | #5E8A63 | italic |
| entity.name | #5E8A63 | — |
| entity.name.namespace | #A37ACC | — |
| entity.other.inherited-class | #0095B3 | italic |
| invalid, invalid.deprecated | #FF1919 | — |
| entity.name.tag | #ED9366 | — |
| punctuation.definition.tag.end, punctuation.definition.tag.begin, punctuation.definition.tag | #ABB0B6 | |
| entity.other.attribute-name | #5E8A63 | |
| markup.heading, markup.heading punctuation.definition.heading, markup.heading.1 punctuation.definition.heading | #ED9366 | bold |
| string.other.link, markup.underline.link | #0095B3 | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.italic markup.bold, markup.bold markup.italic | — | bold italic |
| punctuation.definition.thematic-break | #ED9366 | — |
| markup.list.numberOrange.bullet, markup.quote punctuation.definition.blockquote, markup.list punctuation.definition.list_item | #0095B3 | — |
| markup.raw | #6E7580 | — |
| markup.raw.inline | #A37ACC | — |
| text punctuation.definition.italic, text punctuation.definition.bold | #A37ACC | — |
| meta.diff, meta.diff.header, markup.deleted, markup.inserted, markup.changed | #ED9366 | — |
| entity.name.tag.yaml | #ED9366 | — |
| source.yaml string.unquoted | #5E8A63 | — |
| source.systemverilog storage.type.module | #B3AA59 | italic |
| source.systemverilog entity.name.type.module | #5E8A63 | — |
| source.systemverilog meta.module.inst meta.bind.param support.function.port | #A37ACC | italic |
| source.systemverilog support.function.port | #ED9366 | italic |
| source.systemverilog support.function.system | #A37ACC | — |
| markup.error.sublime_linter | #FF1919 | — |
| markup.warning.sublime_linter | #FFA352 | — |
| entity.name.filename.sublime_linter | #6E7580 | — |
| entity.name.label.linter-name.sublime_linter | #5E8A63 | — |
| entity.name.class.error-code.sublime_linter | #0095B3 | — |
| invalid.illegal.unclosed-string.json | — | — |
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}!`;
}