HiAstra Theme
Publisher: Hi Soft TechThemes in package: 1
A vibrant dark theme with deep violet backgrounds, colorful syntax, and a calm interface designed for readable, focused coding.
A vibrant dark theme with deep violet backgrounds, colorful syntax, and a calm interface designed for readable, focused coding.
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, punctuation.definition.comment | #928DAF | |
| variable, string constant.other.placeholder | #C7C3DF | — |
| constant.other.color | #F4F2FF | — |
| invalid, invalid.illegal | #FF7A8A | — |
| keyword, storage.type, storage.modifier | #B89CFF | — |
| keyword.control, punctuation, punctuation.separator.inheritance.php, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #55D6E6 | — |
| entity.name.tag, markup.deleted.git_gutter | #FF7A8A | — |
| entity.name.function, variable.function, support.function, keyword.other.special-method | #6FA8FF | — |
| support.other.variable, string.other.link | #C7C3DF | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other | #FFAA68 | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter | #72E0B2 | — |
| entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #B89CFF | — |
| support.type | #B89CFF | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #55D6E6 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #B89CFF | — |
| variable.language | #B89CFF | |
| entity.name.method.js | #6FA8FF | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #6FA8FF | — |
| entity.other.attribute-name | #B89CFF | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #F3C969 | |
| entity.other.attribute-name.class | #F3C969 | — |
| source.sass keyword.control | #6FA8FF | — |
| markup.inserted | #72E0B2 | — |
| markup.deleted | #FF7A8A | — |
| markup.changed | #B89CFF | — |
| string.regexp | #FFAA68 | — |
| constant.character.escape | #55D6E6 | — |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #F08ACB | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #FFAA68 | |
| support.type.property-name.json | #FFAA68 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #C7C3DF | — |
| markdown.heading, markup.heading.markdown punctuation.definition.heading.markdown | #B89CFF | bold |
| markup.italic | #C7C3DF | italic |
| markup.bold, markup.bold string | #F4F2FF | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #F4F2FF | bold italic |
| markup.underline | #FFAA68 | underline |
| markup.quote punctuation.definition.blockquote.markdown | #928DAF | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #6FA8FF | — |
| string.other.link.description.title.markdown | #55D6E6 | — |
| constant.other.reference.link.markdown | #F3C969 | — |
| markup.raw.block | #B89CFF | — |
| markup.raw.block.fenced.markdown | #C7C3DF | — |
| punctuation.definition.fenced.markdown | #928DAF | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #C7C3DF | — |
| variable.language.fenced.markdown | #928DAF | — |
| meta.separator | #928DAF | bold |
| markup.table | #C7C3DF | — |
| comment.documentation, comment.block.documentation, comment.line.documentation, punctuation.definition.comment.documentation | #C7C3DF | |
| variable.parameter, variable.parameter.function | #FFAA68 | — |
| constant.language.boolean, constant.language.true, constant.language.false, keyword.constant | #F3C969 | — |
| variable.other.constant, variable.other.enummember, support.constant | #FFAA68 | — |
| keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.control.exception, keyword.control.return | #55D6E6 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.new, keyword.operator.expression, punctuation.accessor | #C7C3DF | — |
| punctuation, meta.brace, meta.delimiter, punctuation.separator | #928DAF | — |
| entity.name.function, entity.name.function.definition | #6FA8FF | bold |
| variable.function, support.function, support.function.construct | #6FA8FF | — |
| entity.name.function.member, entity.name.method, entity.name.method.js, variable.function.member, support.function.method | #6FA8FF | — |
| entity.name.type.class, entity.name.class, support.class, entity.other.inherited-class | #B89CFF | bold |
| entity.name.type.interface, support.type.interface, entity.name.type, support.type | #B89CFF | — |
| entity.name.namespace, entity.name.module, support.other.namespace | #B89CFF | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.type.property-name, entity.name.property, variable.object.property, support.variable.property | #FFAA68 | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.xml | #FF7A8A | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.xml | #F3C969 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css, entity.other.attribute-name.class.scss, entity.other.attribute-name.id.scss, entity.name.tag.wildcard.css, entity.name.tag.custom.css, entity.name.tag.nesting.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #72E0B2 | — |
| support.type.property-name.css, support.type.property-name.scss, meta.property-name.css, meta.property-name.scss, support.type.property-name.media.css, support.type.vendored.property-name.css, support.type.vendored.property-name.media.css, variable.css, variable.argument.css | #55D6E6 | — |
| support.constant.property-value.css, support.constant.property-value.scss, constant.numeric.css, constant.other.color.css, support.constant.color, keyword.other.unit.css, constant.other.color.rgb-value, support.constant.vendored.property-value.css, meta.property-value.css | #FFAA68 | — |
| markup.heading, markup.heading.markdown, entity.name.section.markdown, punctuation.definition.heading.markdown | #B89CFF | bold |
| string.other.link, string.other.link.title.markdown, markup.underline.link.markdown, constant.other.reference.link.markdown, string.other.link.description.markdown, variable.other.link.underline.jsdoc, constant.other.email.link.underline.jsdoc | #55D6E6 | underline |
| markup.inline.raw, markup.inline.raw.markdown, markup.raw.inline.markdown | #F08ACB | |
| invalid.deprecated | #FF7A8A | strikethrough |
| meta.object-literal.key string.quoted, meta.object-literal.key string.unquoted | #FFAA68 | |
| meta.function-call entity.name.function, meta.method-call entity.name.function | #6FA8FF | |
| support.class.component | #B89CFF | bold |
| entity.other.attribute-name.js.jsx, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #F3C969 | |
| punctuation.definition.tag | #928DAF | |
| source.python | #C7C3DF | — |
| meta.function-call.generic.python | #6FA8FF | |
| meta.attribute.python, constant.other.caps.python | #FFAA68 | — |
| string.quoted.docstring | #C7C3DF | |
| entity.name.function.decorator.python, punctuation.definition.decorator.python | #F08ACB | italic |
| constant.language.json, constant.language.python | #F3C969 | — |
| markup.inline.raw punctuation.definition.raw, fenced_code.block.language.markdown, punctuation.definition.markdown, punctuation.definition.fenced.markdown | #928DAF | |
| punctuation.definition.quote.begin.markdown | #928DAF | |
| entity.name.function.call.shell, entity.name.command.shell, support.function.builtin.shell | #6FA8FF | |
| variable.other.assignment.shell, variable.other.assignment.array.shell, variable.other.normal.shell, variable.other.for.shell, variable.other.loop.shell | #C7C3DF | |
| punctuation.definition.variable.shell | #55D6E6 | |
| source.java, source.cs, source.c, source.rust | #C7C3DF | — |
| keyword.other.type.php, keyword.other.namespace.php, keyword.other.use.php, keyword.other.new.php | #B89CFF | — |
| meta.function.parameters.php variable.other.php, constant.other.php, constant.other.class.php | #FFAA68 | — |
| punctuation.definition.variable.php | #55D6E6 | |
| support.attribute.php, support.attribute.builtin.php | #F08ACB | italic |
| comment.block.javadoc.java | #C7C3DF | |
| storage.type.annotation.java, punctuation.definition.annotation.java | #F08ACB | italic |
| keyword.other.package.java, keyword.other.import.java, keyword.other.directive.using.cs, keyword.other.typedef.c, keyword.other.rust | #B89CFF | — |
| entity.name.variable.local.cs, entity.name.variable.range-variable.cs | #C7C3DF | |
| entity.name.variable.parameter.cs, entity.name.variable.property.cs, entity.name.variable.field.cs, entity.name.variable.enum-member.cs | #FFAA68 | |
| variable.other.member.c, variable.other.member.cpp, meta.body.struct.cpp variable.other.declare.cpp, meta.body.class.cpp meta.declaration.cpp variable.other.declare.cpp | #FFAA68 | — |
| entity.name.function.call.cpp, entity.name.function.member.cpp, entity.name.function.support.go, entity.name.function.support.builtin.go | #6FA8FF | |
| meta.function.call.rust entity.name.function.rust | #6FA8FF | |
| entity.name.function.preprocessor.c, entity.name.function.preprocessor.cpp, entity.name.function.macro.rust | #B89CFF | |
| constant.other.caps.rust, meta.function.definition.rust variable.other.rust | #FFAA68 | — |
| meta.attribute.rust | #F08ACB | — |
| constant.language.php, constant.language.bool.rust | #F3C969 | — |
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}!`;
}