Dusty Petal Theme
Publisher: lilinThemes in package: 2
A refined dusty rose and graphite VS Code theme with carefully crafted light and dark variants.
A refined dusty rose and graphite VS Code theme with carefully crafted light and dark variants.
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 | #7A676B | italic |
| comment.line | #7A676B | italic |
| comment.block | #7A676B | italic |
| string | #A6C27E | — |
| string.quoted | #A6C27E | — |
| string.template | #B6D28C | — |
| string.regexp | #D9B36A | — |
| constant.numeric | #D9B36A | — |
| constant.numeric.hex | #D9B36A | — |
| constant.language | #C49BE0 | — |
| constant.language.boolean | #C49BE0 | — |
| constant.language.null | #C49BE0 | — |
| constant.language.undefined | #C49BE0 | — |
| constant.character.escape | #D9B36A | — |
| constant.other.color | #D98C9C | — |
| keyword | #D98C9C | — |
| keyword.control | #D98C9C | — |
| keyword.operator | #9B8A8E | — |
| keyword.operator.new | #D98C9C | — |
| keyword.operator.logical | #D98C9C | — |
| keyword.other.unit | #D9B36A | — |
| keyword.other.special-method | #D98C9C | — |
| storage | #C49BE0 | — |
| storage.type | #C49BE0 | — |
| storage.modifier | #C49BE0 | — |
| entity.name.function | #8AA7C4 | — |
| entity.name.function.call | #8AA7C4 | — |
| support.function | #8AA7C4 | — |
| support.function.builtin | #79C2C2 | — |
| entity.name.class | #D9B36A | — |
| entity.name.type | #D9B36A | — |
| entity.name.type.class | #D9B36A | — |
| support.type | #D9B36A | — |
| support.type.class | #D9B36A | — |
| entity.name.namespace | #9AA7B3 | — |
| entity.name.module | #9AA7B3 | — |
| entity.name.interface | #D9B36A | — |
| entity.name.enum | #D9B36A | — |
| entity.name.struct | #D9B36A | — |
| entity.name.tag | #D98C9C | — |
| entity.name.tag.css | #E29BA8 | — |
| entity.name.tag.custom | #D98C9C | — |
| entity.other.attribute-name | #D9B36A | — |
| entity.other.attribute-name.class | #D9B36A | — |
| entity.other.attribute-name.id | #8AA7C4 | — |
| variable | #E8DDE0 | — |
| variable.parameter | #C7B2B6 | — |
| variable.other.constant | #C49BE0 | — |
| variable.other.property | #C7B2B6 | — |
| variable.other.object.property | #C7B2B6 | — |
| support.variable | #C7B2B6 | — |
| support.variable.property | #C7B2B6 | — |
| support.constant | #C49BE0 | — |
| support.constant.property-value | #A6C27E | — |
| support.class | #D9B36A | — |
| punctuation.definition.comment | #7A676B | — |
| punctuation.definition.string | #A6C27E | — |
| punctuation.definition.character | #A6C27E | — |
| punctuation.definition.tag | #D98C9C | — |
| punctuation.definition.block | #9B8A8E | — |
| punctuation.definition.parameters | #9B8A8E | — |
| punctuation.definition.template-expression | #D9B36A | — |
| punctuation.section | #9B8A8E | — |
| punctuation.separator | #9B8A8E | — |
| punctuation.terminator | #9B8A8E | — |
| meta.brace | #9B8A8E | — |
| meta.delimiter | #9B8A8E | — |
| meta.tag | #9B8A8E | — |
| invalid | #E29BA8 | — |
| invalid.deprecated | #E29BA8 | — |
| invalid.illegal | #E29BA8 | — |
| markup.heading | #E29BA8 | bold |
| markup.heading.1 | #E29BA8 | bold |
| markup.heading.2 | #E29BA8 | bold |
| markup.heading.3 | #D98C9C | bold |
| markup.heading.4 | #D98C9C | bold |
| markup.heading.5 | #D98C9C | — |
| markup.heading.6 | #D98C9C | — |
| markup.bold | #C49BE0 | bold |
| markup.italic | — | italic |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| markup.quote | #A6C27E | italic |
| markup.list | #D98C9C | — |
| markup.list.unnumbered | #D98C9C | — |
| markup.list.numbered | #D9B36A | — |
| markup.raw.inline | #79C2C2 | — |
| markup.fenced_code | #E8DDE0 | — |
| markup.link | #8AA7C4 | underline |
| markup.inserted | #A6C27E | — |
| markup.deleted | #E29BA8 | — |
| markup.changed | #D9B36A | — |
| markup.prompt | #8AA7C4 | — |
| meta.diff.header | #9AA7B3 | — |
| source.diff | #9AA7B3 | — |
| regexp | #D9B36A | — |
| json.key | #C7B2B6 | — |
| source.json meta.structure.dictionary.key string | #C7B2B6 | — |
| yaml.key | #C7B2B6 | — |
| source.yaml entity.name.tag | #C7B2B6 | — |
| sql.keyword | #D98C9C | — |
| sql.string | #A6C27E | — |
| sql.numeric | #D9B36A | — |
| sql.storage | #C49BE0 | — |
| php.string | #A6C27E | — |
| php.keyword | #D98C9C | — |
| php.constant.language | #C49BE0 | — |
| php.function-call | #8AA7C4 | — |
| python.string | #A6C27E | — |
| python.keyword | #D98C9C | — |
| python.function-call | #8AA7C4 | — |
| python.parameter | #C7B2B6 | — |
| python.decorator | #D9B36A | — |
| rust.string | #A6C27E | — |
| rust.keyword | #D98C9C | — |
| rust.function | #8AA7C4 | — |
| go.string | #A6C27E | — |
| go.keyword | #D98C9C | — |
| go.function | #8AA7C4 | — |
| java.string | #A6C27E | — |
| java.keyword | #D98C9C | — |
| java.storage.type | #C49BE0 | — |
| c.string | #A6C27E | — |
| c.keyword | #D98C9C | — |
| c.function | #8AA7C4 | — |
| cpp.string | #A6C27E | — |
| cpp.keyword | #D98C9C | — |
| csharp.string | #A6C27E | — |
| csharp.keyword | #D98C9C | — |
| csharp.storage.type | #C49BE0 | — |
| shell.string | #A6C27E | — |
| shell.keyword | #D98C9C | — |
| shell.function | #8AA7C4 | — |
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 | #B89BA0 | italic |
| comment.line | #B89BA0 | italic |
| comment.block | #B89BA0 | italic |
| string | #7B9B53 | — |
| string.quoted | #7B9B53 | — |
| string.template | #6F9149 | — |
| string.regexp | #C99A4F | — |
| constant.numeric | #B5853F | — |
| constant.numeric.hex | #B5853F | — |
| constant.language | #9B6DC4 | — |
| constant.language.boolean | #9B6DC4 | — |
| constant.language.null | #9B6DC4 | — |
| constant.language.undefined | #9B6DC4 | — |
| constant.character.escape | #C99A4F | — |
| constant.other.color | #D98C9C | — |
| keyword | #C97E8E | — |
| keyword.control | #C97E8E | — |
| keyword.operator | #9B8A8E | — |
| keyword.operator.new | #C97E8E | — |
| keyword.operator.logical | #C97E8E | — |
| keyword.other.unit | #B5853F | — |
| keyword.other.special-method | #C97E8E | — |
| storage | #9B6DC4 | — |
| storage.type | #9B6DC4 | — |
| storage.modifier | #9B6DC4 | — |
| entity.name.function | #5F7E9B | — |
| entity.name.function.call | #5F7E9B | — |
| support.function | #5F7E9B | — |
| support.function.builtin | #4F8C8C | — |
| entity.name.class | #B5853F | — |
| entity.name.type | #B5853F | — |
| entity.name.type.class | #B5853F | — |
| support.type | #B5853F | — |
| support.type.class | #B5853F | — |
| entity.name.namespace | #8A8A8A | — |
| entity.name.module | #8A8A8A | — |
| entity.name.interface | #B5853F | — |
| entity.name.enum | #B5853F | — |
| entity.name.struct | #B5853F | — |
| entity.name.tag | #C97E8E | — |
| entity.name.tag.css | #C45B6E | — |
| entity.name.tag.custom | #C97E8E | — |
| entity.other.attribute-name | #B5853F | — |
| entity.other.attribute-name.class | #B5853F | — |
| entity.other.attribute-name.id | #5F7E9B | — |
| variable | #4A4A4A | — |
| variable.parameter | #6E5A5E | — |
| variable.other.constant | #9B6DC4 | — |
| variable.other.property | #6E5A5E | — |
| variable.other.object.property | #6E5A5E | — |
| support.variable | #6E5A5E | — |
| support.variable.property | #6E5A5E | — |
| support.constant | #9B6DC4 | — |
| support.constant.property-value | #7B9B53 | — |
| support.class | #B5853F | — |
| punctuation.definition.comment | #B89BA0 | — |
| punctuation.definition.string | #7B9B53 | — |
| punctuation.definition.character | #7B9B53 | — |
| punctuation.definition.tag | #C97E8E | — |
| punctuation.definition.block | #9B8A8E | — |
| punctuation.definition.parameters | #9B8A8E | — |
| punctuation.definition.template-expression | #C99A4F | — |
| punctuation.section | #9B8A8E | — |
| punctuation.separator | #9B8A8E | — |
| punctuation.terminator | #9B8A8E | — |
| meta.brace | #9B8A8E | — |
| meta.delimiter | #9B8A8E | — |
| meta.tag | #9B8A8E | — |
| invalid | #C45B6E | — |
| invalid.deprecated | #C45B6E | — |
| invalid.illegal | #C45B6E | — |
| markup.heading | #C45B6E | bold |
| markup.heading.1 | #C45B6E | bold |
| markup.heading.2 | #C45B6E | bold |
| markup.heading.3 | #C97E8E | bold |
| markup.heading.4 | #C97E8E | bold |
| markup.heading.5 | #C97E8E | — |
| markup.heading.6 | #C97E8E | — |
| markup.bold | #9B6DC4 | bold |
| markup.italic | — | italic |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| markup.quote | #7B9B53 | italic |
| markup.list | #C97E8E | — |
| markup.list.unnumbered | #C97E8E | — |
| markup.list.numbered | #B5853F | — |
| markup.raw.inline | #4F8C8C | — |
| markup.fenced_code | #4A4A4A | — |
| markup.link | #5F7E9B | underline |
| markup.inserted | #7B9B53 | — |
| markup.deleted | #C45B6E | — |
| markup.changed | #B5853F | — |
| markup.prompt | #5F7E9B | — |
| meta.diff.header | #8A8A8A | — |
| source.diff | #8A8A8A | — |
| regexp | #C99A4F | — |
| json.key | #6E5A5E | — |
| source.json meta.structure.dictionary.key string | #6E5A5E | — |
| yaml.key | #6E5A5E | — |
| source.yaml entity.name.tag | #6E5A5E | — |
| sql.keyword | #C97E8E | — |
| sql.string | #7B9B53 | — |
| sql.numeric | #B5853F | — |
| sql.storage | #9B6DC4 | — |
| php.string | #7B9B53 | — |
| php.keyword | #C97E8E | — |
| php.constant.language | #9B6DC4 | — |
| php.function-call | #5F7E9B | — |
| python.string | #7B9B53 | — |
| python.keyword | #C97E8E | — |
| python.function-call | #5F7E9B | — |
| python.parameter | #6E5A5E | — |
| python.decorator | #B5853F | — |
| rust.string | #7B9B53 | — |
| rust.keyword | #C97E8E | — |
| rust.function | #5F7E9B | — |
| go.string | #7B9B53 | — |
| go.keyword | #C97E8E | — |
| go.function | #5F7E9B | — |
| java.string | #7B9B53 | — |
| java.keyword | #C97E8E | — |
| java.storage.type | #9B6DC4 | — |
| c.string | #7B9B53 | — |
| c.keyword | #C97E8E | — |
| c.function | #5F7E9B | — |
| cpp.string | #7B9B53 | — |
| cpp.keyword | #C97E8E | — |
| csharp.string | #7B9B53 | — |
| csharp.keyword | #C97E8E | — |
| csharp.storage.type | #9B6DC4 | — |
| shell.string | #7B9B53 | — |
| shell.keyword | #C97E8E | — |
| shell.function | #5F7E9B | — |
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}!`;
}