江南烟雨主题
Publisher: zhoulaiqingThemes in package: 5
一组成对设计的 VS Code 主题,灵感来自江南烟雨、白墙乌瓦、晨雾水气与夜巷灯影。
一组成对设计的 VS Code 主题,灵感来自江南烟雨、白墙乌瓦、晨雾水气与夜巷灯影。
Full workbench mockup using this variant's colors and tokenColors.
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, punctuation.definition.comment | #73848A | italic |
| string, markup.inline.raw, markup.fenced_code.block | #71948E | — |
| constant.numeric, constant.language, constant.character, constant.other, constant.escape | #A58D65 | — |
| keyword, storage, storage.type, keyword.control, keyword.operator.new, keyword.operator.expression | #9E726B | — |
| entity.name.function, support.function, meta.function-call, variable.function, entity.name.method | #7892B2 | — |
| entity.name.type, entity.name.class, support.type, support.class, storage.type, entity.name.namespace | #A68D66 | — |
| variable, string constant.other.placeholder, meta.definition.variable.name | #B9B4AA | — |
| variable.parameter | #AEA89F | — |
| variable.other.property, meta.object-literal.key, entity.other.attribute-name | #AA806C | — |
| entity.name.tag, meta.tag.sgml, punctuation.definition.tag | #A1645E | — |
| keyword.operator, punctuation, meta.brace | #727A7D | — |
| markup.heading, entity.name.section.markdown | #7086A2 | bold |
| markup.bold, markup.italic | #8B7C95 | — |
| support.type.property-name.json | #AA806C | — |
| invalid, invalid.illegal | #CDC9C1 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
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}!`;
}