Moonbloom Official Theme
Publisher: MoonbloomThemes in package: 1
Gentle on the eyes, evoking the cozy tranquility of a serene night.
Gentle on the eyes, evoking the cozy tranquility of a serene night.
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 |
|---|---|---|
| markup.changed, meta.diff.header.git, meta.diff.header.from-file, meta.diff.header.to-file | #D1D2E8 | |
| markup.deleted.diff | #E66D7590 | |
| markup.inserted.diff | #A1D79FFF | |
| comment | #8282A9 | — |
| string | #A1D79F | — |
| support.constant.math | #A1D79F | — |
| constant.numeric, constant.character.numeric | #5A9BCF | |
| constant.language, punctuation.definition.constant, variable.other.constant | #D1D2E8 | — |
| variable.other.constant.object | #C993E9 | — |
| constant.character, constant.other | #5A9BCF | — |
| constant.character.escape | #E66D75 | — |
| string.regexp, string.regexp keyword.other | #5A9BCF | — |
| meta.function punctuation.separator.comma | #D1D2E8 | — |
| variable | #93C591 | — |
| punctuation.accessor, keyword | #BB83D8 | |
| storage, meta.var.expr | #BB83D8 | |
| storage.type | #8483D8 | — |
| entity.name.class, meta.class entity.name.type.class | #D9B469 | — |
| entity.other.inherited-class | #A1D79F | — |
| entity.name.function | #6EB4E0 | |
| punctuation.definition.tag, meta.tag | #9B9BBA | — |
| support.function, support.constant | #5A9BCF | — |
| support.constant.meta.property-value | #68C7D6 | — |
| support.type | #9291DC | — |
| support.class | #D9B469 | — |
| support.variable.dom | #A1D79F | — |
| invalid | #E66D75 | strikethrough |
| invalid.deprecated | #9B9BBA | strikethrough |
| keyword.operator | #68C7D6 | |
| keyword.operator.relational | #BB83D8 | |
| keyword.operator.assignment | #BB83D8 | — |
| keyword.operator.arithmetic | #BB83D8 | — |
| keyword.operator.bitwise | #BB83D8 | — |
| keyword.operator.increment | #BB83D8 | — |
| keyword.operator.ternary | #BB83D8 | — |
| object | #5A9BCF | — |
| constant.language.null | #E66D75 | — |
| meta.brace | #D1D2E8 | — |
| meta.delimiter.period | #BB83D8 | |
| punctuation.definition.string | #E8C87E | — |
| constant.language.boolean | #BB83D8 | — |
| object.comma | #D1D2E8 | — |
| variable.parameter.function | #68C7D6 | |
| support.type.vendor.property-name, support.constant.vendor.property-value, meta.property-list entity.name.tag | #68C7D6 | |
| meta.property-list entity.name.tag.reference | #68C7D6 | — |
| constant.other.color.rgb-value punctuation.definition.constant | #D9B469 | — |
| constant.other.color | #E8C87E | — |
| keyword.other.unit | #E8C87E | — |
| meta.selector | #BB83D8 | |
| meta.property-name | #68C7D6 | — |
| entity.name.tag.doctype, meta.tag.sgml.doctype | #BB83D8 | |
| punctuation.definition.parameters | #D9F5DD | — |
| keyword.control.operator | #68C7D6 | — |
| keyword.operator.logical | #BB83D8 | |
| variable.instance, variable.other.instance, variable.readwrite.instance, variable.other.readwrite.instance, variable.other.property | #D1D2E8 | — |
| variable.other.object.property | #9291DC | |
| entity.name.function | #6EB4E0 | |
| support.constant, keyword.other.special-method, keyword.other.new, keyword.other.debugger, keyword.control | #F17C88 | — |
| support.function | #A1D79F | — |
| invalid.broken | #020E14 | — |
| invalid.unimplemented | #E1E2ED | strikethrough |
| invalid.illegal | #E1E2ED | strikethrough |
| variable.language | #68C7D6 | — |
| support.variable.property | #D1D2E8 | — |
| variable.function | #5A9BCF | — |
| variable.interpolation | #E66D75 | — |
| meta.function-call | #5A9BCF | — |
| punctuation.section.embedded | #5A9BCF | — |
| punctuation.terminator.expression, punctuation.definition.arguments, punctuation.definition.array, punctuation.section.array, meta.array | #D1D2E8 | — |
| punctuation.definition.list.begin, punctuation.definition.list.end, punctuation.separator.arguments, punctuation.definition.list | #D9F5DD | — |
| string.template meta.template.expression punctuation.definition.template-expression, punctuation.definition.template-expression.begin.js meta.template.expression.js string.template.js | #E66D75 | — |
| string.template | #D9B469 | — |
| italic | #C993E9 | italic |
| bold | #6EB4E0 | bold |
| quote | #9B9BBA | |
| raw | #4FA8B8 | — |
| string.quoted, variable.other.readwrite.js | #E8C87E | — |
| meta.class meta.method.declaration meta.var.expr storage.type.js, storage.type.property.js, storage.type.property.jsx, storage.type.property.ts, storage.type.property.tsx | #BB83D8 | |
| keyword.operator.comparison, keyword.control.flow.js, keyword.control.flow.jsx, keyword.control.flow.ts, keyword.control.flow.tsx, keyword.control.ruby, keyword.control.def.ruby, keyword.control.loop.js, keyword.control.loop.ts, keyword.control.loop.jsx, keyword.control.loop.tsx, keyword.control.import.js, keyword.control.import.jsx, keyword.control.import.ts, keyword.control.import.tsx, keyword.control.from.js, keyword.control.from.jsx, keyword.control.from.ts, keyword.control.from.tsx | #BB83D8 | |
| keyword.operator.new.js, keyword.operator.new.jsx, keyword.operator.new.ts, keyword.operator.new.tsx | #C993E9 | |
| keyword.control.conditional.js, keyword.control.conditional.ts, keyword.control.conditional.jsx, keyword.control.conditional.tsx, keyword.control.switch.js, keyword.control.switch.ts, keyword.control.switch.jsx, keyword.control.switch.tsx | #BB83D8 | |
| constant.language.undefined.js, constant.language.undefined.ts, constant.language.undefined.jsx, constant.language.undefined.tsx | #E66D75 | |
| variable.assignment.coffee | #4FA8B8 | — |
| variable.parameter.function.coffee | #D1D2E8 | — |
| variable.assignment.coffee | #68C7D6 | — |
| meta.class entity.name.type.class.js | #D9B469 | — |
| meta.method.declaration storage.type.js | #5A9BCF | — |
| terminator.js | #D1D2E8 | — |
| meta.js punctuation.definition.js | #D1D2E8 | — |
| variable.other.meta.import.js, meta.import.js variable.other, variable.other.meta.export.js, meta.export.js variable.other, variable.other.meta.import.jsx, meta.import.jsx variable.other, variable.other.meta.export.jsx, meta.export.jsx variable.other, variable.other.meta.import.ts, meta.import.ts variable.other, variable.other.meta.export.ts, meta.export.ts variable.other, variable.other.meta.import.tsx, meta.import.tsx variable.other, variable.other.meta.export.tsx, meta.export.tsx variable.other | #D1D2E8 | — |
| variable.parameter.function.js | #5A9BCF | — |
| variable.other.object.js, variable.other.object.jsx, variable.object.property.js, variable.object.property.jsx | #D1D2E8 | — |
| variable.js, variable.other.js | #D1D2E8 | — |
| entity.name.type.js, entity.name.type.module.js | #D9B469 | |
| variable.other.readwrite.alias.js, variable.other.readwrite.alias.jsx, variable.other.readwrite.alias.ts, variable.other.readwrite.alias.tsx, variable.other.readwrite.js, variable.other.readwrite.jsx, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.object.js, variable.other.object.jsx, variable.other.object.ts, variable.other.object.tsx, variable.object.property.js, variable.object.property.jsx, variable.object.property.ts, variable.object.property.tsx, variable.other.js, variable.other.jsx, variable.other.ts, variable.other.tsx, variable.parameter.js, variable.parameter.jsx, variable.parameter.ts, variable.parameter.tsx, variable.jsx, variable.js, variable.tsx, variable.ts | #D1D2E8 | — |
| entity.name.type.js, entity.name.type.jsx, entity.name.type.ts, entity.name.type.tsx, entity.name.type.alias.js, entity.name.type.alias.jsx, entity.name.type.alias.ts, entity.name.type.alias.tsx, entity.name.type.interface.js, entity.name.type.interface.jsx, entity.name.type.interface.ts, entity.name.type.interface.tsx | #93C591 | — |
| meta.type.parameters.ts entity.name.type, meta.type.parameters.tsx entity.name.type | #9B9BBA | — |
| meta.import.ts punctuation.definition.block, meta.import.tsx punctuation.definition.block, meta.export.ts punctuation.definition.block, meta.export.tsx punctuation.definition.block | #D1D2E8 | — |
| meta.decorator punctuation.decorator.ts, meta.decorator punctuation.decorator.tsx | #5A9BCF | — |
| meta.tag.js meta.jsx.children.tsx | #5A9BCF | — |
| support.class.component.js, support.class.component.tsx | #93C591 | |
| meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #D1D2E8 | — |
| meta.class entity.name.type.class.tsx | #D9B469 | — |
| entity.name.type.tsx, entity.name.type.module.tsx | #D9B469 | — |
| meta.method.declaration storage.type.ts, meta.method.declaration storage.type.tsx | #5A9BCF | — |
| entity.name.tag.css, entity.name.tag.less, entity.name.tag.scss, entity.name.tag.custom.css, support.constant.property-value.css | #F17C88 | |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.less, entity.other.attribute-name.class.scss, entity.other.attribute-name.class.sass, entity.other.attribute-name.class.custom.css | #E8C87E | |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id.less, entity.other.attribute-name.id.scss, entity.other.attribute-name.id.sass, entity.other.attribute-name.id.custom.css | #A1D79F | |
| support.constant.property-value.css, support.constant.property-value.less, support.constant.property-value.scss, support.constant.property-value.sass, support.constant.property-value.custom.css | #C993E9 | |
| support.type.property-name.css, support.type.property-name.less, support.type.property-name.scss, support.type.property-name.sass, support.type.property-name.custom.css | #D1D2E8 | |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-element.less, entity.other.attribute-name.pseudo-element.scss, entity.other.attribute-name.pseudo-element.sass, entity.other.attribute-name.pseudo-element.custom.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-class.less, entity.other.attribute-name.pseudo-class.scss, entity.other.attribute-name.pseudo-class.sass, entity.other.attribute-name.pseudo-class.custom.css | #BB83D8 | |
| entity.name.tag.wildcard.css, entity.name.tag.wildcard.less, entity.name.tag.wildcard.scss, entity.name.tag.wildcard.sass | #68C7D6 | — |
| keyword.other.unit.css | #E8C87E | — |
| meta.attribute-selector.css entity.other.attribute-name.attribute | #D9B469 | — |
| entity.name.tag.less | #68C7D6 | — |
| keyword.other.unit.css | #E8C87E | — |
| meta.attribute-selector.less entity.other.attribute-name.attribute | #F78C6C | — |
| variable.scss, variable.sass, variable.parameter.url.scss, variable.parameter.url.sass | #A1D79F | — |
| source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable | #5A9BCF | — |
| source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable | #E1E2ED | — |
| meta.attribute-selector.scss entity.other.attribute-name.attribute, meta.attribute-selector.sass entity.other.attribute-name.attribute | #93C591 | — |
| keyword.other.unit.scss, keyword.other.unit.sass | #E8C87E | — |
| variable.other.assignment.shell | #93C591 | — |
| markup.heading.markdown | #5A9BCF | — |
| markup.italic.markdown | #BB83D8 | italic |
| markup.bold.markdown | #A1D79F | bold |
| markup.quote.markdown | #BB83D8 | |
| markup.inline.raw.markdown | #68C7D6 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #F17C88 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #D1D2E8 | — |
| punctuation.definition.string.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, meta.link.inline.markdown punctuation.definition.string | #5A9BCF | — |
| punctuation.definition.metadata.markdown | #68C7D6 | — |
| beginning.punctuation.definition.list.markdown | #5A9BCF | — |
| markup.inline.raw.string.markdown | #A1D79F | — |
| entity.name.tag, meta.tag.other.html, meta.tag.other.js, meta.tag.other.tsx, entity.name.tag.tsx, entity.name.tag.js, entity.name.tag, meta.tag.js, meta.tag.tsx, meta.tag.html | #5A9BCF | |
| entity.other.attribute-name | #E66D75 | |
| entity.name.tag.custom | #68C7D6 | — |
| entity.other.attribute-name.id | #E8C87E | — |
| entity.other.attribute-name.id.html | #A1D79F | — |
| punctuation.definition.tag.html | #68C7D6 | — |
| meta.tag.sgml.doctype.html | #BB83D8 | |
| keyword.operator.comparison, keyword.control.ruby, keyword.control.module.ruby, keyword.control.class.ruby | #BB83D8 | |
| variable.other.ruby | #D1D2E8 | — |
| entity.name.type.class.ruby | #E8C87E | — |
| constant.language.symbol.hashkey.ruby | #68C7D6 | — |
| constant.language.symbol.ruby | #68C7D6 | — |
| variable.other.readwrite.cs | #D1D2E8 | — |
| entity.name.type.class.cs, storage.type.cs | #5A9BCF | — |
| entity.name.type.namespace.cs | #E1E2ED | — |
| source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir | #5A9BCF | — |
| source.elixir entity.name.function | #A1D79F | — |
| source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir | #5A9BCF | — |
| source.elixir punctuation.definition.string | #A1D79F | — |
| source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #A1D79F | — |
| source.elixir .punctuation.binary.elixir | #BB83D8 | |
| source.go meta.function-call.go | #DDDDDD | — |
| source.go keyword.package.go, source.go keyword.import.go, source.go keyword.function.go, source.go keyword.type.go, source.go keyword.struct.go, source.go keyword.interface.go, source.go keyword.const.go, source.go keyword.var.go, source.go keyword.map.go, source.go keyword.channel.go, source.go keyword.control.go | #BB83D8 | |
| source.go constant.language.go, source.go constant.other.placeholder.go | #FF5874 | — |
| entity.name.type.instance.jsdoc, entity.name.type.instance.phpdoc | #9B9BBA | — |
| variable.other.jsdoc, variable.other.phpdoc | #68C7D6 | — |
| support.type.property-name.json | #93C591 | — |
| support.constant.json | #A1D79F | — |
| meta.structure.dictionary.value.json string.quoted.double | #C993E9 | — |
| string.quoted.double.json punctuation.definition.string.begin.json, string.quoted.double.json punctuation.definition.string.end.json | #93C591 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value constant.language | #E66D75 | — |
| variable.other.php, variable.other.property.php | #E1E2ED | — |
| support.class.php | #D9B469 | — |
| meta.function-call.php punctuation | #D1D2E8 | — |
| variable.other.global.php | #A1D79F | — |
| variable.other.global.php punctuation.definition.variable | #A1D79F | — |
| constant.language.python | #E66D75 | — |
| variable.parameter.function.python, meta.function-call.arguments.python | #5A9BCF | — |
| meta.function-call.python, meta.function-call.generic.python | #68C7D6 | — |
| punctuation.python | #D1D2E8 | — |
| entity.name.function.decorator.python | #A1D79F | — |
| source.python variable.language.special | #5A9BCF | — |
| keyword.control | #BB83D8 | — |
| entity.name.tag.yaml | #68C7D6 | — |
| support.type.property-name.array.toml | #BB83D8 | — |
| support.type.property-name.table.toml | #E66D75 | — |
| constant.language.boolean.toml | #E66D75 | — |
| meta.property-list.css meta.property-value.css variable.other.less, meta.property-list.scss variable.scss, meta.property-list.sass variable.sass, meta.brace, keyword.operator.operator, keyword.operator.or.regexp, keyword.operator.expression.in, keyword.operator.relational, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.type, keyword.operator, keyword, punctuation.definintion.string, punctuation, variable.other.readwrite.js, storage.type, source.css, string.quoted | — |
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}!`;
}