Kalel Theme
Publisher: gabrielvictordevThemes in package: 6
A wonderful theme
A wonderful theme
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 |
|---|---|---|
| — | #2B2E37 | — |
| comment, string.comment | #6A7182 | italic |
| string | #b48962 | — |
| punctuation.definition.template-expression.begin.js,punctuation.definition.template-expression.end.js,punctuation.definition.template-expression.begin.ts,punctuation.definition.template-expression.end.ts | #8c84ad | — |
| string.template.js | #b48962 | — |
| meta.template.expression.js | #4f5564 | — |
| constant.numeric | #8c84ad | — |
| string.embedded.begin, string.embedded.end | #8c84ad | — |
| string.embedded | #ab8c92 | — |
| constant.language | #8c84ad | — |
| constant.character, constant.other | #8c84ad | — |
| variable.language | #375C73 | — |
| variable.readwrite, variable.readwrite.other.block | #415F70 | — |
| keyword, keyword.operator.constructor | #1E5775 | — |
| keyword.operator | #324F74 | — |
| storage | #315E76 | — |
| storage.type | #2B5272 | — |
| entity.name.class, entity.name.module, entity.name.type, storage.identifier, support.class | #304E6E | — |
| variable.other.object | #476D86 | — |
| variable.other.property, variable.other.block | #4D616C | — |
| entity.other.inherited-class | #ab8c92 | — |
| entity.name.function, support.function | #6A4C66 | — |
| variable.parameter | #7F70A4 | — |
| entity.name.function-call | #4C5862 | — |
| function.support.builtin, function.support.core | #ab8c92 | — |
| entity.name.tag, entity.name.tag.class.js, entity.name.tag.class.jsx | #4e7a86 | — |
| entity.name.tag.class, entity.name.tag.id | #8c84ad | — |
| entity.other.attribute-name | #8c84ad | — |
| support.constant | #8c84ad | — |
| support.type, support.variable | #739199 | — |
| support.dictionary.json | #8c84ad | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #515662 | — |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass | #ab8c92 | — |
| variable.css, variable.scss, variable.less, variable.sass | #8c84ad | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string | #b48962 | — |
| unit.css, unit.scss, unit.less, unit.sass | #8c84ad | — |
| function.css, function.scss, function.less, function.sass | #8c84ad | — |
| support.other.variable | — | |
| invalid | #3F4253 | — |
| invalid.deprecated | #3F4253 | — |
| structure.dictionary.property-name.json | #8c84ad | — |
| string.detected-link | #739199 | — |
| meta.diff, meta.diff.header | #62657A | — |
| markup.deleted | #739199 | — |
| markup.inserted | #b48962 | — |
| markup.changed | #b48962 | — |
| constant.numeric.line-number.find-in-files - match | #8c84adA0 | — |
| entity.name.filename.find-in-files | #b48962 | — |
| markup.italic, markup.italic.markdown | — | italic |
| punctuation.definition.italic.markdown | #8b8e96 | |
| markup.underline.link.markdown | #739199 | — |
| markup.bold.markdown | — | bold |
| punctuation.definition.bold.markdown | #8b8e96 | |
| markup.heading.markdown | #4e7a86 | bold |
| punctuation.definition.heading.markdown | #8b8e96 | |
| markup.quote.markdown | #ab8c92 | — |
| meta.separator.markdown | #8c84ad | bold |
| markup.raw.inline.markdown, markup.raw.block.markdown | #8c84ad | — |
| punctuation.definition.list_item.markdown | #303540 | bold |
| token.info-token | #5f87bc | — |
| token.warn-token | #996f44 | — |
| token.error-token | #c85353 | — |
| token.debug-token | #7d5db8 | — |
| variable.parameter.dart | #8c84ad | — |
| punctuation.comma, punctuation.dot, punctuation.terminator, punctuation.separator.comma, punctuation.accessor, storage.type.function.arrow, keyword.operator.logical | #62657A | — |
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}!`;
}