Avalon Theme
Publisher: leonfsrThemes in package: 1
A dark VS Code theme with purple and blue tones, inspired by the mystical isle of Avalon.
A dark VS Code theme with purple and blue tones, inspired by the mystical isle of Avalon.
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 | #4a4070 | italic |
| string, string.quoted, string.template | #6dd4a0 | — |
| constant.character.escape | #7dcfff | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, string.template meta.template.expression | #bb9af7 | — |
| constant.numeric | #e0af68 | — |
| constant.language.boolean, constant.language.null, constant.language.undefined | #e0af68 | — |
| constant.language | #e0af68 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression | #bb9af7 | — |
| keyword.control.flow, keyword.control.return, keyword.control.conditional, keyword.control.loop | #bb9af7 | italic |
| keyword.operator, keyword.operator.assignment | #7dcfff | — |
| storage.type, storage.modifier | #bb9af7 | — |
| entity.name.function, meta.function-call entity.name.function | #7aa2f7 | — |
| variable.parameter, meta.parameters | #e0af68 | italic |
| storage.type.function.arrow | #7dcfff | — |
| entity.name.type.class, support.class | #7dcfff | — |
| entity.name.type, entity.name.type.interface, support.type | #7dcfff | — |
| entity.name.type.parameter | #e0af68 | — |
| entity.other.inherited-class | #7dcfff | italic |
| variable, variable.other | #c5c0d6 | — |
| variable.other.property, variable.other.object.property, support.variable.property | #a4c8ff | — |
| variable.language | #bb9af7 | italic |
| support.function | #7aa2f7 | — |
| support.constant | #e0af68 | — |
| punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.arguments, punctuation.separator, punctuation.terminator, meta.brace | #9990b0 | — |
| punctuation.bracket, punctuation.section | #9990b0 | — |
| entity.name.tag, support.class.component | #f77a8a | — |
| punctuation.definition.tag.begin, punctuation.definition.tag.end | #5d5580 | — |
| entity.other.attribute-name | #bb9af7 | italic |
| support.type.property-name.css | #7dcfff | — |
| support.constant.property-value.css | #e0af68 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #7aa2f7 | — |
| keyword.other.unit.css | #e0af68 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #bb9af7 | — |
| support.type.property-name.json | #7aa2f7 | — |
| heading.1.markdown, heading.2.markdown, heading.3.markdown, heading.4.markdown, heading.5.markdown, heading.6.markdown, markup.heading | #bb9af7 | bold |
| markup.bold | #e0af68 | bold |
| markup.italic | #bb9af7 | italic |
| markup.underline.link, string.other.link | #7aa2f7 | — |
| markup.inline.raw, markup.fenced_code.block | #6dd4a0 | — |
| string.regexp | #f77a8a | — |
| meta.decorator, punctuation.decorator | #e0af68 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #bb9af7 | — |
| entity.name.import | #c5c0d6 | — |
| variable.parameter.function.language.special.self.python | #bb9af7 | italic |
| support.function.magic.python | #7dcfff | — |
| entity.name.type.lifetime.rust | #e0af68 | italic |
| entity.name.function.macro.rust | #7dcfff | bold |
| entity.name.package.go | #7aa2f7 | — |
| entity.name.namespace | #7dcfff | — |
| entity.name | #7aa2f7 | — |
| entity.name.tag.yaml | #7aa2f7 | — |
| keyword.key.toml | #7aa2f7 | — |
| keyword.other.definition.ini | #7aa2f7 | — |
| entity.name.section | #bb9af7 | bold |
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}!`;
}