《青蛇》主题|Green Snake Theme
Publisher: 张番茄-isiicoThemes in package: 1
一场东方美学的代码奇遇|The Aesthetic Code Quest: When East Meets Binary
一场东方美学的代码奇遇|The Aesthetic Code Quest: When East Meets Binary
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 keyword, source storage.type, source storage.modifier | #ba8ef7 | — |
| source string, source string.quoted | #5bec95 | — |
| source comment, source punctuation.definition.comment | #707a84 | — |
| source entity.name.function, source support.function, source meta.function-call | #ffea6b | — |
| source entity.name.type, source support.class, source support.type, source entity.name.class | #5fb5f3 | — |
| source constant.numeric | #89ddff | — |
| source keyword.operator, source punctuation.separator, source punctuation.terminator | #939da5 | — |
| source variable, source variable.other, source variable.parameter | #a6c1e4 | — |
| source, text, variable, constant, keyword | #a6c1e4 | — |
| punctuation.separator, punctuation.terminator, punctuation.definition.string, punctuation.separator.key-value | #707a84 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #ff6a80 | — |
| entity.other.attribute-name, entity.other.attribute-name.html | #ffa763 | — |
| string.quoted.double.html, string.quoted.single.html | #5bec95 | — |
| punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #707a84 | — |
| meta.tag.metadata.doctypedecl, meta.tag.metadata.doctype | #ba8ef7 | — |
| markdown.heading, markup.heading, markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #5bec95 | bold |
| markup.bold, markup.bold string | #ba8ef7 | bold |
| markup.italic | #ba8ef7 | italic |
| markup.raw, markup.inline.raw, markup.raw.block.markdown, markup.raw.block.fenced.markdown | #ffea6b | — |
| string.other.link.title.markdown | #5fb5f3 | — |
| markup.underline.link, constant.other.reference.link.markdown | #89ddff | underline |
| markup.quote | #939da5 | italic |
| punctuation.definition.list_item.markdown | #ffd700 | — |
| meta.separator | #707a84 | bold |
| punctuation.attribute-shorthand.event, punctuation.attribute-shorthand.bind, punctuation.attribute-shorthand.slot, entity.other.attribute-name.angular, punctuation.definition.keyword, variable.language.this | #ffffff | — |
| source.ts keyword.control, source.ts keyword.control.import, source.ts keyword.control.export, source.ts keyword.control.flow | #ba8ef7 | — |
| source.ts storage.type, source.ts storage.modifier | #ba8ef7 | — |
| source.ts entity.name.type, source.ts support.class, source.ts support.type, source.ts entity.name.class, source.ts meta.return.type, source.ts meta.type.annotation | #5fb5f3 | — |
| source.ts variable.parameter | #ffa763 | — |
| source.ts meta.decorator meta.array.literal variable.other.readwrite, source.ts meta.decorator meta.array.literal variable.other.object | #ffd700 | — |
| source.ts variable.other.property, source.ts variable.object.property, source.ts meta.field.declaration variable.other.readwrite | #ffea6b | — |
| source.ts meta.object-literal.key, source.ts variable.other.property.ts | #939da5 | — |
| source.ts variable.language.this | #939da5 | — |
| source.ts meta.function-call entity.name.function, source.ts meta.method-call entity.name.function | #ba8ef7 | — |
| source.ts meta.attribute.style.html source.css, source.ts meta.attribute.style.html source.css support.type.property-name.css, source.ts meta.attribute.style.html source.css meta.property-value.css, source.ts meta.attribute.style.html source.css constant.numeric.css, source.ts meta.attribute.style.html source.css keyword.other.unit.css, source.ts meta.attribute.style.html source.css punctuation.separator.key-value.css, source.ts meta.attribute.style.html source.css punctuation.terminator.rule.css | #5bec95 | — |
| source.ts meta.attribute.style.html punctuation.definition.string.begin.html, source.ts meta.attribute.style.html punctuation.definition.string.end.html, source.ts meta.attribute.style.html punctuation.definition.string | #707a84 | — |
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}!`;
}