CMYP
Publisher: bunnerdThemes in package: 1
Dark CMY + purple theme
Dark CMY + purple 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 | #528445 | italic |
| source | #F3AAE5 | — |
| storage.type | #5EC4F3 | — |
| constant.numeric.decimal, keyword.other.suffix.literal.built-in.floating-point, variable.other.enummember | #d69f5c | — |
| string | #F3AAE5 | — |
| constant | #5EC4F3 | — |
| entity.name.function.definition, entity.name.function.member, entity.name.function.call | #d4c15e | — |
| variable | #B383D0 | — |
| storage.modifier.reference | #d4c15e | — |
| keyword.operator.logical, keyword.operator.comparison | #9CDCFE | — |
| keyword.operator, keyword.control | #EB5BD1 | — |
| keyword.control.directive | #EB5BD1 | — |
| entity.name.function.preprocessor | #5EC4F3 | — |
| meta.preprocessor.macro | #F3AAE5 | — |
| punctuation.separator.namespace.access, punctuation.separator.dot-access, punctuation.separator.pointer-access, punctuation.terminator | #F3AAE5 | — |
| storage.modifier | #5EC4F3 | — |
| entity.name.scope-resolution | #df36aa | — |
| entity.name.type | #df36aa | italic |
| variable.parameter | #9CDCFE | — |
| storage.type.modifier.access.control | #5EC4F3 | — |
| entity.name.tag | #EB5BD1 | — |
| entity.other.attribute-name | #5EC4F3 | — |
| punctuation.definition.tag | #a17298 | — |
| punctuation.separator.key-value | #F3AAE5 | — |
| text.html.derivative | #d8d8d8 | — |
| string.quoted.double.html | #B383D0 | — |
| entity.other.attribute-name.id, entity.other.attribute-name.class | #EB5BD1 | — |
| support.type.property-name | #B383D0 | — |
| meta.property-value | #5EC4F3 | — |
| constant.numeric | #d4c15d | — |
| entity.name.function.js, entity.name.function.jsx, entity.name.function.tsx | #d4c15e | — |
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}!`;
}