Slush & Poppies
Publisher: lanthalerThemes in package: 1
A slightly tweaked version William D. Neumann's great Slush & Poppies theme.
A slightly tweaked version William D. Neumann's great Slush & Poppies theme.
Full workbench mockup using this variant's colors and tokenColors.
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #000000 | — |
| comment | #406040 | |
| string | #C03030 | — |
| constant.numeric | #0080A0 | — |
| source.ocaml constant.numeric.floating-point |
TypeScript sample highlighted with this variant's colors and tokenColors.
| underline |
| constant.character | #800000 | — |
| constant.language | — | — |
| constant.character, constant.other | — | — |
| variable.parameter, variable.other | — | — |
| keyword | #2060A0 |
| keyword.operator | #2060A0 |
| source.ocaml keyword.operator.symbol.prefix.floating-point | — | underline |
| source.ocaml keyword.operator.symbol.infix.floating-point | — | underline |
| entity.name.module, support.other.module | #0080FF |
| storage.type | #A08000 | — |
| storage | #008080 | — |
| entity.name.class.variant | #C08060 | — |
| keyword.other.directive | — | bold |
| source.ocaml keyword.other.directive.line-number | — |
| entity.other.inherited-class | — | — |
| entity.name.function | #800000 |
| storage.type.user-defined | #800080 | — |
| entity.name.type.class.type | #8000C0 | — |
| variable.parameter | — | — |
| entity.name.tag | — | — |
| entity.other.attribute-name | — | — |
| support.function | — | — |
| support.constant | — | — |
| support.type, support.class | — | — |
| support.variable | — | — |
| invalid | — | — |
| sublimelinter.mark.error | #D02000 | — |
| sublimelinter.mark.warning | #DDB700 | — |
| sublimelinter.gutter-mark | #FFFFFF | — |
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}!`;
}