Monokai Real Light
Publisher: Leonardo OliveiraThemes in package: 1
A complete, light and minimalistic Monokai-inspired theme.
A complete, light and minimalistic Monokai-inspired theme.
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 |
|---|---|---|
| — | #1f1f1fff | — |
| meta.embedded, source.groovy.embedded | #272822 | — |
| comment | #a0a1a7 | — |
| string | #bc4c00 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #d1242f | — |
| meta.template.expression | #777774 | — |
| constant.numeric | #8250df | — |
| constant.language | #8250df | — |
| constant.character, constant.other | #8250df | — |
| variable | #000 | |
| keyword | #d1242f | — |
| storage | #d1242f | |
| storage.type | #0969da | italic |
| entity.name.type, entity.name.class | #1a7f37 | underline |
| entity.other.inherited-class | #1a7f37 | italic underline |
| entity.name.function | #1a7f37 | |
| variable.parameter | #EF8307 | italic |
| entity.name.tag | #d1242f | |
| entity.other.attribute-name | #1a7f37 | |
| support.function | #0969da | |
| support.constant | #0969da | |
| support.type, support.class | #0969da | italic |
| support.other.variable | — | |
| invalid | #777774 | |
| invalid.deprecated | #777774 | — |
| invalid.deprecated.html | #d1242f99 | — |
| meta.structure.dictionary.json string.quoted.double.json | #bc4c00 | — |
| meta.diff, meta.diff.header | #9b9587 | — |
| markup.deleted | #d1242f | — |
| markup.inserted | #1a7f37 | — |
| markup.changed | #E5CE00 | — |
| constant.numeric.line-number.find-in-files - match | #8250dfA0 | — |
| entity.name.filename.find-in-files | #E5CE00 | — |
| markup.quote | #d1242f | — |
| markup.list | #E5CE00 | — |
| markup.bold, markup.italic | #0969da | — |
| markup.inline.raw | #EF8307 | |
| markup.heading | #1a7f37 | — |
| markup.heading.setext | #1a7f37 | |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| variable.language | #d1242f | — |
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}!`;
}