Chaski
Publisher: ChaskiThemes in package: 1
A theme inspired by the One Monokai and Darktooth themes.
A theme inspired by the One Monokai and Darktooth themes.
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, string.comment | #7F8C98 | italic |
| string, string.template | #8CC9AC | — |
| constant.numeric | #D0826D | — |
| string.embedded.begin, string.embedded.end, punctuation.definition.template-expression, punctuation.section.embedded | #C678DD | — |
| constant.language | #56B6C2 | — |
| constant.character, constant.other | #56B6C2 | — |
| keyword, keyword.operator.logical, keyword.operator.constructor, storage, keyword.operator | #E06C75 | — |
| storage.type | #C678DD | — |
| variable.language | #E06C75 | — |
| variable.other, variable.other.property, variable.other.block, variable.other.module | #FDF6E3 | — |
| variable.object.property, variable.other.object.property, variable.other.class.property, variable.other.constant.object.property, variable.other.constant.property, variable.other.constant.object.property, variable.other.readwrite.class.member, variable.other.member, variable.other.readwrite.member, variable.other.readwrite.batchfile, variable.readwrite, variable.readwrite.other.block, variable.other.readwrite, variable.parameter.function.language.special.self | #FDF6E3 | — |
| variable.parameter, entity.name.variable.parameter, parameter.variable | #D19A66 | italic |
| meta.function-call.arguments variable.parameter, meta.function-call.arguments entity.name.variable.parameter, meta.function-call.arguments parameter.variable | #D19A66 | italic |
| entity.name.class, entity.name.module, entity.name.type, storage.identifier, support.class | #FC804E | — |
| entity.other.inherited-class | #98C379 | underline |
| entity.name.function, support.function | #F7D065 | — |
| entity.name.function-call | #FABD2F | — |
| function.support.builtin, function.support.core | #FABD2F | — |
| entity.name.function.decorator, meta.function.decorator.python | #E5C07B | — |
| punctuation.definition.decorator | #FABD2F | — |
| storage.modifier.import, storage.modifier.package | #C678DD | — |
| entity.name.tag, entity.name.tag.class.js | #E06C75 | — |
| entity.name.tag.class, entity.name.tag.id | #E5C07B | — |
| entity.other.attribute-name | #98C379 | — |
| support.constant | #56B6C2 | — |
| support.type, support.variable | #56B6C2 | — |
| invalid | #FDF6E3 | underline italic |
| invalid.deprecated | #FDF6E3 | underline italic |
| meta.member.access, punctuation.accessor, punctuation.separator.property, punctuation.separator.dot-access, punctuation.separator.pointer-access | #FDF6E3 | — |
| meta.function-call.member, support.function.mutator, punctuation.accessor.function | #FDF6E3 | — |
| punctuation.separator, punctuation.section | #FDF6E3 | — |
| markup.italic, markup.italic.markdown | — | italic |
| punctuation.definition.italic.markdown, punctuation.definition.bold.markdown, punctuation.definition.heading.markdown | #7F8C98 | — |
| punctuation.definition.italic.markdown | — | italic |
| markup.underline.link.markdown | #61AFEF | — |
| markup.bold.markdown | — | bold |
| markup.heading.markdown | #E06C75 | bold |
| markup.quote.markdown | #98C379 | — |
| meta.separator.markdown | #C678DD | bold |
| markup.raw.inline.markdown, markup.raw.block.markdown | #56B6C2 | — |
| punctuation.definition.list_item.markdown | #FFFFFF | bold |
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}!`;
}