sjsepan.humanedark
Publisher: sjsepanThemes in package: 6
A little like Humane, but with borders and with matching colors in Activity- and Side-bars.
A little like Humane, but with borders and with matching colors in Activity- and Side-bars.
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 |
|---|---|---|
| #d4d4d4 | — | |
| punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.definition.string.template.begin, punctuation.definition.string.template.end, string.quoted punctuation.definition.string.begin, string.quoted punctuation.definition.string.end | #ce9178 | — |
| comment, punctuation.definition.comment | #52525b | italic |
| variable, string constant.other.placeholder | #fdba74 | — |
| source | #d4d4d4 | — |
| constant.other.color, punctuation.definition.entity, constant.character.entity, punctuation.definition.template-expression, punctuation.section.tag.twig | #ce9178 | — |
| invalid, invalid.illegal | #f44747 | — |
| keyword, storage.type, storage.modifier, constant.language, support.constant | #E97318 | — |
| constant.numeric, constant.character, constant.escape | #E97318 | — |
| punctuation, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, meta.brace, meta.block, meta.jsx, meta.embedded.expression, meta.template.expression, meta.tag.block.any.html, string.unquoted.tag-string.nunjucks, text.html.nunjucks | #d4d4d4 | — |
| punctuation.separator.key-value.html, keyword.control, keyword.operator, punctuation.definition.constant, meta.function.block.start.handlebars, meta.function.inline.other, meta.property-value, support.constant.mathematical-symbols, support.constant.vendored.property-value, punctuation.definition.keyword, punctuation.accessor, punctuation.separator.property, string.unquoted.filter-pipe | #E97318 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter, support.variable.dom, meta.import, meta.export, meta.export.default, support.class.builtin, support.class.component, variable.other.object | #E97318 | — |
| markup.deleted.git_gutter | #f44747 | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #E97318 | — |
| entity.name.function, variable.function, support.function, keyword.other.special-method, meta.function-call, keyword.control.filter | #DCDCAA | — |
| meta.block variable.other | #d4d4d4 | — |
| variable.parameter, punctuation.section.property-list, meta.property-value.scss punctuation, meta.property-list, keyword.operator.type.annotation, variable.other.object.property | #d4d4d4 | — |
| text.html | #d4d4d4 | — |
| string, constant.other.symbol, constant.other.key, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, punctuation.definition.string, entity.name.section.markdown, meta.attribute-selector, entity.name.import.go, storage.type.attr.nunjucks | #ce9178 | — |
| markup.inserted.git_gutter | #a0a0a0 | — |
| markup.heading, entity.name.section.markdown | #E97318 | bold |
| meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #d4d4d4 | — |
| entity.name.import.go | #d4d4d4 | — |
| entity.name, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, meta.object-literal.key | #d7ba7d | — |
| support.type, support.type.sys-types | #d7ba7d | — |
| markup.changed.git_gutter | #E97318 | — |
| support.class, entity.other.inherited-class, meta.property-name, punctuation.definition.raw.markdown, variable.graphql, variable.other.readwrite | #d7ba7d | — |
| keyword.other.debugger | #E97318 | — |
| variable.graphql, variable.other.readwrite | #d4d4d4 | — |
| meta.property-name, punctuation.definition.raw.markdown | #d4d4d4 | — |
| support.type.property-name, support.variable.object.node, support.variable.object.process | #d4d4d4 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #d4d4d4 | — |
| entity.name.module.js, variable.import.parameter.js | #d7ba7d | — |
| variable.language | #E97318 | — |
| entity.name.method.js | #DCDCAA | — |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #DCDCAA | — |
| entity.other.attribute-name | #E97318 | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #E97318 | — |
| entity.other.attribute-name.class, punctuation.definition.entity.css | #d7ba7d | — |
| source.sass keyword.control, entity.other.attribute-name.id | #d7ba7d | — |
| markup.inserted | #a0a0a0 | — |
| markup.deleted | #f44747 | — |
| markup.changed | #E97318 | — |
| string.regexp | #d16969 | — |
| constant.character.escape | #d7ba7d | — |
| *url*, *link*, *uri* | #E97318 | underline |
| meta.decorator, tag.decorator.js entity.name.tag, tag.decorator.js punctuation.definition.tag | #DCDCAA | — |
| source.js constant.other.object.key.js string.unquoted.label.js | #d4d4d4 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #E97318 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #DCDCAA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #DCDCAA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #d7ba7d | — |
| markup.italic | #E97318 | italic |
| markup.bold | #E97318 | bold |
| markup.underline | — | underline |
| markup.strike | #888888 | strikethrough |
| markup.quote | #a0a0a0 | italic |
| markup.raw.block | #ce9178 | — |
| markup.table | #d4d4d4 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #d4d4d4 | — |
| text.html.markdown markup.raw.inline, text.html.markdown markup.inline.raw.string.markdown | #ce9178 | — |
| text.html.markdown meta.dummy.line-break | #d4d4d4 | — |
| punctuation.definition.heading.markdown | #E97318 | bold |
| punctuation.definition.blockquote.markdown | #a0a0a0 | italic |
| string.other.link.title.markdown, markup.underline.link.markdown | #ce9178 | |
| markup.underline.link.markdown | #E97318 | underline |
| markup.raw.block.fenced.markdown | #ce9178 | — |
| punctuation.definition.fenced.markdown, variable.language.fenced.markdown | #858585 | — |
| meta.separator | #858585 | bold |
| token.info-token | #E97318 | — |
| token.warn-token | #FFA500 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #ffae57 | — |
| storage.type.error.go | #858585 | — |
| punctuation.other.period.go | #d4d4d4 | — |
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}!`;
}