Lavender Dreams Theme
Publisher: Lavender-StudioThemes in package: 2
A gentle pastel theme inspired by twilight in a lavender field - soft, dreamy, and calming
A gentle pastel theme inspired by twilight in a lavender field - soft, dreamy, and calming
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| header | #c9a9dd | — |
| comment, punctuation.definition.comment | #b8aec8 | italic |
| comment keyword.codetag.notation, comment.block.documentation keyword | #d8b4e2 | — |
| string | #e6ddff | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #d8b4e2 | — |
| constant, variable.other.constant | #dda0dd | — |
| constant.numeric | #c9a9dd | — |
| keyword, storage.type, storage.modifier | #b19cd9 | bold |
| entity.name.function, meta.function-call | #c9a9dd | — |
| variable.parameter | #e0d8f0 | italic |
| entity.name.type.class, entity.name.class | #d8b4e2 | — |
| entity.name.type, storage.type | #c9a9dd | italic |
| variable | #f8f4ff | — |
| variable.language | #dda0dd | italic |
| entity.name.tag | #b19cd9 | — |
| entity.other.attribute-name | #c9a9dd | italic |
| meta.selector | #d8b4e2 | — |
| support.type.property-name | #c9a9dd | — |
| keyword.operator | #b19cd9 | — |
| punctuation | #e0d8f0 | — |
| string.regexp | #e6ddff | — |
| markup.heading | #c9a9dd | bold |
| markup.bold | #d8b4e2 | bold |
| markup.italic | #e6ddff | italic |
| markup.underline.link | #b19cd9 | — |
| markup.inline.raw | #dda0dd | — |
| invalid | #dda0dd | underline |
| invalid.deprecated | #b8aec8 | strikethrough |
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}!`;
}