Claude - Anthropic Theme
Publisher: ducaThemes in package: 1
A dark VS Code theme inspired by Anthropic's Claude interface palette
A dark VS Code theme inspired by Anthropic's Claude interface palette
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 | #5A5A58 | italic |
| string, string.quoted, string.template | #7EC699 | — |
| string.regexp | #7CE8D4 | — |
| constant.numeric, constant.language, constant.character | #F4A58A | — |
| constant.other | #E8C47C | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, storage.type, storage.modifier | #F4845F | — |
| keyword.operator, punctuation.accessor | #C0BCAF | — |
| entity.name.function, meta.function-call, support.function | #7CACE8 | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #E8C47C | — |
| entity.name.type.interface, entity.name.type.type-parameter | #7CE8D4 | — |
| variable, variable.other | #E8E4DC | — |
| variable.parameter, variable.other.readwrite | #D4CFBF | — |
| variable.language | #F4845F | italic |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key | #C49BE8 | — |
| entity.name.tag, support.class.component | #F4845F | — |
| entity.other.attribute-name | #E8C47C | italic |
| punctuation.definition.tag, punctuation.definition.block, punctuation.definition.parameters, punctuation.section, meta.brace | #8A8A88 | — |
| punctuation.separator, punctuation.terminator | #6A6A68 | — |
| meta.decorator, punctuation.decorator | #E8C47C | italic |
| markup.heading, entity.name.section | #F4845F | bold |
| markup.bold | #E8E4DC | bold |
| markup.italic | #C49BE8 | italic |
| markup.inline.raw, markup.fenced_code | #7CE8D4 | — |
| markup.underline.link | #7CACE8 | — |
| markup.list | #F4A58A | — |
| markup.quote | #6A6A68 | italic |
| support.type.property-name.css | #7CACE8 | — |
| support.constant.property-value.css, constant.other.color.rgb-value.hex.css | #F4A58A | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #E8C47C | — |
| keyword.other.unit.css | #F4845F | — |
| support.type.property-name.json | #C49BE8 | — |
| entity.name.tag.yaml | #7CACE8 | — |
| source.shell variable.other | #7CE8D4 | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #F4845F | — |
| variable.other.readwrite.alias | #E8C47C | — |
| string.template meta.embedded, meta.template.expression | #E8E4DC | — |
| punctuation.definition.template-expression | #F4845F | — |
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}!`;
}