Lowkey Code Theme
Publisher: monaqThemes in package: 4
A calm, low-contrast VS Code theme focused on readability, reduced eye strain, and minimal cognitive load.
A calm, low-contrast VS Code theme focused on readability, reduced eye strain, and minimal cognitive load.
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 | #788293 | italic |
| keyword, storage.modifier, keyword.control | #87B0FF | — |
| storage.type, support.type, entity.name.type, entity.name.class, support.class | #63B9E3 | — |
| support.function.builtin, support.function | #8FC2FF | — |
| entity.name.function | #A88BFF | bold |
| entity.name.alias, variable.other.readwrite, variable | #D7DCE5 | — |
| variable.language.special, variable.language.this | #F06A6A | — |
| support.type.property-name.json, meta.object-literal.key, entity.other.attribute-name | #87B0FF | — |
| entity.name.tag, meta.tag.sgml, punctuation.definition.tag | #63B9E3 | — |
| string | #C99B5B | — |
| constant.numeric, constant.language, constant.language.boolean, variable.other.constant, variable.other.enummember | #E2A65A | — |
| meta.decorator, storage.type.annotation, punctuation.definition.decorator | #8FC2FF | — |
| markup.heading, markup.heading entity.name | #87B0FF | bold |
| markup.inline.raw, markup.fenced_code.block, string.regexp | #B89A63 | — |
| markup.inserted, diff.inserted | #55B783 | — |
| markup.deleted, diff.deleted | #F06A6A | — |
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}!`;
}