Espresso_Libre Theme
Publisher: geraneThemes in package: 1
Espresso_Libre Theme ported from the EspressoLibre TextMate Theme
Espresso_Libre Theme ported from the EspressoLibre TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #BDAE9D | — |
| comment | #0066FF | italic |
| keyword, storage | #43A8ED | bold |
| constant.numeric | #44AA43 | |
| constant | #C5656B | bold |
| constant.language | #585CF6 | bold |
| variable.language, variable.other | #318495 | |
| string | #049B0A | |
| constant.character.escape, string source | #2FE420 | |
| meta.preprocessor | #1A921C | |
| keyword.control.import | #9AFF87 | bold |
| entity.name.function, keyword.other.name-of-parameter.objc | #FF9358 | bold |
| entity.name.type | — | underline |
| entity.other.inherited-class | — | italic |
| variable.parameter | — | italic |
| storage.type.method | #8B8E9C | |
| meta.section entity.name.section, declaration.section entity.name.section | — | italic |
| support.function | #7290D9 | bold |
| support.class, support.type | #6D79DE | bold |
| support.constant | #00AF0E | bold |
| support.variable | #2F5FE0 | bold |
| keyword.operator.js | #687687 | — |
| invalid | #FFFFFF | — |
| invalid.deprecated.trailing-whitespace | — | — |
| text source, string.unquoted | — | — |
| meta.tag.preprocessor.xml | #8F7E65 | |
| meta.tag.sgml.doctype | #888888 | |
| string.quoted.docinfo.doctype.DTD | — | italic |
| meta.tag, declaration.tag | #43A8ED | |
| entity.name.tag | — | bold |
| entity.other.attribute-name | — | italic |
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}!`;
}