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 |
|---|---|---|
| — | #a5a2a2 | — |
| variable.parameter.function | #a5a2a2 | — |
| comment, punctuation.definition.comment | #5c5855 | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #a5a2a2 | — |
| none | #a5a2a2 | — |
| keyword.operator | #a5a2a2 | — |
| keyword, keyword.control | #a16a94 | — |
| variable | #db2d20 | — |
| entity.name.function, meta.require, support.function.any-method | #01a0e4 | — |
| meta.class, support.class, entity.name.class, entity.name.type.class | #fded02 | — |
| keyword.other.special-method | #01a0e4 | — |
| storage | #a16a94 | — |
| support.function | #b5e4f4 | — |
| string, constant.other.symbol, entity.other.inherited-class | #01a252 | — |
| constant.numeric | #e8bbd0 | — |
| none | #e8bbd0 | — |
| none | #e8bbd0 | — |
| constant | #e8bbd0 | — |
| entity.name.tag | #db2d20 | — |
| entity.other.attribute-name | #e8bbd0 | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #01a0e4 | — |
| meta.selector | #a16a94 | — |
| none | #e8bbd0 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #01a0e4 | |
| keyword.other.unit | #e8bbd0 | — |
| markup.bold, punctuation.definition.bold | #fded02 | bold |
| markup.italic, punctuation.definition.italic | #a16a94 | italic |
| markup.raw.inline | #01a252 | — |
| string.other.link | #db2d20 | — |
| meta.link | #e8bbd0 | — |
| markup.list | #db2d20 | — |
| markup.quote | #e8bbd0 | — |
| meta.separator | #a5a2a2 | — |
| markup.inserted | #01a252 | — |
| markup.deleted | #db2d20 | — |
| markup.changed | #a16a94 | — |
| constant.other.color | #b5e4f4 | — |
| string.regexp | #b5e4f4 | — |
| constant.character.escape | #b5e4f4 | — |
| punctuation.section.embedded, variable.interpolation | #cdab53 | — |
| invalid.illegal | #090300 | — |
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}!`;
}