NeonTheme
Publisher: joaoKuchnirrThemes in package: 3
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown | #F8F8F2 | — |
| comment | #88846F | — |
| string, source.ini, source.dockerfile | #009d71 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #F92672 | — |
| meta.template.expression | #F8F8F2 | — |
| constant.numeric.decimal.js | #fa5f49 | — |
| constant.numeric, keyword.operator.relational.js, keyword.operator.ternary.js | #AE81FF | — |
| constant.language | #AE81FF | — |
| constant.character, constant.other | #AE81FF | — |
| variable | #F8F8F2 | |
| keyword | #FFFFFF | — |
| storage | #f45572 | — |
| keyword.other.new.php | #f0a2f6 | — |
| meta.property-value.scss | #66D9EF | — |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution | #77dd77 | underline |
| entity.other.inherited-class | #A6E22E | italic underline |
| entity.name.function, meta.at-rule.keyframes.scss, keyword.other.definition.ini | #bc4ed8 | — |
| variable.parameter, variable.other.readwrite.js | #FD971F | — |
| keyword.control.import.js, keyword.control.from.js | #ff85d5 | |
| entity.name.tag, | #F92672 | |
| entity.other.attribute-name, entity.other.attribute-name.html | #3acfaf | — |
| support.function, support.function.var.php | #f7f310 | — |
| support.constant | #b2e2f2 | |
| support.type, support.class | #01D5FF | — |
| support.other.variable | — | |
| invalid | #F44747 | |
| invalid.deprecated | #F44747 | — |
| meta.structure.dictionary.json string.quoted.double.json | #E2E274 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #F92672 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match, keyword.other.phpdoc.php | #AE81FFA0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| markup.quote | #F92672 | — |
| markup.list, meta.paragraph.markdown | #E6DB74 | — |
| markup.bold, markup.italic | #66D9EF | — |
| markup.inline.raw | #FD971F | |
| markup.heading | #A6E22E | — |
| markup.heading.setext | #A6E22E | bold |
| markup.heading.markdown | — | bold |
| markup.quote.markdown | #75715E | — |
| markup.bold.markdown | — | bold |
| string.other.link.title.markdown,string.other.link.description.markdown, meta.object-literal.key | #FF68EBE5 | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #E6DB74 | — |
| markup.italic.markdown | — | — |
| markup.strikethrough | — | strikethrough |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #F8F8F2 | — |
| punctuation.definition.list.begin.markdown | #00FFFFFB | — |
| keyword.operator.key.php | #00FFFFFB | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| variable.language, keyword.control.import.include.php | #FD1F1F | — |
| variable.language.this.php, variable.language.this.js | #c2fa33e3 | — |
| variable.other.php | #f36565 | — |
| keyword.operator.nullable-type.php, keyword.operator.return-value.php, keyword.operator.arithmetic.php, support.variable.property.js, variable.other.assignment.shell | #FF0077 | — |
| keyword.operator.ternary.php | #F5078A | — |
| variable.other.property.php | #d3bcf6 | — |
| variable.other.readwrite.alias.js, keyword.control.default.js, keyword.control.export.js, support.class.builtin.php | #19CCE4 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #FD5151 | — |
| keyword.other.namespace.php, keyword.operator.new.js, keyword.control.at-rule.import.scss, punctuation.separator.key-value.scss, keyword.control.at-rule.import.css, keyword.control.yield.php, meta.embedded, keyword.operator.increment-decrement.php, keyword.control, entity.name.tag.yaml, constant.language.boolean.false.js, keyword.other.use.php | #ff85d5 | — |
| keyword.control.if.php, keyword.control.else.php, keyword.control.elseif.php, keyword.control.loop.js, keyword.control.conditional.js, keyword.control.for.php, keyword.control.switch.js, keyword.control.switch.php, keyword.control.default.php, keyword.control.break.php, keyword.control.case.php, keyword.control.foreach.php | #f74fd0 | — |
| support.class.exception.php | #FF0000E7 | — |
| keyword.operator.expression.delete.js, keyword.operator.expression.in.js | #FD5151E7 | — |
| keyword.control.return.php, keyword.control.flow.js | #FD0000E7 | — |
| keyword.operator.comparison.js, keyword.operator.logical.js, keyword.operator.increment.js, keyword.operator.decrement.js, keyword.operator.arithmetic.js, keyword.operator.logical.php, keyword.operator.comparison.php, keyword.operator.null-coalescing.php, punctuation.accessor.optional.js, keyword.operator.assignment.compound.js, storage.type.js, keyword.other.important.scss, keyword.control.at-rule.media.scss, keyword.operator.logical.scss, keyword.control.operator.css.scss, keyword.control.at-rule.keyframes.scss, keyword.operator.string.php, keyword.other.clone.php | #f064a5 | — |
| keyword.operator.assignment.php | #2AFFD1 | — |
| keyword.operator.assignment.js | #2AFFD1 | — |
| keyword.operator.class.php | #00FF00 | — |
| storage.modifier.async.js | #8cfca4de | — |
| punctuation.separator.key-value.html, meta.tag.block.any.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.accessor.js | #FFFFFF | — |
| punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #CCCCCC | — |
| punctuation.separator.delimiter.php, punctuation.terminator.expression.php | #F51414 | — |
| keyword.control.exception.php, keyword.control.exception.catch.php, keyword.control.trycatch.js | #42ab49 | — |
| variable.other.property.js | #ff9aa1 | — |
| support.other.namespace.php, source.ignore | #C7C5C5C9 | — |
| keyword.other.class.php, keyword.other.unit.px.css, keyword.other.unit.rem.css, keyword.other.unit.s.css, keyword.other.unit.percentage.css, keyword.other.unit.deg.css, keyword.other.unit.em.css | #FD5724F5 | — |
| keyword.operator.type.php, keyword.other.function.use.php, keyword.operator.expression.typeof.js | #F92672 | — |
| keyword.other.type.php | #eb9cff | — |
| variable | #4BCFFA | — |
| text.html.php | #FFFFFFC7 | — |
| text.html.derivative | #fffffffd | — |
| source.sql, keyword.sql, punctuation.separator.key-value.html | #4BCFFA | — |
| keyword.other.DML.sql, keyword.other.DDL.create.II.sql, keyword.other.sql, keyword.other.data-integrity.sql | #F30688 | — |
| variable.other.object.js | #ff5100 | — |
| keyword.other.alias.sql, keyword.other.order.sql, keyword.other.LUW.sql | #F3A006 | — |
| keyword.other.DML.II.sql | #EB06F3 | — |
| storage.modifier.php, storage.modifier.extends.php | #fa34df | — |
| storage.type | #84b6f4 | — |
| storage.type.class.php | #f45572 | bold |
| keyword.other.special-method.dockerfile | #FF0077 | — |
| support.class.php | #84b6f4 | — |
| source.css | #d5ff19de | — |
| keyword.operator, keyword.other.unit.vw.css, keyword.other.unit.vh.css, keyword.other.important.css, keyword.other.unit.fr.css, meta.property-value.css | #e60f8c | — |
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}!`;
}