Onion Monochrome Theme
Publisher: Huy RK NguyenThemes in package: 1
A monochrome theme for Visual Studio Code
A monochrome theme for Visual Studio Code
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 |
|---|---|---|
| keyword.operator | #00000088 | — |
| storage.type.ts, keyword, keyword.other, keyword.control, storage.type, storage.modifier | #00000088 | — |
| string | #00000088 | — |
| support.type.property-name.json | #000000 | — |
| string variable, string meta.interpolation | #000000 | — |
| comment | #00000044 | — |
| constant | #00000088 | — |
| variable.language.this | #000000 | — |
| entity.other.alias, source.php support.class, entity.name.type, meta.function-call support.class, keyword.other.type, entity.other.inherited-class | #000000 | bold |
| meta.method-call entity.name.function | #000000 | |
| meta.function-call entity.name.function, meta.function-call support.function, meta.function.call entity.name.function | #000000 | |
| constant.enum, constant.other | #00000088 | — |
| variable.other.property, entity.name.goto-label, entity.name.variable.parameter | #000000 | — |
| entity.name.function, support.function, support.function.constructor, entity.name.function meta.function-call meta.method-call | #000000 | bold |
| meta.tag entity.name.tag.html, entity.name.tag.template.html | #000000 | — |
| entity.other.attribute-name.html | #00000088 | — |
| meta.tag.other.unrecognized.html entity.name.tag.html | #000000 | — |
| text.html keyword | #000000 | — |
| punctuation, meta.brace | #00000088 | — |
| token.info-token | #316BCD | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #CD3131 | — |
| token.debug-token | #800080 | — |
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}!`;
}