Anthropic Theme
Publisher: Bryan RussettThemes in package: 1
A dark theme inspired by Anthropic's design aesthetic
A dark theme inspired by Anthropic's design aesthetic
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 |
|---|---|---|
| text, source, variable.other.readwrite, punctuation.definition.variable | #D9CCCC | — |
| punctuation | #8A7F7F | |
| comment, punctuation.definition.comment | #8A7F7F | italic |
| string, punctuation.definition.string | #CCA699 | — |
| constant.character.escape | #CC7373 | — |
| constant.numeric, variable.other.constant, entity.name.constant, constant.language.boolean, constant.language.false, constant.language.true, keyword.other.unit.user-defined, keyword.other.unit.suffix.floating-point | #CCA699 | — |
| keyword, keyword.operator.word, keyword.operator.new, variable.language.super, support.type.primitive, storage.type, storage.modifier, punctuation.definition.keyword | #cc6f4e | |
| entity.name.tag.documentation | #cc6f4e | — |
| keyword.operator, punctuation.accessor, punctuation.definition.generic, meta.function.closure punctuation.section.parameters, punctuation.definition.tag, punctuation.separator.key-value | #CCA699 | — |
| entity.name.function, meta.function-call.method, support.function, support.function.misc, variable.function | #cc6f4e | italic |
| entity.name.class, entity.other.inherited-class, support.class, meta.function-call.constructor, entity.name.struct | #CCA699 | italic |
| entity.name.enum | #CCA699 | italic |
| meta.enum variable.other.readwrite, variable.other.enummember | #CCA699 | — |
| meta.property.object | #CCA699 | — |
| meta.type, meta.type-alias, support.type, entity.name.type | #CCA699 | italic |
| meta.annotation variable.function, meta.annotation variable.annotation.function, meta.annotation punctuation.definition.annotation, meta.decorator, punctuation.decorator | #CCA699 | — |
| variable.parameter, meta.function.parameters | #cc6f4e | italic |
| constant.language, support.function.builtin | #cc6f4e | — |
| entity.other.attribute-name.documentation | #cc6f4e | — |
| variable.language.this, variable.language.this punctuation.definition.variable | #cc6f4e | — |
| keyword.control.directive, punctuation.definition.directive | #CCA699 | — |
| punctuation.definition.typeparameters | #cc6f4e | — |
| entity.name.namespace | #CCA699 | — |
| support.type.property-name.css | #cc6f4e | |
| string.template variable, string variable | #D9CCCC | — |
| variable.object.property | #D9CCCC | — |
| keyword.operator.new | — | bold |
| entity.name.tag | #cc6f4e | |
| entity.other.attribute-name | #CCA699 | — |
| support.class.component, support.class.component.jsx, support.class.component.tsx, support.class.component.vue | #CC7373 | |
| keyword.other.definition.ini, punctuation.support.type.property-name.json, support.type.property-name.json, punctuation.support.type.property-name.toml, support.type.property-name.toml, entity.name.tag.yaml, punctuation.support.type.property-name.yaml, support.type.property-name.yaml | #cc6f4e | |
| heading.1.markdown punctuation.definition.heading.markdown, heading.1.markdown | #cc6f4e | — |
| markup.bold | #cc6f4e | bold |
| markup.italic | #cc6f4e | italic |
| punctuation.definition.link, markup.underline.link | #cc6f4e | — |
| string.regexp | #CCA699 | — |
| terminal.ansiBlack, terminal.ansiRed, terminal.ansiGreen, terminal.ansiYellow | #cc6f4e | — |
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}!`;
}