Cursor Midnight
Publisher: Mohd ZaidThemes in package: 3
A beautiful and modern VS Code theme forked from Cursor IDE.
A beautiful and modern VS Code theme forked from Cursor IDE.
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, string.comment | #141414AD | italic |
| string, string punctuation.section.embedded source | #9E94D5 | — |
| punctuation.definition.string.begin,punctuation.definition.string.end | #9E94D5 | — |
| string variable | #206595 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #141414AD | — |
| source.regexp, string.regexp | #3C7CAB | — |
| string.regexp constant.character.escape | #1F8A65 | — |
| keyword.operator.quantifier.regexp, keyword.operator.negation.regexp, keyword.operator.alternation.regexp, keyword.operator.or.regexp, keyword.control.anchor.regexp | #A33900 | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, support.other.parenthesis.regexp | #DB704B | — |
| constant.other.placeholder, constant.character | #B3003F | — |
| constant, entity.name.constant, variable.other.constant, variable.language | #206595 | — |
| constant.numeric | #B8448B | — |
| support.constant | #206595 | — |
| variable.language | #CF2D56 | — |
| support.variable | #206595 | — |
| variable.other.readwrite | #206595 | — |
| keyword | #B3003F | — |
| storage, storage.type | #B3003F | — |
| keyword.control.directive | #1F8A65 | — |
| entity.name.function | #DB704B | — |
| meta.require, support.function, variable.function | #DB704B | — |
| keyword.other.special-method | #6049B3 | — |
| meta.export.default | #DB704B | — |
| support.class, entity.name.type.class, entity.name.type.namespace, entity.name.type, entity.name.namespace | #206595 | — |
| entity.name.class | #206595 | — |
| keyword.operator.assignment, keyword.operator.assignment.compound, keyword.operator.assignment.c, keyword.operator.assignment.cpp, keyword.operator.assignment.go, keyword.operator.assignment.java, keyword.operator.assignment.js, keyword.operator.assignment.ts, keyword.operator.assignment.python | #141414EB | — |
| keyword.operator.comparison, keyword.operator.relational, keyword.operator.comparison.c, keyword.operator.comparison.cpp, keyword.operator.comparison.java, keyword.operator.comparison.js, keyword.operator.comparison.ts, keyword.operator.comparison.python | #B3003F | — |
| keyword.operator.arithmetic, keyword.operator.increment, keyword.operator.decrement, keyword.operator.arithmetic.c, keyword.operator.increment.c, keyword.operator.decrement.c, keyword.operator.arithmetic.cpp, keyword.operator.increment.cpp, keyword.operator.decrement.cpp, keyword.operator.arithmetic.go, keyword.operator.arithmetic.java, keyword.operator.arithmetic.js, keyword.operator.arithmetic.ts, keyword.operator.arithmetic.python | #141414EB | — |
| keyword.operator.bitwise, keyword.operator.bitwise.shift, keyword.operator.bitwise.shift.c, keyword.operator.bitwise.shift.cpp, keyword.operator.bitwise.java, keyword.operator.bitwise.js, keyword.operator.bitwise.ts, keyword.operator.bitwise.python | #B3003F | — |
| keyword.operator.logical, keyword.operator.logical.python, keyword.operator.logical.java, keyword.operator.logical.js, keyword.operator.logical.ts, keyword.operator.logical.c, keyword.operator.logical.cpp | #B3003F | — |
| keyword.operator.new, keyword.operator.delete, keyword.operator.typeof, keyword.operator.instanceof, keyword.operator.in, keyword.operator.of, keyword.operator.sizeof, keyword.operator.address, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.instanceof, keyword.operator.expression.typeof, keyword.operator.expression.delete, keyword.operator.expression.in, keyword.operator.expression.of, keyword.operator.expression.void, keyword.operator.expression.keyof, keyword.operator.sizeof.c, keyword.operator.sizeof.cpp, keyword.operator.address.go, keyword.operator.module, keyword.operator.instanceof.java, keyword.operator.less, keyword.operator.c, keyword.operator.cpp | #206595 | — |
| entity.name.tag, support.class.component | #1F8A65 | — |
| entity.name.tag.html | #206595 | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.begin.xml, punctuation.definition.tag.end.xml, punctuation.definition.tag | #141414AD | — |
| entity.other.attribute-name | #6049B3 | — |
| entity.other.attribute-name.id | #6049B3 | — |
| entity.other.attribute-name.class.css | #206595 | — |
| support.type.property-name.css | #9E94D5 | — |
| meta.property-value.css | #055180 | — |
| meta.selector | #6F9BA6 | — |
| keyword.other.unit | #D06BA6 | — |
| constant.other.color | #B8448B | — |
| punctuation.definition.constant.css | #D06BA6 | — |
| storage, storage.type | #B3003F | — |
| support.module.node,support.type.object.module | #B3003F | — |
| entity.name.type.module | #B3003F | — |
| support.constant.json | #DB704B | — |
| support.variable.property.process | #DB704B | — |
| support.variable.dom,support.variable.property.dom | #6049B3 | — |
| support.type.type.flowtype | #6049B3 | — |
| support.type.primitive | #B3003F | — |
| meta.property.object | #6049B3 | — |
| support.variable.property, variable.other.property, variable.other.property.ts, meta.definition.property.ts | #6049B3 | — |
| keyword.other.template.begin | #9E94D5 | — |
| keyword.other.template.end | #9E94D5 | — |
| keyword.other.substitution.begin | #9E94D5 | — |
| keyword.other.substitution.end | #9E94D5 | — |
| meta.function.decorator.python, punctuation.definition.decorator.python, entity.name.function.decorator.python | #1F8A65 | — |
| support.type.python | #6F9BA6 | — |
| string.quoted.binary.single.python | #1F8A65 | — |
| constant.other.ellipsis.python | #141414EB | — |
| support.variable.magic.python | #141414EB | — |
| punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python | #141414EB | — |
| variable.parameter.function.language.special.self.python | #B8448B | — |
| variable.parameter.function.language.python | #DB704B | — |
| variable.parameter.function.python | #DB704B | — |
| punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python | #141414EB | — |
| meta.function-call.generic.python | #6049B3 | — |
| constant.character.format.placeholder.other.python | #DB704B | — |
| keyword.control.import.python,keyword.control.flow.python | — | italic |
| storage.type.c, storage.type.cpp, support.type.posix-reserved.c, support.type.posix-reserved.cpp | #206595 | — |
| constant.language.false.cpp, constant.language.true.cpp | #6F9BA6 | — |
| variable.language.this.cpp | #6F9BA6 | — |
| storage.modifier.reference, storage.modifier.pointer | #141414EB | — |
| variable.c | #141414EB | — |
| keyword.control.directive.include.cpp | #1F8A65 | — |
| punctuation.separator.c,punctuation.separator.cpp | #6F9BA6 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #141414EB | — |
| variable.parameter.java | #141414EB | — |
| storage.modifier.import.java | #B3003F | — |
| storage.type.annotation.java, storage.type.object.array.java | #206595 | — |
| source.java | #141414EB | — |
| storage.modifier.import.java,storage.type.java,storage.type.generic.java | #B3003F | — |
| storage.type.java | #206595 | — |
| support.type.property-name.json | #1F8A65 | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation | #9E94D5 | — |
| markup.heading, markup.heading entity.name | #206595 | — |
| entity.name.section.markdown, punctuation.definition.heading.markdown, markup.heading.setext | #141414EB | — |
| markup.quote | #141414AD | — |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.underline | — | underline |
| markup.strikethrough, punctuation.definition.strikethrough | #1414147A | strikethrough |
| markup.inline.raw | #1F8A65 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #141414AD | — |
| markup.heading punctuation.definition.heading, entity.name.section | #141414AD | — |
| punctuation.definition.list.begin.markdown | #141414AD | — |
| punctuation.definition.list.markdown | #141414EB | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #141414EB | — |
| beginning.punctuation.definition.list.markdown | #141414EB | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #206595 | — |
| string.other.link.title.markdown,string.other.link.description.markdown | #141414AD | — |
| punctuation.definition.bold, punctuation.definition.italic, punctuation.definition.underline | #141414AD | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #B3003F | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #1F8A65 | — |
| markup.changed, punctuation.definition.changed | #DB704B | — |
| markup.ignored, markup.untracked | #1414147A | — |
| meta.diff.range | #6049B3 | — |
| meta.diff.header | #206595 | — |
| entity.name.tag.template, entity.name.tag.script, entity.name.tag.style | #6049B3 | — |
| entity.name.package.go | #B3003F | — |
| punctuation.definition.block.sequence.item.yaml | #141414EB | — |
| constant.language.symbol.elixir | #141414EB | — |
| invalid.broken, invalid.deprecated, invalid.illegal, invalid.unimplemented | #B3003F | italic |
| carriage-return | #1414140A | italic underline |
| message.error | #B3003F | — |
| meta.module-reference | #206595 | — |
| constant.character.escape | #141414AD | — |
| punctuation.section.embedded.begin,punctuation.section.embedded.end | #6F9BA6 | — |
| meta.separator | #206595 | — |
| meta.output | #206595 | — |
| constant.other.reference.link | #206595 | — |
| control.elements | #DB704B | — |
| punctuation.definition.constant | #DB704B | — |
| meta.tag | #C08532 | — |
| punctuation.separator.delimiter | #141414EB | — |
| support.constant.edge | #6F9BA6 | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #141414AD | — |
| brackethighlighter.unmatched | #B3003F | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}