Night Veil Dark
Publisher: Mohammed HasanfattaThemes in package: 1
A deep, atmospheric dark theme with soft purple accents, blue functions, and warm amber strings — Night.js inspired palette.
A deep, atmospheric dark theme with soft purple accents, blue functions, and warm amber strings — Night.js inspired 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 |
|---|---|---|
| variable, variable.other, variable.other.readwrite, variable.other.constant, variable.other.local, variable.other.object.property, variable.other.constant.property.js, variable.other.constant.property.ts, meta.definition.variable variable.other.readwrite | #d6deeb | — |
| variable.other.object, variable.other.property, support.variable.property, meta.property-name support.type.property-name, meta.object-literal.key | #ffcb8b | — |
| variable.parameter, meta.function.parameters variable, meta.parameters variable | #addb67 | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #7fdbca | — |
| comment, comment.line, comment.block, comment.block.documentation, punctuation.definition.comment | #4b5673 | italic |
| punctuation, punctuation.definition.block, punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.section, meta.brace.round, meta.brace.square, meta.brace.curly | #697098 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.spread, keyword.operator.rest, keyword.operator.optional, keyword.operator.ternary | #697098 | — |
| meta.type.parameters, punctuation.definition.typeparameters | #697098 | — |
| punctuation.definition.string, punctuation.definition.template-expression | #ddb47d | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.backtick, string.template | #ecc48d | — |
| string.regexp, constant.other.character-class.regexp, keyword.control.anchor.regexp, keyword.operator.quantifier.regexp, punctuation.definition.group.regexp | #ecc48d | — |
| keyword.control, keyword.control.import, keyword.control.export, keyword.control.flow, keyword.control.return, keyword.control.conditional, keyword.control.loop, keyword.control.trycatch, keyword.control.new, keyword.control.async, keyword.other.new, keyword.operator.new, keyword.operator.expression.new, keyword.operator.expression.typeof, keyword.operator.expression.instanceof, keyword.operator.expression.void, keyword.operator.expression.delete | #c792ea | — |
| storage.type, storage.type.js, storage.type.ts, storage.type.function, storage.type.class, storage.type.arrow, storage.type.function.arrow | #c792ea | — |
| storage.modifier, storage.modifier.async, keyword.control.async, keyword.control.await | #c792ea | — |
| keyword.operator.arrow | #c792ea | — |
| keyword.control.from, keyword.operator.expression.of, keyword.operator.expression.in, keyword.operator.expression.from, keyword.other.of, keyword.control.of, keyword.control.as, keyword.other.as | #89ddff | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.binary, constant.numeric.octal | #f78c6c | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan | #f78c6c | — |
| entity.name.function, meta.function entity.name.function, meta.definition.method entity.name.function | #82aaff | — |
| meta.function-call entity.name.function, meta.function-call.generic entity.name.function, meta.function-call.method entity.name.function, entity.name.function.member, meta.method-call entity.name.function | #82aaff | — |
| support.function, support.function.console | #82aaff | — |
| support.function.dom, support.function.global, support.function.misc | #7fdbca | — |
| entity.name.type, entity.name.type.class, entity.name.class, entity.other.inherited-class, support.class, support.type | #ffcb8b | — |
| support.type.primitive, support.type.builtin, entity.name.type.interface, entity.name.type.type-alias, entity.name.type.enum, keyword.operator.type.annotation | #ffcb8b | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #89ddff | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.jsx, support.class.component | #c792ea | — |
| entity.other.attribute-name, entity.other.attribute-name.jsx, entity.other.attribute-name.html | #89ddff | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css | #c792ea | — |
| support.type.property-name.css, meta.property-name.css | #89ddff | — |
| support.constant.property-value.css, meta.property-value.css | #ecc48d | — |
| keyword.other.unit.css, constant.numeric.css | #f78c6c | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #c792ea | bold |
| markup.bold | #ecc48d | bold |
| markup.italic | #7fdbca | italic |
| markup.inline.raw | #addb67 | — |
| markup.underline.link, string.other.link | #82aaff | — |
| markup.quote | #4b5673 | italic |
| invalid, invalid.deprecated | #f78c6c | strikethrough |
| support.class.console, support.variable.console, variable.other.object.console, support.class.console.js, variable.other.object.process, support.variable.property.process | #7fdbca | — |
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}!`;
}