Papilio
Publisher: Felipe LazzariniThemes in package: 2
A warm dark theme built on deep red-brown, crimson and antique gold. Fan-made and unaffiliated with HoYoverse; inspired by Hu Tao's palette from Genshin Impact.
A warm dark theme built on deep red-brown, crimson and antique gold. Fan-made and unaffiliated with HoYoverse; inspired by Hu Tao's palette from Genshin Impact.
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 | #897987 | italic |
| keyword, keyword.control, storage.type, storage.modifier | #ea5356 | — |
| string, string.quoted, punctuation.definition.string | #ffaea9 | — |
| constant.numeric | #c796d3 | — |
| constant.language, constant.character, variable.other.constant, support.constant | #c796d3 | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #90d0e1 | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #f0a068 | — |
| variable, meta.definition.variable | #ece0d1 | — |
| variable.language | #ea5356 | — |
| entity.name.namespace, entity.name.module, storage.modifier.package | #f0a068 | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #c796d3 | — |
| variable.parameter | #ece0d1 | italic |
| variable.other.property, support.variable.property, meta.object-literal.key | #ece0d1 | — |
| keyword.operator | #a39187 | — |
| punctuation, meta.brace | #a39187 | — |
| entity.name.tag | #ea5356 | — |
| entity.other.attribute-name | #6d84c4 | italic |
| string.regexp | #f0a068 | — |
| constant.character.escape | #f0a068 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #f0a068 | — |
| meta.embedded, meta.template.expression | #ece0d1 | — |
| markup.heading, entity.name.section | #ea5356 | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.inline.raw, markup.fenced_code | #ffaea9 | — |
| markup.underline.link | #90d0e1 | — |
| markup.quote | #897987 | — |
| markup.list punctuation.definition.list, beginning.punctuation.definition.list | #ea5356 | — |
| markup.inserted, meta.diff.header.to-file | #5e8b58 | — |
| markup.deleted, meta.diff.header.from-file | #f2493b | — |
| markup.changed | #c49a5d | — |
| meta.diff.range, punctuation.definition.range.diff | #90d0e1 | — |
| support.type.property-name.json | #90d0e1 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.placeholder.css, entity.other.attribute-name.parent-selector-suffix.css, entity.other.attribute-name.class.less, entity.other.attribute-name.id.less, entity.other.attribute-name.pseudo-class.less, entity.other.attribute-name.pseudo-element.less, entity.other.attribute-name.pseudo-class.extend.less, entity.other.attribute-name.parent.less | #f0a068 | |
| support.type.property-name.css | #ece0d1 | — |
| keyword.other.unit.css, constant.numeric.css | #c796d3 | — |
| invalid, invalid.illegal | #f2493b | — |
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 | #897987 | italic |
| keyword, keyword.control, storage.type, storage.modifier | #f44853 | — |
| string, string.quoted, punctuation.definition.string | #ffa49e | — |
| constant.numeric | #d392e6 | — |
| constant.language, constant.character, variable.other.constant, support.constant | #d392e6 | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #7ed6ee | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #f9a25f | — |
| variable, meta.definition.variable | #ece0d1 | — |
| variable.language | #f44853 | — |
| entity.name.namespace, entity.name.module, storage.modifier.package | #f9a25f | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #d392e6 | — |
| variable.parameter | #ece0d1 | italic |
| variable.other.property, support.variable.property, meta.object-literal.key | #ece0d1 | — |
| keyword.operator | #a39187 | — |
| punctuation, meta.brace | #a39187 | — |
| entity.name.tag | #f44853 | — |
| entity.other.attribute-name | #6a86dc | italic |
| string.regexp | #f9a25f | — |
| constant.character.escape | #f9a25f | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #f9a25f | — |
| meta.embedded, meta.template.expression | #ece0d1 | — |
| markup.heading, entity.name.section | #f44853 | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.inline.raw, markup.fenced_code | #ffa49e | — |
| markup.underline.link | #7ed6ee | — |
| markup.quote | #897987 | — |
| markup.list punctuation.definition.list, beginning.punctuation.definition.list | #f44853 | — |
| markup.inserted, meta.diff.header.to-file | #579552 | — |
| markup.deleted, meta.diff.header.from-file | #f9422f | — |
| markup.changed | #cb9b52 | — |
| meta.diff.range, punctuation.definition.range.diff | #7ed6ee | — |
| support.type.property-name.json | #7ed6ee | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.placeholder.css, entity.other.attribute-name.parent-selector-suffix.css, entity.other.attribute-name.class.less, entity.other.attribute-name.id.less, entity.other.attribute-name.pseudo-class.less, entity.other.attribute-name.pseudo-element.less, entity.other.attribute-name.pseudo-class.extend.less, entity.other.attribute-name.parent.less | #f9a25f | |
| support.type.property-name.css | #ece0d1 | — |
| keyword.other.unit.css, constant.numeric.css | #d392e6 | — |
| invalid, invalid.illegal | #f9422f | — |
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}!`;
}