Caffe Crema
Publisher: Mónica VillarroelThemes in package: 2
A cozy cappuccino-inspired theme: espresso darks, creamy lights, and caramel accents.
A cozy cappuccino-inspired theme: espresso darks, creamy lights, and caramel accents.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, punctuation.definition.comment | #4e8d16 | italic |
| keyword, storage.type, storage.modifier | #ba6f1a | — |
| string, constant.other.symbol | #f38005 | — |
| constant.numeric, constant.boolean, constant.language | #bad356 | — |
| entity.name.function, support.function | #D6A2E8 | — |
| entity.name.type, support.type, entity.name.class | #A3BFD9 | — |
| variable, meta.definition.variable | #4d6116 | — |
| variable.parameter | #8C5C3C | — |
| punctuation, keyword.operator | #ab9d64 | — |
| support.type.property-name.json | #f0cda3 | — |
| markup.heading, markup.heading entity.name | #b5765d | bold |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.underline.link, constant.other.reference.link | #666faa | underline |
| meta.property-name, support.type.property-name | #E3B98C | — |
| keyword.operator | #dbf3d8 | — |
| entity.name.tag | #e1c29c | bold |
| entity.other.attribute-name | #d18e46 | — |
| string.quoted.double.xml, string.quoted.single.xml | #12857f | — |
| punctuation.definition.tag, punctuation.separator.key-value.xml | #c16830 | — |
| meta.tag.preprocessor.xml | #169124 | 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}!`;
}