Inkpot Theme
Publisher: bissliThemes in package: 1
A dark color theme inspired by the classic Inkpot vim colorscheme
A dark color theme inspired by the classic Inkpot vim colorscheme
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 | #cd8b00 | — |
| keyword | #808bed | — |
| storage.type | #808bed | — |
| entity.name.function | #ff8bff | — |
| variable | #cfbfad | — |
| constant.character | #ffcd8b | — |
| entity.name.tag | #808bed | — |
| entity.other.attribute-name | #ff8bff | — |
| meta.preprocessor | #409090 | — |
| support.constant | #ffcd8b | — |
| support.function | #ff8bff | — |
| support.function.builtin | #ff8bff | — |
| entity.name.function.member | #ff8bff | — |
| keyword.control.import, constant.language.import-export | #409090 | — |
| keyword.control.flow | #808bed | — |
| storage.type.function | #808bed | — |
| keyword.control, keyword.operator.logical, keyword.operator.word, keyword.operator.logical.python | #808bed | — |
| variable.language.special | #cfbfad | — |
| constant.language.python | #ff8bff | — |
| support.variable.magic | #cfbfad | — |
| punctuation | #cfbfad | — |
| punctuation.definition.parameters | #cfbfad | — |
| punctuation.definition.bracket | #cfbfad | — |
| punctuation.definition.block | #cfbfad | — |
| meta.brace | #cfbfad | — |
| punctuation.definition.dictionary | #cfbfad | — |
| punctuation.definition.array | #cfbfad | — |
| punctuation.section | #cfbfad | — |
| variable.parameter | #cfbfad | — |
| support.function.magic | #ff8bff | — |
| storage.type | #808bed | — |
| support.type | #ff8bff | — |
| support.class | #808bed | — |
| keyword.operator | #cfbfad | — |
| constant.numeric | #ffcd8b | — |
| conflict.begin | #ffffff | — |
| conflict.ours | #ffffff | — |
| conflict.theirs | #ffffff | — |
| conflict.end | #ffffff | — |
| meta.diff.header | #ffffcd | — |
| markup.deleted | #ffffcd | — |
| markup.inserted | #ffffcd | — |
| markup.changed | #ffffcd | — |
| markup.quote | #409090 | — |
| comment.documentation | #ad7b20 | — |
| comment.documentation.parameter | #fdd090 | — |
| constant, variable.other | #cfbfad | — |
| entity.name.type | #ff8bff | — |
| entity.name.function | #ff8bff | — |
| markup.underline | #df9f2d | bold underline |
| markup.bold | — | bold |
| variable.parameter | #cfbfad | — |
| constant.character.escape | #c080d0 | — |
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}!`;
}