Akari
Publisher: Shu KutsuzawaThemes in package: 2
A terminal color palette inspired by Japanese alleys lit by round lanterns.
A terminal color palette inspired by Japanese alleys lit by round lanterns.
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, comment.line, comment.block, comment.block.documentation, punctuation.definition.comment | #222D38 | italic |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple, string.template | #3A5830 | — |
| constant.character.escape, string.escape | #543F54 | — |
| string.regexp | #20301A | — |
| punctuation.definition.group.regexp | #7A3828 | — |
| constant.other.character-class.regexp | #806080 | — |
| constant.other.character-class.set.regexp, punctuation.definition.character-class.regexp | #B07840 | — |
| keyword.operator.quantifier.regexp | #447C7C | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary | #447C7C | — |
| constant, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #447C7C | — |
| constant.character | #8A4530 | — |
| keyword, keyword.control, keyword.control.conditional, keyword.control.repeat, keyword.control.loop, keyword.control.flow, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.return, keyword.control.exception, keyword.control.try, keyword.control.catch, keyword.control.throw, keyword.other | #8A4530 | — |
| keyword.operator, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.comparison | #8A4530 | — |
| storage, storage.type, storage.modifier | #8A4530 | — |
| entity.name.function, meta.function-call, support.function, meta.method-call | #806080 | — |
| support.function.builtin | #78522C | — |
| entity.name.function.macro, support.function.macro | #543F54 | — |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.enum, entity.name.union, entity.name.trait, entity.name.interface, support.type, support.class | #B07840 | — |
| support.type.builtin, support.type.primitive | #B07840 | — |
| entity.name.type.parameter | #B07840 | italic |
| variable, variable.other, variable.other.readwrite | #1A1816 | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #7A3828 | italic |
| variable.parameter, meta.function.parameters variable | #1A1816 | italic |
| variable.other.property, variable.other.member, variable.other.object.property, meta.object-literal.key | #304050 | — |
| entity.name.namespace, entity.name.module, entity.name.package | #B07840 | — |
| entity.name.function.constructor, meta.function-call.constructor | #B07840 | — |
| entity.name.label | #B07840 | — |
| entity.other.attribute-name, meta.attribute | #B07840 | — |
| meta.decorator | #78522C | — |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.definition.string | #1A1816 | — |
| punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.arguments, punctuation.definition.array, punctuation.brackets, punctuation.section | #1A1816 | — |
| punctuation.definition.interpolation, punctuation.section.embedded | #B07840 | — |
| keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.bitwise, keyword.operator.relational, keyword.operator.ternary | #1A1816 | — |
| entity.name.tag, punctuation.definition.tag | #8A4530 | — |
| support.tag | #304050 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.xml | #B07840 | — |
| markup.heading, markup.heading.setext, entity.name.section | #8A4530 | bold |
| markup.heading.1 | #8A4530 | bold |
| markup.heading.2 | #78522C | bold |
| markup.heading.3 | #7A3828 | bold |
| markup.heading.4 | #B07840 | bold |
| markup.heading.5 | #222D38 | bold |
| markup.heading.6 | #304050 | bold |
| markup.bold, punctuation.definition.bold | — | bold |
| markup.italic, punctuation.definition.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.underline.link, string.other.link | #131A20 | underline |
| string.other.link.title, string.other.link.description | #305858 | — |
| markup.list, punctuation.definition.list | #305858 | — |
| markup.quote | #222D38 | italic |
| markup.raw, markup.inline.raw, markup.fenced_code, fenced_code.block.language | #20301A | — |
| markup.inserted, meta.diff.header.to-file | #3A5830 | — |
| markup.deleted, meta.diff.header.from-file | #6A2828 | — |
| markup.changed | #8A4530 | — |
| invalid | #6A2828 | — |
| invalid.deprecated | — | strikethrough |
| source.json meta.structure.dictionary.json support.type.property-name.json | #8A4530 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #B07840 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #B07840 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #3A5830 | — |
| entity.name.tag.yaml | #8A4530 | — |
| keyword.key.toml, support.type.property-name.toml | #8A4530 | — |
| entity.name.section.toml, entity.other.attribute-name.table.toml | #B07840 | — |
| support.type.property-name.css | #305858 | — |
| support.constant.property-value.css, support.constant.font-name | #1A1816 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #8A4530 | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #806080 | — |
| keyword.control.at-rule.mixin, keyword.control.at-rule.include, keyword.control.at-rule.extend | #543F54 | — |
| support.constant.property-value.css | #7A3828 | — |
| keyword.other.unit.css | #7A3828 | — |
| variable.other.normal.shell, variable.other.special.shell, variable.other.positional.shell | #1A1816 | — |
| support.function.builtin.shell | #78522C | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #B07840 | — |
| keyword.blade, keyword.control.twig, entity.name.function.blade | #305858 | — |
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}!`;
}