Neonite Theme
Publisher: Mohamed ElsherbinyThemes in package: 1
A vibrant and modern dark theme for VS Code with neon-inspired syntax highlighting and custom icons.
A vibrant and modern dark theme for VS Code with neon-inspired syntax highlighting and custom icons.
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, punctuation.definition.comment | #4A4F5B | italic |
| comment.block.documentation, comment.block.documentation entity.name.type | #4A4F5BCC | italic |
| keyword, keyword.control | #FF6E6E | bold |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof | #FF6E6E | — |
| storage.type, storage.modifier | #6CF3FF | italic |
| string, markup.inline.raw | #FFE68A | — |
| string.regexp | #FFE68A | bold |
| constant.character.escape | #FF9F43 | — |
| constant.numeric, constant.language, constant.character, constant.other | #B28CFF | — |
| entity.name.function, support.function | #76FF8F | bold |
| meta.function-call, variable.function | #76FF8F | — |
| meta.method-call, meta.method | #9AFFA9 | — |
| meta.function.parameters, variable.parameter | #FF9F43 | italic |
| variable, support.variable | #F0F4FC | — |
| variable.other.property, variable.object.property, support.variable.property | #FF92DF | — |
| variable.other.constant, variable.language.this, variable.language.super | #FF6E6E | bold |
| support.constant | #B28CFF | — |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution | #6CF3FF | bold |
| entity.name.type.interface, entity.name.type.protocol | #6CF3FF | bold italic |
| entity.name.type.enum | #6CF3FF | bold |
| entity.other.inherited-class, entity.name.type.parameter | #A4FFFF | italic |
| support.class, support.type | #6CF3FF | — |
| keyword.operator | #9D6CFF | bold |
| keyword.operator.logical, keyword.operator.comparison | #B28CFF | bold |
| keyword.operator.assignment, keyword.operator.arithmetic | #6CF3FF | — |
| keyword.operator.ternary, punctuation.definition.template-expression | #FF9F43 | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.js, entity.name.tag.jsx, entity.name.tag.tsx | #FF92DF | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #76FF8F | — |
| meta.tag.attributes, meta.tag.attributes.js, meta.tag.attributes.jsx, meta.tag.attributes.tsx | #FF9F43 | — |
| punctuation.definition.string, punctuation.definition.string.begin, punctuation.definition.string.end | #FFE68A | — |
| punctuation.definition.parameters, punctuation.definition.parameters.begin, punctuation.definition.parameters.end, punctuation.section.function, punctuation.section.method, punctuation.section.class, punctuation.section.block | #F0F4FCAA | — |
| meta.brace, punctuation.section, punctuation.separator, punctuation.terminator | #F0F4FCAA | — |
| punctuation.accessor | #9D6CFF | — |
| variable.other.readwrite.alias | #F0F4FC | — |
| meta.import, meta.export | #FF6E6E | — |
| keyword.control.flow, keyword.control.conditional, keyword.control.loop | #FF6E6E | bold |
| keyword.control.flow.async, storage.modifier.async | #B28CFF | italic bold |
| meta.object-literal.key, meta.object.member | #F0F4FCCC | — |
| support.type.primitive, support.type.builtin | #6CF3FF | italic |
| support.type.promise | #6CF3FF | bold italic |
| entity.name.type.module | #FFE68A | — |
| entity.other.attribute-name.class.css | #76FF8F | — |
| entity.other.attribute-name.id.css | #FF6E6E | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #FF9F43 | italic |
| support.type.property-name.css, support.type.vendor-prefix.css | #6CF3FF | — |
| support.constant.property-value.css | #FFE68A | — |
| keyword.control.at-rule.import.css, keyword.control.at-rule.media.css, keyword.control.at-rule.keyframes.css | #FF6E6E | bold |
| punctuation.definition.entity.css | #9D6CFF | — |
| markup.heading, entity.name.section | #FF6E6E | bold |
| markup.bold | #FF9F43 | bold |
| markup.italic | #B28CFF | italic |
| markup.underline | #76FF8F | underline |
| markup.quote | #6CF3FF | italic |
| markup.fenced_code, markup.inline.raw.string | #FFE68A | — |
| markup.link | #9D6CFF | — |
| markup.list.bullet, markup.list.number | #FF92DF | — |
| support.type.property-name.json | #6CF3FF | — |
| punctuation.support.type.property-name.begin.json, p punctuation.support.type.property-name.end.json | #6CF3FF | — |
| entity.name.tag.yaml | #6CF3FF | — |
| string.unquoted.plain.out.yaml | #F0F4FC | — |
| support.class.component.jsx, support.class.component.tsx | #FF92DF | bold |
| variable.other.readwrite.jsx, variable.other.readwrite.tsx, variable.other.object.jsx, variable.other.object.tsx | #F0F4FC | — |
| meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #F0F4FC | — |
| meta.embedded.expression.jsx, meta.embedded.expression.tsx | #F0F4FC | — |
| keyword.operation.graphql | #FF6E6E | bold |
| entity.name.fragment.graphql, entity.name.query.graphql, entity.name.mutation.graphql | #76FF8F | bold |
| variable.graphql | #FF9F43 | italic |
| keyword.other.special-method.dockerfile | #FF6E6E | bold |
| string.quoted.double.dockerfile, string.quoted.single.dockerfile | #FFE68A | — |
| markup.heading.git-commit | #FF6E6E | bold |
| meta.scope.message.git-commit | #F0F4FC | — |
| meta.type.annotation | #6CF3FF | — |
| entity.name.type.alias, entity.name.type.interface | #6CF3FF | bold italic |
| meta.type.annotation meta.type.parameters, meta.type.parameters entity.name.type | #A4FFFF | italic |
| meta.type.annotation meta.type.function, meta.type.function entity.name.type | #76FF8F | italic |
| keyword.operator.type.annotation, keyword.operator.optional, keyword.operator.definiteassignment | #9D6CFF | — |
| meta.type.annotation meta.object | #F0F4FC | — |
| entity.name.tag.svelte | #FF92DF | bold |
| meta.svelte-block entity.name.function | #76FF8F | bold |
| meta.svelte-directive.on punctuation.definition.keyword | #FF6E6E | — |
| entity.name.tag.template.html.vue, entity.name.tag.script.html.vue, entity.name.tag.style.html.vue | #FF6E6E | bold |
| source.vue entity.name.tag.custom | #FF92DF | — |
| keyword.control.flow.python | #FF6E6E | bold |
| meta.function-call.python | #76FF8F | — |
| support.function.magic.python | #B28CFF | italic bold |
| meta.function.decorator.python, entity.name.function.decorator.python | #9D6CFF | italic |
| meta.function.parameters.python | #FF9F43 | italic |
| support.function.builtin.python | #76FF8F | italic |
| entity.name.type.rust | #6CF3FF | bold |
| keyword.control.rust | #FF6E6E | bold |
| storage.modifier.lifetime.rust | #FF9F43 | italic |
| meta.attribute.rust | #9D6CFF | italic |
| keyword.function.go | #FF6E6E | bold |
| entity.name.function.go | #76FF8F | bold |
| entity.name.type.go | #6CF3FF | bold |
| storage.type.numeric.go | #B28CFF | — |
| entity.name.function.cpp, entity.name.function.c | #76FF8F | bold |
| entity.name.type.cpp, entity.name.type.c | #6CF3FF | bold |
| storage.type.built-in.primitive.cpp, storage.type.built-in.primitive.c | #6CF3FF | italic |
| entity.name.namespace.cpp | #FFE68A | — |
| keyword.control.java | #FF6E6E | bold |
| entity.name.type.class.java | #6CF3FF | bold |
| storage.modifier.java | #6CF3FF | italic |
| storage.type.primitive.java | #6CF3FF | italic |
| entity.name.function.java | #76FF8F | bold |
| entity.name.function.php | #76FF8F | bold |
| entity.name.type.class.php | #6CF3FF | bold |
| keyword.control.php | #FF6E6E | bold |
| variable.other.php | #F0F4FC | — |
| keyword.control.shell | #FF6E6E | bold |
| meta.function.shell | #76FF8F | — |
| variable.other.special.shell | #B28CFF | — |
| string.quoted.double.shell, string.quoted.single.shell | #FFE68A | — |
| keyword.other.sql | #FF6E6E | bold |
| entity.name.function.sql | #76FF8F | bold |
| support.function.aggregate.sql | #B28CFF | — |
| entity.name.table.sql, entity.name.table.toml | #6CF3FF | — |
| support.type.rxjs, support.class.rxjs | #FF6E6E | italic |
| support.variable.rxjs | #9D6CFF | — |
| meta.method-call.rxjs, meta.function-call.rxjs | #76FF8F | — |
| support.type.tensor, support.class.tensor | #FF9F43 | — |
| entity.name.type.class.nn-layer | #6CF3FF | bold |
| support.function.tensorflow, support.function.torch, support.function.keras | #76FF8F | italic |
| variable.other.readwrite.tensorflow, variable.other.readwrite.torch | #9D6CFF | — |
| keyword.other.solidity | #76FF8F | — |
| storage.type.solidity | #6CF3FF | italic |
| entity.name.function.solidity | #76FF8F | bold |
| support.type.web3 | #9D6CFF | — |
| entity.name.tag.dockerfile | #6CF3FF | — |
| keyword.other.special-method.dockerfile | #FF6E6E | bold |
| support.function.cloudformation, support.type.property-name.cloudformation | #FF9F43 | — |
| entity.name.type.aws, entity.name.function.terraform | #6CF3FF | — |
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}!`;
}