Nodr
Publisher: Samuel BranThemes in package: 4
A collection of 4 dark themes for Visual Studio Code, inspired by Node.js website.
A collection of 4 dark themes for Visual Studio Code, inspired by Node.js website.
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 |
|---|---|---|
| — | #8A86A1 | — |
| comment | #565367 | italic |
| entity | #F6BF47 | — |
| entity.name.tag | #DF5D46 | — |
| entity.other.attribute-name | #E278B4 | — |
| invalid | #8A86A1 | — |
| keyword | #67cdcc | — |
| keyword.operator.assignment | #A87DE0 | — |
| storage | #E278B4 | — |
| string | #6FDF8E | — |
| variable | #AAA6BF | — |
| variable.language | #4499CD | italic |
| entity.name.function, keyword.other.special-method, variable.function, meta.block-level, support.function | #F08D49 | — |
| entity.name.class, entity.name.type.class, entity.name.instance, entity.name.type.instance, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter | #F6BF47 | — |
| keyword.other.template, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #6FDF8E | — |
| constant,constant.numeric, constant.language, support.constant, constant.character, variable.parameter, keyword.other.unit | #DF5D46 | italic |
| constant.numeric, keyword.other.unit, support.constant | — | normal |
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}!`;
}