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 |
|---|---|---|
| — | #F5F1F2 | — |
| string.quoted | #91E1FF | — |
| variable.parameter | #9FB2BC | — |
| variable.parameter | #F5F1F2AF | italic |
| constant.numeric | #FFD75F | — |
| constant.language | #9DBAD2 | — |
| comment | #FFFFFF3A | — |
| comment punctuation | #FFFFFF20 | — |
| support | — | |
| keyword | #C6F56A | — |
| storage | #C6F56A | italic |
| keyword.operator | #FFFFFF6F | — |
| entity | — | italic |
| entity.name.function | — | none |
| entity.name.tag | #C6F56A | — |
| entity.other.attribute-name | — | — |
| punctuation - comment - constant - string, meta.delimiter | #FFFFFFAF | — |
| string.regexp | #FF8BFF | |
| string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #A082BD | — |
| invalid | #FFFFFF | — |
| invalid.deprecated | #F8F8F0 | — |
| meta.selector.css | #FFFFFF | — |
| meta.selector.css punctuation | #F8F8F08F | — |
| support.type.property-name.css | #F8F8F088 | — |
| meta.property-value support.constant.named-color.css, meta.property-value constant | #BBD2DE | — |
| meta.brace, paren | #FFFFFF8F | — |
| markup.deleted | #F92672 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #967EFB | — |
| brackethighlighter.default, brackethighlighter.unmatched, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.tag, brackethighlighter.quote | #FFFFFF40 | — |
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}!`;
}