Velvet Dusk
Publisher: MayraThemes in package: 1
A soft dark VS Code theme with muted purple, teal, and blue-gray tones for long coding sessions.
A soft dark VS Code theme with muted purple, teal, and blue-gray tones for long coding sessions.
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 | #7272a8 | italic |
| keyword.control, keyword.operator.new, keyword.operator.expression, keyword.other.debugger | #c070a8 | — |
| storage.type | #5aab98 | — |
| storage.modifier, keyword.control.import, keyword.control.export, keyword.control.from | #c08848 | — |
| keyword | #c070a8 | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #9878d8 | — |
| string, string.template | #7aaa80 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #c08848 | — |
| constant.numeric | #c07878 | — |
| constant.language | #c07878 | — |
| variable, variable.other, variable.other.readwrite | #b8c8de | — |
| variable.parameter | #c8d8ee | italic |
| variable.other.constant, constant.other | #d4b878 | — |
| entity.name.type, entity.name.class, support.class, support.type | #b898d8 | — |
| support.type.primitive, keyword.type, storage.type.interface, storage.type.type | #6aa8c8 | — |
| entity.name.tag, meta.tag.sgml | #b06878 | — |
| support.class.component, support.class.component.jsx, support.class.component.tsx | #b898d8 | — |
| meta.object-literal.key, meta.object.member, variable.object.property, variable.object.property.ts, variable.object.property.tsx, meta.definition.property.ts, variable.other.object.property | #9868b8 | — |
| entity.other.attribute-name | #8888b8 | — |
| keyword.operator | #7888b8 | — |
| storage.type.function.arrow, keyword.operator.arrow | #5aab98 | — |
| punctuation.definition, punctuation.separator, punctuation.terminator, meta.brace | #5a6078 | — |
| support.type.property-name | #8888b8 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type | #c08848 | — |
| 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, meta.selector | #caaaf0 | — |
| variable.other.custom-property, variable.css, support.type.custom-property, variable.other.custom-property.name | #7aaa80 | — |
| keyword.control.at-rule, keyword.at-rule, punctuation.definition.keyword.css | #c070a8 | — |
| constant.other.color, keyword.other.unit | #c07878 | — |
| support.type.property-name.json | #9868b8 | — |
| markup.heading, entity.name.section | #c070a8 | bold |
| markup.bold | #c4a8d8 | bold |
| markup.italic | #a8b8d0 | italic |
| markup.underline.link | #5aab98 | — |
| markup.inline.raw, markup.fenced_code | #c07878 | — |
| invalid, invalid.deprecated | #c05870 | strikethrough |
| entity.name.function.decorator, meta.function.decorator entity.name.function, support.function.decorator, punctuation.definition.decorator | #c08848 | — |
| variable.language.special.self, variable.parameter.function.language.special.self | #9878d8 | italic |
| support.function.magic | #9878d8 | italic |
| support.function.builtin | #9878d8 | — |
| support.type.python, support.class.python | #6aa8c8 | — |
| support.type.exception.python | #b898d8 | — |
| meta.fstring.python punctuation.definition.template-expression, punctuation.definition.template-expression.begin.python, punctuation.definition.template-expression.end.python | #c08848 | — |
| keyword.declaration.function.lambda | #5aab98 | — |
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}!`;
}