Nexus Dark
Publisher: Pankaj GhoshThemes in package: 1
A sleek, modern dark VS Code theme with clean aesthetics, focused on clarity, contrast, and developer comfort.
A sleek, modern dark VS Code theme with clean aesthetics, focused on clarity, contrast, and developer comfort.
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 |
|---|---|---|
| meta.embedded.line.tsx, meta.embedded.line.jsx, string.unquoted.plain.in.js.jsx, string.unquoted.plain.out.js.jsx, meta.jsx.children, meta.tag.children | #cdd6f4 | — |
| comment, punctuation.definition.comment, string.comment | #7f849c | italic |
| keyword, storage.type, storage.modifier, keyword.operator.word | #f38ba8 | italic |
| constant, entity.name.constant, variable.other.constant, variable.language, support.constant | #f9e2af | — |
| entity.name.function, meta.function-call, support.function, variable.function | #fab387 | — |
| variable.parameter, variable.other, meta.parameter | #a6adc8 | — |
| string, punctuation.definition.string, string.regexp | #a6e3a1 | — |
| constant.numeric, number, constant.language, constant.character.escape | #f5c2e7 | — |
| entity.name.type, entity.other.inherited-class, support.class, support.type, entity.name.class, entity.name.interface, entity.name.struct, entity.name.enum | #f9e2af | — |
| entity.name.tag, tag, meta.tag | #f38ba8 | — |
| entity.other.attribute-name, meta.attribute | #fab387 | — |
| support.type.property-name, meta.property-name, variable.object.property, meta.object.member | #cdd6f4 | — |
| keyword.operator, punctuation.separator, punctuation.terminator, punctuation.accessor | #89b4fa | |
| punctuation | #cdd6f4 | — |
| entity.name.namespace, entity.name.scope | #b4befe | — |
| variable.language.this, variable.language.super | #cba6f7 | italic |
| support.variable, support.other | #89dceb | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.heading | #f38ba8 | bold |
| markup.inline.raw.string.markdown, markup.raw.block.markdown, markup.fenced_code.block.markdown | #a6e3a1 | — |
| markup.underline.link.markdown, string.other.link.title.markdown | #89b4fa | — |
| constant.other.symbol, constant.other.key | #cba6f7 | — |
| storage.type.primitive, support.type.primitive | #f9e2af | — |
| variable.language.self, variable.parameter.self | #cba6f7 | italic |
| invalid | #f38ba8 | underline |
| invalid.deprecated | #f38ba8 | italic underline |
| variable.key.dotenv, source.dotenv | #fab387 | — |
| property.value.dotenv, source.dotenv | #a6e3a1 | — |
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}!`;
}