NeonVSCode
Publisher: kelvineloveThemes in package: 1
True OLED black (#000000) neon theme with vibrant syntax from the original Brackets Neoncode palette by @kelvinelove. Optional neon glow via command palette.
True OLED black (#000000) neon theme with vibrant syntax from the original Brackets Neoncode palette by @kelvinelove. Optional neon glow via command palette.
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 | #ffffff | — |
| string, constant.other.symbol, constant.other.key | #d0a74c | — |
| string.regexp, string.other, constant.character.escape, string.interpolated, punctuation.definition.template-expression | #fd55d7 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python, keyword.operator.word, storage, storage.type, storage.modifier | #f6acff | — |
| constant.numeric, constant.language, constant.character, constant.other, support.constant | #f6acff | — |
| entity.name.tag, entity.name.function, entity.name.type, entity.other.inherited-class, meta.tag, meta.preprocessor, entity.name.section, entity.name.selector, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, support.type, support.class | #4848ff | — |
| variable, variable.other.readwrite, variable.parameter, support.variable | #ffffa9 | — |
| variable.other.object, variable.other.object.property, variable.other.member, variable.language, support.type.property-name | #9cddfa | — |
| variable.other.property, support.type.property-name.css, entity.other.attribute-name, meta.property-name.css, meta.property-value.css | #6efcaa | — |
| variable.other.global, variable.other.constant, support.variable.dom, support.function, support.function.builtin | #ff3e3e | — |
| keyword.operator, punctuation, punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.array, punctuation.definition.string, punctuation.section | #fa7fd9 | — |
| string.quoted.double.html, string.quoted.single.html, string.quoted.double.xml, string.quoted.single.xml | #d9b970 | — |
| invalid, invalid.illegal | #ff3e3e | — |
| markup.heading, entity.name.section.markdown | #4848ff | bold |
| markup.bold | #f6acff | bold |
| markup.italic | #9cddfa | italic |
| markup.underline.link, string.other.link | #6efcaa | — |
| markup.inline.raw, markup.fenced_code.block | #d0a74c | — |
| markup.quote | #ffffff | italic |
| support.type.property-name.json | #6efcaa | — |
| constant.numeric.css, keyword.other.unit.css | #f6acff | — |
| entity.name.tag.yaml | #4848ff | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #fd55d7 | — |
| comment, punctuation.definition.comment | #ffffff | — |
| string, constant.other.symbol, constant.other.key | #d0a74c | — |
| string.regexp, string.other, constant.character.escape, string.interpolated, punctuation.definition.template-expression | #fd55d7 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python, keyword.operator.word, storage, storage.type, storage.modifier | #f6acff | — |
| constant.numeric, constant.language, constant.character, constant.other, support.constant | #f6acff | — |
| entity.name.tag, entity.name.function, entity.name.type, entity.other.inherited-class, meta.tag, meta.preprocessor, entity.name.section, entity.name.selector, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, support.type, support.class | #4848ff | — |
| variable, variable.other.readwrite, variable.parameter, support.variable | #ffffa9 | — |
| variable.other.object, variable.other.object.property, variable.other.member, variable.language, support.type.property-name | #9cddfa | — |
| variable.other.property, support.type.property-name.css, entity.other.attribute-name, meta.property-name.css, meta.property-value.css | #6efcaa | — |
| variable.other.global, variable.other.constant, support.variable.dom, support.function, support.function.builtin | #ff3e3e | — |
| keyword.operator, punctuation, punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.array, punctuation.definition.string, punctuation.section | #fa7fd9 | — |
| string.quoted.double.html, string.quoted.single.html, string.quoted.double.xml, string.quoted.single.xml | #d9b970 | — |
| invalid, invalid.illegal | #ff3e3e | — |
| markup.heading, entity.name.section.markdown | #4848ff | bold |
| markup.bold | #f6acff | bold |
| markup.italic | #9cddfa | italic |
| markup.underline.link, string.other.link | #6efcaa | — |
| markup.inline.raw, markup.fenced_code.block | #d0a74c | — |
| markup.quote | #ffffff | italic |
| support.type.property-name.json | #6efcaa | — |
| constant.numeric.css, keyword.other.unit.css | #f6acff | — |
| entity.name.tag.yaml | #4848ff | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #fd55d7 | — |
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}!`;
}