Kai Zen Theme
Publisher: MJ StudioThemes in package: 7
A premium flat-aesthetic theme collection embodying the philosophy of Continuous Improvement.
A premium flat-aesthetic theme collection embodying the philosophy of Continuous Improvement.
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 | #616161 | italic |
| string, string.quoted, string.template | #69f0ae | — |
| constant.numeric | #ff4081 | — |
| constant.language | #ff4081 | — |
| constant.character | #ff4081 | — |
| constant.other | #ff4081 | — |
| variable | #e0e0e0 | — |
| variable.other.readwrite | #e0e0e0 | — |
| variable.parameter | #ff5252 | italic |
| variable.language | #ffffff | italic |
| keyword | #ffffff | bold |
| keyword.control | #b388ff | italic |
| keyword.operator | #b388ff | — |
| keyword.declaration | #ffffff | bold |
| storage | #ffffff | bold |
| storage.type | #ffffff | bold |
| entity.name.class | #ffd740 | — |
| entity.name.type | #ffd740 | — |
| entity.name.function | #40c4ff | — |
| entity.other.attribute-name | #ffd740 | italic |
| entity.name.tag | #ff5252 | — |
| support.function | #40c4ff | — |
| support.constant | #ff4081 | — |
| support.type | #ffd740 | — |
| support.class | #ffd740 | — |
| support.variable | #e0e0e0 | — |
| punctuation | #ffffff | — |
| meta.brace | #ffffff | — |
| meta.delimiter | #ffffff | — |
| punctuation.definition.variable | #e0e0e0 | — |
| punctuation.definition.string | #69f0ae | — |
| punctuation.definition.parameters | #ffffff | — |
| punctuation.terminator | #ffffff | — |
| punctuation.separator | #ffffff | — |
| meta.function-call | #40c4ff | — |
| meta.object-literal.key | #e0e0e0 | — |
| source.json meta.structure.dictionary.key | #40c4ff | — |
| source.css entity.name.tag | #40c4ff | — |
| source.css entity.other.attribute-name.class | #69f0ae | — |
| source.css entity.other.attribute-name.id | #40c4ff | — |
| source.css constant.numeric | #ff4081 | — |
| source.css keyword.other.unit | #ff4081 | — |
| text.html.basic entity.other.attribute-name | #ffd740 | italic |
| meta.tag.custom | #ffd740 | — |
| markup.heading | #ffffff | bold |
| markup.bold | #ffffff | bold |
| markup.italic | #ffffff | italic |
| markup.underline | #ffffff | underline |
| markup.quote | #616161 | italic |
| markup.raw | #69f0ae | — |
| markup.inline.raw | #ff4081 | — |
| variable.annotation | #ffd740 | — |
| meta.decorator | #ffd740 | — |
| variable.other.constant | #ff4081 | — |
| variable.other.enummember | #ff4081 | — |
| meta.object.member | #e0e0e0 | — |
| variable.other.property | #e0e0e0 | — |
| source.python variable.parameter.function.language.special.self | #ffffff | italic |
| source.python constant.language | #ffd740 | — |
| source.go storage.type | #ffffff | — |
| source.go entity.name.function | #40c4ff | — |
| source.java storage.modifier | #ffffff | — |
| source.java entity.name.type.class | #ffd740 | — |
| source.ts entity.name.type.interface | #ffd740 | — |
| source.js variable.other.object | #ffd740 | — |
| source.js variable.other.readwrite.alias | #ffd740 | — |
| source.shell variable.other | #e0e0e0 | — |
| source.shell keyword.operator | #b388ff | — |
| punctuation.definition.tag.html | #b388ff | — |
| punctuation.definition.tag.begin.html | #b388ff | — |
| punctuation.definition.tag.end.html | #b388ff | — |
| string.regexp | #b388ff | — |
| constant.character.escape.regexp | #b388ff | — |
| variable.group.regexp | #69f0ae | — |
| constant.other.character-class.range.regexp | #ff4081 | — |
| keyword.operator.quantifier.regexp | #b388ff | — |
| support.type.property-name.json | #40c4ff | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #69f0ae | — |
| source.yaml entity.name.tag | #40c4ff | — |
| text.xml entity.name.tag | #ff5252 | — |
| text.xml entity.other.attribute-name | #ffd740 | — |
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}!`;
}