monokai-inverse Theme
Publisher: geraneThemes in package: 1
monokai-inverse Theme ported from the monokai-inverse TextMate Theme
monokai-inverse Theme ported from the monokai-inverse TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #07070D | — |
| comment | #8A8EA1 | — |
| string | #19248B | — |
| constant.numeric | #517E00 | — |
| constant.language | #517E00 | — |
| constant.character, constant.other | #517E00 | — |
| variable | — | |
| keyword | #06D98D | — |
| storage | #06D98D | |
| storage.type | #992610 | italic |
| entity.name.class | #591DD1 | underline |
| entity.other.inherited-class | #591DD1 | italic underline |
| entity.name.function | #591DD1 | |
| variable.parameter | #0268E0 | italic |
| entity.name.tag | #06D98D | |
| entity.other.attribute-name | #591DD1 | |
| support.function | #992610 | |
| support.constant | #992610 | |
| support.type, support.class | #992610 | italic |
| support.other.variable | — | |
| invalid | #07070F | |
| invalid.deprecated | #07070F | — |
| meta.structure.dictionary.json string.quoted.double.json | #30303D | — |
| meta.diff, meta.diff.header | #8A8EA1 | — |
| markup.deleted | #06D98D | — |
| markup.inserted | #591DD1 | — |
| markup.changed | #19248B | — |
| constant.numeric.line-number.find-in-files - match | #517E00 | — |
| entity.name.filename.find-in-files | #19248B | — |
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}!`;
}