马卡龙主题 (Macaron Theme)
Publisher: haogeorgeThemes in package: 2
柔和甜美的马卡龙配色代码高亮主题,含奶油浅色和可可深色两个变体
柔和甜美的马卡龙配色代码高亮主题,含奶油浅色和可可深色两个变体
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, punctuation.definition.comment | #9A8D84 | italic |
| string, string.quoted.double, string.quoted.single | #9ED0A8 | — |
| string.template, string.interpolated | #A8D6B2 | — |
| string.regexp | #DFA3CB | — |
| constant.numeric | #F2B98F | — |
| constant.language | #EFA8C8 | — |
| constant.character.escape | #EFA8C8 | — |
| keyword, keyword.control | #F0A3B8 | — |
| keyword.operator | #C4AE9F | — |
| keyword.other.unit | #F2B98F | — |
| storage, storage.type | #CBA9E8 | — |
| storage.modifier | #F0A3B8 | — |
| entity.name.function, support.function, meta.function-call.generic, meta.function-call.method | #C0B4F5 | — |
| entity.name.type, entity.name.class, support.type, support.class | #8FCBE0 | — |
| entity.name.tag | #F0A3B8 | — |
| entity.other.attribute-name | #E8B87A | — |
| variable, variable.other | #EBDFD6 | — |
| variable.parameter | #D4B596 | — |
| variable.other.property, meta.property-name | #D8C7B8 | — |
| variable.other.constant | #EFA8C8 | — |
| punctuation.separator, punctuation.terminator, punctuation.definition | #B3A79C | — |
| meta.brace | #A89A8C | — |
| invalid | #E88A96 | — |
| markup.heading | #C0B4F5 | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.underline.link | #8FCBE0 | — |
| markup.inserted | #9ED0A8 | — |
| markup.deleted | #E88A96 | — |
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, punctuation.definition.comment | #B9A9A5 | italic |
| string, string.quoted.double, string.quoted.single | #6FA982 | — |
| string.template, string.interpolated | #7FB08D | — |
| string.regexp | #B5739D | — |
| constant.numeric | #D98E5F | — |
| constant.language | #C96F98 | — |
| constant.character.escape | #C77F9F | — |
| keyword, keyword.control | #D97A93 | — |
| keyword.operator | #B08E9C | — |
| keyword.other.unit | #D98E5F | — |
| storage, storage.type | #C084C8 | — |
| storage.modifier | #D97A93 | — |
| entity.name.function, support.function, meta.function-call.generic, meta.function-call.method | #8E7CC3 | — |
| entity.name.type, entity.name.class, support.type, support.class | #4FA3C4 | — |
| entity.name.tag | #D97A93 | — |
| entity.other.attribute-name | #C08A3E | — |
| variable, variable.other | #5C5262 | — |
| variable.parameter | #A9846B | — |
| variable.other.property, meta.property-name | #7A6B8F | — |
| variable.other.constant | #C96F98 | — |
| punctuation.separator, punctuation.terminator, punctuation.definition | #A99A9F | — |
| meta.brace | #9C8B94 | — |
| invalid | #CC5A6E | — |
| markup.heading | #8E7CC3 | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.underline.link | #4FA3C4 | — |
| markup.inserted | #6FA982 | — |
| markup.deleted | #CC5A6E | — |
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}!`;
}