Monokai-Contrast Theme
Publisher: geraneThemes in package: 1
Monokai-Contrast Theme ported from the Monokai-Contrast TextMate Theme
Monokai-Contrast Theme ported from the Monokai-Contrast TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #FFFFFF | — |
| comment | #888877 | italic |
| string | #FFFF88 | — |
| constant.numeric | #FF99FF | — |
| constant.language | #FF99FF | — |
| constant.character, constant.other | #AA88FF | — |
| variable | — | |
| keyword | #FF3377 | — |
| storage | #FF3377 | |
| storage.type | #66DDFF | |
| entity.name.class | #AAFF33 | underline |
| entity.other.inherited-class | #A6FF2E | italic underline |
| entity.name.function | #AAFF33 | |
| variable.parameter | #FF9933 | |
| entity.name.tag | #FF3377 | |
| entity.other.attribute-name | #AAFF33 | |
| support.function | #77EEFF | |
| support.constant | #66DDFF | |
| support.type, support.class | #66DDFF | |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| meta.structure.dictionary.json string.quoted.double.json | #CFCFC2 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #F92672 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #AE81FFA0 | — |
| entity.name.filename.find-in-files | #FFDD77 | — |
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}!`;
}