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 |
|---|---|---|
| — | #BFD7DB | — |
| comment | #404449 | italic |
| string | #7FD6FA | — |
| string.regex | #8abeb7 | — |
| string.other.link | #f25a55 | — |
| constant | #277BD3 | — |
| constant.numeric | #FD971F | — |
| constant.language | #de347a | — |
| constant.character, constant.other | #de347a | — |
| variable.function | #277BD3 | |
| variable.other | #BFD7DB | |
| variable | #BFD7DB | |
| variable.assignment | #f25a55 | |
| keyword | #D3422E | — |
| keyword.control | #F5BB12 | — |
| keyword.control.definition | #D3422E | — |
| keyword.operator | #F5BB12 | — |
| keyword.other.unit | #F5BB12 | italic |
| storage | #f25a55 | italic |
| storage.type | #D3422E | italic |
| storage.import | #F5BB12 | italic |
| entity.name.function | #F5BB12 | — |
| entity.name.class | #4BAE16 | — |
| entity.name.type.class | #4BAE16 | — |
| entity.name.tag | #FFC620 | — |
| entity.name.section | #277BD3 | — |
| entity.other.inherited-class | #f25a55 | underline |
| entity.other.attribute-name | #f25a55 | |
| entity.other.attribute-name.html | #f25a55 | |
| entity.other.attribute-name.id | #277BD3 | — |
| entity.name.function | #277BD3 | — |
| variable.parameter | #FFC620 | italic |
| entity.name.tag | #FFC620 | |
| entity.other.attribute-name | #FFC620 | |
| support.function | #FFC620 | — |
| support.constant | #DE347A | |
| support.type, support.class | #4BAE16 | italic |
| support.other.variable | #3299CC | |
| invalid | #191B1F | |
| invalid.deprecated | #191B1F | — |
| punctuation.definition.comment | #404449 | — |
| punctuation.definition.array | #BFD7DB | — |
| punctuation.definition.parameters | #BFD7DB | — |
| punctuation.definition.heading | #277BD3 | — |
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}!`;
}