Void Aurora
Publisher: ZATRANOThemes in package: 1
A deep dark VS Code theme with a violet-black canvas and warm syntax spectrum — from violet keywords to sage strings, peach numbers, and amber types.
A deep dark VS Code theme with a violet-black canvas and warm syntax spectrum — from violet keywords to sage strings, peach numbers, and amber types.
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 | #4a4570 | italic |
| comment keyword | #6e6a8e | italic bold |
| comment.block.documentation punctuation.definition.block.tag, comment.block.documentation storage.type.class | #6e6a8e | italic |
| string, string.quoted, string.template | #c3e88d | — |
| constant.character.escape, string.regexp, keyword.other.unit | #89ddff | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #f78c6c | — |
| constant.numeric, constant.numeric.decimal, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.binary, constant.numeric.octal | #f78c6c | — |
| constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan | #c792ea | — |
| constant.language | #c792ea | — |
| constant.other, variable.other.constant | #f78c6c | — |
| keyword, keyword.control, keyword.operator.expression, keyword.operator.new, keyword.operator.delete, keyword.operator.typeof, keyword.operator.void, keyword.operator.in, keyword.operator.instanceof | #c792ea | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default | #89ddff | — |
| storage, storage.type, storage.modifier | #c792ea | — |
| storage.type.function, storage.type.class, storage.type.arrow | #c792ea | — |
| keyword.control.flow, keyword.control.async, keyword.control.await | #c792ea | — |
| entity.name.type, entity.other.inherited-class, support.type, support.class | #ffcb6b | — |
| meta.type.parameters, meta.type.annotation | #ffcb6b | — |
| entity.name.type.interface | #ffcb6b | italic |
| entity.name.function, meta.function entity.name.function, meta.definition.method entity.name.function | #82aaff | — |
| meta.function-call entity.name.function, meta.function-call.generic, support.function | #82aaff | — |
| meta.method-call entity.name.function, meta.method.identifier entity.name.function | #82aaff | — |
| variable.parameter, meta.function.parameter | #f07178 | — |
| variable, variable.other.readwrite | #eceaf8 | — |
| variable.language.this, variable.language.self | #f07178 | italic |
| variable.language.super | #f07178 | — |
| variable.other.object.property, meta.object-literal.key, support.type.property-name | #bfc7d5 | — |
| meta.binding.name.destructured, meta.array.literal variable.other | #eceaf8 | — |
| entity.name.class, entity.name.type.class | #ffcb6b | — |
| meta.constructor entity.name.function | #82aaff | — |
| meta.decorator, punctuation.decorator | #c792ea | italic |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, keyword.operator.assignment, keyword.operator.bitwise, keyword.operator.ternary | #89ddff | — |
| punctuation, meta.brace, punctuation.definition.block, punctuation.separator, punctuation.terminator | #bfc7d5 | — |
| entity.name.tag, meta.tag entity.name.tag | #f07178 | — |
| entity.other.attribute-name | #c792ea | — |
| meta.attribute-with-value string | #c3e88d | — |
| punctuation.definition.tag, punctuation.separator.key-value.html | #89ddff | — |
| support.class.component, entity.name.tag.js.jsx, entity.name.tag.tsx | #ffcb6b | — |
| punctuation.section.embedded.begin.js, punctuation.section.embedded.end.js, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx | #89ddff | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #f07178 | — |
| support.type.property-name.css, meta.property-name.css | #89ddff | — |
| support.constant.property-value.css, meta.property-value.css | #c3e88d | — |
| keyword.other.unit.css, constant.other.color.rgb-value.css, support.constant.color.css | #f78c6c | — |
| variable.css, variable.argument.css | #f07178 | — |
| keyword.control.at-rule.css, keyword.control.at-rule.media.css | #c792ea | — |
| variable.scss, variable.sass | #f07178 | — |
| keyword.control.flow.python, storage.type.function.python, storage.type.class.python | #c792ea | — |
| entity.name.function.decorator.python, meta.function.decorator.python | #c792ea | italic |
| support.function.builtin.python | #82aaff | — |
| support.function.magic.python | #82aaff | italic |
| variable.parameter.function.language.special.self.python | #f07178 | italic |
| string.interpolated.python | #c3e88d | — |
| meta.function.python meta.function.parameters.python meta.parameter.python | #f07178 | — |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust | #f07178 | italic |
| support.macro.rust, entity.name.function.macro.rust | #c792ea | — |
| entity.name.type.trait.rust | #ffcb6b | italic |
| keyword.other.unsafe.rust | #f07178 | — |
| meta.attribute.rust, keyword.other.attribute.rust | #c792ea | italic |
| keyword.package.go, keyword.import.go | #89ddff | — |
| storage.type.go | #ffcb6b | — |
| support.function.builtin.go | #82aaff | — |
| support.type.property-name.json, meta.object-literal.key.json string | #82aaff | — |
| meta.structure.dictionary.value.json string | #c3e88d | — |
| meta.structure.dictionary.value.json constant.numeric | #f78c6c | — |
| meta.structure.dictionary.value.json constant.language | #c792ea | — |
| meta.structure.dictionary.value.json constant.language.null | #4a4570 | — |
| entity.name.tag.yaml | #82aaff | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml | #f07178 | — |
| markup.heading, entity.name.section.markdown | #82aaff | bold |
| markup.bold | #eceaf8 | bold |
| markup.italic | #eceaf8 | italic |
| markup.inline.raw, markup.fenced_code.block | #c3e88d | — |
| markup.underline.link, string.other.link.title.markdown | #89ddff | — |
| markup.quote | #4a4570 | italic |
| punctuation.definition.list.begin.markdown | #c792ea | — |
| meta.separator.markdown | #21213a | — |
| support.function.builtin.shell | #82aaff | — |
| variable.other.normal.shell, variable.other.bracket.shell | #eceaf8 | — |
| string.quoted.double.shell, string.quoted.single.shell | #c3e88d | — |
| meta.selectionset.graphql variable | #82aaff | — |
| support.type.graphql | #ffcb6b | — |
| invalid, invalid.deprecated | #f07178 | italic underline |
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}!`;
}