Butter Bear
Publisher: butterdevThemes in package: 10
10 warm golden themes (Dark, Light, Soft, Midnight, Mocha, Storm, Rose, Forest, AMOLED, HC) + a growing bear companion with prestige system.
10 warm golden themes (Dark, Light, Soft, Midnight, Mocha, Storm, Rose, Forest, AMOLED, HC) + a growing bear companion with prestige system.
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, comment.line, comment.block, comment.block.documentation, punctuation.definition.comment | #3a4248 | italic |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple, string.template, string.regexp, string.other | #79c0ff | — |
| constant.character.escape, constant.character.unicode, string.regexp.character-class, string.regexp keyword.other | #d2a8ff | — |
| keyword, keyword.control, keyword.other, keyword.operator.expression, keyword.operator.instanceof, keyword.operator.new, keyword.operator.typeof, keyword.operator.void, keyword.operator.delete, storage.type, storage.modifier | #e8a838 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.require | #e8a838 | — |
| entity.name.function, meta.function-call entity.name.function, support.function, meta.function-call.generic | #d2a8ff | — |
| entity.name.type, entity.name.class, entity.name.type.class, entity.other.inherited-class, support.class, entity.name.type.module | #ffa657 | — |
| entity.name.type.interface, entity.name.type.enum | #ffa657 | — |
| entity.name.type.parameter, variable.other.generic-type | #ffa657 | — |
| variable, variable.other, variable.other.readwrite, variable.other.object, variable.other.block | #b0bac4 | — |
| variable.parameter, meta.function.parameter variable | #9aa4ae | — |
| variable.other.property, meta.object-literal.key, support.type.property-name, meta.property-name, entity.name.tag.yaml | #8a9aaa | — |
| constant, constant.other, variable.other.constant, support.constant, variable.other.enummember | #e8b050 | — |
| constant.numeric, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan | #e8c84a | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.bitwise, keyword.operator.relational, keyword.operator.ternary, punctuation.separator.key-value | #e8a838 | — |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.accessor, meta.brace.round, meta.brace.square, meta.brace.curly | #586068 | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.xml, entity.name.tag.jsx, entity.name.tag.tsx | #c4845a | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #b8a060 | — |
| entity.name.decorator, meta.decorator, punctuation.decorator | #c88028 | — |
| entity.name.namespace, entity.name.module, variable.other.namespace, meta.import variable.other | #6a747e | — |
| invalid, invalid.illegal | #c84a4a | underline |
| invalid.deprecated | #c84a4a | strikethrough |
| markup.inserted, meta.diff.header.from-file, punctuation.definition.inserted | #3fb950 | — |
| markup.deleted, meta.diff.header.to-file, punctuation.definition.deleted | #f85149 | — |
| markup.changed | #c8a040 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #c4845a | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less | #8a9aaa | — |
| support.constant.property-value.css, support.constant.color.css, constant.numeric.css, keyword.other.unit.css | #79c0ff | — |
| keyword.control.at-rule.css, keyword.control.at-rule.scss, punctuation.definition.keyword.css | #e8a838 | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #e8a838 | bold |
| markup.bold, punctuation.definition.bold.markdown | #d2a8ff | bold |
| markup.italic, punctuation.definition.italic.markdown | #79c0ff | italic |
| markup.inline.raw.string.markdown, markup.fenced_code.block.markdown, fenced_code.block.language | #79c0ff | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #e8a838 | underline |
| string.other.link.title.markdown, string.other.link.description.markdown | #c9d1d9 | — |
| markup.quote.markdown, punctuation.definition.blockquote.markdown | #586068 | italic |
| punctuation.definition.list.begin.markdown, markup.list.bullet | #e8a838 | — |
| support.type.property-name.json, string.quoted.double.json meta.structure.dictionary.json | #8a9aaa | — |
| string.quoted.double.json | #79c0ff | — |
| entity.name.tag.yaml, string.unquoted.plain.out.yaml entity.name.tag | #8a9aaa | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml, punctuation.definition.anchor.yaml, punctuation.definition.alias.yaml | #e8a838 | — |
| keyword.other.DML.sql, keyword.other.DDL.create.sql, keyword.other.sql, storage.modifier.sql, support.function.aggregate.sql | #e8a838 | uppercase |
| entity.name.function.decorator.python, meta.function.decorator.python | #c88028 | — |
| variable.language.special.self.python, variable.language.special.cls.python | #e8a838 | italic |
| support.function.magic.python | #d2a8ff | italic |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust, punctuation.definition.lifetime.rust | #e8a838 | — |
| entity.name.function.macro.rust, meta.macro.rust, support.function.builtin.rust | #e8b050 | — |
| entity.name.type.rust, storage.type.rust | #ffa657 | — |
| entity.name.package.go, support.type.builtin.go | #6a747e | — |
| support.function.builtin.shell, entity.name.command.shell, keyword.control.shell | #e8a838 | — |
| variable.other.normal.shell, variable.other.special.shell, punctuation.definition.variable.shell | #b0bac4 | — |
| punctuation.definition.annotation.java, storage.type.annotation.java, meta.declaration.annotation.java | #c88028 | — |
| constant.other.symbol.ruby | #e8b050 | — |
| punctuation.section.embedded.begin.ruby, punctuation.section.embedded.end.ruby | #e8a838 | — |
| meta.preprocessor, keyword.control.directive, punctuation.definition.directive | #6a747e | — |
| storage.type.primitive.c, storage.type.primitive.cpp, storage.type.built-in.primitive.c, storage.type.built-in.primitive.cpp | #ffa657 | — |
| support.variable, variable.language, variable.language.this, variable.language.super | #e8a838 | — |
| support.type, support.type.primitive, support.type.builtin | #ffa657 | — |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc, entity.name.tag.documentation | #586068 | — |
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}!`;
}