Kokuban
Publisher: breaking-brakeThemes in package: 1
A dark theme inspired by Japanese classroom blackboards with chalk-colored text.
A dark theme inspired by Japanese classroom blackboards with chalk-colored text.
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 | #5A6B4A | |
| string | #f8f8f8 | — |
| string.quoted, string.template | #f8f8f8 | — |
| constant.numeric, constant.character.numeric | #ff9500 | — |
| constant.language, punctuation.definition.constant, variable.other.constant | #ff7575 | — |
| constant.character, constant.other | #5A9BCF | — |
| constant.character.escape | #ff9500 | — |
| string.regexp, string.regexp keyword.other | #5cc9c9 | — |
| variable | #f8f8f8 | — |
| keyword, punctuation.accessor | #5A9BCF | — |
| storage, storage.type | #5A9BCF | — |
| entity.name.class, entity.name.type.class, support.class | #ffcc00 | — |
| entity.other.inherited-class | #5cc9c9 | — |
| entity.name.function, support.function | #82b1ff | — |
| meta.function-call, variable.function | #82b1ff | — |
| variable.parameter | #ffcc00 | — |
| punctuation.definition.tag, meta.tag | #5A9BCF | — |
| entity.name.tag | #5A9BCF | — |
| entity.other.attribute-name | #ffcc00 | — |
| support.constant | #5A9BCF | — |
| support.type, entity.name.type | #ffcc00 | — |
| keyword.operator | #5A9BCF | — |
| keyword.operator.logical, keyword.operator.comparison, keyword.operator.relational | #5A9BCF | — |
| keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop | #5A9BCF | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #5A9BCF | — |
| constant.language.boolean, constant.language.null, constant.language.undefined | #ff7575 | — |
| variable.language.this, variable.language.self | #5cc9c9 | italic |
| variable.other.property, variable.other.object.property | #f8f8f8 | — |
| meta.object-literal.key | #5A9BCF | — |
| punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.array, punctuation.definition.block, punctuation.separator, punctuation.terminator, meta.brace | #f8f8f8 | — |
| support.type.property-name.json | #5A9BCF | — |
| meta.structure.dictionary.value.json string.quoted.double | #f8f8f8 | — |
| markup.heading, entity.name.section.markdown | #5A9BCF | bold |
| markup.bold | #ffcc00 | bold |
| markup.italic | #5A9BCF | italic |
| markup.inline.raw, markup.fenced_code.block | #f8f8f8 | — |
| markup.underline.link, string.other.link | #5a9bcf | — |
| markup.quote | #808080 | italic |
| markup.list | #f8f8f8 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #5A9BCF | — |
| support.type.property-name.css, meta.property-name.css | #82b1ff | — |
| support.constant.property-value.css, meta.property-value.css | #f8f8f8 | — |
| keyword.other.unit.css | #ff9500 | — |
| entity.name.function.decorator.python, punctuation.definition.decorator.python | #ffcc00 | — |
| support.function.magic.python | #5cc9c9 | — |
| entity.name.type.ts, entity.name.type.tsx, support.type.primitive.ts, support.type.primitive.tsx | #ffcc00 | — |
| entity.name.type.interface.ts, entity.name.type.interface.tsx | #5cc9c9 | — |
| keyword.package.go, keyword.import.go, keyword.function.go, keyword.type.go, keyword.struct.go, keyword.interface.go | #5A9BCF | — |
| entity.name.function.macro.rust, support.macro.rust | #5cc9c9 | — |
| variable.other.normal.shell, variable.other.special.shell | #5A9BCF | — |
| entity.name.tag.yaml | #5A9BCF | — |
| entity.name.type.anchor.yaml, punctuation.definition.anchor.yaml | #ffcc00 | — |
| markup.inserted, markup.inserted.diff | #008C95 | — |
| markup.deleted, markup.deleted.diff | #e05050 | — |
| markup.changed, markup.changed.diff | #ffcc00 | — |
| invalid | #ffffff | — |
| invalid.deprecated | #ffffff | — |
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}!`;
}