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 | #9a7010 | bold |
| keyword.control, keyword.operator.new, keyword.operator.delete | #a04030 | bold |
| keyword.other, keyword.control.import, keyword.control.export | #2d6b52 | — |
| storage.type, storage.modifier | #a04030 | — |
| keyword.operator | #b85c48 | — |
| entity.name.function, meta.function entity.name.function | #9a7010 | — |
| meta.function-call entity.name.function, support.function | #b8860b | — |
| entity.name.class, entity.name.type.class | #b8860b | bold |
| entity.name.type, support.class | #b8860b | — |
| entity.name.type.interface, entity.name.type.alias, support.type, entity.name.type.ts | #3a6a8a | — |
| entity.name.type.parameter, variable.type.ts | #2d5a72 | italic |
| support.type.primitive, keyword.type, storage.type.boolean.go | #3a6a8a | — |
| variable.other.local, variable.other | #2a221c | — |
| variable.language | #a04030 | italic |
| variable.parameter | #52443a | italic |
| variable.other.property, variable.other.object.property, support.variable.property | #52443a | — |
| string | #3d7a5c | — |
| string.template, meta.template.expression | #3d7a5c | — |
| meta.template.expression punctuation.definition.template-expression | #b85c48 | — |
| constant.character.escape | #9a7010 | — |
| constant.numeric | #3a6a8a | — |
| constant.language | #2d5a72 | italic |
| variable.other.constant | #3a6a8a | — |
| punctuation.delimiter, punctuation.separator | #b85c48 | — |
| punctuation.definition.parameters, punctuation.section.block, meta.brace | #8a7668 | — |
| string.quoted.double.import, string.quoted.single.import | #2d6b52 | — |
| entity.name.tag, support.class.component | #a04030 | — |
| entity.other.attribute-name | #3a6a8a | italic |
| punctuation.section.embedded | #b85c48 | — |
| support.type.property-name.css | #3a6a8a | — |
| support.constant.property-value.css, constant.other.color.rgb-value.css | #3d7a5c | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #9a7010 | — |
| keyword.other.unit.css | #2d5a72 | — |
| entity.name.function.decorator.python, punctuation.definition.decorator.python | #9a7010 | italic |
| support.function.magic.python | #b8860b | italic |
| markup.heading | #9a7010 | bold |
| markup.bold | #2a221c | bold |
| markup.italic | #52443a | italic |
| markup.inline.raw | #3d7a5c | — |
| markup.underline.link | #3a6a8a | — |
| markup.quote | #8a7668 | italic |
| invalid | #a04030 | 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}!`;
}