Dark Flamingo
Publisher: Dark FlamingoThemes in package: 1
A VScode theme
A VScode theme
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 | #e089adda | italic |
| storage.type, keyword.control.flow | #f55a74 | — |
| variable.other.object | #eab2cb | — |
| variable.other.constant, variable.other.readwrite, variable.parameter, meta.function-call | #e8e7e7 | — |
| string | #8af164 | — |
| keyword.operator, punctuation.terminator.statement, punctuation.separator.comma, punctuation.accessor, storage.type.function.arrow | #aaedea | — |
| entity.name.function | #8da3fc | — |
| constant.numeric | #d1abf3 | — |
| keyword.control.conditional, keyword.control.switch, keyword.control.loop.js | #ec9d70 | — |
| meta.object-literal.key | #ec9d70 | — |
| variable.other.object.property, variable.other.property | #de8888 | — |
| keyword.control.export, meta.export.default, keyword.control.import, meta.import | #f1689d | — |
| meta.brace.round, punctuation.definition.block, punctuation.definition.parameters | #d29fee | — |
| punctuation.definition.tag | #f26e6e | — |
| entity.name.tag | #d29fee | — |
| entity.other.attribute-name, meta.function | #8da3fc | — |
| punctuation.separator.key-value, punctuation.terminator.rule | #aaedea | — |
| text.html.derivative | #e8e7e7 | — |
| meta.property-name | #eab2cb | — |
| variable.argument, variable.css | #f1ea82 | — |
| punctuation.section.function.begin.bracket.round, punctuation.section.function.end.bracket.round, punctuation.section.property-list | #f3a489 | — |
| entity.other.attribute-name.class | #f1689d | — |
| entity.other.attribute-name.id | #f34e64 | — |
| entity.name.tag.css | #69f0c8 | — |
| entity.other.attribute-name.pseudo-class | #ec9d70 | — |
| keyword.other.unit | #ec9d70 | — |
| support.constant.property-value, keyword.other.important, support.constant.font-name | #f279bf | — |
| constant.other.color.rgb-value.hex | #a4ca8f | — |
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}!`;
}