JetMind
Publisher: zenpkThemes in package: 1
Color theme inspired by JetBrains' Dark
Color theme inspired by JetBrains' Dark
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, meta.template.expression, source.groovy.embedded, storage.modifier.import.java, storage.modifier.package.java, string meta.image.inline.markdown, variable.language.wildcard.java, variable.legacy.builtin.python | #D4D4D4 | — |
| emphasis, markup.italic, meta.parameter, meta.parameters | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #747E85 | — |
| constant, constant.language, keyword, keyword.control, keyword.operator.expression, keyword.operator.new, storage.modifier, storage.type, storage.type.function, support.type.builtin, support.type.primitive, variable.language | #CF8E6D | — |
| constant.numeric | #2AACB8 | — |
| meta.object-literal.key, support.type.property-name, support.variable.property, variable.other.enummember, variable.other.property | #C77DBB | — |
| constant.sha.git-rebase, keyword.operator.minus.exponent, keyword.operator.plus.exponent, markup.inserted, meta.preprocessor.numeric | #B5CEA8 | — |
| constant.regexp | #646695 | — |
| entity.name.tag, entity.other.attribute-name.class.css, punctuation.definition.tag, support.function.misc.css, variable.argument.css | #D5B778 | — |
| constant.character.escape, entity.name.tag.css, entity.name.tag.less, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.parent.less, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.scss, keyword.operator.quantifier.regexp, source.css entity.other.attribute-name.class, source.css entity.other.attribute-name.pseudo-class, source.css.less entity.other.attribute-name.id | #D7BA7D | — |
| entity.other.attribute-name, keyword.operator, meta, punctuation.section.embedded, variable, variable.other, variable.other.constant.object, variable.other.object, variable.other.readwrite | #BCBEC4 | |
| invalid, token.error-token | #F44747 | — |
| markup.underline | — | underline |
| markup.bold, markup.heading | #569CD6 | bold |
| markup.strikethrough | — | strikethrough |
| constant.other.color.rgb-value, constant.other.rgb-value, keyword.operator.negation.regexp, markup.deleted, markup.inline.raw, meta.embedded.assembly, meta.preprocessor.string, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, punctuation.definition.character-class.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.group.regexp, string.tag, string.value, support.constant.color, support.constant.font-name, support.constant.media, support.constant.media-type, support.constant.property-value, support.other.parenthesis.regexp | #CE9178 | — |
| constant.character, constant.other.option, entity.name.function.preprocessor, keyword.operator.alignas, keyword.operator.alignof, keyword.operator.cast, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.noexcept, keyword.operator.sizeof, keyword.operator.typeid, keyword.operator.wordlike, markup.changed, meta.diff.header, meta.preprocessor, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, storage | #569CD6 | — |
| punctuation.definition.quote.begin.markdown | #6A9955 | — |
| punctuation.definition.list.begin.markdown, token.info-token | #6796E6 | — |
| constant.other.placeholder, entity.name.variable, meta.definition.variable.name, meta.structure.dictionary.key.python, source.coffee.embedded, source.css variable, support.function.git-rebase, support.type.vendored.property-name, support.variable | #9CDCFE | — |
| keyword.other.unit, string, support.constant.property-value.css | #6AAB73 | — |
| constant.character.character-class.regexp, constant.character.set.regexp, constant.other.character-class.regexp, constant.other.character-class.set.regexp, string.regexp | #D16969 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.separator.key-value, storage.type.function.arrow, support.type.property-name.css | #BCBEC4 | — |
| entity.name.function | #56A8F5 | — |
| entity.name.operator.custom-literal, keyword.control.anchor.regexp, keyword.operator.or.regexp, source.powershell variable.other.member, support.constant.handlebars, support.function | #DCDCAA | — |
| support.class | #2FBAA3 | — |
| entity.name.class, entity.name.namespace, entity.name.scope-resolution, entity.other.attribute, entity.other.inherited-class, meta.type.cast.expr, meta.type.new.expr, storage.type.annotation.groovy, storage.type.annotation.java, storage.type.boolean.go, storage.type.byte.go, storage.type.cs, storage.type.error.go, storage.type.generic.cs, storage.type.generic.groovy, storage.type.generic.java, storage.type.groovy, storage.type.java, storage.type.modifier.cs, storage.type.numeric.go, storage.type.object.array.groovy, storage.type.object.array.java, storage.type.parameters.groovy, storage.type.primitive.array.groovy, storage.type.primitive.array.java, storage.type.primitive.groovy, storage.type.primitive.java, storage.type.rune.go, storage.type.string.go, storage.type.token.java, storage.type.uintptr.go, storage.type.variable.cs, support.constant.dom, support.constant.json, support.constant.math, support.type | #4EC9B0 | — |
| entity.name.type | #6FAFBD | — |
| entity.name.operator, keyword.operator.delete, keyword.other.directive.using, keyword.other.operator, keyword.other.using, source.cpp keyword.operator.new | #C586C0 | — |
| variable.other.constant | #C77DBB | italic |
| entity.name.label | #C8C8C8 | — |
| entity.name.function.member | #B09D79 | — |
| token.warn-token | #CD9731 | — |
| token.debug-token | #B267E6 | — |
| entity.name.type.class | #FFC66D | — |
| punctuation.definition | — |
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}!`;
}