Lavender Mist Theme
Publisher: lilinThemes in package: 2
A dreamy lavender-inspired VS Code theme collection. Soft purple light & moonlit dark modes for a calm, aesthetic coding experience — like creating in purple moonlight and mist.
A dreamy lavender-inspired VS Code theme collection. Soft purple light & moonlit dark modes for a calm, aesthetic coding experience — like creating in purple moonlight and mist.
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.comment | #8E849F | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical.python, storage, storage.type, storage.modifier, variable.language, constant.language, keyword.other.important | #C7B6FF | |
| keyword.control.flow, keyword.control.return, keyword.control.import, keyword.control.export, keyword.control.from | #C7B6FF | italic |
| keyword.operator, punctuation.separator.key-value, punctuation.accessor | #A79BC7 | — |
| entity.name.function, support.function, meta.function-call.generic, meta.require, variable.function, entity.name.method | #D8C8FF | — |
| variable.parameter, meta.function.parameters variable | #B5ABD1 | italic |
| string, string.quoted, string.template, punctuation.definition.string, markup.inline.raw.string | #9BC7A5 | — |
| string.regexp, constant.character.escape, punctuation.definition.template-expression, punctuation.section.embedded | #E0A7FF | — |
| constant.numeric, constant.other, constant.character, variable.other.constant, support.constant | #E0A7FF | — |
| constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan, constant.language.python | #E0A7FF | italic |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type, entity.name.type.interface, entity.name.type.alias, entity.name.namespace, meta.type.annotation entity.name.type | #A8B8F5 | — |
| support.type.primitive, support.type.builtin, keyword.type | #A8B8F5 | italic |
| meta.decorator, punctuation.decorator, entity.name.function.decorator, meta.annotation | #E0A7FF | italic |
| variable, variable.other.readwrite, meta.definition.variable, support.variable | #D6D0E8 | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key | #C3BBDD | — |
| variable.language.this, variable.language.self, variable.language.super, variable.parameter.function.language.special.self.python | #C7B6FF | italic |
| entity.name.tag, punctuation.definition.tag, support.class.component | #C7B6FF | — |
| support.class.component.jsx, support.class.component.tsx, entity.name.tag.custom | #A8B8F5 | — |
| entity.other.attribute-name, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #D8C8FF | italic |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #C7B6FF | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #D8C8FF | — |
| support.constant.property-value.css, keyword.other.unit.css, constant.numeric.css | #E0A7FF | — |
| support.type.property-name.json, meta.structure.dictionary.key.python string | #C7B6FF | — |
| meta.structure.dictionary.value string.quoted.json, string.quoted.double.json | #9BC7A5 | — |
| markup.heading, markup.heading entity.name, punctuation.definition.heading.markdown | #C7B6FF | bold |
| markup.bold, punctuation.definition.bold | #A8B8F5 | bold |
| markup.italic, punctuation.definition.italic | #D8C8FF | italic |
| markup.underline.link, string.other.link, constant.other.reference.link.markdown | #8FC7CC | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #A8B8F5 | — |
| markup.inline.raw, markup.fenced_code.block, markup.raw.block | #E0A7FF | — |
| markup.quote | #9C93B5 | italic |
| punctuation.definition.list.begin.markdown, markup.list.numbered.markdown punctuation.definition.list | #D8C8FF | — |
| support.function.builtin.python, support.function.magic.python, support.variable.magic.python | #D8C8FF | italic |
| punctuation, meta.brace, punctuation.definition.parameters, punctuation.definition.block | #9C93B5 | — |
| invalid, invalid.illegal | #E091A8 | — |
| markup.inserted, meta.diff.header.to-file | #9BC7A5 | — |
| markup.deleted, meta.diff.header.from-file | #E091A8 | — |
| markup.changed | #E5C08A | — |
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.comment | #A69BB8 | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical.python, storage, storage.type, storage.modifier, variable.language, constant.language, keyword.other.important | #8064D8 | |
| keyword.control.flow, keyword.control.return, keyword.control.import, keyword.control.export, keyword.control.from | #8064D8 | italic |
| keyword.operator, punctuation.separator.key-value, punctuation.accessor | #8A80A8 | — |
| entity.name.function, support.function, meta.function-call.generic, meta.require, variable.function, entity.name.method | #9B6DFF | — |
| variable.parameter, meta.function.parameters variable | #675C88 | italic |
| string, string.quoted, string.template, punctuation.definition.string, markup.inline.raw.string | #718C7A | — |
| string.regexp, constant.character.escape, punctuation.definition.template-expression, punctuation.section.embedded | #B87BD8 | — |
| constant.numeric, constant.other, constant.character, variable.other.constant, support.constant | #C58AF9 | — |
| constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan, constant.language.python | #C58AF9 | italic |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type, entity.name.type.interface, entity.name.type.alias, entity.name.namespace, meta.type.annotation entity.name.type | #6C5BC4 | — |
| support.type.primitive, support.type.builtin, keyword.type | #6C5BC4 | italic |
| meta.decorator, punctuation.decorator, entity.name.function.decorator, meta.annotation | #B87BD8 | italic |
| variable, variable.other.readwrite, meta.definition.variable, support.variable | #4C4368 | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key | #675C88 | — |
| variable.language.this, variable.language.self, variable.language.super, variable.parameter.function.language.special.self.python | #8064D8 | italic |
| entity.name.tag, punctuation.definition.tag, support.class.component | #8064D8 | — |
| support.class.component.jsx, support.class.component.tsx, entity.name.tag.custom | #6C5BC4 | — |
| entity.other.attribute-name, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #9B6DFF | italic |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #8064D8 | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #9B6DFF | — |
| support.constant.property-value.css, keyword.other.unit.css, constant.numeric.css | #C58AF9 | — |
| support.type.property-name.json, meta.structure.dictionary.key.python string | #8064D8 | — |
| meta.structure.dictionary.value string.quoted.json, string.quoted.double.json | #718C7A | — |
| markup.heading, markup.heading entity.name, punctuation.definition.heading.markdown | #8064D8 | bold |
| markup.bold, punctuation.definition.bold | #6C5BC4 | bold |
| markup.italic, punctuation.definition.italic | #9B6DFF | italic |
| markup.underline.link, string.other.link, constant.other.reference.link.markdown | #6FA3A8 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #6C5BC4 | — |
| markup.inline.raw, markup.fenced_code.block, markup.raw.block | #B87BD8 | — |
| markup.quote | #7A7194 | italic |
| punctuation.definition.list.begin.markdown, markup.list.numbered.markdown punctuation.definition.list | #9B6DFF | — |
| support.function.builtin.python, support.function.magic.python, support.variable.magic.python | #9B6DFF | italic |
| punctuation, meta.brace, punctuation.definition.parameters, punctuation.definition.block | #7A7194 | — |
| invalid, invalid.illegal | #C66B85 | — |
| markup.inserted, meta.diff.header.to-file | #718C7A | — |
| markup.deleted, meta.diff.header.from-file | #C66B85 | — |
| markup.changed | #C79A5B | — |
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}!`;
}
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}!`;
}