KAROU Theme
Publisher: HAAZIQ-ALIThemes in package: 3
A dark theme collection for VS Codium with nature-inspired colors
A dark theme collection for VS Codium with nature-inspired colors
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 | #7b8ac7 | italic |
| keyword | #7dcfff | bold |
| keyword.control, keyword.operator.logical, keyword.operator.new | #7dcfff | bold |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.bitwise, keyword.operator.comparison | #88C0D0 | — |
| variable.language.this | #B48EAD | italic bold |
| constant.language.null | #BF616A | italic |
| constant.language.undefined | #BF616A | italic |
| constant.language.boolean | #EBCB8B | italic |
| string | #A3BE8C | — |
| string.quoted.single, string.quoted.double, string.template | #A3BE8C | — |
| string.regexp, constant.regexp | #EBCB8B | — |
| constant.character, constant.character.escape | #B48EAD | — |
| variable, variable.other.readwrite, variable.parameter, variable.other.object | #e4f0fb | — |
| variable.other.property, variable.other.object.property | #8FBCBB | — |
| entity.name.function, support.function | #7dcfff | |
| entity.name.namespace, entity.name.type.namespace | #EBCB8B | italic |
| entity.name.macro, entity.name.other.preprocessor.macro | #BF616A | bold |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.decimal, constant.numeric.hex | #B48EAD | — |
| storage.type, storage.modifier | #8FBCBB | bold |
| entity.name.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #7dcfff | — |
| entity.other.attribute-name | #8FBCBB | — |
| punctuation, meta.brace, meta.delimiter | #7b8ac7 | — |
| punctuation.section, punctuation.brackets, punctuation.parenthesis | #88C0D0 | — |
| support.class, entity.name.type, entity.name.class, entity.other.inherited-class | #EBCB8B | |
| support.constant, support.variable | #88C0D0 | — |
| constant.language | #81A1C1 | italic |
| meta.object-literal.key, support.type.property-name | #8FBCBB | — |
| markup.heading, markup.heading.markdown | #EBCB8B | bold |
| markup.italic, markup.italic.markdown | #e4f0fb | italic |
| markup.bold, markup.bold.markdown | #e4f0fb | bold |
| markup.quote, markup.quote.markdown | #A3BE8C | italic |
| markup.inline.raw, markup.fenced_code.block.markdown | #7dcfff | — |
| markup.underline.link.markdown, markup.underline.link | #88C0D0 | underline |
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}!`;
}