Rhubarb
Publisher: omrprksThemes in package: 1
Rhubarb - a simple Visual Studio Code color theme
Rhubarb - a simple Visual Studio Code color theme
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 | #08804ebb | italic |
| entity | #EEE | |
| entity.name.tag | #08804E | — |
| constant, support.constant, constant.language.boolean, constant.numeric, constant.character.numeric, meta.structure.dictionary.json meta.structure.dictionary.value constant.language | #A85D74 | — |
| meta.brace, punctuation.definition.parameters.begin.js, punctuation.definition.parameters.end.js | #eee | — |
| punctuation | #eee | — |
| punctuation.definition.template-expression | #3E7858 | — |
| support | #80FFBB | — |
| variable | #EEE | — |
| variable.parameter.function | #7fdbca | |
| string, punctuation.definition.string, string.template, punctuation.definition.string.template | #A5FF90 | — |
| source.json support | #F89BBC | — |
| text.html.basic entity.name, punctuation.definition.tag.html, entity.name.tag.inline.any.html, meta.tag.other.html, meta.tag.inline.any.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, entity.name.tag, meta.tag.other.html, meta.tag.other.js, meta.tag.other.tsx, entity.name.tag.tsx, entity.name.tag.js, entity.name.tag, meta.tag.js, meta.tag.tsx, meta.tag.html | #7CD9B0 | — |
| meta.toc-list.id.html | #3E7858 | — |
| text.html.basic entity.other | #3E7858 | — |
| meta.tag.metadata.script.html entity.name.tag.html | #3E7858 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #A5FF90 | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css | #F46698 | — |
| entity.name.tag.css, entity.name.tag.less, entity.name.tag.custom.css, support.constant.property-value.css | #A5FF90 | |
| source.css string, source.css punctuation.definition.string, source.stylus string, source.stylus punctuation.definition.string | #3E7858 | — |
| source.css variable, source.stylus variable | #7CD9B0 | — |
| keyword.operator.comparison, keyword.control.flow.js, keyword.control.flow.ts, keyword.control.flow.tsx, keyword.control.ruby, keyword.control.module.ruby, keyword.control.class.ruby, keyword.control.def.ruby, keyword.control.loop.js, keyword.control.loop.ts, keyword.control.import.js, keyword.control.import.ts, keyword.control.import.tsx, keyword.control.from.js, keyword.control.from.ts, keyword.control.from.tsx, keyword.operator.instanceof.js, keyword.operator.expression.instanceof.ts, keyword.operator.expression.instanceof.tsx | #F89BBC | — |
| punctuation.accessor, keyword | #F89BBC | — |
| storage, meta.var.expr, meta.class meta.method.declaration meta.var.expr storage.type.js, storage.type.property.js, storage.type.property.ts, storage.type.property.tsx | #F89BBC | — |
| storage.type.function.arrow.js | — | |
| meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #EEE | |
| meta.class entity.name.type.class.js, entity.name.function, meta.function-call, support.function, keyword.other.special-method | #ffe580 | — |
| entity.name.type.ts, entity.name.type.tsx, entity.other.attribute-name.class.css | #FF9D00 | — |
| keyword.other.phpdoc.php | #FF9D00 | — |
| variable, punctuation.definition.variable.php | #BFEDD9 | — |
| punctuation.definition.parameters | #ffe580 | — |
| entity.name.section.markdown, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #BFEDD9 | bold |
| markup.inline.raw.string.markdown | #F89BBC | — |
| beginning.punctuation.definition.quote.markdown | #FAD000 | — |
| markup.quote.markdown meta.paragraph.markdown, punctuation.definition.quote.begin.markdown | #08804ebb | italic |
| meta.separator.markdown | #ff5874 | — |
| markup.bold.markdown | — | bold |
| markup.italic.markdown | — | italic |
| beginning.punctuation.definition.list.markdown, punctuation.definition.list.begin.markdown, markup.list.unnumbered.markdown | #A85D74 | — |
| string.other.link.description.title.markdown punctuation.definition.string.markdown, meta.link.inline.markdown string.other.link.description.title.markdown, string.other.link.description.title.markdown punctuation.definition.string.begin.markdown, string.other.link.description.title.markdown punctuation.definition.string.end.markdown, meta.image.inline.markdown string.other.link.description.title.markdown | #A5FF90 | |
| meta.link.inline.markdown string.other.link.title.markdown, meta.link.reference.markdown string.other.link.title.markdown, meta.link.reference.def.markdown markup.underline.link.markdown | — | underline |
| markup.underline.link.markdown, string.other.link.description.title.markdown | #F89BBC | — |
| fenced_code.block.language, markup.inline.raw.markdown | #FF9D00 | — |
| meta.image.inline.markdown punctuation.definition.string.begin.markdown, meta.image.inline.markdown punctuation.definition.string.end.markdown, string.other.link.description.markdown | #FF9D00 | — |
| markup.underline.link.markdown, punctuation.definition.metadata.markdown, markup.underline.link.image.markdown, constant.other.reference.link.markdown, punctuation.definition.constant.markdown, punctuation.definition.constant.begin.markdown, punctuation.definition.constant.end.markdown | #7fdbca | — |
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}!`;
}