Neon Dreams Theme
Publisher: Cursor ThemesThemes in package: 3
Beautiful developer themes with soft neon colors, pastel and neobrutalist variants - optimized for all programming languages
Beautiful developer themes with soft neon colors, pastel and neobrutalist variants - optimized for all programming languages
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, comment.line, comment.block | #8a6a8a | italic |
| comment.line.double-slash keyword, comment.block keyword | #aa8aaa | italic bold |
| string, string.quoted.single, string.quoted.double, string.quoted.triple | #00ff99 | — |
| string.template, string.quoted.template | #33ffbb | — |
| meta.template.expression, string.template meta.embedded | #dd77dd | — |
| string.regexp | #dd99bb | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.binary, constant.numeric.octal | #ff55ff | — |
| constant.language.boolean | #ff77ff | bold |
| constant.language.null, constant.language.undefined, constant.language.none | #dd88cc | italic |
| keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop | #ff77dd | bold |
| storage.type, storage.modifier, keyword.other.unit | #ff77dd | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #ff55ff | italic |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical | #88ccdd | — |
| keyword.operator.assignment | #99ddee | bold |
| entity.name.function, meta.function-call entity.name.function | #99ddff | bold |
| meta.function-call, variable.function | #aaeeff | — |
| entity.name.function.member, meta.method-call entity.name.function | #88ccee | — |
| support.function, support.function.builtin | #55ffbb | — |
| meta.definition.variable variable.other, variable.other.readwrite | #e8d8e8 | — |
| variable.other | #d8c8d8 | — |
| variable.other.constant, constant.other | #99ddee | bold |
| variable.parameter, meta.function.parameters variable | #ffaa44 | italic |
| meta.object-binding-pattern-variable variable.parameter, meta.array-binding-pattern-variable variable.parameter | #ffcc66 | — |
| variable.other.property, support.variable.property, meta.object-literal.key | #f5f5f5 | — |
| variable.other.object.property | #e8e8e8 | — |
| entity.name.class, entity.name.type.class | #ff4466 | bold |
| entity.name.interface, entity.name.type.interface | #77ddcc | italic |
| support.type, entity.name.type, meta.type.annotation | #88ccdd | — |
| entity.name.type.parameter | #99ddee | italic |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #dd77bb | — |
| entity.other.attribute-name | #88ccdd | — |
| support.class.component, entity.name.tag.js, entity.name.tag.tsx | #cc77ff | bold |
| entity.other.attribute-name.js, entity.other.attribute-name.tsx | #99ddee | — |
| support.type.property-name.css | #88ccdd | — |
| support.constant.property-value.css, meta.property-value.css | #00ff88 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #dd77bb | — |
| variable.language.self.python | #dd77dd | italic |
| meta.decorator.python, entity.name.function.decorator.python | #ddaa77 | bold |
| support.function.magic.python | #ee88ee | — |
| support.type.property-name.json, meta.structure.dictionary.key.json string.quoted.double.json | #88ccdd | — |
| meta.structure.dictionary.value.json | #00ff88 | — |
| markup.heading, entity.name.section.markdown | #dd77bb | bold |
| markup.bold | #88ccdd | bold |
| markup.italic | #00ff88 | italic |
| markup.inline.raw, markup.fenced_code | #ff44ff | — |
| markup.underline.link | #99ddaa | — |
| markup.quote | #aa8aaa | italic |
| punctuation.separator, punctuation.terminator | #aa8aaa | — |
| punctuation.section.brackets, punctuation.section.parens, punctuation.section.braces | #99ddee | — |
| variable.language.this | #dd77dd | italic |
| variable.language.super | #ee88ee | italic |
| keyword.control.flow.async, keyword.control.flow.await | #dd77bb | italic bold |
| invalid, invalid.illegal | #dd77aa | underline |
| invalid.deprecated | #ddaa77 | strikethrough |
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}!`;
}