Fine Art Code
Publisher: RockosrevelationThemes in package: 2
Curated code snippets and a fine-art color theory theme for VS Code & Cursor
Curated code snippets and a fine-art color theory theme for VS Code & Cursor
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.line, punctuation.definition.comment | #8a7668 | italic |
| comment.block, comment.block.documentation | #8a7668 | italic |
| comment.line storage.type.class.todo | #d4a84b | bold |
| keyword.control, keyword.operator.new, keyword.operator.delete | #8a3324 | bold |
| keyword.other, keyword.control.import, keyword.control.export | #4d8a6e | — |
| storage.type, storage.modifier | #8a3324 | — |
| keyword.operator | #a85a44 | — |
| entity.name.function, meta.function entity.name.function | #d4a84b | — |
| meta.function-call entity.name.function, support.function | #e8c87a | — |
| entity.name.class, entity.name.type.class | #e8c87a | bold |
| entity.name.type, support.class | #e8c87a | — |
| entity.name.type.interface, entity.name.type.alias, support.type, entity.name.type.ts | #7aafc4 | — |
| entity.name.type.parameter, variable.type.ts | #5c8fa8 | italic |
| support.type.primitive, keyword.type, storage.type.boolean.go | #7aafc4 | — |
| variable.other.local, variable.other | #e8ddd0 | — |
| variable.language | #8a3324 | italic |
| variable.parameter | #c4b49e | italic |
| variable.other.property, variable.other.object.property, support.variable.property | #c4b49e | — |
| string | #6fa58a | — |
| string.template, meta.template.expression | #6fa58a | — |
| meta.template.expression punctuation.definition.template-expression | #a85a44 | — |
| constant.character.escape | #d4a84b | — |
| constant.numeric | #7aafc4 | — |
| constant.language | #5c8fa8 | italic |
| variable.other.constant | #7aafc4 | — |
| punctuation.delimiter, punctuation.separator | #a85a44 | — |
| punctuation.definition.parameters, punctuation.section.block, meta.brace | #8a7668 | — |
| string.quoted.double.import, string.quoted.single.import | #4d8a6e | — |
| entity.name.tag, support.class.component | #8a3324 | — |
| entity.other.attribute-name | #7aafc4 | italic |
| punctuation.section.embedded | #a85a44 | — |
| support.type.property-name.css | #7aafc4 | — |
| support.constant.property-value.css, constant.other.color.rgb-value.css | #6fa58a | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #d4a84b | — |
| keyword.other.unit.css | #5c8fa8 | — |
| entity.name.function.decorator.python, punctuation.definition.decorator.python | #d4a84b | italic |
| support.function.magic.python | #e8c87a | italic |
| markup.heading | #d4a84b | bold |
| markup.bold | #e8ddd0 | bold |
| markup.italic | #c4b49e | italic |
| markup.inline.raw | #6fa58a | — |
| markup.underline.link | #7aafc4 | — |
| markup.quote | #8a7668 | italic |
| invalid | #8a3324 | underline |
| invalid.deprecated | #8a7668 | strikethrough |
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}!`;
}