Spring Matcha 抹春绿
Publisher: omigoThemes in package: 1
护眼浅绿主题 · 春抹绿。统一的抹茶浅绿底色、绿色系边框与选中高亮,Markdown 表格/引用/代码块全面协调,长时间阅读不刺眼。A soothing matcha-green light theme for coding and Markdown reading.
护眼浅绿主题 · 春抹绿。统一的抹茶浅绿底色、绿色系边框与选中高亮,Markdown 表格/引用/代码块全面协调,长时间阅读不刺眼。A soothing matcha-green light theme for coding and Markdown reading.
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 | #7CA386 | italic |
| string | #2F8F5B | — |
| constant.numeric | #1F7A4D | — |
| constant.language | #0F6E8C | — |
| keyword | #3E7D4E | — |
| keyword.operator | #5B7FC2 | — |
| entity.name.function, support.function | #7A5FB8 | — |
| entity.name.type, entity.name.class, support.type, support.class | #0F6E8C | — |
| variable | #383A42 | — |
| variable.other.property, support.variable.property | #383A42 | — |
| entity.name.tag | #C25B3A | — |
| entity.other.attribute-name | #8F7A1F | — |
| markup.heading | #2F5D3A | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.underline.link, string.other.link | #2F8F5B | — |
| markup.quote | #5C7A63 | italic |
| markup.inline.raw, punctuation.definition.raw | #C25B3A | — |
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}!`;
}