BananaTheme
Publisher: DJ-BananaThemeThemes in package: 1
Dark Blue Golden Touch themes for Code
Dark Blue Golden Touch themes for Code
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 | #777777 | |
| constant.other.color | #ffffff | — |
| invalid, invalid.illegal | #f8871c | italic |
| punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #b9a119 | |
| string, punctuation, punctuation.separator.inheritance.php, punctuation.section.embedded | #eee | |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter, entity.other.attribute-name.class | #a11010 | — |
| support.constant, constant.character, constant.escape, keyword.other.unit, keyword.other | #cccccc | — |
| constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #999999 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name, source.json meta.structure.dictionary.json support.type.property-name.json, source.python, source.sql, source.sql.sqlite, source.shell, source.batchfile, variable.other, variable.parameter, variable, punctuation.definition.variable.php | #1fb7f3 | bold |
| storage.type, keyword.operator.comparison.python, variable.other.object.js, entity.other.attribute-name.html | #078fe9 | italic |
| storage.type.js, constant.language, support.type.python, constant.numeric, string.quoted.other.lt-gt.include.c, constant.other.placeholder.c | #9303f3 | |
| constant.language.python, support.type.python | #9303f3 | italic |
| keyword.operator.comparison.js, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #b9a119 | |
| keyword.control, constant.other.color, meta.tag, meta.function-call.generic.python, keyword.other.template, keyword.other.substitution, keyword.operator.logical.python, entity.name, support.function.builtin.python, punctuation.definition.directive.c | #df1102 | |
| entity.name.method.js | #82AAFF | italic |
| entity.other.attribute-name | #0a9fda | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #FFCB6B | italic |
| markup.inserted | #C3E88D | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #C792EA | — |
| constant.character.escape | #b9a119 | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #82AAFF | italic |
| text.html.markdown, punctuation.definition.list_item.markdown | #EEFFFF | — |
| text.html.markdown markup.inline.raw.markdown | #C792EA | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #65737E | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #C3E88D | — |
| markup.italic | #f07178 | italic |
| markup.bold, markup.bold string | #f07178 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #f07178 | bold |
| markup.underline | #F78C6C | underline |
| markup.quote punctuation.definition.blockquote.markdown | #65737E | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #82AAFF | — |
| string.other.link.description.title.markdown | #C792EA | — |
| constant.other.reference.link.markdown | #FFCB6B | — |
| markup.raw.block | #C792EA | — |
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}!`;
}