Jellybeans Mono
Publisher: defvarThemes in package: 1
Jellybeans Mono theme for Visual Studio Code.
Jellybeans Mono theme for Visual Studio 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 | #606060 | italic |
| keyword, storage, modifier | #888888 | — |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.enum, entity.name.trait, support.type, support.class, support.other.namespace | #b39066 | bold |
| entity.name.function, support.function, meta.function-call, variable.function, entity.name.method, support.method | #7a8aa6 | bold |
| string, constant.other.symbol | #a08070 | — |
| constant.character.escape, string.other.link | #a0a8b0 | — |
| string.regexp, constant.other.regex, markup.raw.regexp | #7a8aa6 | — |
| comment.block.documentation, comment.block.documentation punctuation.definition.comment, comment.line.documentation | #606060 | italic |
| constant, variable.other.constant, constant.numeric, constant.language, constant.other | #b39066 | — |
| variable, variable.other, meta.definition.variable | #e8e8d3 | — |
| variable.parameter | #ccc5c4 | italic |
| variable.other.property, variable.other.member | #dddddd | — |
| keyword.operator, meta.brace | #777777 | — |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator | #c7c7c7 | — |
| entity.name.namespace, entity.name.module, support.module | #777777 | italic |
| entity.name.tag, meta.tag, markup.tag, entity.name.tag.html, entity.name.tag.xml, entity.name.tag.jsx, entity.name.tag.tsx | #7a8aa6 | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #c7c7c7 | — |
| entity.other.attribute-name, meta.attribute, entity.other.attribute-name.class, entity.other.attribute-name.id, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #a0a8b0 | — |
| markup.inline.raw, markup.inline.raw.string, markup.inline.raw.markdown, markup.inline.raw.markdown punctuation.definition.raw | #b39066 | |
| markup.fenced_code.block, markup.fenced_code.block.markdown, markup.raw.block, markup.raw.block.markdown | #a08070 | — |
| markup.quote, markup.quote.markdown | #a0a8b0 | italic |
| markup.heading, markup.heading punctuation.definition.heading | #7a8aa6 | bold |
| markup.bold, markup.strong | #ccc5c4 | bold |
| markup.italic, markup.emphasis | #ccc5c4 | italic |
| markup.strikethrough | #606060 | strikethrough |
| markup.underline.link, markup.link, string.other.link | #7a8aa6 | underline |
| markup.list, markup.list punctuation.definition.list, markup.list.markdown | #a0a8b0 | — |
| invalid, invalid.illegal | #c95c5c | — |
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}!`;
}