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 |
|---|---|---|
| — | #F8F8F8 | — |
| comment | #AEAEAE | |
| constant | #D8FA3C | |
| entity | #FF6400 | |
| keyword | #FBDE2D | |
| storage | #FBDE2D | |
| string, meta.verbatim | #61CE3C | |
| support | #8DA6CE | |
| variable | — | |
| invalid.deprecated | #AB2A1D | italic |
| invalid.illegal | #F8F8F8 | — |
| entity.other.inherited-class | #FF6400 | italic |
| string constant.other.placeholder | #FF6400 | |
| meta.function-call.py | #BECDE6 | |
| meta.tag, meta.tag entity | #7F90AA | — |
| entity.name.section | #FFFFFF | |
| keyword.type.variant | #D5E0F3 | — |
| source.ocaml keyword.operator.symbol | #F8F8F8 | — |
| source.ocaml keyword.operator.symbol.infix | #8DA6CE | |
| source.ocaml keyword.operator.symbol.prefix | #8DA6CE | |
| source.ocaml keyword.operator.symbol.infix.floating-point | — | underline |
| source.ocaml keyword.operator.symbol.prefix.floating-point | — | underline |
| source.ocaml constant.numeric.floating-point | — | underline |
| text.tex.latex meta.function.environment | — | — |
| text.tex.latex meta.function.environment meta.function.environment | — | — |
| text.tex.latex support.function | #FBDE2D | |
| source.plist string.unquoted, source.plist keyword.operator | #FFFFFF | — |
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}!`;
}