Merbivore_Soft Theme
Publisher: geraneThemes in package: 1
Merbivore_Soft Theme ported from the MerbivoreSoft TextMate Theme
Merbivore_Soft Theme ported from the MerbivoreSoft TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #E6E1DC | — |
| source | — | — |
| comment | #AC4BB8 | italic |
| invalid.deprecated | #FFFFFF | — |
| keyword, storage | #FC803A | |
| entity.name.function, keyword.other.name-of-parameter.objc | — | |
| entity.name | — | — |
| entity.other.inherited-class | #C984CD | — |
| constant.numeric | #7FC578 | |
| variable.language, variable.other | — | |
| constant | #68C1D8 | |
| variable.other.constant | — | — |
| constant.language | #E1C582 | |
| string | #8EC65F | |
| support.function | — | |
| constant.library | #8EC65F | — |
| support.type | #68C1D8 | — |
| support.constant | #8EC65F | — |
| meta.tag, declaration.tag, entity.name.tag | #FC803A | |
| meta | #AC4BB8 | italic |
| entity.other.attribute-name | #EAF1A3 | — |
| invalid | #FFFFFF | — |
| constant.character.escaped, constant.character.escape, string source, string source.ruby | #B3E5B4 | |
| markup.inserted | #E6E1DC | — |
| markup.deleted | #E6E1DC | — |
| meta.diff.header, meta.separator.diff, meta.diff.index, meta.diff.range | — | — |
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}!`;
}