Plain Language Theme + Syntax
Publisher: Ouadie LaachkarThemes in package: 1
Candy color theme and syntax highlighting for Plain language (.pln) files
Candy color theme and syntax highlighting for Plain language (.pln) files
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, comment.line.number-sign.plain, comment.line.double-slash.plain | #94a3b8 | italic |
| string, string.quoted.double.plain, string.quoted.single.plain | #f472b6 | — |
| constant.numeric, constant.numeric.plain | #60a5fa | — |
| constant.language, constant.language.plain | #fbbf24 | — |
| keyword, keyword.control, keyword.control.plain | #facc15 | bold |
| keyword.operator, keyword.operator.plain | #fb923c | — |
| support.function, support.function.plain | #a78bfa | — |
| entity.name.type, entity.name.type.class, entity.name.type.class.plain | #34d399 | — |
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}!`;
}