Cursor Night Syntax
Publisher: spanThemes in package: 1
A dark theme combining Cursor Dark UI with Tokyo Night syntax highlighting.
A dark theme combining Cursor Dark UI with Tokyo Night syntax highlighting.
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, source.python punctuation.definition.comment | #BBBBBB4D | italic |
| constant | #F09483E6 | — |
| constant.character.escape | #25B0BCE6 | — |
| entity.name | #FAC29AE6 | — |
| entity.name.function, entity.name.function.python, meta.function-call.generic.python | #60c5ff | — |
| entity.name.tag | #E95678E6 | |
| entity.name.type, storage.type.cs | #FAC29AE6 | — |
| entity.other.attribute-name | #F09483E6 | |
| entity.other.inherited-class | #FAB795E6 | — |
| entity.other.attribute-name.id | #25B0BCE6 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #FAB795E6 | — |
| entity.name.variable, variable, meta.attribute.python, meta.member.access.python, source.python, source.python meta.function-call.arguments, source.python entity.other.inherited-class | #E95678E6 | — |
| source.python meta.function-call, source.python punctuation.definition.parameters, source.python punctuation.definition.arguments, source.python meta.function.parameters, source.python punctuation.parenthesis, source.python definition.arguments, source.python punctuation.definition, source.python punctuation.section.class, source.python punctuation.section.function | #A9B1D6 | — |
| keyword | #B877DBE6 | |
| keyword.operator | #BBBBBB | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.delete | #B877DBE6 | — |
| keyword.other.unit | #F09483E6 | — |
| markup.quote | #FAB795B3 | italic |
| markup.heading, entity.name.section | #E95678E6 | — |
| markup.bold | #B877DBE6 | bold |
| markup.italic | #25B0BCE6 | italic |
| markup.inline.raw, markup.fenced_code.block | #F09483E6 | — |
| markup.underline.link | #FAB795E6 | — |
| storage | #B877DBE6 | |
| string.quoted, string.template, punctuation.definition.string | #FAB795E6 | — |
| string.regexp | #F09483E6 | — |
| string.other.link | #F09483E6 | — |
| support | #FAC29AE6 | — |
| support.function | #60c5ff | — |
| support.variable | #E95678E6 | — |
| support.type.property-name, meta.object-literal.key | #E95678E6 | — |
| support.type.property-name.css | #BBBBBB | — |
| variable.language | #FAC29AE6 | italic |
| variable.parameter | — | italic |
| string.template meta.embedded | #BBBBBB | — |
| punctuation.definition.tag | #E95678B3 | |
| punctuation.separator | #BBBBBB | — |
| punctuation.definition.template-expression | #B877DBE6 | — |
| punctuation.section.embedded | #B877DBE6 | — |
| punctuation.definition.list | #F09483E6 | — |
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}!`;
}