Kibou
Publisher: askvraThemes in package: 2
Nyaa~
Nyaa~
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown, variable.legacy.builtin.python | #000000 | — |
| emphasis | — | italic |
| strong | — | bold |
| meta.diff.header | #000080 | — |
| comment | #008000 | — |
| constant.language | #0000FF | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #098658 | — |
| constant.regexp | #811F3F | — |
| entity.name.tag | #800000 | — |
| entity.name.selector | #800000 | — |
| entity.other.attribute-name | #E50000 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #800000 | — |
| invalid | #CD3131 | — |
| markup.underline | — | underline |
| markup.bold | #000080 | bold |
| markup.heading | #800000 | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #098658 | — |
| markup.deleted | #A31515 | — |
| markup.changed | #0451A5 | — |
| punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown | #0451A5 | — |
| markup.inline.raw | #800000 | — |
| punctuation.definition.tag | #800000 | — |
| meta.preprocessor, entity.name.function.preprocessor | #0000FF | — |
| meta.preprocessor.string | #A31515 | — |
| meta.preprocessor.numeric | #098658 | — |
| meta.structure.dictionary.key.python | #0451A5 | — |
| storage | #0000FF | — |
| storage.type | #0000FF | — |
| storage.modifier, keyword.operator.noexcept | #0000FF | — |
| string, meta.embedded.assembly | #A31515 | — |
| string.comment.buffered.block.pug, string.quoted.pug, string.interpolated.pug, string.unquoted.plain.in.yaml, string.unquoted.plain.out.yaml, string.unquoted.block.yaml, string.quoted.single.yaml, string.quoted.double.xml, string.quoted.single.xml, string.unquoted.cdata.xml, string.quoted.double.html, string.quoted.single.html, string.unquoted.html, string.quoted.single.handlebars, string.quoted.double.handlebars | #0000FF | — |
| string.regexp | #811F3F | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #0000FF | — |
| meta.template.expression | #000000 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #0451A5 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #E50000 | — |
| support.type.property-name.json | #0451A5 | — |
| keyword | #0000FF | — |
| keyword.control | #0000FF | — |
| keyword.operator | #000000 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #0000FF | — |
| keyword.other.unit | #098658 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #800000 | — |
| support.function.git-rebase | #0451A5 | — |
| constant.sha.git-rebase | #098658 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #000000 | — |
| variable.language | #0000FF | — |
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown, variable.legacy.builtin.python | #000000 | — |
| emphasis | — | italic |
| strong | — | bold |
| meta.diff.header | #000080 | — |
| comment | #008000 | — |
| constant.language | #658CAA | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #098658 | — |
| constant.regexp | #811F3F | — |
| entity.name.tag | #800000 | — |
| entity.name.selector | #800000 | — |
| entity.other.attribute-name | #E50000 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #800000 | — |
| invalid | #CD3131 | — |
| markup.underline | — | underline |
| markup.bold | #000080 | bold |
| markup.heading | #800000 | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #098658 | — |
| markup.deleted | #A31515 | — |
| markup.changed | #0451A5 | — |
| punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown | #0451A5 | — |
| markup.inline.raw | #800000 | — |
| punctuation.definition.tag | #800000 | — |
| meta.preprocessor, entity.name.function.preprocessor | #658CAA | — |
| meta.preprocessor.string | #A31515 | — |
| meta.preprocessor.numeric | #098658 | — |
| meta.structure.dictionary.key.python | #0451A5 | — |
| storage | #658CAA | — |
| storage.type | #658CAA | — |
| storage.modifier, keyword.operator.noexcept | #658CAA | — |
| string, meta.embedded.assembly | #A31515 | — |
| string.comment.buffered.block.pug, string.quoted.pug, string.interpolated.pug, string.unquoted.plain.in.yaml, string.unquoted.plain.out.yaml, string.unquoted.block.yaml, string.quoted.single.yaml, string.quoted.double.xml, string.quoted.single.xml, string.unquoted.cdata.xml, string.quoted.double.html, string.quoted.single.html, string.unquoted.html, string.quoted.single.handlebars, string.quoted.double.handlebars | #658CAA | — |
| string.regexp | #811F3F | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #658CAA | — |
| meta.template.expression | #000000 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #0451A5 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #E50000 | — |
| support.type.property-name.json | #0451A5 | — |
| keyword | #658CAA | — |
| keyword.control | #658CAA | — |
| keyword.operator | #000000 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #658CAA | — |
| keyword.other.unit | #098658 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #800000 | — |
| support.function.git-rebase | #0451A5 | — |
| constant.sha.git-rebase | #098658 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #000000 | — |
| variable.language | #658CAA | — |
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown | #657B83 | — |
| comment | #93A1A1 | italic |
| string | #2AA198 | — |
| string.regexp | #DC322F | — |
| constant.numeric | #D33682 | — |
| variable.language, variable.other | #268BD2 | — |
| keyword | #859900 | — |
| storage | #586E75 | bold |
| entity.name.class, entity.name.type, entity.name.namespace, entity.name.scope-resolution | #CB4B16 | |
| entity.name.function | #268BD2 | — |
| punctuation.definition.variable | #859900 | — |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #DC322F | — |
| constant.language, meta.preprocessor | #B58900 | — |
| support.function.construct, keyword.other.new | #CB4B16 | — |
| constant.character, constant.other | #CB4B16 | — |
| entity.other.inherited-class | #6C71C4 | — |
| variable.parameter | — | — |
| entity.name.tag | #268BD2 | — |
| punctuation.definition.tag | #93A1A1 | — |
| entity.other.attribute-name | #93A1A1 | — |
| support.function | #268BD2 | — |
| punctuation.separator.continuation | #DC322F | — |
| support.constant, support.variable | — | — |
| support.type, support.class | #859900 | — |
| support.type.exception | #CB4B16 | — |
| support.other.variable | — | — |
| invalid | #DC322F | — |
| meta.diff, meta.diff.header | #268BD2 | italic |
| markup.deleted | #DC322F | |
| markup.changed | #CB4B16 | |
| markup.inserted | #859900 | — |
| markup.quote | #859900 | — |
| markup.list | #B58900 | — |
| markup.bold, markup.italic | #D33682 | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inline.raw | #2AA198 | |
| markup.heading | #268BD2 | bold |
| markup.heading.setext | #268BD2 | |
| comment | #8388AD | italic |
| constant | #3788BE | — |
| constant.numeric, constant.language, constant.charcter.escape | #C69F68 | — |
| entity.name | #C69F68 | — |
| entity.name.section, entity.name.tag, entity.name.namespace, entity.name.type | #886CDB | — |
| entity.other.attribute-name, entity.other.inherited-class | #268292 | italic |
| invalid | #D26A5D | — |
| invalid.deprecated | #5F6488 | — |
| keyword | #3788BE | — |
| meta.tag, meta.brace | #4E5377 | — |
| meta.import, meta.export | #3788BE | — |
| meta.directive.vue | #C69F68 | italic |
| meta.property-name.css | #886CDB | — |
| meta.property-value.css | #886CDB | — |
| meta.tag.other.html | #5F6488 | — |
| punctuation | #5F6488 | — |
| punctuation.accessor | #3788BE | — |
| punctuation.definition.string | #886CDB | — |
| punctuation.definition.tag | #8388AD | — |
| storage.type, storage.modifier | #3788BE | — |
| string | #886CDB | — |
| support | #886CDB | — |
| support.constant | #886CDB | — |
| support.function | #D26A5D | italic |
| variable | #C69F68 | italic |
| variable.other, variable.language, variable.function, variable.argument | #4E5377 | — |
| variable.parameter | #000000 | — |
| token.info-token | #316BCD | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #CD3131 | — |
| token.debug-token | #800080 | — |
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}!`;
}