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 |
|---|---|---|
| — | #9bc28e | — |
| comment | #ff6666 | — |
| string | #7ecd00 | — |
| string.quoted source | #d2c200 | — |
| constant.numeric | #e54242 | bold |
| constant.language | #00cccc | — |
| constant.character, constant.other | #b281ff | — |
| variable | — | |
| keyword | #cca000 | — |
| storage | #f9266b | |
| storage.type | #cca000 | bold |
| entity.name.class, entity.name.type.class, support.class | #ffffff | bold |
| entity.other.inherited-class | #99c28e | — |
| entity.name.function | #ffffff | — |
| variable.parameter | #cca000 | — |
| entity.name.tag | #c69957 | |
| entity.other.attribute-name | #dedb72 | |
| support.function | #00c5cc | |
| support.constant | #66d4ef | |
| support.type, support.class | #00c5cc | — |
| support.other.variable | — | |
| string.quoted.double.block.python | #d2c200 | — |
| invalid | #000000 | |
| invalid.deprecated | #f8f8f0 | — |
| string constant | #00ff00 | — |
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}!`;
}