Jellybeans Theme
Publisher: Simon WattsThemes in package: 2
Jellybeans Theme, based on jellybeans.vim by nanotech
Jellybeans Theme, based on jellybeans.vim by nanotech
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown | #e8e8d3 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #888888 | — |
| constant.language | #8fbfdc | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #cf6a4c | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #8fbfdc | — |
| entity.name.tag.css | #799d6a | — |
| entity.other.attribute-name | #c6b6ee | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #799d6a | — |
| invalid | #f44747 | — |
| markup.underline | — | underline |
| markup.bold | #8fbfdc | bold |
| markup.heading | #8fbfdc | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #b5cea8 | — |
| markup.deleted | #99ad6a | — |
| markup.changed | #8fbfdc | — |
| punctuation.definition.quote.begin.markdown | #6A9955 | — |
| punctuation.definition.list.begin.markdown | #6796e6 | — |
| markup.inline.raw | #99ad6a | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor, entity.name.function.preprocessor | #8fbfdc | — |
| meta.preprocessor.string | #99ad6a | — |
| meta.preprocessor.numeric | #cf6a4c | — |
| meta.structure.dictionary.key.python | #c6b6ee | — |
| meta.diff.header | #8fbfdc | — |
| storage | #8fbfdc | — |
| storage.type | #8fbfdc | — |
| storage.modifier, keyword.operator.noexcept | #8fbfdc | — |
| string, meta.embedded.assembly | #99ad6a | — |
| string.tag | #99ad6a | — |
| string.value | #99ad6a | — |
| string.regexp | #d16969 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #8fbfdc | — |
| meta.template.expression | #e8e8d3 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #c6b6ee | — |
| keyword | #8fbfdc | — |
| keyword.control | #8fbfdc | — |
| keyword.operator | #e8e8d3 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #8fbfdc | — |
| keyword.other.unit | #cf6a4c | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #8fbfdc | — |
| support.function.git-rebase | #c6b6ee | — |
| constant.sha.git-rebase | #cf6a4c | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #e8e8d3 | — |
| variable.language | #8fbfdc | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #fad07a | — |
| support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #ffb964 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #ffb964 | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator | #8197bf | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable, constant.other.placeholder | #c6b6ee | — |
| variable.other.constant, variable.other.enummember | #799d6a | — |
| meta.object-literal.key | #c6b6ee | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #99ad6a | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #99ad6a | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #d16969 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #fad07a | — |
| keyword.operator.quantifier.regexp | #799d6a | — |
| constant.character | #8fbfdc | — |
| constant.character.escape | #cf6a4c | — |
| entity.name.label | #C8C8C8 | — |
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 |
|---|---|---|
| variable.parameter | #c6b6ee | |
| variable.other | #e8e8d3 | |
| keyword.control.directive.include.c, keyword.control.directive.define.c, keyword.control.directive.include.cpp, keyword.control.directive.define.cpp, keyword.control.import.python | #8fbfdc | |
| entity.name.namespace | #e8e8d3 | |
| punctuation.separator.pointer-access.c, punctuation.separator.dot-access.c, meta.function-call.c | #8fbfdc | |
| punctuation.separator.delimiter.c, punctuation.terminator.statement.c | #668799 | |
| punctuation.separator.pointer-access.cpp, punctuation.separator.dot-access.cpp, meta.function-call.cpp | #8fbfdc | |
| punctuation.separator.delimiter.cpp, punctuation.separator.delimiter.comma.cpp, punctuation.terminator.statement.cpp, punctuation.separator.scope-resolution.cpp, punctuation.separator.namespace.access.cpp | #668799 | |
| punctuation.separator.arguments.python, punctuation.separator.colon.python, punctuation.separator.parameters.python, punctuation.section.class.begin.python, punctuation.section.function.begin.python, punctuation.separator.period.python | #668799 | |
| support.variable.magic.python.python | #799d6a | |
| constant.language | #cf6a4c | |
| constant.character.escape | #799d6a | |
| variable.other.enummember | #cf6a4c | — |
| storage.type.built-in.primitive | #ffb964 | — |
| storage.modifier | #c59f6f | — |
| keyword.operator | #8fbfdc | — |
| variable.parameter | #c6b6ee | |
| variable.other | #e8e8d3 | |
| keyword.control.directive.include.c, keyword.control.directive.define.c, keyword.control.directive.include.cpp, keyword.control.directive.define.cpp, keyword.control.import.python | #8fbfdc | |
| entity.name.namespace | #e8e8d3 | |
| punctuation.separator.pointer-access.c, punctuation.separator.dot-access.c, meta.function-call.c | #8fbfdc | |
| punctuation.separator.delimiter.c, punctuation.terminator.statement.c | #668799 | |
| punctuation.separator.pointer-access.cpp, punctuation.separator.dot-access.cpp, meta.function-call.cpp | #8fbfdc | |
| punctuation.separator.delimiter.cpp, punctuation.separator.delimiter.comma.cpp, punctuation.terminator.statement.cpp, punctuation.separator.scope-resolution.cpp, punctuation.separator.namespace.access.cpp | #668799 | |
| punctuation.separator.arguments.python, punctuation.separator.colon.python, punctuation.separator.parameters.python, punctuation.section.class.begin.python, punctuation.section.function.begin.python, punctuation.separator.period.python | #668799 | |
| support.variable.magic.python.python | #799d6a | |
| constant.language | #cf6a4c | |
| constant.character.escape | #799d6a | |
| variable.other.enummember | #cf6a4c | — |
| storage.type.built-in.primitive | #ffb964 | — |
| storage.modifier | #c59f6f | — |
| keyword.operator | #8fbfdc | — |
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown | #e8e8d3 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #888888 | — |
| constant.language | #8fbfdc | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #cf6a4c | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #8fbfdc | — |
| entity.name.tag.css | #799d6a | — |
| entity.other.attribute-name | #c6b6ee | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #799d6a | — |
| invalid | #f44747 | — |
| markup.underline | — | underline |
| markup.bold | #8fbfdc | bold |
| markup.heading | #8fbfdc | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #b5cea8 | — |
| markup.deleted | #99ad6a | — |
| markup.changed | #8fbfdc | — |
| punctuation.definition.quote.begin.markdown | #6A9955 | — |
| punctuation.definition.list.begin.markdown | #6796e6 | — |
| markup.inline.raw | #99ad6a | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor, entity.name.function.preprocessor | #8fbfdc | — |
| meta.preprocessor.string | #99ad6a | — |
| meta.preprocessor.numeric | #cf6a4c | — |
| meta.structure.dictionary.key.python | #c6b6ee | — |
| meta.diff.header | #8fbfdc | — |
| storage | #8fbfdc | — |
| storage.type | #8fbfdc | — |
| storage.modifier, keyword.operator.noexcept | #8fbfdc | — |
| string, meta.embedded.assembly | #99ad6a | — |
| string.tag | #99ad6a | — |
| string.value | #99ad6a | — |
| string.regexp | #d16969 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #8fbfdc | — |
| meta.template.expression | #e8e8d3 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #c6b6ee | — |
| keyword | #8fbfdc | — |
| keyword.control | #8fbfdc | — |
| keyword.operator | #e8e8d3 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #8fbfdc | — |
| keyword.other.unit | #cf6a4c | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #8fbfdc | — |
| support.function.git-rebase | #c6b6ee | — |
| constant.sha.git-rebase | #cf6a4c | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #e8e8d3 | — |
| variable.language | #8fbfdc | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #fad07a | — |
| support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #ffb964 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #ffb964 | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator | #8197bf | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable, constant.other.placeholder | #c6b6ee | — |
| variable.other.constant, variable.other.enummember | #799d6a | — |
| meta.object-literal.key | #c6b6ee | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #99ad6a | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #99ad6a | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #d16969 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #fad07a | — |
| keyword.operator.quantifier.regexp | #799d6a | — |
| constant.character | #8fbfdc | — |
| constant.character.escape | #cf6a4c | — |
| entity.name.label | #C8C8C8 | — |
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}!`;
}
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}!`;
}