Champagne: A pink theme
Publisher: Bella LeThemes in package: 1
A dark theme with pink accents
A dark theme with pink accents
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 |
|---|---|---|
| markup.strikethrough | #756268 | strikethrough |
| markup.heading | #CE95A8 | bold |
| markup.bold | #B4D9EE | bold |
| markup.italic | #C5B3E6 | italic |
| markup.inline.raw, markup.fenced_code, markup.raw.block | #B8E6D0 | — |
| markup.underline.link | #B4D9EE | underline |
| markup.list.bullet | #F2D4A7 | — |
| markup.quote | #E4D8DD | italic |
| punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json | #756268 | — |
| string | #B4D9EE | |
| keyword | #CE95A8 | — |
| entity.other.attribute-name.tsx | #F2D4A7 | — |
| entity.name.function, entity.name.function.tsx, meta.function-call, meta.function.expression, meta.method.declaration, meta.definition.method, meta.definition.function, meta.function-call.tsx, support.function, variable.function | #C5B3E6 | italic |
| meta.function-call.arguments, meta.function-call.arguments.python, meta.item-access.python, meta.indexed-name.python | #E4D8DD | |
| support.type, support.type.primitive.tsx, support.type.primitive | #B8E6D0 | italic |
| meta.embedded.expression.tsx meta.tag.attributes.tsx variable.other.readwrite.tsx | #C5B3E6 | italic |
| variable.other.readwrite.tsx, variable.other.constant.tsx, meta.embedded.expression.tsx variable.other.readwrite.tsx | #E4D8DD | — |
| support.type.property-name.json | — | |
| string.quoted.double.json, string.quoted.single.json, meta.structure.dictionary.value.json string.quoted.double.json | #E4D8DD | |
| meta.definition.variable.tsx meta.array-binding-pattern-variable.tsx variable.other.constant.tsx | #E4D8DD | — |
| comment, comment.block.documentation | #756268 | italic |
| entity.name.function | #E8BCC8 | italic |
| constant.numeric | #F2D4A7 | — |
| support.type, entity.name.type, support.class | #C5B3E6 | italic |
| storage.type | #D4A5B5 | — |
| entity.name.type | #B4E6E6 | — |
| support.class | #E6B3CC | italic |
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}!`;
}