Kronuz Theme
Publisher: KronuzThemes in package: 1
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 |
|---|---|---|
| — | #c8c6c5 | — |
| meta.embedded, source.groovy.embedded | #c8c6c5 | — |
| string source | #D08442 | |
| support | #C7444A | |
| variable.parameter | #fde9bbdd | italic |
| entity.name.tag | #caa473 | |
| variable.other, variable.js, punctuation.separator.variable | #e8e6e5 | |
| punctuation.section.embedded -(source string source punctuation.section.embedded), meta.brace.erb.html | #008200 | |
| invalid | #FF0B00 | |
| variable.other.php, variable.other.normal | #e8e6e5 | |
| meta.tag | #c8c6c5 | |
| meta.doctype, meta.tag.sgml-declaration.doctype, meta.tag.sgml.doctype | #9AA83A | |
| meta.tag.inline source, text.html.php.source | #9AA83A | |
| meta.tag.other, entity.name.tag.style, entity.name.tag.script, meta.tag.block.script, source.js.embedded punctuation.definition.tag.html, source.css.embedded punctuation.definition.tag.html | #caa473 | |
| entity.other.attribute-name, meta.tag punctuation.definition.string | #e8e6e5 | |
| meta.tag string -source -punctuation, text source text meta.tag string -punctuation | #6089B4 | |
| meta.toc-list.id | #9AA83A | — |
| string.quoted.double.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #9AA83A | |
| punctuation.definition.tag.html, punctuation.definition.tag.begin, punctuation.definition.tag.end | #e8bf6a | |
| source.css entity.other.attribute-name | #caa473 | |
| support.type.property-name.css | #e8e6e5 | |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #C7444A | |
| variable.language.js | #d0d0ff | — |
| punctuation.definition.template-expression, punctuation.section.embedded.coffee | #D08442 | — |
| meta.template.expression | #c8c6c5 | — |
| meta.function-call.object.php | #D0B344 | |
| punctuation.definition.string.end.php, punctuation.definition.string.begin.php | #9AA83A | — |
| source.php.embedded.line.html | #676867 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #D08442 | |
| constant.other.symbol.ruby | #9AA83A | |
| variable.language.ruby | #d0d0ff | |
| keyword.other.special-method.ruby | #D9B700 | |
| punctuation.section.embedded.begin.ruby, punctuation.section.embedded.end.ruby | #D08442 | — |
| keyword.other.DML.sql | #D0B344 | |
| meta.diff, meta.diff.header | #E0EDDD | italic |
| markup.deleted | #dc322f | |
| markup.changed | #cb4b16 | |
| markup.inserted | #219186 | — |
| markup.quote | #caa473 | — |
| markup.list | #9AA83A | — |
| markup.bold | #437cb9 | bold |
| markup.italic | #7ea4cc | italic |
| markup.inline.raw | #d687bf | |
| markup.heading | #fd971f | — |
| markup.heading.setext | #fd971f | |
| markup.underline | #86c20e | — |
| string.other.link.title.markdown | #6e9cbe | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| variable.language | #d0d0ff | — |
| keyword | #cc7833 | — |
| keyword.control | #cc7833 | — |
| storage | #cc7833 | |
| constant.numeric | #a5c260 | — |
| entity.name.type | #da4939 | — |
| support.type | #da4939 | italic |
| support.class | #e8bf6a | italic |
| entity.name.function | #e8bf6a | — |
| meta.function-call.generic, meta.function-call.object | #e8bf6a | |
| variable.other.property | #e8bf6a | |
| support.function | #e8bf6a | italic |
| variable | #e8e6e5 | — |
| comment | #95815e | italic |
| constant.character, constant.language, constant.other.character-class | #6e9cbe | — |
| #e8e6e5 | italic | |
| string, string.quoted.single | #a5c261 | — |
| string.quoted.double, string.quoted.multi | #c1be91 | — |
| string.regexp.quoted | #c7d87b | — |
| string.quoted.docstring | #95815e | — |
| entity.name.type, entity.name.class | #ffd68d | |
| entity.other.inherited-class | #caa473 | italic |
| markup.fenced_code.block.markdown | — | — |
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}!`;
}