Nightcall
Publisher: Robert PattersonThemes in package: 8
A mellow yet colorful Visual Studio Code theme built around vibrant shades of pink, purple, and blue.
A mellow yet colorful Visual Studio Code theme built around vibrant shades of pink, purple, and blue.
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 |
|---|---|---|
| italic, markup.italic.markdown | #CCB4F9 | italic |
| bold, markup.bold.markdown | #CCB4F9 | bold |
| comment, comment.line.double-slash | #5E5E97 | italic |
| keyword.control, storage.modifier | — | italic |
| entity.name.function.decorator.python | #FFC2E4 | italic |
| variable.language | #E3D5FB | italic |
| markup.changed, meta.diff.header.git, meta.diff.header.from-file, meta.diff.header.to-file | #a0b7f6 | — |
| markup.deleted.diff | #F889AE | — |
| markup.inserted.diff | #F9A5C2 | — |
| string | #FFCCE9 | — |
| string.quoted | #FFCCE9 | |
| support.constant.math | #D9C6FA | — |
| constant.numeric, constant.character.numeric | #F9A5C2 | |
| keyword.other.unit.percentage.css, keyword.other.unit.px.css, keyword.other.unit.vw.css, keyword.other.unit.vh.css, keyword.other.unit.em.css, keyword.other.unit.rem.css | #F9A5C2 | — |
| constant.language, punctuation.definition.constant | #D9C6FA | — |
| constant.character, constant.other | #E3D5FB | — |
| constant.language.null, constant.language.undefined | #F889AE | — |
| constant.character.escape | #CCB4F9 | — |
| string.regexp, string.regexp keyword.other | #a0b7f6 | — |
| meta.function punctuation.separator.comma | #C4A7F8 | — |
| variable | #D9C6FA | — |
| punctuation.accessor | #C4A7F8 | |
| keyword | #CCB4F9 | |
| storage, meta.var.expr, meta.class meta.method.declaration meta.var.expr storage.type.js, storage.type.property.js, storage.type.property.ts, storage.type.property.tsx | #FFA3D8 | |
| storage.type | #FFA3D8 | |
| storage.type.function.arrow.js | — | |
| entity.name.class, meta.class entity.name.type.class, meta.class entity.name.type.class.js | #F2C6FB | — |
| entity.other.inherited-class | #F2C6FB | — |
| punctuation.definition.tag, meta.tag | #C4A7F8 | — |
| entity.name.tag, meta.tag.other.html, meta.tag.other.js, meta.tag.other.tsx, entity.name.tag.tsx, meta.tag.js, meta.tag.tsx, meta.tag.html | #FFADDC | |
| entity.name.tag.custom | #D9C6FA | — |
| support.constant.meta.property-value | #E3D5FB | — |
| support.type, support.class | #F2C6FB | — |
| entity.name.type, entity.name.namespace, entity.name.module | #F2C6FB | — |
| support.variable.dom | #D9C6FA | — |
| invalid | #F889AE | — |
| invalid.deprecated | #F889AE | — |
| keyword.operator | #CCB4F9 | |
| keyword.operator.new | #CCB4F9 | — |
| keyword.operator.relational | #CCB4F9 | |
| keyword.operator.arithmetic | #CCB4F9 | — |
| keyword.operator.bitwise | #CCB4F9 | — |
| keyword.operator.increment | #CCB4F9 | — |
| keyword.operator.ternary | #CCB4F9 | — |
| object | #F2C6FB | — |
| meta.brace | #C4A7F8 | |
| meta.delimiter.period | #C4A7F8 | |
| constant.language.boolean | #F889AE | — |
| object.comma | #C4A7F8 | — |
| variable.parameter.function | #F2C6FB | |
| support.type.vendor.property-name, support.type.property-name | #E3D5FB | |
| support.constant.vendor.property-value, meta.property-list entity.name.tag | #F2C6FB | |
| meta.property-list entity.name.tag.reference | #E3D5FB | — |
| constant.other.color.rgb-value punctuation.definition.constant | #CCB4F9 | — |
| constant.other.color | #FFCCE9 | — |
| keyword.other.unit | #F9A5C2 | — |
| meta.selector | #CCB4F9 | |
| entity.other.attribute-name.id | #FFADDC | — |
| meta.property-name | #E3D5FB | — |
| entity.name.tag.doctype, meta.tag.sgml.doctype | #CCB4F9 | |
| punctuation.definition.parameters | #C4A7F8 | — |
| punctuation.definition.string | #FFCCE9 | |
| keyword.control.operator | #CCB4F9 | — |
| keyword.operator.logical | #CCB4F9 | |
| variable.instance, variable.other.instance, variable.readwrite.instance, variable.other.readwrite.instance | #D9C6FA | — |
| entity.name.function | #a0b7f6 | |
| keyword.control.ruby, keyword.control.module.ruby, keyword.control.class.ruby, keyword.control.def.ruby, keyword.control.loop.js, keyword.control.loop.ts, keyword.control.loop.tsx | #FFA3D8 | — |
| keyword.control.flow.js, keyword.control.flow.ts, keyword.control.flow.tsx | #CCB4F9 | — |
| keyword.control.import.js, keyword.control.import.ts, keyword.control.import.tsx, keyword.control.from.js, keyword.control.from.ts, keyword.control.from.tsx | #CCB4F9 | — |
| keyword.control.conditional.js, keyword.control.conditional.ts, keyword.control.switch.js, keyword.control.switch.ts | #CCB4F9 | — |
| support.constant | #E3D5FB | — |
| keyword.other.special-method, keyword.other.new, keyword.other.debugger, keyword.other | #FFA3D8 | — |
| support.function | #a0b7f6 | — |
| invalid.broken | #F889AE | — |
| invalid.unimplemented | #F889AE | — |
| invalid.illegal | #F889AE | — |
| support.variable.property | #E3D5FB | — |
| variable.function | #a0b7f6 | — |
| variable.interpolation | #E3D5FB | — |
| meta.function-call | #a0b7f6 | — |
| meta.array, meta.object | #F2C6FB | — |
| punctuation.section.embedded | #CCB4F9 | — |
| punctuation.terminator.expression, punctuation.definition.arguments, punctuation.definition.array, punctuation.section.array, punctuation.separator.parameter, punctuation.separator.key-value, punctuation.section.function.begin.bracket.round, punctuation.section.function.end.bracket.round, punctuation.destructuring | #C4A7F8 | — |
| punctuation.definition.list.begin, punctuation.definition.list.end, punctuation.separator.arguments, punctuation.definition.list | #C4A7F8 | — |
| string.template meta.template.expression | #CCB4F9 | — |
| string.template punctuation.definition.string | #FFCCE9 | — |
| quote | #5E5E97 | |
| raw | #5E5E97 | — |
| variable.parameter.function.coffee | #D9C6FA | — |
| variable.assignment.coffee | #D9C6FA | — |
| variable.other.readwrite.cs | #D9C6FA | — |
| entity.name.type.class.cs, storage.type.cs | #a0b7f6 | — |
| entity.name.type.namespace.cs | #D9C6FA | — |
| entity.name.tag.css, entity.name.tag.custom.css, support.constant.property-value.css | #F2C6FB | |
| entity.name.tag.wildcard.css, entity.name.tag.wildcard.less, entity.name.tag.wildcard.scss, entity.name.tag.wildcard.sass | #FFADDC | — |
| meta.attribute-selector.css entity.other.attribute-name.attribute | #F2C6FB | — |
| source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir | #a0b7f6 | — |
| source.elixir entity.name.function | #CCB4F9 | — |
| source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir | #a0b7f6 | — |
| source.elixir punctuation.definition.string | #FFCCE9 | — |
| source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #CCB4F9 | — |
| source.elixir punctuation.binary.elixir | #CCB4F9 | |
| constant.keyword.clojure | #E3D5FB | — |
| source.go meta.function-call.go | #a0b7f6 | — |
| source.go keyword.package.go, source.go keyword.import.go, source.go keyword.function.go, source.go keyword.type.go, source.go keyword.struct.go, source.go keyword.interface.go, source.go keyword.const.go, source.go keyword.var.go, source.go keyword.map.go, source.go keyword.channel.go, source.go keyword.control.go | #CCB4F9 | — |
| source.go constant.language.go | #F889AE | — |
| source.go constant.other.placeholder.go | #E3D5FB | — |
| entity.name.function.preprocessor.cpp, entity.scope.name.cpp | #E3D5FB | — |
| meta.namespace-block.cpp | #FFE2BE | — |
| storage.type.language.primitive.cpp | #F2C6FB | — |
| meta.preprocessor.macro.cpp | #D9C6FA | — |
| variable.other.readwrite.powershell | #a0b7f6 | — |
| support.function.powershell | #E3D5FB | — |
| entity.other.attribute-name.id.html | #CCB4F9 | — |
| punctuation.definition.tag.html | #C4A7F8 | — |
| meta.tag.sgml.doctype.html | #CCB4F9 | |
| variable.other.readwrite.alias.js | #D9C6FA | — |
| meta.import.js variable.other.readwrite.alias.js, meta.import.js variable.other.readwrite.js, meta.import.js variable.other.object.js, meta.import.js variable.other.constant.js, meta.import.js variable.other.constant.object.js | #E3D5FB | — |
| meta.object-literal.key.js | #E3D5FB | — |
| meta.decorator punctuation.decorator.js | #FFC2E4 | — |
| variable.parameter.js, variable.parameter.function.js | #F2C6FB | — |
| variable.other.constant.js, variable.other.constant.object.js, variable.other.enummember.js | #E3D5FB | — |
| variable.other.constant.property.js, variable.other.constant.object.property.js | #E3D5FB | — |
| support.function.js, support.function.console.js, support.function.json.js, support.function.math.js, support.function.dom.js, support.function.process.js, support.class.js, support.class.console.js, support.class.node.js, support.class.dom.js, support.variable.dom.js, support.variable.object.process.js, support.constant.json.js | #E3D5FB | — |
| variable.other.readwrite.alias.jsx | #D9C6FA | — |
| meta.import.jsx variable.other.readwrite.alias.jsx, meta.import.jsx variable.other.readwrite.jsx, meta.import.jsx variable.other.object.jsx, meta.import.jsx variable.other.constant.jsx, meta.import.jsx variable.other.constant.object.jsx | #E3D5FB | — |
| meta.object-literal.key.jsx | #E3D5FB | — |
| meta.decorator punctuation.decorator.jsx | #FFC2E4 | — |
| variable.parameter.jsx, variable.parameter.function.jsx | #F2C6FB | — |
| variable.other.constant.jsx, variable.other.constant.object.jsx, variable.other.enummember.jsx | #E3D5FB | — |
| variable.other.constant.property.jsx, variable.other.constant.object.property.jsx | #E3D5FB | — |
| support.function.jsx, support.function.console.jsx, support.function.json.jsx, support.function.math.jsx, support.function.dom.jsx, support.function.process.jsx, support.class.jsx, support.class.console.jsx, support.class.node.jsx, support.class.dom.jsx, support.variable.dom.jsx, support.variable.object.process.jsx, support.constant.json.jsx | #E3D5FB | — |
| variable.other.readwrite.alias.ts | #D9C6FA | — |
| meta.import.ts variable.other.readwrite.alias.ts, meta.import.ts variable.other.readwrite.ts, meta.import.ts variable.other.object.ts, meta.import.ts variable.other.constant.ts, meta.import.ts variable.other.constant.object.ts | #E3D5FB | — |
| meta.object-literal.key.ts | #E3D5FB | — |
| meta.decorator punctuation.decorator.ts | #FFC2E4 | — |
| variable.parameter.ts, variable.parameter.function.ts | #F2C6FB | — |
| variable.other.constant.ts, variable.other.constant.object.ts, variable.other.enummember.ts | #E3D5FB | — |
| variable.other.constant.property.ts, variable.other.constant.object.property.ts | #E3D5FB | — |
| support.function.ts, support.function.console.ts, support.function.json.ts, support.function.math.ts, support.function.dom.ts, support.function.process.ts, support.class.ts, support.class.console.ts, support.class.node.ts, support.class.dom.ts, support.variable.dom.ts, support.variable.object.process.ts, support.constant.json.ts | #E3D5FB | — |
| variable.other.readwrite.alias.tsx | #D9C6FA | — |
| meta.import.tsx variable.other.readwrite.alias.tsx, meta.import.tsx variable.other.readwrite.tsx, meta.import.tsx variable.other.object.tsx, meta.import.tsx variable.other.constant.tsx, meta.import.tsx variable.other.constant.object.tsx | #E3D5FB | — |
| meta.object-literal.key.tsx | #E3D5FB | — |
| meta.decorator punctuation.decorator.tsx | #FFC2E4 | — |
| variable.parameter.tsx, variable.parameter.function.tsx | #F2C6FB | — |
| variable.other.constant.tsx, variable.other.constant.object.tsx, variable.other.enummember.tsx | #E3D5FB | — |
| variable.other.constant.property.tsx, variable.other.constant.object.property.tsx | #E3D5FB | — |
| support.function.tsx, support.function.console.tsx, support.function.json.tsx, support.function.math.tsx, support.function.dom.tsx, support.function.process.tsx, support.class.tsx, support.class.console.tsx, support.class.node.tsx, support.class.dom.tsx, support.variable.dom.tsx, support.variable.object.process.tsx, support.constant.json.tsx | #E3D5FB | — |
| meta.method.declaration storage.type.js, meta.method.declaration storage.type.ts, meta.method.declaration storage.type.tsx | #FFA3D8 | — |
| terminator.js | #C4A7F8 | — |
| meta.js punctuation.definition.js | #C4A7F8 | — |
| punctuation.definition.block.tag.jsdoc | #C4A7F8 | — |
| storage.type.class.jsdoc | #FFA3D8 | — |
| constant.language.access-type.jsdoc | #FFA3D8 | — |
| constant.language.symbol-type.jsdoc | #CCB4F9 | — |
| punctuation.definition.bracket.angle.begin.jsdoc, punctuation.definition.bracket.angle.end.jsdoc | #C4A7F8 | — |
| keyword.operator.control.jsdoc | #CCB4F9 | — |
| entity.name.tag.inline.jsdoc | #FFADDC | — |
| entity.name.type.instance.jsdoc, entity.name.type.instance.phpdoc | #F2C6FB | — |
| variable.other.jsdoc, variable.other.phpdoc | #D9C6FA | — |
| variable.other.meta.import.js, meta.import.js variable.other, variable.other.meta.export.js, meta.export.js variable.other | #D9C6FA | — |
| variable.other.object.jsx | #D9C6FA | — |
| variable.object.property.jsx | #E3D5FB | — |
| variable.js, variable.other.js | #D9C6FA | — |
| entity.name.type.js, entity.name.type.module.js | #F2C6FB | |
| support.constant.json | #D9C6FA | — |
| meta.structure.dictionary.value.json string.quoted.double, string.quoted.double.json.comments, string.quoted.double.json punctuation.definition.string.json | #FFCCE9 | — |
| punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json | #C4A7F8 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value constant.language | #F889AE | — |
| variable.other.object.js | #D9C6FA | — |
| variable.other.ruby | #D9C6FA | — |
| entity.name.type.class.ruby | #F2C6FB | — |
| constant.language.symbol.hashkey.ruby | #E3D5FB | — |
| constant.language.symbol.ruby | #E3D5FB | — |
| entity.name.tag.less | #FFADDC | — |
| keyword.other.unit.css | #F9A5C2 | — |
| meta.attribute-selector.less entity.other.attribute-name.attribute | #FFADDC | — |
| markup.heading.markdown, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #a0b7f6 | — |
| markup.quote.markdown | #5E5E97 | |
| markup.inline.raw.markdown | #5E5E97 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #a0b7f6 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #D9C6FA | — |
| punctuation.definition.string.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, meta.link.inline.markdown punctuation.definition.string | #a0b7f6 | — |
| punctuation.definition.metadata.markdown | #C4A7F8 | — |
| beginning.punctuation.definition.list.markdown | #a0b7f6 | — |
| markup.inline.raw.string.markdown | #CCB4F9 | — |
| variable.other.php | #D9C6FA | — |
| variable.other.property.php | #E3D5FB | — |
| support.class.php | #FFE2BE | — |
| meta.function-call.php punctuation | #D9C6FA | — |
| variable.other.global.php | #CCB4F9 | — |
| variable.other.global.php punctuation.definition.variable | #CCB4F9 | — |
| constant.language.python | #F889AE | — |
| variable.parameter.function.python | #F2C6FB | — |
| meta.function-call.python, meta.function-call.generic.python | #a0b7f6 | — |
| punctuation.python | #C4A7F8 | — |
| source.python variable.language.special | #a0b7f6 | — |
| variable.scss, variable.sass, variable.parameter.url.scss, variable.parameter.url.sass | #CCB4F9 | — |
| source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable | #D9C6FA | — |
| meta.attribute-selector.scss entity.other.attribute-name.attribute, meta.attribute-selector.sass entity.other.attribute-name.attribute | #FFADDC | — |
| entity.name.tag.scss, entity.name.tag.sass | #FFADDC | — |
| keyword.other.unit.scss, keyword.other.unit.sass | #F9A5C2 | — |
| constant.other.table-name.sql, constant.other.database-name.sql | #F2C6FB | — |
| entity.name.command.shell, entity.name.function.shell | #a0b7f6 | — |
| support.function.shell | #E3D5FB | — |
| variable.other.assignment.shell | #E3D5FB | — |
| constant.other.option.shell | #E3D5FB | — |
| variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.object.ts, variable.other.object.tsx, variable.other.ts, variable.other.tsx, variable.tsx, variable.ts | #D9C6FA | — |
| variable.object.property.ts, variable.object.property.tsx | #E3D5FB | — |
| punctuation.definition.binding-pattern.object | #C4A7F8 | — |
| punctuation.definition.binding-pattern.array | #C4A7F8 | — |
| punctuation.definition.typeparameters.begin.ts, punctuation.definition.typeparameters.end.ts, punctuation.definition.typeparameters.begin.tsx, punctuation.definition.typeparameters.end.tsx | #C4A7F8 | — |
| entity.name.type.ts, entity.name.type.tsx, entity.name.type.module.tsx | #F2C6FB | — |
| meta.type.parameters.ts entity.name.type, meta.type.parameters.tsx entity.name.type | #F2C6FB | — |
| meta.import.ts punctuation.definition.block, meta.import.tsx punctuation.definition.block, meta.export.ts punctuation.definition.block, meta.export.tsx punctuation.definition.block | #C4A7F8 | — |
| entity.name.tag.yaml | #E3D5FB | — |
| variable.other.anchor.yaml | #E3D5FB | — |
| variable.other.alias.yaml | #D9C6FA | — |
| punctuation.definition.anchor.yaml | #C4A7F8 | — |
| entity.name.type.anchor.yaml | #F2C6FB | — |
| support.class.component, support.class.component.tsx | #FF8ECF | |
| meta.class entity.name.type.class.tsx | #F2C6FB | — |
| keyword.operator.type.annotation | #CCB4F9 | — |
| variable.parameter | #F2C6FB | — |
| variable.other.property | #E3D5FB | — |
| variable.other.object.property | #E3D5FB | — |
| variable.other.readwrite.alias | #F2C6FB | — |
| variable.other.readwrite.js | #D9C6FA | |
| meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #E6DAFB | — |
| variable.other.constant | #F2C6FB | — |
| variable.object.property.js | #E3D5FB | — |
| constant.numeric.decimal | #F9A5C2 | — |
| constant.language.boolean.true, constant.language.boolean.false | #F889AE | — |
| string.quoted.single | #FFCCE9 | — |
| string.quoted.double | #FFCCE9 | — |
| entity.other.attribute-name | #CCB4F9 | — |
| keyword.control.conditional | #CCB4F9 | — |
| meta.brace.round | #C4A7F8 | — |
| meta.brace.square | #C4A7F8 | — |
| punctuation.separator.comma | #C4A7F8 | — |
| punctuation.definition.string.begin | #FFCCE9 | — |
| punctuation.definition.string.end | #FFCCE9 | — |
| punctuation.terminator.statement, punctuation.terminator.rule.scss | #C4A7F8 | — |
| keyword.operator.assignment | #CCB4F9 | |
| punctuation.section.embedded.begin | #CCB4F9 | — |
| punctuation.section.embedded.end | #CCB4F9 | — |
| support.class.console | #F2C6FB | — |
| support.class.component.js | #FF8ECF | — |
| punctuation.definition.tag.begin | #C4A7F8 | — |
| punctuation.definition.template-expression.begin | #C4A7F8 | — |
| punctuation.definition.template-expression.end | #C4A7F8 | — |
| string.template | #FFCCE9 | — |
| punctuation.definition.string.template.begin | #FFCCE9 | — |
| punctuation.definition.string.template.end | #FFCCE9 | — |
| punctuation.definition.tag.end | #C4A7F8 | — |
| entity.name.tag.js | #FFADDC | — |
| support.type.property-name.json, support.type.property-name.json.comments | #E3D5FB | — |
| punctuation.definition.parameters.begin | #C4A7F8 | — |
| punctuation.definition.parameters.end | #C4A7F8 | — |
| punctuation.definition.block | #C4A7F8 | — |
| token.info-token | #a0b7f6 | — |
| token.warn-token | #FFE2BE | — |
| token.error-token | #F889AE | — |
| token.debug-token | #CCB4F9 | — |
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}!`;
}