Futuremotion Light
Publisher: FuturemotionThemes in package: 1
The ultimate minimal and functional light VSCode theme with extensive syntax highlighting customizations.
The ultimate minimal and functional light VSCode theme with extensive syntax highlighting customizations.
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 |
|---|---|---|
| comment.block.documentation.cs, comment.block.documentation, comment.block.powershell, comment.block.preprocessor, comment.documentation, comment.line.double-slash.cs, comment.line.powershell, comment, punctuation.definition.comment.block.begin.powershell, punctuation.definition.comment.block.end.powershell, punctuation.definition.comment.cs, punctuation.definition.comment.powershell, punctuation.definition.comment, string.comment, comment.documentation, comment.block.documentation | #a4a9b1 | — |
| string, string.quoted.double.js, punctuation.definition.string.begin, punctuation.definition.string.end | #3E8D89 | — |
| entity.name.tag.localname.cs | #646c72 | — |
| invalid, invalid.illegal | #e3535a | — |
| keyword.operator | #777777 | — |
| keyword, storage | #4B83CD | — |
| storage.type, support.type | #7A3E9D | — |
| constant.language, support.constant, variable.language | #AB6526 | — |
| variable, support.variable | #7A3E9D | — |
| entity.name.function, support.function | #464550 | |
| entity.name.type.enum.ts, entity.name.type.alias.ts, entity.name.type.class.ts, entity.other.inherited-class.ts, entity.name.type.module.ts, entity.name.type.interface.ts | #157894 | |
| entity.name.tag.directive.ts | #c2748a | — |
| entity.other.attribute-name.directive.ts | #124fc7 | |
| punctuation.definition.block.ts, punctuation.terminator.statement.ts, punctuation.definition.tag.directive.ts | #383939 | — |
| keyword.operator.type.ts | #818181 | — |
| entity.name.type.ts | #01699a | |
| entity.name.type, entity.other.inherited-class, support.class | #7A3E9D | |
| entity.name.exception | #660000 | — |
| entity.name.section | — | |
| constant.numeric, constant.character, constant | #AB6526 | — |
| constant.character.escape | #777777 | — |
| string.regexp | #4B83CD | — |
| constant.other.symbol | #AB6526 | — |
| punctuation | #777777 | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #AAAAAA | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #91B3E0 | — |
| entity.name.tag | #4B83CD | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #91B3E0 | italic |
| constant.character.entity, punctuation.definition.entity | #AB6526 | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #7A3E9D | — |
| meta.property-name, support.type.property-name | #AB6526 | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #448C27 | — |
| keyword.other.important | — | |
| markup.changed | #000000 | — |
| markup.deleted | #000000 | — |
| markup.italic | — | italic |
| markup.error | #660000 | — |
| markup.inserted | #000000 | — |
| meta.link | #4B83CD | — |
| markup.output, markup.raw | #777777 | — |
| markup.prompt | #777777 | — |
| markup.heading | #AA3731 | — |
| markup.bold | — | bold |
| markup.traceback | #660000 | — |
| markup.underline | — | underline |
| markup.quote | #7A3E9D | — |
| markup.list | #4B83CD | — |
| markup.bold, markup.italic | #448C27 | — |
| markup.inline.raw | #AB6526 | |
| meta.diff.range, meta.diff.index, meta.separator | #434343 | — |
| meta.diff.header.from-file | #434343 | — |
| meta.diff.header.to-file | #434343 | — |
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown, variable.legacy.builtin.python | #000000 | — |
| emphasis | — | |
| strong | — | |
| meta.diff.header | #000080 | — |
| constant.language | #0000FF | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #098658 | — |
| constant.regexp | #811F3F | — |
| entity.name.tag | #800000 | — |
| entity.name.selector | #800000 | — |
| entity.other.attribute-name | #E50000 | — |
| entity.other.attribute-name.class.css, source.css entity.other.attribute-name.class, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.parent.less, source.css entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #800000 | — |
| markup.underline | — | underline |
| markup.bold | #000080 | bold |
| markup.heading | #800000 | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #098658 | — |
| markup.deleted | #A31515 | — |
| markup.changed | #0451A5 | — |
| punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown | #0451A5 | — |
| markup.inline.raw | #800000 | — |
| punctuation.definition.tag | #800000 | — |
| meta.preprocessor, entity.name.function.preprocessor | #0000FF | — |
| meta.preprocessor.string | #A31515 | — |
| meta.preprocessor.numeric | #098658 | — |
| meta.structure.dictionary.key.python | #0451A5 | — |
| storage | #0000FF | — |
| storage.type | #0000FF | — |
| storage.modifier, keyword.operator.noexcept | #0000FF | — |
| meta.embedded.assembly | #A31515 | — |
| string.comment.buffered.block.pug, string.quoted.pug, string.interpolated.pug, string.unquoted.plain.in.yaml, string.unquoted.plain.out.yaml, string.unquoted.block.yaml, string.quoted.single.yaml, string.quoted.double.xml, string.quoted.single.xml, string.unquoted.cdata.xml, string.quoted.double.html, string.quoted.single.html, string.unquoted.html, string.quoted.single.handlebars, string.quoted.double.handlebars | #0000FF | — |
| string.regexp | #811F3F | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #0000FF | — |
| meta.template.expression | #000000 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #0451A5 | — |
| support.type.vendored.property-name, support.type.property-name, source.css variable, source.coffee.embedded | #E50000 | — |
| support.type.property-name.json | #0451A5 | — |
| keyword | #0000FF | — |
| keyword.control | #0000FF | — |
| keyword.operator | #000000 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #0000FF | — |
| keyword.other.unit | #098658 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #800000 | — |
| support.function.git-rebase | #0451A5 | — |
| constant.sha.git-rebase | #098658 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #000000 | — |
| variable.language | #0000FF | — |
| variable.language.powershell | #93083f | — |
| source.powershell | #4c4e50 | — |
| support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #795E26 | — |
| support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, 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 | #267F99 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #267F99 | — |
| keyword.control, source.cpp keyword.operator.new, source.cpp keyword.operator.delete, keyword.other.using, keyword.other.directive.using, keyword.other.operator, entity.name.operator | #AF00DB | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable, constant.other.placeholder | #001080 | — |
| variable.other.constant.js | #154cc1 | — |
| variable.other.constant, variable.other.enummember | #0070C1 | — |
| meta.object-literal.key | #001080 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #0451A5 | — |
| 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 | #D16969 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #811F3F | — |
| keyword.operator.quantifier.regexp | #000000 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #EE0000 | — |
| constant.character, constant.other.option | #0000FF | — |
| constant.character.escape | #EE0000 | — |
| entity.name.label | #000000 | — |
| constant.character.escape.powershell | #91254B | — |
| punctuation.definition.subexpression.powershell, keyword.other.substatement.powershell | #E3288F | — |
| support.type.object.module.js | #8b3cc7 | — |
| entity.name.type.instance.jsdoc | #257F99 | |
| punctuation.definition.variable.powershell | #D82688 | — |
| constant.character.escape.json.comments | #94979e | — |
| variable.other.readwrite.powershell, support.variable.automatic.powershell, punctuation.definition.subexpression.powershell | #D82688 | — |
| support.variable.automatic, support.variable.drive | #C92880 | — |
| entity.name.function.powershell, meta.function.powershell | #3D4346 | — |
| constant.numeric.integer.powershell | #3D4346 | — |
| constant.numeric.integer.powershell, meta.function.powershell | #3D4346 | — |
| storage.type.powershell, storage.modifier.powershell | #2342ce | — |
| keyword.other.powershell, support.function.powershell, keyword.control.powershell, meta.group.simple.subexpression.powershell | #304CC9 | — |
| variable.parameter.attribute.powershell | #2D2E33 | — |
| meta.scriptblock.powershell | #333333 | — |
| keyword.control.using.powershell, keyword.other.powershell | #00009A | — |
| variable.parameter.powershell | #204BD6 | — |
| constant.numeric.integer.powershell | #9836F4 | — |
| support.function.attribute.powershell | #2F4AC4 | — |
| keyword.operator.comparison.powershell, keyword.operator.logical.powershell, keyword.operator.unary.powershell, keyword.operator.string-format.powershell | #88939E | — |
| keyword.operator.other.powershell | #A1AAB2 | — |
| constant.language.powershell | #6e4d5f | — |
| storage.modifier.scope.powershell | #B96E97 | — |
| keyword.operator.documentation.powershell | #62666A | — |
| variable.other.member.powershell | #484B4E | — |
| punctuation.section.embedded.substatement.begin.powershell, punctuation.section.embedded.substatement.end.powershell, punctuation.definition.substatement.powershell, punctuation.section.group.begin.powershell, punctuation.section.group.end.powershell, keyword.other.hashtable.begin.powershell, keyword.other.array.begin.powershell | #46494D | — |
| string.json, string.json.comments, support.type.property-name.json, support.type.property-name.json.comments, meta.structure.dictionary.json, meta.structure.dictionary.value.json, source.json, source.json meta.structure.dictionary.json > string.quoted.json, source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string, support.type.property-name.json punctuation | #305ABA | — |
| support.type.property-name.json.comments.snippets | #00008B | — |
| string.quoted.double.json.comments.snippets | #287F7B | |
| constant.character.escape.json.comments.snippets | #8B0000 | — |
| custom.variable.other.normal.numeric.json.comments.snippets, custom.punctuation.section.insertion.dollar.simple.json.comments.snippets, custom.punctuation.section.insertion.dollar.brackets.json.comments.snippets, custom.punctuation.section.insertion.bracket.json.comments.snippets | #A3A9AE | — |
| string.quoted.double.json, meta.structure.array.json, meta.structure.dictionary.value.json, meta.structure.dictionary.json | #45474C | — |
| punctuation.support.type.property-name.begin.json.comments, punctuation.support.type.property-name.end.json.comments | #305ABA | — |
| punctuation.definition.string.end.json.comments, punctuation.separator.dictionary.pair.json.comments, punctuation.definition.string.begin.json.comments, string.quoted.double.json.comments | #5A5C63 | — |
| 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 | #3E8D89 | — |
| keyword.operator.arrow.cs | #848484 | — |
| source.json meta.structure.dictionary.json > constant.language.json, source.json meta.structure.array.json > constant.language.json | #252729 | — |
| entity.name.function.cs | #cb4a8c | — |
| variable.other.object.cs | #1d4f84 | — |
| entity.name.variable.property.cs | #9946f3 | |
| punctuation.separator.question-mark.cs | #B0B1BC | |
| storage.type.accessor.get.cs, storage.type.accessor.set.cs, keyword.type.string.cs, entity.name.type.cs | #323EBE | |
| storage.type.class.cs, entity.name.type.class.cs | #323EBE | |
| entity.name.type.namespace.cs | #0c7895 | |
| storage.type.namespace.cs | #5361FA | — |
| keyword.control.import.python, keyword.control.flow.python | #2131DA | |
| storage.type.function.python, meta.function-call.generic.python | #2131DA | |
| variable.parameter.function.language.python, meta.function.parameters.python, meta.function.python | #727A88 | |
| variable.parameter.function-call.python, meta.function-call.arguments.python, meta.function-call.python, meta.member.access.python | #41454B | |
| string.quoted.docstring.multi.python | #AAB1BD | |
| storage.type.function.lambda.python, meta.lambda-function.python | #9B3CF4 | |
| storage.type.string.python | #5B616A | |
| constant.character.format.placeholder.other.python | #7D848D | |
| support.function.builtin.python | #5C75AC | |
| entity.name.function.python | #1345B0 | |
| punctuation.definition.string.begin.python, punctuation.definition.string.end.python, string.quoted.docstring.multi.python | #9DA5B6 | |
| string.quoted.multi.python | #707F91 | |
| storage.type.function.python | #697F9A | |
| text.xml | #6D717B | |
| entity.other.attribute-name.xml, meta.tag.preprocessor.xml | #1E48C6 | |
| punctuation.separator.namespace.xml | #720C66 | |
| entity.other.attribute-name.namespace.xml | #CA0EB4 | |
| entity.other.attribute-name.localname.xml | #8866A1 | |
| entity.name.tag.namespace.xml | #1333D2 | |
| entity.name.tag.localname.xml, meta.tag.xml | #6810B0 | |
| string.quoted.double.xml | #363E53 | |
| meta.var.expr.js, meta.block.js, meta.function.js, storage.modifier.async.js | #2434C5 | |
| keyword.control.import.tsx | #325ED6 | |
| punctuation.definition.string.begin.js, punctuation.definition.string.end.js | #747B85 | |
| string.unquoted.js | #3E8D89 | |
| punctuation.definition.block.js, punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.end.js | #39393C | |
| constant.language.json.comments | #820096 | — |
| entity.name.function.js, variable.language.this.js | #8E7748 | |
| keyword.operator.or.regexp, constant.character.escape.backslash.regexp | #788BB3 | |
| support.function.mutator.js | #62887D | |
| storage.type.function.js | #000000 | — |
| constant.numeric.decimal.js | #9d22e9 | — |
| meta.brace.round.js | #000000 | — |
| variable.language.prototype.js, meta.prototype.access.js | #1144D0 | |
| keyword.control.loop.js, constant.language.undefined.js | #3b43d3 | — |
| storage.type.js | #3b75d3 | |
| keyword.control.module.js | #616673 | |
| entity.name.class.js, meta.prototype.access.js | #698293 | |
| entity.other.attribute-name.jsx, JSXAttrs | #5A5C6A | |
| string.quoted.module.js, string.quoted.module.jsx | #7C25CF | |
| variable.other.readwrite.js | #515E70 | |
| storage.type.class.jsdoc | #2C323A | |
| keyword.control.conditional.js, keyword.control.flow.js, keyword.operator.new.js, storage.type.class.js, keyword.operator.expression.typeof.js | #0c4fd4 | |
| entity.name.type.instance.js, entity.name.type.class.js | #0270AC | |
| constant.language.boolean.false.js, constant.language.boolean.true.js, constant.language.null.js | #9E4ECC | |
| storage.type.function.arrow.js, keyword.operator.ternary.js, keyword.operator.comparison.js, keyword.operator.logical.js, keyword.operator.relational.js | #7d848b | |
| variable.other.readwrite.tsx | #953be3 | — |
| entity.name.tag.open.jsx, punctuation.definition.tag.jsx | #78849A | |
| punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx | #393D45 | |
| storage.type.function.arrow.tsx, storage.type.function.arrow.ts | #818994 | |
| entity.name.tag.open.jsx, entity.name.tag.close.jsx | #888B9D | |
| variable.other.property.js | #001080 | |
| entity.name.function.tsx, entity.name.function.ts | #5656CF | |
| entity.other.attribute-name.tsx | #B85BA1 | |
| keyword.operator.logical.ts | #7C7F86 | |
| keyword.control.import.tsx, keyword.control.flow.ts, keyword.control.as.ts, keyword.control.conditional.ts | #1144D0 | |
| keyword.control.from.tsx | #8D94A2 | |
| string.quoted.single.tsx, string.quoted.double.tsx, punctuation.definition.string.end.tsx | #0A8E88 | |
| variable.other.readwrite.alias.tsx | #374158 | |
| storage.type.function.tsx | #0F47B8 | |
| storage.type.tsx, storage.type.ts | #616673 | |
| keyword.operator.assignment.tsx | #404348 | |
| keyword.control.flow.tsx, keyword.control.flow.ts | #2543BC | |
| entity.name.tag.tsx, punctuation.definition.tag.end.tsx, punctuation.definition.tag.begin.tsx | #8c909b | |
| meta.jsx.children.tsx | #3b3b3b | — |
| entity.other.attribute-name.tsx | #36415f | |
| variable.parameter.tsx | #D7447A | |
| keyword.operator.arithmetic.tsx | #393D45 | |
| keyword.control.export.tsx, keyword.control.default.tsx | #DE74AD | |
| keyword.operator.logical.tsx | #858B93 | |
| keyword.control.import.ts | #325ED6 | |
| keyword.control.from.ts | #AE42ED | |
| keyword.control.export.ts | #575A64 | |
| keyword.control.default.ts, keyword.operator.assignment.ts, keyword.operator.type.annotation.ts, keyword.operator.optional.ts | #958AB8 | |
| storage.modifier.ts, storage.type.function.ts, keyword.control.export.ts, storage.type.type.ts | #3C42DF | |
| variable.object.property.ts | #1a1b1e | — |
| storage.type.interface.ts | #7f4cdd | |
| storage.type.namespace.ts | #9B39EB | |
| string.quoted.double.css | #8E9BAC | |
| variable.css | #326DC7 | |
| support.constant.property-value.css, support.constant.font-name.css | #545A61 | |
| constant.other.color.rgb-value.hex.css | #3C4249 | |
| constant.numeric.css | #38404C | |
| keyword.other.unit.rem.css | #737E8F | |
| variable.argument.css | #326DC7 | |
| constant.numeric.css | #29303b | — |
| entity.other.attribute-name.pseudo-class.css, punctuation.definition.entity.css | #787c7f | — |
| variable.parameter.keyframe-list.css | #c7434a | — |
| meta.property-value.css | #a48619 | — |
| support.type.property-name.css | #cf4a69 | |
| support.type.vendored.property-name.css | #07759a | |
| entity.name.tag.css, entity.name.tag.custom.css, entity.other.attribute-name.id.css, entity.other.attribute-name.class.css, support.function.misc.css | #1C1F23 | |
| keyword.other.important.css | #69717D | |
| entity.other.attribute-name.css | #9556AE | |
| constant.character.escape.codepoint.css | #9466CF | |
| variable.parameter.url.css | #92A0B0 | |
| meta.brace.square.js | #000000 | — |
| keyword.other.unit.px.css, keyword.other.unit.vh.css, keyword.other.unit.em.css, keyword.other.unit.s.css | #798087 | |
| keyword.control.at-rule.media.css | #7D8999 | |
| entity.name.section.markdown, heading.1.markdown, heading.2.markdown, heading.3.markdown, heading.4.markdown, heading.5.markdown, markup.heading.markdown | #000000 | |
| markup.inline.raw.string.markdown | #6E7179 | |
| string.unquoted.plain.out.yaml | #497C98 | |
| entity.name.tag.yaml | #6F7A81 | |
| string.quoted.double.html, string.quoted.single.html | #90a7ca | |
| entity.name.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #797c83 | |
| entity.other.attribute-name.html | #84a2a7 | |
| ref.matchtext | #000000 | — |
| token.info-token | #316BCD | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #CD3131 | — |
| token.debug-token | #800080 | — |
| constant.character.entity | #e16479 | — |
| textLink.foreground | #596b8d | — |
| entity.name.tag.namespace.xml | #6a6d76 | — |
| text.xml | #141921 | — |
| punctuation.definition.tag.xml | #94969d | — |
| entity.name.tag.localname.xml | #949ba4 | — |
| punctuation.separator.namespace.xml | #949ba4 | — |
| entity.other.attribute-name.namespace.xml | #8c4cb7 | — |
| entity.other.attribute-name.xml | #8c4cb7 | — |
| entity.other.attribute-name.localname.xml | #BF4AA3 | — |
| punctuation.definition.string.begin.xml | #61636d | — |
| punctuation.definition.string.end.xml | #61636d | — |
| constant.character.entity.xml | #a761f8 | — |
| meta.tag.xml, string.quoted.double.xml | #7348C1 | — |
| entity.name.tag.xml | #484c5f | — |
| punctuation.definition.entity.html | #e16479 | — |
| entity.other.attribute-name.html | #7348C1 | — |
| meta.attribute.class.html | #3059a6 | — |
| meta.attribute.id.html | #3059a6 | — |
| string.quoted.double.html | #3059a6 | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #5a6570 | — |
| entity.name.tag.html | #a2a6af | italic |
| text.html.derivative | #1e1f21 | — |
| storage.type.function.python | #3636E4 | — |
| entity.name.function.python | #0D4993 | — |
| meta.function-call.python | #7389D5 | — |
| meta.function-call.generic.python | #7389D5 | — |
| constant.language.python | #403ea3 | — |
| support.function.magic.python | #8498b1 | — |
| storage.type.class.python | #3636E4 | — |
| entity.name.type.class.python | #0D4993 | — |
| string.quoted.docstring.raw.multi.python | #939CAE | — |
| variable.language.special.self.python | #07888a | italic |
| storage.type.function.lambda.python | #aa784d | — |
| punctuation.definition.directive.cpp | #3f4b5f | — |
| keyword.control.directive.conditional.ifdef.cpp, keyword.control.directive.endif.cpp | #7d90ae | — |
| variable.other.property.static.cpp | #273acf | — |
| keyword.control.directive.include.cpp, keyword.control.directive.define.cpp | #1b35fb | — |
| punctuation.definition.directive.cpp | #26429d | — |
| entity.other.attribute-name.pragma.preprocessor.cpp | #505b68 | — |
| meta.preprocessor.pragma.cpp | #505b68 | — |
| string.quoted.double.include.cpp | #87949f | — |
| entity.name.function.preprocessor.cpp | #304dac | — |
| variable.other.global.cpp | #596489 | — |
| string.quoted.double.cpp, string.quoted.single.cpp | #129684 | — |
| constant.character.escape.cpp | #8326df | — |
| entity.name.function.member.cpp | #11839a | — |
| keyword.control.if.cpp, keyword.control.else.cpp, keyword.control.break.cpp, keyword.control.return.cpp, keyword.control.continue.cpp | #1b35fb | — |
| storage.modifier.pointer.cpp | #047079 | — |
| entity.name.type.cpp | #7f31e6 | — |
| variable.other.local.cpp, variable.other.property.cpp | #205093 | — |
| comment.line.double-slash.cpp | #9ca4b1 | — |
| constant.numeric.decimal.cpp | #8746ff | — |
| keyword.operator.assignment.cpp, keyword.operator.comparison.cpp, punctuation.separator.pointer-access.cpp, keyword.operator.bitwise.cpp, keyword.operator.arithmetic.cpp, keyword.operator.ternary.cpp, keyword.operator.logical.cpp, punctuation.separator.delimiter.comma.cpp | #737a8b | — |
| punctuation.definition.string.end.cpp | #505e6f | — |
| keyword.control.directive.pragma.cpp | #0b488d | — |
| string.quoted.double.powershell, string.quoted.single.powershell, punctuation.definition.string.end.powershell, punctuation.definition.string.begin.powershell | #7c8591 | — |
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}!`;
}