Nexora Theme
Publisher: NexoraThemes in package: 5
Modern multi-accent VS Code theme.
Modern multi-accent VS Code theme.
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 | #6B7280 | italic |
| string, string.quoted | #A3BE8C | — |
| constant.character.escape | #F0B35A | — |
| constant.numeric | #F0B35A | — |
| constant.language.boolean | #F0B35A | — |
| invalid, invalid.illegal | #FF5C5C | — |
| keyword.operator | #3B82F6 | — |
| punctuation | #8B92A1 | — |
| variable, meta.definition.variable.name | #E6E9EF | — |
| meta.object-literal.key, meta.object.member, variable.object.property | #E6E9EF | — |
| entity.name.tag, entity.name.tag.html | #F97316 | — |
| punctuation.definition.tag.html, punctuation.definition.tag | #EA580C | — |
| entity.other.attribute-name, entity.other.attribute-name.html | #FB923C | — |
| string.quoted.single.html, string.quoted.double.html | #A3BE8C | — |
| entity.name.tag.script.html | #F97316 | italic |
| entity.name.tag.style.html | #F97316 | italic |
| constant.character.entity, constant.character.entity.html | #FB923C | — |
| comment.block.html | #6B7280 | italic |
| entity.name.tag.css | #3B82F6 | — |
| entity.other.attribute-name.class.css | #60A5FA | italic |
| entity.other.attribute-name.id.css | #2563EB | bold |
| entity.other.pseudo-class.css | #60A5FA | — |
| entity.other.pseudo-element.css | #2563EB | — |
| support.type.property-name.css | #2563EB | — |
| support.constant.property-value.css | #60A5FA | — |
| constant.other.color.rgb-value.css, constant.other.color.hex.css | #F0B35A | — |
| keyword.other.unit.css | #60A5FA | — |
| keyword.control.at-rule.css | #3B82F6 | italic |
| vendor.prefix.css | #2563EB | — |
| keyword.control.js, keyword.operator.js, storage.type.js | #F0B35A | — |
| entity.name.function.js, support.function.js, meta.function-call.generic.js | #F5C965 | — |
| meta.method.js, entity.name.function.method.js | #F5C965 | — |
| meta.object-literal.key.js | #D4952D | — |
| variable.other.object.property.js | #D4952D | — |
| meta.definition.variable.js | #F0B35A | italic |
| keyword.control.import.js, keyword.control.export.js | #F0B35A | bold |
| string.template.js, string.template.expression.js | #A3BE8C | — |
| meta.template.expression.js | #D4952D | — |
| entity.name.type.ts, entity.name.type.interface.ts | #00D9FF | — |
| keyword.control.type.ts, storage.type.type.ts | #00D9FF | italic |
| meta.type.parameters.ts, meta.generics.ts | #22E8FF | — |
| meta.interface.ts | #00D9FF | italic |
| meta.interface.body.ts | #00A8CC | — |
| meta.decorator.ts | #00D9FF | italic |
| keyword.control.ts, storage.type.ts | #00D9FF | — |
| entity.name.namespace.ts | #22E8FF | italic |
| entity.name.function.ts | #00A8CC | — |
| entity.name.function.method.ts | #00A8CC | — |
| entity.name.enum.ts | #00D9FF | bold |
| keyword.control.as.ts | #00D9FF | — |
| entity.name.tag.jsx, support.class.component.jsx | #8B5CF6 | bold |
| entity.name.tag.open.jsx, entity.name.tag.close.jsx | #7C3AED | — |
| entity.other.attribute-name.jsx | #A78BFA | — |
| string.attributed-string.jsx, string.jsx | #A3BE8C | — |
| keyword.operator.spread.jsx | #8B5CF6 | — |
| variable.other.object.property.jsx | #7C3AED | — |
| meta.embedded.expression.jsx, meta.jsx.expression.ts | #A78BFA | — |
| support.function.hook.react.jsx, support.function.hook.react.tsx | #8B5CF6 | italic |
| entity.name.type.fc.tsx, support.type.primitive.tsx | #7C3AED | — |
| meta.attribute.style.jsx | #A78BFA | italic |
| keyword.control.python | #22C55E | — |
| entity.name.decorator.python | #16A34A | italic |
| entity.name.class.python | #22C55E | bold |
| entity.name.function.python | #4ADE80 | — |
| keyword.control.import.python | #22C55E | italic |
| support.function.builtin.python | #16A34A | — |
| support.type.python | #4ADE80 | — |
| string.quoted.single.block.python, string.quoted.double.block.python | #A3BE8C | italic |
| keyword.control.flow.python | #22C55E | — |
| entity.name.function.dunder.python | #16A34A | italic |
| meta.structure.dictionary.json, string.quoted.double.json | #FF6B6B | — |
| support.type.property-name.json | #E05A5A | — |
| string.quoted.double.json | #A3BE8C | — |
| constant.numeric.json | #FF8E8E | — |
| constant.language.json | #FF6B6B | — |
| constant.language.null.json | #E05A5A | italic |
| punctuation.separator.dictionary.key-value.json | #FF8E8E | — |
| punctuation.section.array.json | #E05A5A | — |
| comment.line.double-slash.json | #6B7280 | italic |
| comment.block.json | #6B7280 | italic |
| markup.heading.markdown | #E879F9 | bold |
| punctuation.definition.heading.markdown | #D946EF | — |
| markup.bold.markdown | #F0A8FF | bold |
| markup.italic.markdown | #F0A8FF | italic |
| markup.underline.link.markdown | #D946EF | underline |
| string.other.link.markdown | #E879F9 | — |
| image.markdown | #F0A8FF | — |
| markup.inline.raw.string.markdown | #F0B35A | italic |
| markup.raw.block.markdown | #A3BE8C | — |
| fenced_code.block.language.markdown | #D946EF | italic |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #E879F9 | — |
| markup.quote.markdown | #F0A8FF | italic |
| markup.table.markdown | #D946EF | — |
| meta.frontmatter.markdown | #F0A8FF | — |
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}!`;
}