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 |
|---|---|---|
| — | #5f5f5e | — |
| comment | #91a51f | — |
| string | #1a1a19 | — |
| constant.numeric | #1a1a19 | — |
| constant.language | #1a1a19 | — |
| constant.character, constant.other | #1a1a19 | — |
| variable | — | — |
| keyword | — | italic |
| keyword.operator | — | |
| storage | — | — |
| storage.type, support.type | — | italic |
| storage.type | — | — |
| entity.name.class | — | — |
| entity.other.inherited-class | — | — |
| entity.name.function | — | — |
| variable.parameter | — | — |
| entity.name.tag, punctuation.definition.tag, entity.other.attribute-name, string.quoted.single.html, string.quoted.double.html, string.quoted.single.xml, string.quoted.double.xml, meta.tag | #a4a3a1 | — |
| string.quoted.double.json, string.quoted.single.json | #5f5f5e | — |
| support.function | — | — |
| support.constant | — | — |
| support.type, support.class | — | — |
| support.other.variable | — | — |
| meta.diff, meta.diff.header | — | — |
| markup.deleted | #b85227 | — |
| markup.inserted | #91a51f | — |
| markup.changed | #277eb8 | — |
| constant.numeric.line-number.find-in-files - match | #a4a3a1 | — |
| entity.name.filename.find-in-files | #1a1a19 | — |
| sublimelinter.mark.warning | #DDB700 | — |
| sublimelinter.gutter-mark | #FFFFFF | — |
| sublimelinter.mark.error | #D02000 | — |
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}!`;
}