Kanagawa Vague
Publisher: Emmett HintzThemes in package: 2
A VSCode port of vague.nvim with both dark (Kanagawa-inspired) and light (Serendipity Morning-inspired) variants.
A VSCode port of vague.nvim with both dark (Kanagawa-inspired) and light (Serendipity Morning-inspired) variants.
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 | #6e6a86 | italic |
| constant | #aeaed1 | — |
| constant.numeric, constant.language | #e0a363 | — |
| entity.name | #b4d4cf | — |
| entity.name.section, entity.name.tag, entity.name.namespace, entity.name.type | #9bb4bc | — |
| entity.other.attribute-name, entity.other.inherited-class | #bb9dbd | italic |
| invalid | #df6882 | — |
| invalid.deprecated | #908caa | — |
| keyword | #6e94b2 | — |
| markup.inserted.diff | #8cb66d | — |
| markup.deleted.diff | #df6882 | — |
| markup.heading | — | bold |
| markup.bold.markdown | — | bold |
| markup.italic.markdown | — | italic |
| meta.diff.range | #c48282 | — |
| meta.tag, meta.brace | #e0def4 | — |
| meta.import, meta.export | #6e94b2 | — |
| meta.directive.vue | #c48282 | italic |
| meta.property-name.css | #c3c3d5 | — |
| meta.property-value.css | #e8b589 | — |
| meta.tag.other.html | #878787 | — |
| punctuation | #878787 | — |
| punctuation.accessor | #6e94b2 | — |
| punctuation.definition.string | #e8b589 | — |
| punctuation.definition.tag | #878787 | — |
| storage.type, storage.modifier | #6e94b2 | — |
| string | #e8b589 | — |
| support | #b4d4cf | — |
| support.constant | #aeaed1 | — |
| support.function | #df6882 | — |
| variable.other, variable.language, variable.function, variable.argument | #cdcdcd | — |
| entity.name.function, meta.member.property | #df6882 | — |
| variable.parameter | #bb9dbd | — |
| punctuation.definition.bracket.level1 | #8cb66d | — |
| punctuation.definition.bracket.level2 | #6e94b2 | — |
| punctuation.definition.bracket.level3 | #e0a363 | — |
| punctuation.definition.bracket.level4 | #df6882 | — |
| punctuation.definition.bracket.level5 | #aeaed1 | — |
| punctuation.definition.bracket.level6 | #cdcdcd | — |
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}!`;
}