MultiTheme
Publisher: Arturo ArevaloThemes in package: 336
A collection of themes ported from TextMate
A collection of themes ported from TextMate
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #e5e5e5 | — |
| comment | #b87f62 | — |
| string | #fbce33 | — |
| constant.numeric | #00acf6 | — |
| constant.language | #27c3ca | — |
| constant.character, constant.other | #41bc8e | — |
| variable | #74d992 | |
| keyword | #ff8e30 | — |
| storage | #ece41d | |
| storage.type | #f2f2f2 | italic |
| entity.name.class | #afe61d | — |
| entity.other.inherited-class | #afe61d | italic |
| entity.name.function | #27c3ca | |
| variable.parameter | #fd861f | italic |
| entity.name.tag | #00acf6 | |
| entity.other.attribute-name | #ff8e30 | |
| support.function | #27c3ca | |
| support.constant | #fefbf6 | |
| support.type, support.class | #eabf4d | italic |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
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}!`;
}