Ergolight Theme
Publisher: Fausto CintraThemes in package: 1
An ergonomic light theme with clear syntax colors and comfortable contrast for long coding sessions.
An ergonomic light theme with clear syntax colors and comfortable contrast for long coding sessions.
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 |
|---|---|---|
| constant, support.constant | #82AE2A | — |
| variable, variable.parameter.function, text.variable, text.bracketed | #546E7A | — |
| keyword, keyword.control, storage, storage.type, storage.modifier | #8B008B | — |
| keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.relational | #5C6BC0 | — |
| variable.other.generic-type.haskell | #DD00A9 | — |
| storage.type.haskell | #DD00A9 | — |
| support.variable.magic.python | #FA8072 | — |
| punctuation.separator.period.python, punctuation.separator.element.python, punctuation.parenthesis.begin.python, punctuation.parenthesis.end.python | #546E7A | — |
| variable.parameter.function.language.special.self.python | #FA8072 | italic |
| storage.modifier.lifetime.rust | #546E7A | — |
| support.function.std.rust | #8B008B | — |
| entity.name.lifetime.rust | #0074E8 | — |
| variable.language.rust | #FA8072 | — |
| support.constant.edge | #DD00A9 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #0000CD | — |
| variable.parameter.function | #FA8072 | italic |
| comment markup.link | #26A69A | — |
| markup.changed.diff | #0074E8 | — |
| meta.diff.header.from-file, meta.diff.header.to-file, punctuation.definition.from-file.diff, punctuation.definition.to-file.diff | #82AE2A | — |
| markup.inserted.diff | #0000CD | — |
| markup.deleted.diff | #FA8072 | — |
| meta.function.c, meta.function.cpp | #FA8072 | — |
| punctuation.section.block.begin.bracket.curly.cpp, punctuation.section.block.end.bracket.curly.cpp, punctuation.terminator.statement.c, punctuation.section.block.begin.bracket.curly.c, punctuation.section.block.end.bracket.curly.c, punctuation.section.parens.begin.bracket.round.c, punctuation.section.parens.end.bracket.round.c, punctuation.section.parameters.begin.bracket.round.c, punctuation.section.parameters.end.bracket.round.c | #546E7A | — |
| punctuation.separator.key-value | #546E7A | — |
| keyword.operator.expression.import | #8B008B | — |
| support.constant.math | #0074E8 | — |
| support.constant.property.math | #82AE2A | — |
| variable.other.constant | #8B008B | — |
| support.class.component.js.jsx, entity.name.tag.js.jsx, support.class.component.js, entity.name.tag.js | #0074E8 | |
| entity.other.attribute-name.js.jsx | #82AE2A | — |
| storage.type.object.array.java | #0074E8 | — |
| storage.type.annotation.java, punctuation.definition.annotation.java | #5C6BC0 | italic |
| source.java | #FA8072 | — |
| punctuation.section.block.begin.java, punctuation.section.block.end.java, punctuation.definition.method-parameters.begin.java, punctuation.definition.method-parameters.end.java, meta.method.identifier.java, punctuation.section.method.begin.java, punctuation.section.method.end.java, punctuation.terminator.java, punctuation.section.class.begin.java, punctuation.section.class.end.java, punctuation.section.inner-class.begin.java, punctuation.section.inner-class.end.java, meta.method-call.java, punctuation.section.class.begin.bracket.curly.java, punctuation.section.class.end.bracket.curly.java, punctuation.section.method.begin.bracket.curly.java, punctuation.section.method.end.bracket.curly.java, punctuation.separator.period.java, punctuation.bracket.angle.java, meta.method.body.java | #546E7A | — |
| meta.method.java | #8B008B | — |
| storage.modifier.import.java, storage.type.java, storage.type.generic.java | #0074E8 | — |
| keyword.operator.instanceof.java | #DD00A9 | — |
| meta.definition.variable.name.java | #FA8072 | — |
| keyword.operator.logical | #5C6BC0 | — |
| keyword.operator.bitwise | #5C6BC0 | — |
| keyword.operator.channel | #5C6BC0 | — |
| support.constant.property-value.scss, support.constant.property-value.css | #0000CD | — |
| keyword.operator.css, keyword.operator.scss, keyword.operator.less | #5C6BC0 | — |
| support.constant.color.w3c-standard-color-name.css, support.constant.color.w3c-standard-color-name.scss | #0000CD | — |
| punctuation.separator.list.comma.css | #546E7A | — |
| support.type.vendored.property-name.css | #546E7A | italic |
| support.module.node, support.type.object.module | #0074E8 | — |
| entity.name.type.module | #0074E8 | — |
| variable.other.readwrite, meta.object-literal.key, support.variable.property, support.variable.object.process, support.variable.object.node | #FA8072 | — |
| meta.object-literal.key, meta.object-literal.key.js, meta.object-literal.key.ts, meta.object-literal.key.tsx, support.type.property-name.js, support.type.property-name.ts, support.type.property-name.tsx, variable.other.property.js, variable.other.property.ts, variable.other.property.tsx | #0074E8 | — |
| support.constant.json | #82AE2A | — |
| keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof | #DD00A9 | — |
| support.type.object.console | #FA8072 | — |
| support.variable.property.process | #82AE2A | — |
| entity.name.function, support.function.console | #8B008B | — |
| keyword.operator.misc.rust | #546E7A | — |
| keyword.operator.sigil.rust | #DD00A9 | — |
| keyword.operator.delete | #DD00A9 | — |
| support.type.object.dom | #5C6BC0 | — |
| support.variable.dom, support.variable.property.dom | #FA8072 | — |
| keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.decrement, keyword.operator.increment, keyword.operator.relational | #5C6BC0 | — |
| keyword.operator.assignment.c, keyword.operator.comparison.c, keyword.operator.c, keyword.operator.increment.c, keyword.operator.decrement.c, keyword.operator.bitwise.shift.c, keyword.operator.assignment.cpp, keyword.operator.comparison.cpp, keyword.operator.cpp, keyword.operator.increment.cpp, keyword.operator.decrement.cpp, keyword.operator.bitwise.shift.cpp | #DD00A9 | — |
| punctuation.separator.delimiter | #546E7A | — |
| punctuation.separator.c, punctuation.separator.cpp | #DD00A9 | — |
| support.type.posix-reserved.c, support.type.posix-reserved.cpp | #5C6BC0 | — |
| keyword.operator.sizeof.c, keyword.operator.sizeof.cpp | #DD00A9 | — |
| variable.parameter.function.language.python | #FA8072 | italic |
| support.type.python | #5C6BC0 | — |
| keyword.operator.logical.python | #DD00A9 | — |
| variable.parameter.function.python | #FA8072 | italic |
| punctuation.definition.arguments.begin.python, punctuation.definition.arguments.end.python, punctuation.separator.arguments.python, punctuation.definition.list.begin.python, punctuation.definition.list.end.python | #546E7A | — |
| meta.function-call.generic.python | #8B008B | — |
| constant.character.format.placeholder.other.python | #82AE2A | — |
| keyword.operator | #546E7A | — |
| keyword.operator.unpacking.python, keyword.operator.unpacking.arguments.python, keyword.operator.unpacking.parameter.python, punctuation.definition.arguments.python, punctuation.definition.parameters.python | #546E7A | — |
| keyword.operator.assignment.compound | #DD00A9 | — |
| keyword.operator.assignment.compound.js, keyword.operator.assignment.compound.ts | #5C6BC0 | — |
| keyword | #DD00A9 | — |
| storage.type.var.java, keyword.var.java, storage.type.interface.ts, storage.type.interface.tsx, keyword.declaration.interface.ts, keyword.declaration.interface.tsx | #DD00A9 | — |
| entity.name.namespace | #0074E8 | — |
| variable | #FA8072 | — |
| variable.c | #546E7A | — |
| variable.language | #0074E8 | — |
| token.variable.parameter.java | #FA8072 | italic |
| import.storage.java | #0074E8 | — |
| token.package.keyword | #DD00A9 | — |
| token.package | #546E7A | — |
| entity.name.function, meta.require, support.function.any-method, variable.function | #8B008B | — |
| entity.name.type.namespace | #0074E8 | |
| support.class, entity.name.type.class | #0074E8 | |
| entity.name.class.identifier.namespace.type | #0074E8 | |
| entity.name.class, variable.other.class.js, variable.other.class.ts | #0074E8 | |
| variable.other.class.php | #0074E8 | |
| entity.name.type.interface, entity.name.interface, support.type.interface, meta.interface | #0074E8 | italic |
| source.ts storage.type.interface, source.tsx storage.type.interface, source.js storage.type.interface, source.jsx storage.type.interface, storage.type.interface.ts, storage.type.interface.tsx, storage.type.interface.js, storage.type.interface.jsx, source.ts keyword.declaration.interface, source.tsx keyword.declaration.interface, source.js keyword.declaration.interface, source.jsx keyword.declaration.interface, keyword.declaration.interface.ts, keyword.declaration.interface.tsx, keyword.declaration.interface.js, keyword.declaration.interface.jsx, source.ts keyword.interface, source.tsx keyword.interface, source.js keyword.interface, source.jsx keyword.interface, keyword.interface.ts, keyword.interface.tsx, keyword.interface.js, keyword.interface.jsx | #DD00A9 | |
| entity.name.type | #0074E8 | — |
| keyword.control | #DD00A9 | — |
| control.elements, keyword.operator.less | #82AE2A | — |
| keyword.other.special-method | #8B008B | — |
| storage | #DD00A9 | — |
| token.storage | #DD00A9 | — |
| keyword.operator.expression.delete, keyword.operator.expression.in, keyword.operator.expression.of, keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.expression.typeof, keyword.operator.expression.void | #DD00A9 | — |
| token.storage.type.java | #0074E8 | — |
| support.function | #5C6BC0 | — |
| support.type.property-name | #546E7A | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.sass, support.type.vendored.property-name.css, support.type.vendored.property-name.scss, support.type.vendored.property-name.sass, meta.property-name.css, meta.property-name.scss, meta.property-name.sass | #546E7A | italic |
| support.constant.property-value | #546E7A | — |
| meta.property-value.css, meta.property-list.css, meta.at-rule.media.body.css, source.css, support.constant.property-value.css, support.constant.property-value.scss, support.constant.property-value.sass, support.constant.color.w3c-standard-color-name.css, support.constant.color.w3c-standard-color-name.scss, support.constant.color.w3c-standard-color-name.sass, meta.property-value.css support.constant, meta.property-value.scss support.constant, meta.property-value.sass support.constant | #8B008B | — |
| variable.css, variable.scss, variable.sass, variable.other.css, variable.other.scss, variable.other.sass, variable.parameter.url.css, variable.parameter.url.scss, variable.parameter.url.sass, support.type.custom-property.name.css, support.type.custom-property.name.scss, support.type.custom-property.name.sass, meta.property-value.css variable, meta.property-value.scss variable, meta.property-value.sass variable, punctuation.definition.variable.css, punctuation.definition.variable.scss, punctuation.definition.variable.sass | #FA8072 | — |
| support.function.css, support.function.scss, support.function.sass, meta.function-call.css, meta.function-call.scss, meta.function-call.sass, meta.property-value.css support.function, meta.property-value.scss support.function, meta.property-value.sass support.function | #5C6BC0 | — |
| keyword.other.unit.css, keyword.other.unit.scss, keyword.other.unit.sass, keyword.other.unit.length.css, keyword.other.unit.length.scss, keyword.other.unit.length.sass, keyword.other.unit.angle.css, keyword.other.unit.angle.scss, keyword.other.unit.angle.sass, keyword.other.unit.time.css, keyword.other.unit.time.scss, keyword.other.unit.time.sass, keyword.other.unit.frequency.css, keyword.other.unit.frequency.scss, keyword.other.unit.frequency.sass, keyword.other.unit.resolution.css, keyword.other.unit.resolution.scss, keyword.other.unit.resolution.sass, keyword.other.unit.percentage.css, keyword.other.unit.percentage.scss, keyword.other.unit.percentage.sass, support.constant.property-value.unit.css, support.constant.property-value.unit.scss, support.constant.property-value.unit.sass, meta.property-value.css keyword.other.unit, meta.property-value.scss keyword.other.unit, meta.property-value.sass keyword.other.unit | #82AE2A | — |
| support.constant.font-name | #82AE2A | — |
| meta.tag | #546E7ABB | — |
| string | #0000CD | — |
| entity.other.inherited-class | #0074E8 | |
| constant.other.symbol | #5C6BC0 | — |
| constant.numeric | #82AE2A | — |
| entity.name.tag | #82AE2A | — |
| entity.other.attribute-name | #FA8072 | italic |
| entity.other.attribute-name.id | #0074E8 | — |
| entity.other.attribute-name.class.css | #0074E8 | |
| entity.name.tag.css | #82AE2A | — |
| entity.other.attribute-name.id.css | #FA8072 | — |
| markup.heading | #0074E8 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #0074E8 | — |
| keyword.other.unit | #82AE2A | — |
| markup.bold, todo.bold | #0074E8 | bold |
| punctuation.definition.bold | #0074E8 | bold |
| markup.italic, punctuation.definition.italic, todo.emphasis | #0074E8 | italic |
| emphasis md | #0074E8 | italic |
| entity.name.section.markdown | #0074E8 | — |
| punctuation.definition.heading.markdown | #0074E8 | — |
| punctuation.definition.list.begin.markdown | #FA8072 | — |
| markup.heading.setext | #546E7A | — |
| punctuation.definition.bold.markdown | #FA8072 | bold |
| markup.inline.raw.markdown | #0000CD | — |
| markup.inline.raw.string.markdown | #0000CD | — |
| punctuation.definition.list.markdown | #FA8072 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #FA8072 | — |
| beginning.punctuation.definition.list.markdown | #FA8072 | — |
| punctuation.definition.metadata.markdown | #FA8072 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #DD00A9 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #8B008B | — |
| constant.character.escape | #5C6BC0 | — |
| punctuation.section.embedded, variable.interpolation | #FA8072 | — |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #DD00A9 | — |
| invalid.illegal | #B22222 | — |
| invalid.illegal.bad-ampersand.html | #546E7A | — |
| invalid.broken | #B22222 | — |
| invalid.deprecated | #B22222 | — |
| invalid.unimplemented | #B22222 | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #FA8072 | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #FA8072 | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json, source.json meta.structure.array.json > value.json > string.quoted.json, source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation, source.json meta.structure.array.json > value.json > string.quoted.json > punctuation | #0000CD | — |
| source.json meta.structure.dictionary.json > constant.language.json, source.json meta.structure.array.json > constant.language.json | #5C6BC0 | — |
| support.type.property-name.json | #0074E8 | — |
| support.type.property-name.json punctuation | #0074E8 | — |
| entity.name.tag.yaml, support.type.property-name.yaml, string.unquoted.plain.out.yaml meta.mapping.key.yaml, punctuation.separator.key-value.mapping.yaml | #0074E8 | — |
| text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade | #8B008B | — |
| text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade | #0074E8 | — |
| support.other.namespace.use.php, support.other.namespace.use-as.php, support.other.namespace.php, entity.other.alias.php | #5C6BC0 | — |
| meta.interface.php | #0074E8 | italic |
| punctuation.section.embedded.begin.php punctuation.section.embedded.end.php | #5C6BC0 | italic |
| keyword.operator.error-control.php | #DD00A9 | — |
| keyword.operator.type.php | #DD00A9 | — |
| keyword.operator.class.php, keyword.operator.key.php | #5C6BC0 | — |
| punctuation.section.array.begin.php | #546E7A | — |
| punctuation.section.array.end.php | #546E7A | — |
| invalid.illegal.non-null-typehinted.php | #F44747 | — |
| storage.type.php, meta.other.type.phpdoc.php, keyword.other.type.php, keyword.other.array.phpdoc.php | #0074E8 | — |
| meta.function-call.php, meta.function-call.object.php, meta.function-call.static.php | #8B008B | — |
| punctuation.definition.parameters.begin.bracket.round.php, punctuation.definition.parameters.end.bracket.round.php, punctuation.separator.delimiter.php, punctuation.section.scope.begin.php, punctuation.section.scope.end.php, punctuation.terminator.expression.php, punctuation.definition.arguments.begin.bracket.round.php, punctuation.definition.arguments.end.bracket.round.php, punctuation.definition.storage-type.begin.bracket.round.php, punctuation.definition.storage-type.end.bracket.round.php, punctuation.definition.array.begin.bracket.round.php, punctuation.definition.array.end.bracket.round.php, punctuation.definition.begin.bracket.round.php, punctuation.definition.end.bracket.round.php, punctuation.definition.begin.bracket.curly.php, punctuation.definition.end.bracket.curly.php, punctuation.definition.section.switch-block.end.bracket.curly.php, punctuation.definition.section.switch-block.start.bracket.curly.php, punctuation.definition.section.switch-block.begin.bracket.curly.php | #546E7A | — |
| support.constant.core.rust | #82AE2A | — |
| support.constant.ext.php, support.constant.std.php, support.constant.core.php, support.constant.parser-token.php | #82AE2A | — |
| entity.name.goto-label.php, support.other.php | #8B008B | — |
| keyword.operator.logical.php, keyword.operator.bitwise.php, keyword.operator.arithmetic.php | #5C6BC0 | — |
| keyword.operator.comparison.php | #5C6BC0 | — |
| keyword.operator.heredoc.php, keyword.operator.nowdoc.php | #26A69A | — |
| meta.function.decorator.python | #5C6BC0 | italic |
| string.quoted.docstring.multi.python | #5C6BC0 | italic |
| string.quoted.docstring.multi.python punctuation.definition.string.begin.python, string.quoted.docstring.multi.python punctuation.definition.string.end.python, punctuation.definition.string.begin.python string.quoted.docstring.multi.python, punctuation.definition.string.end.python string.quoted.docstring.multi.python | #5C6BC0 | italic |
| support.token.decorator.python, meta.function.decorator.identifier.python | #5C6BC0 | italic |
| punctuation.definition.decorator.python, entity.name.function.decorator.python, meta.function.decorator.python support.type, meta.function.decorator.python support.function, meta.function.decorator.python variable, meta.function.decorator.python punctuation.definition.decorator | #5C6BC0 | italic |
| function.parameter | #FA8072 | italic |
| function.brace | #546E7A | — |
| function.parameter.ruby, function.parameter.cs | #FA8072 | italic |
| constant.language.symbol.ruby | #5C6BC0 | — |
| rgb-value | #5C6BC0 | — |
| inline-color-decoration rgb-value | #82AE2A | — |
| less rgb-value | #82AE2A | — |
| selector.sass | #FA8072 | — |
| support.type.primitive.ts, support.type.builtin.ts, support.type.primitive.tsx, support.type.builtin.tsx | #0074E8 | — |
| block.scope.end, block.scope.begin | #546E7A | — |
| storage.type.cs | #0074E8 | — |
| entity.name.variable.local.cs | #FA8072 | — |
| token.info-token | #8B008B | — |
| token.warn-token | #82AE2A | — |
| token.error-token | #F44747 | — |
| token.debug-token | #DD00A9 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #DD00A9 | — |
| meta.template.expression | #546E7A | — |
| keyword.operator.module | #DD00A9 | — |
| support.type.type.flowtype | #8B008B | — |
| support.type.primitive | #0074E8 | — |
| meta.property.object | #FA8072 | — |
| variable.parameter.function.js | #FA8072 | italic |
| keyword.other.template.begin | #0000CD | — |
| keyword.other.template.end | #0000CD | — |
| keyword.other.substitution.begin | #0000CD | — |
| keyword.other.substitution.end | #0000CD | — |
| keyword.operator.assignment | #5C6BC0 | — |
| keyword.operator.assignment.go | #0074E8 | — |
| keyword.operator.arithmetic.go, keyword.operator.address.go | #DD00A9 | — |
| entity.name.package.go | #0074E8 | — |
| punctuation.quasi.element | #DD00A9 | — |
| constant.character.entity | #8B008B | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #5C6BC0 | — |
| entity.global.clojure | #0074E8 | — |
| meta.symbol.clojure | #FA8072 | italic |
| constant.keyword.clojure | #5C6BC0 | — |
| source.ini | #0000CD | — |
| meta.scope.prerequisites.makefile | #FA8072 | — |
| source.makefile | #0074E8 | — |
| text.variable, text.bracketed | #FA8072 | — |
| support.type.swift, support.type.vb.asp | #0074E8 | — |
| entity.name.function.xi | #0074E8 | — |
| entity.name.class.xi | #0074E8 | |
| keyword.control.xi | #5C6BC0 | italic |
| invalid.xi | #546E7A | — |
| beginning.punctuation.definition.quote.markdown.xi | #0000CD | — |
| beginning.punctuation.definition.list.markdown.xi | #26A69A | — |
| constant.character.xi | #8B008B | — |
| accent.xi | #8B008B | — |
| wikiword.xi | #82AE2A | — |
| constant.other.color.rgb-value.xi | #B22222 | — |
| punctuation.definition.tag.xi | #26A69A | — |
| entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition | #0074E8 | — |
| entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #FA8072 | — |
| meta.brace.square | #546E7A | — |
| comment, punctuation.definition.comment | #26A69A | italic |
| markup.quote.markdown | #26A69A | — |
| punctuation.definition.block.sequence.item.yaml | #546E7A | — |
| constant.language.symbol.elixir | #5C6BC0 | — |
| variable.language.super | — | italic |
| variable.parameter, variable.parameter.function, variable.parameter.function.js, variable.parameter.function.jsx, variable.parameter.function.ts, variable.parameter.function.tsx, variable.parameter.function.python, variable.parameter.function.language.python, variable.parameter.function.language.special.self.python, variable.parameter.function.ruby, variable.parameter.java, token.variable.parameter.java, entity.name.variable.parameter, entity.name.variable.parameter.cs, entity.name.variable.parameter.java, entity.name.variable.parameter.go, entity.name.variable.parameter.php, entity.name.variable.parameter.rust, function.parameter, function.parameter.cs, function.parameter.ruby, meta.function.parameters variable, meta.function.parameters variable.parameter, meta.parameters variable, meta.parameters variable.parameter | #FA8072 | italic |
| comment.line.double-slash, comment.block.documentation | — | italic |
| keyword.control.import.python, keyword.control.flow.python | — | italic |
| markup.italic.markdown | #FA8072 | italic |
| markup.bold.markdown, markup.italic.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | #FA8072 | — |
| markup.strikethrough.markdown, punctuation.definition.strikethrough.markdown | #FA8072 | strikethrough |
| markup.underline.link.markdown, markup.underline.link.image.markdown, meta.link.inline.markdown, meta.link.reference.markdown, meta.image.inline.markdown, meta.image.reference.markdown, punctuation.definition.metadata.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #0074E8 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #0074E8 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, constant.other.reference.link.markdown, constant.other.reference.link.footnote.markdown | #5C6BC0 | — |
| markup.raw.inline, markup.raw.inline.markdown, markup.inline.raw.markdown, markup.inline.raw.string.markdown, text.html.markdown markup.raw.inline, text.html.markdown markup.inline.raw, text.html.markdown markup.inline.raw.string, punctuation.definition.raw.markdown, punctuation.definition.raw.begin.markdown, punctuation.definition.raw.end.markdown, text.html.markdown punctuation.definition.raw | #8B008B | — |
| markup.heading, markup.heading.markdown, markup.heading.1.markdown, markup.heading.2.markdown, markup.heading.3.markdown, markup.heading.4.markdown, markup.heading.5.markdown, markup.heading.6.markdown, markup.heading.setext.markdown, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown, entity.name.section, entity.name.section.markdown, text.html.markdown markup.heading, text.html.markdown entity.name.section, punctuation.definition.heading.markdown | #82AE2A | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.sass, source.css support.type.property-name, source.scss support.type.property-name, source.sass support.type.property-name | #546E7A | italic |
| constant.numeric.css, constant.numeric.scss, constant.numeric.sass, keyword.other.unit.css, keyword.other.unit.scss, keyword.other.unit.sass, keyword.other.unit.percentage.css, keyword.other.unit.percentage.scss, keyword.other.unit.percentage.sass, support.constant.property-value.unit.css, support.constant.property-value.unit.scss, support.constant.property-value.unit.sass, source.css constant.numeric, source.scss constant.numeric, source.sass constant.numeric, source.css keyword.other.unit, source.scss keyword.other.unit, source.sass keyword.other.unit, source.css keyword.other.unit.length, source.scss keyword.other.unit.length, source.sass keyword.other.unit.length, source.css keyword.other.unit.angle, source.scss keyword.other.unit.angle, source.sass keyword.other.unit.angle, source.css keyword.other.unit.time, source.scss keyword.other.unit.time, source.sass keyword.other.unit.time, source.css keyword.other.unit.frequency, source.scss keyword.other.unit.frequency, source.sass keyword.other.unit.frequency, source.css keyword.other.unit.resolution, source.scss keyword.other.unit.resolution, source.sass keyword.other.unit.resolution, source.css keyword.other.unit.percentage, source.scss keyword.other.unit.percentage, source.sass keyword.other.unit.percentage, source.css support.constant.property-value.unit, source.scss support.constant.property-value.unit, source.sass support.constant.property-value.unit, meta.property-value.css keyword.other.unit, meta.property-value.scss keyword.other.unit, meta.property-value.sass keyword.other.unit, meta.property-value.css support.constant.property-value.unit, meta.property-value.scss support.constant.property-value.unit, meta.property-value.sass support.constant.property-value.unit, meta.function-call.css keyword.other.unit, meta.function-call.scss keyword.other.unit, meta.function-call.sass keyword.other.unit, meta.function-call.css support.constant.property-value.unit, meta.function-call.scss support.constant.property-value.unit, meta.function-call.sass support.constant.property-value.unit, meta.property-value.css meta.function-call.css keyword.other.unit, meta.property-value.scss meta.function-call.scss keyword.other.unit, meta.property-value.sass meta.function-call.sass keyword.other.unit, meta.property-value.css keyword.other.unit.px.css, meta.property-value.scss keyword.other.unit.px.scss, meta.property-value.sass keyword.other.unit.px.sass, meta.property-value.css keyword.other.unit.em.css, meta.property-value.scss keyword.other.unit.em.scss, meta.property-value.sass keyword.other.unit.em.sass, meta.property-value.css keyword.other.unit.rem.css, meta.property-value.scss keyword.other.unit.rem.scss, meta.property-value.sass keyword.other.unit.rem.sass, meta.property-value.css keyword.other.unit.deg.css, meta.property-value.scss keyword.other.unit.deg.scss, meta.property-value.sass keyword.other.unit.deg.sass, meta.property-value.css keyword.other.unit.percent.css, meta.property-value.scss keyword.other.unit.percent.scss, meta.property-value.sass keyword.other.unit.percent.sass | #000000 | |
| source.js keyword, source.jsx keyword, source.ts keyword, source.tsx keyword, source.js storage, source.jsx storage, source.ts storage, source.tsx storage, source.js storage.type, source.jsx storage.type, source.ts storage.type, source.tsx storage.type, source.js storage.modifier, source.jsx storage.modifier, source.ts storage.modifier, source.tsx storage.modifier, source.js keyword.declaration, source.jsx keyword.declaration, source.ts keyword.declaration, source.tsx keyword.declaration, storage.type.js, storage.type.jsx, storage.type.ts, storage.type.tsx, storage.modifier.js, storage.modifier.jsx, storage.modifier.ts, storage.modifier.tsx, keyword.declaration.js, keyword.declaration.jsx, keyword.declaration.ts, keyword.declaration.tsx | #DD00A9 | |
| source.js keyword.operator, source.jsx keyword.operator, source.ts keyword.operator, source.tsx keyword.operator, source.js keyword.operator.expression, source.jsx keyword.operator.expression, source.ts keyword.operator.expression, source.tsx keyword.operator.expression, source.js keyword.operator.assignment, source.jsx keyword.operator.assignment, source.ts keyword.operator.assignment, source.tsx keyword.operator.assignment, source.js keyword.operator.assignment.compound, source.jsx keyword.operator.assignment.compound, source.ts keyword.operator.assignment.compound, source.tsx keyword.operator.assignment.compound, source.js keyword.operator.comparison, source.jsx keyword.operator.comparison, source.ts keyword.operator.comparison, source.tsx keyword.operator.comparison, source.js keyword.operator.logical, source.jsx keyword.operator.logical, source.ts keyword.operator.logical, source.tsx keyword.operator.logical, source.js keyword.operator.new, source.jsx keyword.operator.new, source.ts keyword.operator.new, source.tsx keyword.operator.new, source.js keyword.operator.optional, source.jsx keyword.operator.optional, source.ts keyword.operator.optional, source.tsx keyword.operator.optional, source.js keyword.operator.relational, source.jsx keyword.operator.relational, source.ts keyword.operator.relational, source.tsx keyword.operator.relational, keyword.operator.js, keyword.operator.jsx, keyword.operator.ts, keyword.operator.tsx, keyword.operator.expression.js, keyword.operator.expression.jsx, keyword.operator.expression.ts, keyword.operator.expression.tsx, keyword.operator.assignment.js, keyword.operator.assignment.jsx, keyword.operator.assignment.ts, keyword.operator.assignment.tsx, keyword.operator.assignment.compound.js, keyword.operator.assignment.compound.jsx, keyword.operator.assignment.compound.ts, keyword.operator.assignment.compound.tsx, keyword.operator.comparison.js, keyword.operator.comparison.jsx, keyword.operator.comparison.ts, keyword.operator.comparison.tsx, keyword.operator.logical.js, keyword.operator.logical.jsx, keyword.operator.logical.ts, keyword.operator.logical.tsx, keyword.operator.new.js, keyword.operator.new.jsx, keyword.operator.new.ts, keyword.operator.new.tsx, keyword.operator.optional, keyword.operator.optional.js, keyword.operator.optional.jsx, keyword.operator.optional.ts, keyword.operator.optional.tsx, keyword.operator.relational.js, keyword.operator.relational.jsx, keyword.operator.relational.ts, keyword.operator.relational.tsx | #5C6BC0 | |
| source.js variable.other.constant, source.jsx variable.other.constant, source.ts variable.other.constant, source.tsx variable.other.constant, source.js variable.other.readwrite.constant, source.jsx variable.other.readwrite.constant, source.ts variable.other.readwrite.constant, source.tsx variable.other.readwrite.constant, source.js variable.other.constant.js, source.jsx variable.other.constant.jsx, source.ts variable.other.constant.ts, source.tsx variable.other.constant.tsx, source.js variable.other.readwrite.alias, source.jsx variable.other.readwrite.alias, source.ts variable.other.readwrite.alias, source.tsx variable.other.readwrite.alias, variable.other.constant.js, variable.other.constant.jsx, variable.other.constant.ts, variable.other.constant.tsx | #0074E8 | |
| support.class.component.js.jsx, support.class.component.tsx | #8B008B | |
| keyword.haskell, keyword.control.haskell, keyword.declaration.haskell, storage.haskell, storage.type.haskell, source.haskell keyword, source.haskell storage, source.haskell storage.type | #DD00A9 | |
| entity.name.type.haskell, support.type.haskell, support.type.prelude.haskell, source.haskell entity.name.type, source.haskell support.type | #0074E8 | |
| variable.other.generic-type.haskell, source.haskell variable.other.generic-type | #DD00A9 | |
| constant.other.haskell, entity.name.type.constructor.haskell, variable.other.constructor.haskell, source.haskell constant.other, source.haskell entity.name.type.constructor, source.haskell variable.other.constructor | #5C6BC0 | |
| entity.name.function.haskell, support.function.haskell, source.haskell entity.name.function, source.haskell support.function | #8B008B | |
| variable.parameter.haskell, source.haskell variable.parameter | #FA8072 | italic |
| keyword.operator.haskell, keyword.operator.arrow.haskell, source.haskell keyword.operator | #5C6BC0 | |
| keyword.clojure, keyword.control.clojure, keyword.declaration.clojure, keyword.operator.clojure, storage.clojure, storage.type.clojure, storage.modifier.clojure, source.clojure keyword, source.clojure storage, source.clojure storage.type, source.clojure storage.modifier | #DD00A9 | |
| entity.name.function.clojure, support.function.clojure, meta.function-call.clojure, source.clojure entity.name.function, source.clojure support.function | #8B008B | |
| entity.name.type.clojure, entity.name.class.clojure, entity.name.namespace.clojure, entity.global.clojure, support.type.clojure, source.clojure entity.name.type, source.clojure entity.name.class, source.clojure entity.name.namespace, source.clojure support.type | #0074E8 | |
| variable.parameter.clojure, variable.other.parameter.clojure, meta.parameters.clojure variable, meta.parameters.clojure variable.parameter, source.clojure variable.parameter, source.clojure variable.other.parameter | #FA8072 | italic |
| constant.language.clojure, constant.keyword.clojure, constant.numeric.clojure, constant.character.clojure, variable.other.constant.clojure, source.clojure constant.language, source.clojure constant.keyword, source.clojure constant.numeric, source.clojure constant.character, source.clojure variable.other.constant | #82AE2A | |
| meta.metadata.clojure, punctuation.definition.metadata.clojure, source.clojure meta.metadata, source.clojure punctuation.definition.metadata | #5C6BC0 | italic |
| keyword.elixir, keyword.control.elixir, keyword.declaration.elixir, storage.elixir, storage.type.elixir, storage.modifier.elixir, source.elixir keyword, source.elixir storage, source.elixir storage.type, source.elixir storage.modifier | #DD00A9 | |
| entity.name.type.elixir, entity.name.class.elixir, entity.name.namespace.elixir, support.type.elixir, support.class.elixir, source.elixir entity.name.type, source.elixir entity.name.class, source.elixir entity.name.namespace, source.elixir support.type, source.elixir support.class | #0074E8 | |
| entity.name.function.elixir, support.function.elixir, source.elixir entity.name.function, source.elixir support.function | #8B008B | |
| variable.parameter.elixir, variable.other.parameter.elixir, meta.parameters.elixir variable, meta.parameters.elixir variable.parameter, source.elixir variable.parameter, source.elixir variable.other.parameter | #FA8072 | italic |
| constant.language.elixir, constant.language.symbol.elixir, constant.other.symbol.elixir, constant.numeric.elixir, variable.other.constant.elixir, source.elixir constant.language, source.elixir constant.language.symbol, source.elixir constant.other.symbol, source.elixir constant.numeric, source.elixir variable.other.constant | #82AE2A | |
| keyword.operator.elixir, keyword.operator.pipe.elixir, keyword.operator.arrow.elixir, keyword.operator.match.elixir, source.elixir keyword.operator | #5C6BC0 | |
| variable.other.readwrite.module-attribute.elixir, punctuation.definition.module-attribute.elixir, string.other.sigil.elixir, punctuation.definition.string.begin.elixir, punctuation.definition.string.end.elixir, source.elixir variable.other.readwrite.module-attribute, source.elixir punctuation.definition.module-attribute, source.elixir string.other.sigil | #5C6BC0 | italic |
| keyword.ruby, keyword.control.ruby, keyword.declaration.ruby, keyword.other.ruby, storage.ruby, storage.type.ruby, storage.modifier.ruby, source.ruby keyword, source.ruby storage, source.ruby storage.type, source.ruby storage.modifier | #DD00A9 | |
| entity.name.type.class.ruby, entity.name.type.module.ruby, entity.name.class.ruby, entity.name.module.ruby, entity.name.namespace.ruby, support.class.ruby, support.type.ruby, variable.other.constant.ruby, source.ruby entity.name.type, source.ruby entity.name.class, source.ruby entity.name.module, source.ruby entity.name.namespace, source.ruby support.class, source.ruby support.type, source.ruby variable.other.constant | #0074E8 | |
| entity.name.function.ruby, entity.name.function.method.ruby, support.function.ruby, support.function.kernel.ruby, source.ruby entity.name.function, source.ruby support.function | #8B008B | |
| variable.parameter.ruby, variable.parameter.function.ruby, function.parameter.ruby, meta.function.parameters.ruby variable, meta.function.parameters.ruby variable.parameter, meta.parameters.ruby variable, meta.parameters.ruby variable.parameter, source.ruby variable.parameter, source.ruby function.parameter | #FA8072 | italic |
| constant.language.ruby, constant.language.symbol.ruby, constant.other.symbol.ruby, constant.numeric.ruby, support.constant.ruby, source.ruby constant.language, source.ruby constant.language.symbol, source.ruby constant.other.symbol, source.ruby constant.numeric, source.ruby support.constant | #82AE2A | |
| constant.language.symbol.ruby, constant.other.symbol.ruby, source.ruby constant.language.symbol, source.ruby constant.other.symbol | #5C6BC0 | |
| constant.other.symbol.hashkey.ruby, constant.language.symbol.hashkey.ruby, string.unquoted.label.ruby, entity.name.label.ruby, meta.association.key.ruby, meta.hash.ruby constant.other.symbol, meta.hash.ruby constant.language.symbol, meta.hash.ruby string.unquoted.label, meta.mapping.key.ruby, source.ruby constant.other.symbol.hashkey, source.ruby constant.language.symbol.hashkey, source.ruby string.unquoted.label, source.ruby entity.name.label, source.ruby meta.association.key, source.ruby meta.hash constant.other.symbol, source.ruby meta.hash constant.language.symbol, source.ruby meta.hash string.unquoted.label, source.ruby meta.mapping.key | #FA8072 | italic |
| keyword.operator.ruby, keyword.operator.assignment.ruby, keyword.operator.arithmetic.ruby, keyword.operator.comparison.ruby, keyword.operator.logical.ruby, source.ruby keyword.operator | #5C6BC0 | |
| variable.other.readwrite.instance.ruby, variable.other.readwrite.class.ruby, variable.other.readwrite.global.ruby, punctuation.definition.variable.ruby, source.ruby variable.other.readwrite.instance, source.ruby variable.other.readwrite.class, source.ruby variable.other.readwrite.global, source.ruby punctuation.definition.variable | #FA8072 | |
| keyword.rust, keyword.control.rust, keyword.declaration.rust, keyword.other.rust, storage.rust, storage.type.rust, storage.modifier.rust, source.rust keyword, source.rust storage, source.rust storage.type, source.rust storage.modifier | #DD00A9 | |
| entity.name.type.rust, entity.name.type.struct.rust, entity.name.type.enum.rust, entity.name.type.trait.rust, entity.name.type.union.rust, support.type.rust, support.type.primitive.rust, support.type.std.rust, source.rust entity.name.type, source.rust support.type | #0074E8 | |
| entity.name.type.trait.rust, support.type.trait.rust, source.rust entity.name.type.trait, source.rust support.type.trait | #0074E8 | italic |
| entity.name.function.rust, support.function.rust, support.function.std.rust, source.rust entity.name.function, source.rust support.function | #8B008B | |
| variable.parameter.rust, variable.other.parameter.rust, entity.name.variable.parameter.rust, source.rust variable.parameter, source.rust variable.other.parameter, source.rust entity.name.variable.parameter | #FA8072 | italic |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust, variable.other.lifetime.rust, source.rust storage.modifier.lifetime, source.rust entity.name.lifetime, source.rust variable.other.lifetime | #FA8072 | italic |
| constant.language.rust, constant.other.rust, support.constant.core.rust, variable.other.constant.rust, source.rust constant.language, source.rust constant.other, source.rust support.constant, source.rust variable.other.constant | #82AE2A | |
| keyword.operator.rust, keyword.operator.misc.rust, keyword.operator.sigil.rust, keyword.operator.borrow.rust, keyword.operator.assignment.rust, keyword.operator.arithmetic.rust, keyword.operator.comparison.rust, keyword.operator.logical.rust, punctuation.separator.double-colon.rust, source.rust keyword.operator, source.rust punctuation.separator.double-colon | #5C6BC0 | |
| meta.attribute.rust, meta.annotation.rust, punctuation.definition.attribute.rust, entity.name.function.macro.rust, support.macro.rust, source.rust meta.attribute, source.rust meta.annotation, source.rust entity.name.function.macro, source.rust support.macro | #5C6BC0 | italic |
| storage.type.c, storage.type.cpp, storage.type.built-in.c, storage.type.built-in.cpp, storage.type.primitive.c, storage.type.primitive.cpp, storage.type.struct.c, storage.type.struct.cpp, storage.type.enum.c, storage.type.enum.cpp, storage.type.union.c, storage.type.union.cpp, storage.type.typedef.c, storage.type.typedef.cpp, source.c storage.type, source.cpp storage.type | #DD00A9 | |
| storage.modifier.specifier.functional.pre-parameters.c, storage.modifier.specifier.functional.pre-parameters.cpp, source.c storage.modifier.specifier.functional.pre-parameters, source.cpp storage.modifier.specifier.functional.pre-parameters | #5C6BC0 | italic |
| meta.preprocessor.c, meta.preprocessor.cpp, keyword.control.directive.c, keyword.control.directive.cpp, keyword.control.import.c, keyword.control.import.cpp, keyword.control.include.c, keyword.control.include.cpp, punctuation.definition.directive.c, punctuation.definition.directive.cpp, source.c meta.preprocessor, source.cpp meta.preprocessor, source.c keyword.control.directive, source.cpp keyword.control.directive, source.c punctuation.definition.directive, source.cpp punctuation.definition.directive | #5C6BC0 | italic |
| storage.modifier.java, storage.modifier.import.java, source.java storage.modifier, source.java storage.modifier.import | #DD00A9 | |
| storage.type.java, storage.type.generic.java, storage.type.object.array.java, token.storage.type.java, source.java storage.type, source.java storage.type.generic, source.java storage.type.object.array | #5C6BC0 | italic |
| meta.definition.variable.name.java, variable.other.java, variable.other.object.java, variable.other.property.java, variable.other.field.java, variable.other.readwrite.java, source.java variable.other, source.java meta.definition.variable.name, source.java meta.definition.variable variable.other, source.java meta.field.declaration variable.other, source.java meta.method.body.java variable.other | #FA8072 | |
| storage.type.prisma, source.prisma storage.type, source.prisma meta.type storage.type | #DD00A9 | — |
| entity.name.function.prisma, source.prisma entity.name.function, meta.attribute.prisma entity.name.function, meta.field.attribute.prisma entity.name.function | #8B008B | — |
| entity.other.attribute-name.prisma, support.type.attribute.prisma, support.type.property-name.attribute.prisma, keyword.attribute.prisma, keyword.other.attribute.prisma, keyword.operator.attribute.prisma, meta.attribute.prisma, meta.attribute.prisma entity.other.attribute-name, meta.attribute.prisma support.type, meta.field.attribute.prisma, meta.field.attribute.prisma entity.other.attribute-name, meta.field.attribute.prisma support.type, source.prisma entity.other.attribute-name, source.prisma support.type.attribute, source.prisma keyword.attribute, source.prisma keyword.other.attribute, source.prisma keyword.operator.attribute, source.prisma punctuation.definition.attribute, source.prisma punctuation.definition.decorator | #DD00A9 | — |
| storage.type.php, source.php storage.type, source.php storage.type.*, storage.modifier.php, source.php storage.modifier, source.php storage.modifier.* | #DD00A9 | |
| keyword.blade, keyword.blade.php, text.html.laravel-blade keyword.blade, text.html.laravel-blade source.php keyword.blade, punctuation.section.embedded.php, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, source.php punctuation.section.embedded, source.php punctuation.section.embedded.begin, source.php punctuation.section.embedded.end, text.html.php punctuation.section.embedded.php, text.html.php punctuation.section.embedded.begin.php, text.html.php punctuation.section.embedded.end.php, text.html.laravel-blade punctuation.section.embedded.php, text.html.laravel-blade punctuation.section.embedded.begin.php, text.html.laravel-blade punctuation.section.embedded.end.php | #5C6BC0 | italic |
| storage.type.python, source.python storage.type | #DD00A9 | |
| constant.language.python, constant.language.boolean.python, constant.language.true.python, constant.language.false.python, constant.other.python, variable.other.constant.python, variable.other.readwrite.constant.python, source.python constant.language, source.python constant.language.boolean, source.python constant.language.true, source.python constant.language.false, source.python constant.other, source.python variable.other.constant, source.python variable.other.readwrite.constant | #82AE2A | |
| meta.function.decorator.python, meta.function.decorator.python entity.name.function, meta.function.decorator.python entity.name.function.decorator, meta.function.decorator.python support.function, meta.function.decorator.python support.type, meta.function.decorator.python variable, meta.function.decorator.python variable.other, meta.function.decorator.python variable.parameter, meta.function.decorator.python variable.other.object, meta.function.decorator.python variable.other.member, meta.function.decorator.python variable.other.property, meta.function.decorator.python meta.member.access, meta.function.decorator.python meta.function-call, meta.function.decorator.python meta.function-call entity.name.function, meta.function.decorator.python meta.function-call support.function, meta.function.decorator.python meta.function-call variable, meta.function.decorator.python punctuation.accessor, meta.function.decorator.python punctuation.separator.period, meta.function.decorator.python punctuation.definition.decorator, punctuation.definition.decorator.python | #5C6BC0 | italic |
| storage.type.cs, storage.modifier.cs, storage.type.class.cs, storage.type.struct.cs, storage.type.interface.cs, storage.type.enum.cs, storage.type.delegate.cs, storage.type.namespace.cs, storage.type.generic.cs, storage.modifier.access.cs, storage.modifier.static.cs, storage.modifier.abstract.cs, storage.modifier.async.cs, storage.modifier.readonly.cs, storage.modifier.virtual.cs, storage.modifier.override.cs, source.cs storage.type, source.cs storage.modifier | #DD00A9 | |
| keyword.operator.expression.new.cs, source.cs keyword.operator.expression.new.cs | #DD00A9 | — |
| constant.other.table-name.sql, entity.name.table.sql, entity.name.type.table.sql, entity.name.alias.sql, entity.name.schema.sql, entity.other.alias.sql, variable.other.alias.sql, support.type.object.sql, meta.from.sql entity.name.sql, meta.from.sql variable.other.sql, meta.join.sql entity.name.sql, meta.join.sql variable.other.sql, meta.table.sql, meta.table.sql entity.name, meta.table.sql variable.other, source.sql meta.from.sql, source.sql meta.join.sql | #0074E8 | — |
| entity.name.column.sql, entity.name.field.sql, variable.other.column.sql, variable.other.member.sql, support.type.property-name.sql, meta.column.sql, meta.column-name.sql, meta.field.sql, meta.property-name.sql, meta.select.sql entity.name.column.sql, meta.select.sql variable.other.member.sql, meta.where.sql entity.name.column.sql, meta.where.sql variable.other.member.sql, meta.order.sql entity.name.column.sql, meta.order.sql variable.other.member.sql, meta.group.sql entity.name.column.sql, meta.group.sql variable.other.member.sql, source.sql meta.property-name, source.sql support.type.property-name, source.sql variable.other.member | #FA8072 | italic |
| source.sql, source.sql constant, source.sql support.constant, source.sql variable, source.sql text.variable, source.sql text.bracketed, source.sql entity.name, source.sql support.type, source.sql keyword.other.unit | #546E7A | — |
| constant.language.python, source.python constant.language.python, source.python constant.language | #82AE2A |
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}!`;
}