Soft Lavender PS Theme
Publisher: Pranav S SThemes in package: 2
A VS Code color theme with warm soft lavender tones. Includes dark and light variants.
A VS Code color theme with warm soft lavender tones. Includes dark and light variants.
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 | #6b65a0 | italic |
| keyword, storage.type, storage.modifier | #6236cc | italic |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical | #4a4470 | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #6236cc | — |
| string, string.quoted, string.template | #a05030 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #c07050 | — |
| constant.character.escape, constant.other.placeholder | #c06000 | italic |
| entity.name.function, meta.function-call, variable.function, support.function | #2a2548 | — |
| entity.name.label | #2a2548 | — |
| entity.name.type.class, entity.name.type, support.class, support.type | #1a4070 | italic |
| meta.type.annotation, meta.type.parameters | #1a4070 | italic |
| entity.name.type.module, meta.import variable.other | #1a4070 | — |
| variable, variable.name, variable.other | #1a1730 | — |
| variable.parameter | #2a2548 | — |
| variable.language | #a05030 | italic |
| variable.other.property, variable.other.object.property, support.variable.property | #a05030 | — |
| constant.numeric | #207050 | — |
| constant.language | #6236cc | — |
| constant, constant.other, constant.character | #207050 | — |
| entity.name.tag, meta.tag.sgml | #6236cc | — |
| entity.name.tag support.class.component | #1a4070 | — |
| meta.tag.attribute, entity.other.attribute-name | #a05030 | italic |
| punctuation, meta.tag, punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #4a4470 | — |
| punctuation.terminator.statement, punctuation.separator.comma, punctuation.terminator.rule | #6b65a0 | — |
| punctuation.accessor | #4a4470 | — |
| source.css entity.other.attribute-name.class, source.scss entity.other.attribute-name.class | #1a4070 | — |
| source.css entity.other.attribute-name.id, source.scss entity.other.attribute-name.id | #a05030 | — |
| support.type.property-name.css, meta.property-list.css, meta.property-list.scss | #2a2548 | — |
| meta.property-value.css, support.constant.property-value.css | #a05030 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #207050 | italic |
| meta.object-literal.key | #2a2548 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #2a2548 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #a05030 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #1a4070 | — |
| *url*, *link*, *uri* | #1a4070 | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #6236cc | italic |
| markup.heading, entity.name.section | #2a2548 | bold |
| markup.italic | #2a2548 | italic |
| markup.bold | #1a1730 | bold |
| markup.underline | #a05030 | underline |
| markup.strike | #6b65a0 | strikethrough |
| markup.quote | #4a4470 | italic |
| markup.raw.block, markup.fenced_code.block.markdown, markup.inline.raw.string.markdown | #207050 | — |
| markup.deleted, punctuation.definition.deleted | #c0392b | — |
| markup.inserted, punctuation.definition.inserted | #207050 | — |
| markup.changed, punctuation.definition.changed | #a05030 | — |
| entity.other.inherited-class | #1a4070 | — |
| invalid, invalid.illegal | #f14c4c | — |
| token.info-token | #2a2548 | — |
| token.warn-token | #cca700 | — |
| token.error-token | #f14c4c | — |
| token.debug-token | #6b65a0 | — |
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}!`;
}