monokai light
Publisher: anoffThemes in package: 1
monokai colors on bright background π
monokai colors on bright background π
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| β | #000000 | β |
| comment | #9F9F8F | β |
| string | #F25A00 | β |
| constant.numeric | #AE81FF | β |
| constant.language | #AE81FF | β |
| constant.character, constant.other | #AE81FF | β |
| variable | β | |
| keyword | #F92672 | β |
| storage | #F92672 | |
| storage.type | #28C6E4 | italic |
| entity.name.class | #6AAF19 | underline |
| entity.other.inherited-class | #6AAF19 | italic underline |
| entity.name.function | #6AAF19 | |
| variable.language | #FD971F | italic |
| variable.parameter | #FD971F | italic |
| entity.name.tag | #F92672 | |
| entity.other.attribute-name | #6AAF19 | |
| support.function | #28C6E4 | |
| support.constant | #28C6E4 | |
| support.type, support.class | #28C6E4 | italic |
| meta.attribute | #cd3704 | italic |
| support.other.variable | β | |
| invalid | #000000 | |
| invalid.deprecated | #000000 | β |
| markup.underline | β | underline |
| markup.bold | #28C6E4 | bold |
| markup.heading | #28C6E4 | bold |
| markup.italic | #28C6E4 | italic |
| markup.inserted | #6AAF19 | β |
| markup.deleted | #F92672 | β |
| markup.changed | #F25A00 | β |
| markup.quote | #F92672 | β |
| markup.list | #F25A00 | β |
| markup.inline.raw | #FD971F | β |
| meta.embedded | #000000FF | β |
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}!`;
}