BittBott
Publisher: bittbottThemes in package: 1
A warm, autumn-toned dark theme with first-class token coverage for TypeScript/JSX, CSS/SCSS, Python, and config formats.
A warm, autumn-toned dark theme with first-class token coverage for TypeScript/JSX, CSS/SCSS, Python, and config formats.
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 | #8d7e6b | italic |
| string, string.quoted, string.template | #e39b57 | — |
| constant.character.escape, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #d5643c | — |
| string.regexp | #d5643c | — |
| constant.numeric | #fe8019 | — |
| constant.language | #d3869b | — |
| constant.language.boolean.true | #4ade80 | bold |
| constant.language.boolean.false | #ff4d4d | bold |
| constant.language.boolean, constant.language.bool, constant.language.json | #4ade80 | bold |
| constant.other, variable.other.enummember, support.constant | #d3869b | — |
| keyword, keyword.control | #d5643c | — |
| storage, storage.type, storage.modifier | #d5643c | — |
| keyword.operator | #fe8019 | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #e6b450 | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type | #5f9172 | bold |
| support.type.primitive, keyword.type | #5f9172 | — |
| variable, meta.definition.variable.name | #ebdbb2 | — |
| variable.parameter | #d5c4a1 | italic |
| variable.language | #d3869b | italic |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key | #78a3bf | — |
| punctuation, meta.brace | #bdae93 | — |
| entity.name.tag | #78a3bf | — |
| punctuation.definition.tag | #bdae93 | — |
| entity.other.attribute-name | #a3a84f | italic |
| invalid, invalid.illegal | #fb4934 | — |
| meta.decorator, punctuation.decorator, meta.decorator entity.name.function | #fe8019 | — |
| support.class.component | #e6b450 | — |
| support.type.property-name.css | #78a3bf | — |
| support.constant.property-value.css | #ebdbb2 | — |
| keyword.other.unit | #fe8019 | — |
| entity.other.attribute-name.class.css | #e6b450 | — |
| entity.other.attribute-name.id.css | #fe8019 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #5f9172 | — |
| constant.other.color | #d3869b | — |
| variable.scss, variable.sass | #cc241d | — |
| support.function.misc.scss, support.function.scss | #e6b450 | — |
| string.quoted.docstring | #7f8b38 | italic |
| constant.character.format.placeholder, punctuation.definition.interpolation | #d5643c | — |
| entity.name.function.decorator.python, meta.function.decorator.python punctuation.definition.decorator.python | #fe8019 | — |
| support.function.magic.python, support.variable.magic.python | #e6b450 | italic |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #fe8019 | bold |
| markup.bold | #fbf1c7 | bold |
| markup.italic | — | italic |
| markup.inline.raw, markup.fenced_code.block | #85ad8c | — |
| markup.underline.link, string.other.link.title.markdown, string.other.link.description | #78a3bf | — |
| markup.quote | #8d7e6b | italic |
| punctuation.definition.list.begin.markdown | #fe8019 | — |
| entity.name.tag.yaml | #85ad8c | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml, punctuation.definition.anchor.yaml, punctuation.definition.alias.yaml | #d3869b | — |
| support.type.property-name.toml | #85ad8c | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #e6b450 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.json support.type.property-name.json | #45789e | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json support.type.property-name.json | #fe8019 | — |
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}!`;
}