ZhaiSasi Themes
Publisher: zhaisasiThemes in package: 1
非常健康的配色 Very healthy color matching
非常健康的配色 Very healthy color matching
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 |
|---|---|---|
| — | #555 | — |
| comment | #999 | — |
| string.quoted.single | #4b4 | — |
| string | #5a5 | — |
| string.regexp | #93f | — |
| constant | #39f | — |
| support.constant | #39f | bold |
| constant.language | #39f | bold |
| constant.other | #39f | — |
| variable | #e33 | — |
| variable.language | #e33 | bold |
| variable.other.member | #e33 | — |
| variable.other.dollar.only.js | #e33 | — |
| variable.function | #93f | — |
| support.function | #93f | bold |
| entity.name.function | #93f | — |
| entity | #d90 | — |
| variable.parameter | #d90 | — |
| keyword | #00f | — |
| keyword.operator | #00f | — |
| storage | #00f | — |
| support | #e3e | — |
| entity.other.inherited-class | #e3e | — |
| entity.name.tag | #39f | — |
| entity.other.attribute-name | #e00 | — |
| invalid | #000 | bold underline |
| User-defined | #000 | bold underline |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}