CIMTheme
Publisher: Cenk ImrenThemes in package: 1
A high-contrast dark VS Code theme using a deep navy base with gold and blue accents.
A high-contrast dark VS Code theme using a deep navy base with gold and blue 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 | #6f8795 | italic |
| string, constant.other.symbol, markup.heading | #c3e88d | — |
| constant.numeric, constant.language, support.constant, variable.other.constant | #f78c6c | — |
| keyword, storage.type, storage.modifier, punctuation.definition.keyword | #c792ea | — |
| entity.name.function, support.function, meta.function-call | #82aaff | — |
| entity.name.type, entity.name.class, support.type, support.class | #ffcb6b | — |
| variable, variable.other, entity.name.variable, meta.object-literal.key | #eeffff | — |
| variable.parameter, meta.parameter | #f78c6c | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.xml, punctuation.definition.tag, meta.tag punctuation.definition.tag, meta.tag.sgml.doctype, meta.tag.structure.any.html | #ff5370 | — |
| support.type.property-name, meta.property-name | #82aaff | — |
| entity.other.attribute-name, support.variable.property | #ffcb6b | — |
| punctuation, meta.brace, meta.delimiter | #89ddff | — |
| invalid, invalid.illegal | #ffffff | — |
| markup.deleted | #ff5370 | — |
| markup.inserted | #c3e88d | — |
| markup.changed | #ffcb6b | — |
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}!`;
}