MatchaNeco
Publisher: necosawaThemes in package: 1
MatchaNeco is a lucafalasco/matcha fork
MatchaNeco is a lucafalasco/matcha fork
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 |
|---|---|---|
| source punctuation.definition.comment, source comment | #6e9759 | |
| source punctuation.definition.string, source string.quoted, source string, text.html string | #a2de82 | |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.separator.key-value.html, entity.other.attribute-name.html, entity.name.tag.html | #babb75 | |
| text.html.php punctuation.section.embedded.begin.php, text.html.php punctuation.section.embedded.end.php | #D1DED3 | |
| source.php constant.numeric, source.php constant.language, source.php storage.type, source.php string.regexp, source.php keyword.other.new, source.php keyword.operator.regexp, source.php entity.other.alias | #ffb477 | |
| source.php keyword.control.import, source.php support, source.php entity.name | #e2e38b | |
| source.php support.other | #babb75 | |
| source.php variable | #afe4f5 | |
| source.js constant.numeric, source.js constant.language, source.js storage.type, source.js string.regexp, source.js keyword.operator.new, source.js keyword.operator.regexp, source.js entity.other.alias | #ffb477 | |
| source.js keyword.control.import, source.js support, source.js entity.name | #e2e38b | |
| source.js support.other | #babb75 | |
| source.js variable | #afe4f5 | |
| source.css keyword.operator.regexp, keyword.other.unit.px.css | #ffb477 | |
| source.css entity.name.tag, source.css entity | #e2e38b | |
| source.css variable | #afe4f5 | |
| source.json constant.numeric, source.json constant.language, source.json storage.type, source.json string.regexp, source.json keyword.operator.new, source.json keyword.operator.regexp, source.json entity.other.alias | #ffb477 | |
| source.json keyword.control.import, source.json support, source.json entity.name | #e2e38b |
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}!`;
}