Lavender Theme
Publisher: Sharon77770Themes in package: 1
Theme in Visual Studio Code with Lavender Concept
Theme in Visual Studio Code with Lavender Concept
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 |
|---|---|---|
| Global settings | #FFFFFF | — |
| string | #e3a1ff | — |
| constant.language.boolean | #ad0bb5 | — |
| constant.numeric | #e09af5 | — |
| variable, support.variable, support.class, support.constant, meta.definition.variable entity.name.function | #fee3ff | — |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #ba40ed | — |
| entity.name.function, support.function | #e89eff | — |
| storage.type, storage.modifier | #a255ff | — |
| support.module, support.node | #7f7fff | italic |
| support.type | #a438cf | — |
| entity.name.type, entity.other.inherited-class | #ff7aeb | — |
| comment | #808080 | italic |
| entity.name.type.class | #ff7aeb | — |
| variable.object.property | #e085ff | — |
| meta.definition.method entity.name.function | #d454ff | — |
| meta.function entity.name.function | #d454ff | — |
| template.expression.begin, template.expression.end | #d454ff | — |
| entity.name.tag.yaml | #914fb8 | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #914fb8 | — |
| constant.language.json | #5555FF | — |
| entity.other.attribute-name.class | #ff7aeb | — |
| entity.other.attribute-name.id | #FF5555 | — |
| source.css entity.name.tag | #55FF55 | — |
| meta.tag, punctuation.definition.tag | #5555FF | — |
| entity.name.tag | #7f7fff | — |
| entity.other.attribute-name | #FFFF33 | — |
| markup.heading | #5555FF | — |
| text.html.markdown meta.link.inline, meta.link.reference | #7f7fff | — |
| text.html.markdown beginning.punctuation.definition.list | #5555FF | — |
| markup.italic | #7f7fff | italic |
| markup.bold | #7f7fff | bold |
| markup.bold markup.italic, markup.italic markup.bold | #7f7fff | italic bold |
| keyword.other.definition.ini | #7f7fff | — |
| entity.name.section.group-title.ini | #5555FF | — |
| source.cs meta.class.identifier storage.type | #55FF55 | underline |
| source.cs meta.method.identifier entity.name.function | #55FF55 | — |
| source.cs meta.method-call meta.method, source.cs entity.name.function | #FFFF33 | — |
| source.cs storage.type | #55FF55 | — |
| source.cs meta.method.return-type | #55FF55 | — |
| source.cs meta.preprocessor | #333333 | — |
| source.cs entity.name.type.namespace | #FFFFFF | — |
| Global settings | #FFFFFF | — |
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}!`;
}