BTS Pastel Purple Light Theme
Publisher: tipandtaleThemes in package: 1
A dreamy BTS-inspired light VS Code theme with a lavender-white workspace, pastel-purple interface accents, and readable jewel-toned syntax.
A dreamy BTS-inspired light VS Code theme with a lavender-white workspace, pastel-purple interface accents, and readable jewel-toned syntax.
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 | #5B684D | italic |
| keyword, storage.type, storage.modifier | #6B3FA0 | bold |
| string, meta.embedded.assembly | #3F6F47 | — |
| constant.numeric, constant.language.boolean, constant.language.null | #8A5A00 | — |
| entity.name.function, support.function | #59418E | — |
| variable, support.variable | #8A406F | — |
| entity.name.type, support.type, entity.name.class | #25736D | — |
| meta.object-literal.key, support.type.property-name, variable.other.property | #714D91 | — |
| punctuation, meta.brace, meta.delimiter | #765300 | — |
| entity.name.tag | #3F6F47 | — |
| entity.other.attribute-name | #59418E | — |
| keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.control.import, keyword.control.export, keyword.control.return, keyword.control.trycatch, keyword.control.ts, keyword.control.tsx, keyword.control.js, keyword.control.jsx, keyword.control.flow.ts, keyword.control.flow.tsx, keyword.control.flow.js, keyword.control.flow.jsx | #633495 | bold |
| storage.type, storage.type.var, storage.type.const, storage.type.let, storage.type.function, storage.type.class, storage.modifier, storage.type.ts, storage.type.tsx, storage.type.js, storage.type.jsx, storage.type.function.ts, storage.type.function.tsx, storage.type.function.js, storage.type.function.jsx | #633495 | bold |
| storage.type.function.arrow, storage.type.function.arrow.ts, storage.type.function.arrow.tsx, storage.type.function.arrow.js, storage.type.function.arrow.jsx, keyword.operator.arrow, keyword.operator.function, meta.arrow | #8F315C | bold |
| support.type.primitive, support.type.primitive.ts, support.type.primitive.tsx, support.type.primitive.js, support.type.primitive.jsx, support.type.builtin, support.type, entity.name.type, entity.name.type.module, meta.type.annotation | #156B65 | — |
| string.quoted, string.quoted.single, string.quoted.double, string.quoted.single.ts, string.quoted.single.tsx, string.quoted.double.ts, string.quoted.double.tsx, string.template, string.template.tsx, string.template.ts | #356B3E | — |
| punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #356B3E | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.decimal.ts, constant.numeric.decimal.tsx, constant.numeric.decimal.js, constant.numeric.decimal.jsx, constant.language.boolean, constant.language.null, constant.language.undefined | #805000 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, keyword.operator.ternary, keyword.operator.expression, keyword.operator.ts, keyword.operator.tsx, keyword.operator.js, keyword.operator.jsx | #673D8F | — |
| entity.name.function, entity.name.function.method, support.function, variable.function, meta.function-call entity.name.function, meta.function-call variable.function | #95365F | — |
| variable.parameter, variable.other.property, variable.object.property, support.type.property-name, meta.object-literal.key | #67448C | — |
| entity.name.tag, entity.name.tag.tsx, entity.name.tag.jsx, support.class.component | #356B3E | — |
| entity.other.attribute-name, entity.other.attribute-name.tsx, entity.other.attribute-name.jsx | #59418E | — |
| string.other.link.description.title.markdown, string.other.link.description.markdown, markup.underline.link.markdown, meta.image.inline.markdown string.other.link.description.title.markdown, meta.image.inline.markdown string.other.link.description.markdown | #493568 | — |
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}!`;
}