Monokai-Aurora Theme
Publisher: geraneThemes in package: 1
Monokai-Aurora Theme ported from the Monokai-Aurora TextMate Theme
Monokai-Aurora Theme ported from the Monokai-Aurora TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #eeeeee | — |
| comment | #686868 | — |
| string | #E6DB74 | — |
| constant.numeric | #50afe9 | bold |
| constant.language | #50afe9 | bold |
| constant.character, constant.other | #50afe9 | bold |
| variable | — | |
| keyword | #e12977 | — |
| storage | #e12977 | — |
| storage.type | #dc73d8 | bold italic |
| entity.name.class | #c5e400 | — |
| entity.other.inherited-class | #c5e400 | bold |
| entity.name.function | #c5e400 | bold |
| variable.parameter | #fff | bold italic |
| entity.name.tag | #F92672 | |
| entity.other.attribute-name | #dcff00 | bold |
| support.function | #ffb700 | bold |
| support.constant | #dc73d8 | |
| support.type, support.class | #ffb700 | |
| support.other.variable | — | |
| invalid | #000 | |
| invalid.deprecated | #ffff05 | — |
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}!`;
}