joey
Publisher: xshapiraThemes in package: 1
A minimal theme to code with joy and focus
A minimal theme to code with joy and focus
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #707C74 | italic |
| constant.language | #DDA52D | bold |
| variable.other | #bcb28d | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #E03C8A | — |
| entity.name.tag.css | #E03C8A | — |
| entity.other.attribute-name | #E6844F | — |
| 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, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.attribute.scss, entity.other.attribute-name.scss | #E03C8A | — |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css | #6796e6 | — |
| invalid | #f44747 | — |
| markup.underline | — | underline |
| markup.bold | #58b2dc | bold |
| markup.heading | #E03C8A | bold |
| markup.italic | — | italic |
| markup.inserted | #b5cea8 | — |
| markup.deleted | #ce9178 | — |
| markup.changed | #58b2dc | — |
| beginning.punctuation.definition.quote.markdown | #608b4e | — |
| beginning.punctuation.definition.list.markdown | #6796e6 | — |
| markup.fenced_code.block.markdown | #BCB28D | — |
| markup.inline.raw | #E6844F | — |
| meta.selector | #d7ba7d | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor | #58b2dc | — |
| meta.preprocessor.string | #ce9178 | — |
| meta.preprocessor.numeric | #b5cea8 | — |
| meta.diff.header | #58b2dc | — |
| storage | #58b2dc | — |
| storage.type | #E03C8A | — |
| storage.modifier | #58b2dc | — |
| string | #66A866 | — |
| string.tag | #ce9178 | — |
| string.value | #ce9178 | — |
| string.regexp | #d16969 | — |
| punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts, punctuation.definition.template-expression.end.js | #58b2dc | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less | #E6844F | — |
| keyword | #E03C8A | — |
| keyword.operator | #B9B3B3 | — |
| keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof | #58b2dc | — |
| keyword.other.unit | #E03C8A | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #58b2dc | — |
| support.function.git-rebase | #9cdcfe | — |
| constant.sha.git-rebase | #b5cea8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #d4d4d4 | — |
| variable.language | #E6844F | italic bold |
| entity.name.function, support.function, support.constant.handlebars | #58B2DC | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.class, 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 | #58B2DC | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #4EC9B0 | — |
| meta.definition.variable.name, support.variable | #bcb28d | — |
| meta.object-literal.key, meta.object-literal.key entity.name.function | #E6844F | — |
| 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 | #bcb28d | — |
| support.class, variable, entity.name.type, entity.other.inherited-class | #E6844F | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison | #C485E4 | — |
| string, string.regexp | #66A866 | — |
| keyword.control | #CA76DB | |
| keyword.control.flow | — | italic bold |
| entity.name.type.module.js, entity.name.type.module.js.jsx, entity.other.inherited-class.js, entity.other.inherited-class.js.jsx | — | italic |
| keyword.operator.new | #CB77DB | bold |
| constant.numeric | #DDA52D | — |
| markup.underline.link.markdown | #58b2dc | — |
| meta.separator.markdown, punctuation.definition.list.begin.markdown | #DDA52D | — |
| support.type.property-name.table.toml | #CA76DB | — |
| constant.language.boolean.toml | #58B2DC | — |
| keyword.other.special-method.dockerfile | — | bold |
| variable.other.env | #E6844F | — |
| constant.language.env | #58b2dc | — |
| constant.language.json | #58b2dc | — |
| entity.name.class.js, support.type.object.dom.js, variable.other.constant.js, support.class.builtin.js, entity.name.type.instance.js, support.type.object.dom.js, support.type.object.console.js, support.variable.property, support.variable.object.process, support.variable.object.node, variable.other.object.js, variable.language.this.js, variable.language.self.js | #E6844F | — |
| keyword.control.conditional.js | — | italic bold |
| variable.other.property.js | #e15b75 | — |
| variable.other.readwrite.js | #BCB38E | — |
| keyword.operator.assignment.js, keyword.operator.assignment.augmented.js, keyword.operator.assignment.jsx, keyword.operator.assignment.augmented.jsx, keyword.operator.comparison.js, keyword.operator.comparison.jsx, keyword.operator.arithmetic.js, keyword.operator.arithmetic.jsx, keyword.operator.logical.js, keyword.operator.logical.jsx, punctuation.separator.key-value.js, punctuation.separator.key-value.jsx | #C485E4 | — |
| keyword.operator.accessor, keyword.operator.ternary.js, keyword.operator.ternary.jsx | #CA76DB | — |
| storage.type.js, storage.type.function.js, storage.type.class.js | #E03C8A | — |
| keyword.operator.expression.keyof.ts, storage.type.interface.ts, keyword.operator.ternary.ts, keyword.operator.ternary.tsx | #CA76DB | — |
| keyword.operator.assignment.ts, keyword.operator.assignment.compound.ts, keyword.operator.assignment.tsx, keyword.operator.assignment.compound.tsx, keyword.operator.comparison.ts, keyword.operator.comparison.tsx, keyword.operator.arithmetic.ts, keyword.operator.arithmetic.tsx, keyword.operator.logical.ts, keyword.operator.logical.tsx, punctuation.separator.key-value.ts, punctuation.separator.key-value.tsx | #C485E4 | — |
| meta.object-literal.key.ts, variable.parameter.ts, variable.other.constant.ts, variable.other.object.property.ts, variable.object.property.ts, variable.language.this.ts, variable.language.self.ts, entity.name.type.interface.ts, entity.name.type.ts, entity.name.type.class.ts, variable.other.object.ts, variable.other.object.tsx, support.class.promise.ts, support.variable.ts, support.type.builtin.ts, support.type.builtin.tsx, support.type.primitive.ts, support.type.primitive.tsx, support.type.builtin.primitive | #E6844F | — |
| punctuation.accessor, keyword.operator.type.annotation.ts, keyword.operator.type.annotation.tsx, variable.other.readwrite.ts, variable.other.readwrite.tsx | #bcb28d | — |
| support.variable.property.importmeta.ts, variable.other.property.tsx, variable.other.object.property.ts, variable.other.object.property.tsx, variable.other.property.ts, variable.other.constant.property.ts | #e15b75 | — |
| meta.object-literal.key.ts, meta.object-literal.key.tsx | #66A866 | — |
| storage.type.ts, storage.modifier.ts, storage.type.function.ts, storage.type.class.ts, storage.modifier.async.tsx, storage.modifier.async.ts | #E03C8A | — |
| meta.function-call.python, meta.function-call.generic.python, entity.name.function.python | #58b2dc | — |
| meta.item-access.python, punctuation.definition.decorator.python, support.type.exception.python, constant.character.format.placeholder.other.python, storage.type.string.python, meta.function.parameters.python, meta.function.python, constant.other.caps.python, support.type.python | #E6844F | — |
| storage.type.class.python, storage.type.function.python | #E03C8A | — |
| variable.language.special.self.python, variable.parameter.function.language.special.self.python, variable.language.special.cls.python, variable.parameter.function.language.special.cls.python | #E6844F | italic bold |
| punctuation.separator.arguments.python, punctuation.separator.element.python, keyword.operator.python, meta.attribute.python, meta.function-call.arguments.python, meta.indexed-name.python, variable.legacy.builtin.python, punctuation.separator.parameters.python, meta.item-access.arguments.python, punctuation.separator.annotation.result.python, punctuation.separator.annotation.python, punctuation.section.function.begin.python, support.variable.magic.python, variable.parameter.function.language.python, variable.parameter.function-call.python, invalid.illegal.annotation.python, meta.embedded.block.python | #bcb28d | — |
| keyword.control.flow.python, keyword.operator.logical.python, punctuation.separator.period.python | #CA76DB | — |
| string.quoted.docstring.multi.python | #707C74 | — |
| punctuation.definition.string.begin.python, punctuation.definition.string.end.python | #66A866 | — |
| constant.language.python | #DDA52D | — |
| keyword.operator.unpacking.parameter.python, keyword.operator.unpacking.arguments.python | #F97583 | — |
| entity.tag.tagbraces.django | #CA76DB | |
| constant.other.contrib.django, constant.other.tag.name.django | #E6844F | italic |
| string.quoted.single.html, string.unquoted.tag-string.django | — | |
| variable.language.dart, keyword.other.import.dart | #58b2dc | — |
| punctuation.definition.variable.ruby | #e15b75 | — |
| keyword.operator.namespace.rust, keyword.operator.key-value.rust | #bcb28d | — |
| keyword.control.rust | — | italic bold |
| constant.other.caps.rust, entity.name.namespace.rust | #E6844F | — |
| storage.modifier.mut.rust, keyword.other.fn.rust, storage.type.rust, keyword.other.rust, keyword.other.crate.rust, keyword.operator.access.dot.rust | #CA76DB | — |
| keyword.operator.borrow.and.rust | #05BBB8 | — |
| keyword.operator.math.rust | #E15C75 | — |
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}!`;
}