Matcha Coded
Publisher: Ruqaiyya YSFThemes in package: 1
A premium, calm VS Code color theme built around dark and light matcha greens with soft pink accents.
A premium, calm VS Code color theme built around dark and light matcha greens with soft pink 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 |
|---|---|---|
| — | #D8DDD7 | — |
| comment, punctuation.definition.comment | #718F78 | italic |
| comment.documentation, comment.block.documentation, comment.line.documentation | #9CB89F | italic |
| comment.block.documentation keyword, comment.block.documentation storage.type.class, punctuation.definition.block.tag | #B97D7B | italic |
| string, string.quoted, punctuation.definition.string | #A8C3A5 | — |
| string template, template.expression, punctuation.definition.template-expression, punctuation.section.embedded | #E8E1D4 | — |
| string.regexp, constant.other.character-class.regexp | #C4DABF | — |
| constant.character.escape | #E8B8C8 | — |
| constant.numeric | #E8B8C8 | — |
| constant.language.boolean, constant.language, constant.language.null, constant.language.undefined, keyword.other.unit | #D89AAA | — |
| constant.other, variable.other.constant, variable.other.enummember | #E8B8C8 | — |
| keyword, keyword.other | #D89AAA | — |
| keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.control.import, keyword.control.trycatch | #D89AAA | bold |
| storage, storage.type, storage.modifier, keyword.other.using, keyword.other.new | #D89AAA | — |
| keyword.operator | #718F78 | — |
| punctuation, meta.brace, punctuation.separator, punctuation.terminator | #A8B3AB | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #E8E1D4 | — |
| variable.parameter, meta.parameter | #D8DDD7 | — |
| entity.name.type, entity.name.class, support.class, entity.other.inherited-class | #A8C3A5 | — |
| support.type, storage.type.primitive, support.type.builtin, entity.name.type.primitive | #8FB0A0 | — |
| entity.name.type.interface, entity.name.namespace, entity.name.module | #B3CCAE | — |
| variable, variable.other.readwrite, meta.definition.variable | #D8DDD7 | — |
| variable.other.property, variable.other.object.property, support.type.property-name | #E8E1D4 | — |
| variable.language | #B97D7B | italic |
| meta.decorator, punctuation.decorator, storage.type.annotation, meta.annotation | #B97D7B | — |
| entity.name.tag, meta.tag | #D89AAA | — |
| entity.other.attribute-name | #A8C3A5 | — |
| support.type.property-name.css, support.type.property-name.scss | #A8C3A5 | — |
| entity.other.attribute-name.class.css, entity.name.tag.css, entity.other.attribute-name.id.css | #E8B8C8 | — |
| support.constant.property-value.css, constant.numeric.css | #D89AAA | — |
| support.type.property-name.json | #A8C3A5 | — |
| markup.heading, entity.name.section.markdown | #D89AAA | bold |
| markup.bold | #E8E1D4 | bold |
| markup.italic | #E8E1D4 | italic |
| markup.underline.link, string.other.link | #A8C3A5 | — |
| markup.quote | #718F78 | italic |
| markup.inline.raw, markup.fenced_code.block | #A8C3A5 | — |
| keyword.other.sql, keyword.other.DML.sql, keyword.other.DDL.sql | #D89AAA | bold |
| invalid, invalid.illegal | #B97D7B | underline |
| invalid.deprecated | #A98488 | strikethrough |
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}!`;
}