猛男粉 (Tough Guy Pink)
Publisher: Simon GuThemes in package: 2
Dark color theme for VS Code / Cursor — deep navy & pink accents. 深色主题:深蓝背景与粉系强调。
Dark color theme for VS Code / Cursor — deep navy & 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 |
|---|---|---|
| comment, punctuation.definition.comment | #FFCEE366 | italic |
| entity.name.tag, entity.name.tag.html, entity.name.tag.xml, meta.tag entity.name.tag | #FF85BB | — |
| punctuation.definition.tag, meta.tag punctuation.definition.tag, punctuation.separator.key-value.html, punctuation.separator.key-value | #FF85BB | — |
| entity.other.attribute-name, entity.other.attribute-name.html, meta.attribute-name, meta.tag entity.other.attribute-name | #FFD166 | — |
| string.quoted.double.html, string.quoted.single.html, meta.attribute-with-value string.quoted, meta.tag string.quoted | #7AF7E3 | — |
| punctuation.definition.string.begin.html, punctuation.definition.string.end.html, meta.tag punctuation.definition.string | #FF85BB | — |
| text.html.basic, meta.tag.inline.any.html, text.html.derivative | #FFCEE3 | — |
| string, punctuation.definition.string | #7AD7FF | — |
| keyword, storage.type, storage.modifier | #FF85BB | — |
| constant.numeric, constant.language, constant.character, constant.other | #FFD166 | — |
| entity.name.function, support.function, meta.function-call, variable.function | #A6FFCB | — |
| entity.name.type, support.type, entity.name.class | #C7B6FF | — |
| variable, identifier | #FFCEE3 | — |
| variable.parameter | #FFCEE3CC | — |
| punctuation, meta.brace, meta.delimiter | #FFCEE3B3 | — |
| invalid, invalid.illegal | #011238 | — |
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}!`;
}