Lavender Purple Theme
Publisher: hoshikoThemes in package: 3
A soft, dreamy and aesthetic purple theme collection for Visual Studio Code — with broad language syntax support.
A soft, dreamy and aesthetic purple theme collection for Visual Studio Code — with broad language syntax support.
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, string.quoted.docstring | #8F84B5 | italic |
| keyword, keyword.control, keyword.other, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.delete, storage, storage.type, storage.modifier, storage.type.class, storage.type.function, storage.type.interface, storage.type.type, storage.type.namespace, storage.type.enum, storage.type.struct | #C792EA | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, punctuation, punctuation.definition.tag, punctuation.separator, punctuation.terminator, punctuation.section, punctuation.definition.parameters, keyword.other.template, keyword.other.substitution | #B794F4 | — |
| variable, variable.other, variable.other.readwrite, variable.other.property, variable.other.object.property, string constant.other.placeholder, support.other.variable | #F2ECFF | — |
| variable.language, variable.other.self, variable.other.this | #C792EA | italic |
| variable.parameter, meta.parameter | #E9DDFF | italic |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method, entity.name.method, meta.method, entity.name.method.js, meta.class-method.js entity.name.function.js, variable.function.constructor | #A78BFA | — |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution, support.type, support.class, support.type.primitive, support.type.builtin, entity.name.type.class, entity.name.type.module, entity.name.type.alias, entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #E879F9 | — |
| entity.name.type.interface, support.interface | #DDD6FE | — |
| entity.name.type.enum, entity.name.variable.enum-member, support.enum | #F0ABFC | — |
| string, string.quoted, string.template, constant.other.symbol, constant.other.key, entity.other.inherited-class | #D8B4FE | — |
| constant.numeric, constant.language, constant.character, constant.escape, keyword.other.unit | #F9A8D4 | — |
| constant, support.constant | #F5B5D5 | — |
| entity.name.tag, meta.tag, meta.tag.sgml | #D946EF | — |
| entity.other.attribute-name, text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name, entity.other.attribute-name.class, support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, 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 | #C084FC | — |
| meta.annotation, meta.decorator, entity.name.type.annotation, punctuation.decorator, entity.name.function.decorator, meta.attribute.rust, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #A78BFA | italic |
| string.regexp, constant.character.escape | #A78BFA | — |
| support.type.property-name.json, entity.name.tag.yaml, source.json meta.structure.dictionary.json support.type.property-name.json | #C792EA | — |
| text.html.markdown, punctuation.definition.list_item.markdown, markup.table | #F2ECFF | — |
| markdown.heading, markup.heading, markup.heading entity.name, text.html.markdown markup.inline.raw.markdown, markup.raw.block, markup.raw.block.fenced.markdown, punctuation.definition.fenced.markdown | #C792EA | — |
| markup.italic, markup.bold, markup.bold markup.italic | #D946EF | bold |
| markup.inserted, markup.inserted.git_gutter | #A78BFA | — |
| markup.deleted, markup.deleted.git_gutter | #FB7185 | — |
| markup.changed, markup.changed.git_gutter | #E879F9 | — |
| meta.function.decorator.python, entity.name.function.magic.python, support.function.magic.python, variable.parameter.function.language.special.self.python | #A78BFA | italic |
| support.type.python, support.function.builtin.python | #A78BFA | — |
| source.go storage.type.package.go, meta.import.go, keyword.package.go, keyword.import.go | #C792EA | — |
| source.go entity.name.type.go, source.go storage.type | #E879F9 | — |
| entity.name.type.lifetime.rust, meta.macro.rust, entity.name.function.macro.rust, support.macro.rust | #A78BFA | — |
| meta.attribute.rust, storage.modifier.lifetime.rust | #A78BFA | italic |
| keyword.other.DDL.sql, keyword.other.DML.sql, keyword.other.DML.returning.sql, keyword.other.data-integrity.sql, support.function.sql | #C792EA | — |
| meta.annotation.java, meta.import.java, storage.modifier.import.java, storage.type.java | #A78BFA | — |
| meta.attribute.cs, keyword.other.modifier.cs, entity.name.type.namespace.cs, storage.type.cs | #C792EA | — |
| keyword.control.directive, keyword.control.directive.include, keyword.control.directive.define, entity.name.function.preprocessor, storage.type.built-in.primitive, storage.type.built-in.primitive.c, storage.type.built-in.primitive.cpp | #C792EA | — |
| keyword.other.dart, support.type.dart, storage.type.primitive.dart | #C792EA | — |
| entity.name.class.widget.dart, support.type.widget.dart | #E879F9 | — |
| keyword.other.swift, support.type.swift, storage.type.swift, keyword.operator.function.infix.swift | #C792EA | — |
| keyword.other.kotlin, storage.type.kotlin, support.type.kotlin, entity.name.type.kotlin | #C792EA | — |
| keyword.other.php, support.type.php, storage.type.php, variable.other.php, support.other.namespace.php, support.other.namespace.use.php, meta.use.php | #C792EA | — |
| keyword.other.ruby, constant.other.symbol.ruby, variable.other.constant.ruby, entity.name.type.class.ruby | #C792EA | — |
| support.function.builtin.shell, variable.other.normal.shell, variable.other.special.shell, string.interpolated.dollar.shell | #A78BFA | — |
| keyword.key.toml, entity.name.section.group-title.ini, keyword.other.definition.ini | #C792EA | — |
| entity.name.type.graphql, entity.name.fragment.graphql, keyword.operation.graphql, variable.graphql | #E879F9 | — |
| entity.name.tag.vue, entity.name.tag.svelte, support.function.svelte, meta.directive.vue | #D946EF | — |
| invalid, invalid.illegal | #FB7185 | — |
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}!`;
}