Bombyx
Publisher: y6nHThemes in package: 2
A silky color scheme
A silky color scheme
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 | #998b66 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #b34d91 | — |
| constant.language | #0b9ab6 | — |
| constant.numeric, meta.delimiter.decimal | #0b9ab6 | — |
| entity.other.attribute-name, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.attribute.scss, entity.other.attribute-name.scss | #597100 | — |
| entity.other.attribute-name.class.css | #B83840 | — |
| entity.other.attribute-name.pseudo-class.css | #E28187 | — |
| entity.other.attribute-name.pseudo-element.css | #b34d91 | — |
| entity.other.attribute-name.id.css, source.css.less entity.other.attribute-name.id | #e166b8 | — |
| entity.name.tag.css | #669199 | — |
| markup.underline | — | underline |
| markup.bold | — | bold |
| markup.heading, markup.heading.setext, punctuation.definition.heading.markdown, entity.name.section.markdown | #62542F | bold underline |
| markup.italic | — | italic |
| punctuation.definition.list, punctuation.definition.list.begin.markdown | #3e3c38 | bold |
| markup.inline.raw, markup.raw.inline, markup.block.raw, markup.raw.block, markup.fenced_code.block | #777570 | — |
| markup.quote, punctuation.definition.quote.begin.markdown | #E28187 | italic |
| markup.underline.link | #0b9ab6 | underline |
| markup.other | #777570 | — |
| punctuation.definition.tag | #669199 | — |
| meta.preprocessor, keyword.preprocessor | #b34d91 | — |
| meta.preprocessor.string | #e166b8 | — |
| meta.preprocessor.numeric | #CA7AAF | — |
| meta.structure.dictionary.key.python | #597100 | — |
| storage, storage.modifier | #446c74 | — |
| storage.type, storage.type.cs | #DE9F00 | — |
| string, string.tag, string.value, string.quoted, string.unquoted, punctuation.definition.string | #97C100 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #b34d91 | — |
| meta.template.expression | #6C7577 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #446c74 | — |
| keyword, keyword.control, keyword.operator, keyword.operator.expression, keyword.operator.ternary, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.instanceof, keyword.operator.logical.python | #DE9F00 | — |
| keyword.operator.new | #446c74 | — |
| keyword.other.unit | #669199 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #79b3be | — |
| support.function.git-rebase | #b34d91 | — |
| constant.sha.git-rebase | #729200 | — |
| storage.modifier.import.java, storage.modifier.package.java | #777570 | — |
| variable.language | #CA7AAF | — |
| entity.name.function, support.function, support.constant.handlebars | #E28187 | — |
| meta.return-type, support.class, support.type, entity.name.type, 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 | #79b3be | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #79b3be | — |
| meta.type_params | #94393F | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable | #62542F | — |
| meta.object-literal.key | #597100 | — |
| constant.character | #bce52a | — |
| string.regexp, meta.group.regexp, constant.regexp | #729200 | — |
| keyword.control.anchor.regexp | #b34d91 | — |
| keyword.operator.quantifier.regexp | #0b9ab6 | — |
| 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 | #777570 | — |
| constant.other.character-class.range.regexp, constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #98bf0e | — |
| keyword.operator.or.regexp | #DE9F00 | — |
| constant.character.numeric.regexp | #729200 | — |
| punctuation.definition.group.no-capture.regexp | #A3AFB2 | — |
| meta.assertion.look-ahead.regexp, meta.assertion.negative-look-ahead.regexp, meta.assertion.look-behind.regexp, meta.assertion.negative-look-behind.regexp | #E28187 | — |
| keyword.other.back-reference.regexp | #e166b8 | — |
| keyword.operator.negation.regexp | #DE9F00 | — |
| meta.group.assertion.regexp | #94393F | — |
| token.info-token | #79b3be | — |
| token.warn-token | #DE9F00 | — |
| token.error-token | #C73842 | — |
| token.debug-token | #729200 | — |
| keyword - keyword.operator | #DE9F00 | — |
| keyword.control | #DE9F00 | — |
| constant.numeric | #0b9ab6 | — |
| entity.name.type, support.type | #62542F | — |
| entity.name.class, support.class | #62542F | — |
| entity.name.function, support.function, meta.decorator, meta.decorator.ts | #B83840 | — |
| text, markup, source, meta | #3E3C38 | — |
| constant.character.escape | #e166b8 | — |
| comment, punctuation.definition.comment | #ADB58F | italic |
| comment.block.documentation | #6C7577 | italic |
| punctuation.definition.block.tag.jsdoc, variable.other.jsdoc, storage.type.class.jsdoc | #669199 | bold italic |
| constant.other.placeholder, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #b34d91 | — |
| keyword.operator.new | #446c74 | — |
| support.constant, support.class.builtin, support.constant.math, support.constant.property-value, support.constant.font-name | #79b3be | — |
| constant.other | #669199 | — |
| meta.template.expression | #854570 | — |
| entity.name, entity.name.type, entity.name.class, entity.other.inherited-class, support.class | #E28187 | — |
| entity.name.enum | #446c74 | — |
| entity.name.interface, entity.name.trait | #E28187 | — |
| variable.parameter | #3e3c38 | — |
| entity.name.tag | #79b3be | — |
| meta.structure.dictionary.json | #729200 | — |
| meta.diff, meta.diff.header | #b34d91 | — |
| markup.deleted | #C73842 | — |
| markup.inserted | #729200 | — |
| markup.changed | #0b9ab6 | — |
| invalid | #C73842 | bold |
| invalid.deprecated | #B83840 | — |
| storage.type.function.arrow | #E28187 | italic bold |
| punctuation, meta.generic, meta.tag, punctuation.definition.generic.begin, punctuation.definition.generic.end | #777570 | — |
| punctuation.definition.tag | #6C7577 | — |
| punctuation.section.embedded | #854570 | — |
| meta.brace.round, meta.brace.square, punctuation.definition.block, punctuation.section.group.begin, punctuation.section.group.end, punctuation.section.parens.begin, punctuation.section.parens.end, punctuation.section.brackets.begin, punctuation.section.brackets.end | #777570 | — |
| punctuation.separator.continuation, punctuation.terminator | #6C7577 | — |
| entity.name.label | #e166b8 | — |
| support.type.property-name, meta.object-literal.key | #7E9139 | — |
| meta.attribute | #e166b8 | — |
| keyword.other.important | #C73842 | — |
| entity.name.tag.wildcard | #C73842 | — |
| support.constant.mathematical-symbols | #79b3be | — |
| support.constant.color, constant.other.color.rgb-value | #6C7577 | — |
| keyword.control.at-rule.media.css, keyword.control.at-rule.media.scss, support.constant.media, punctuation.definition.media-query | #DE9F00 | — |
| variable.css, variable.scss, variable.sass, variable.less, variable.stylus | #446c74 | — |
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}!`;
}