KH Theme Pack
Publisher: Ed MoralesThemes in package: 2
Subtle fantasy-inspired dark themes for VS Code: Gold and Silver variants with accessibility-minded contrast.
Subtle fantasy-inspired dark themes for VS Code: Gold and Silver variants with accessibility-minded contrast.
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 | #697991 | italic |
| comment.block.documentation, comment.documentation | #8499B8 | italic |
| keyword, storage, keyword.control, keyword.control.flow, keyword.operator.word, storage.modifier, storage.type | #CDD9E9 | bold |
| keyword.operator, punctuation.separator, punctuation.terminator | #7D93B5 | — |
| entity.name.function, support.function, support.function.builtin, entity.name.function.member, meta.function-call, variable.function | #54E1FF | — |
| string, string.template, punctuation.definition.string | #A7F0D1 | — |
| entity.name.type, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.namespace, support.type, support.class, storage.type | #F7FBFF | — |
| constant.numeric, constant.language, constant.language.boolean, constant.language.null, constant.character.escape, constant.other.symbol | #E7C985 | bold |
| variable, meta.definition.variable | #C2D0E4 | — |
| variable.other.property, variable.object.property, variable.other.constant | #A8BDD9 | — |
| entity.name.tag, entity.other.attribute-name, support.type.property-name, meta.object-literal.key | #8CCEFF | — |
| variable.parameter, meta.parameter.object-pattern | #9CC9FF | — |
| constant.other, variable.language | #BF974B | — |
| invalid, invalid.illegal | #FF7F8E | bold |
| markup.bold, markup.heading | #F4F8FF | bold |
| markup.italic | #93A8C8 | italic |
| markup.inline.raw, markup.fenced_code.block | #A7F0D1 | — |
| punctuation.section.embedded, punctuation.definition.template-expression, punctuation.bracket, punctuation.definition.tag | #7D93B5 | — |
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}!`;
}