Lollipop Theme
Publisher: LilianaCostaThemes in package: 2
Tema Baseado do tema Dracula e Tailwind Theme
Tema Baseado do tema Dracula e Tailwind Theme
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 | #5B6678 | italic |
| string | #A5F2A3 | — |
| text, variable, variable.other, meta.object-literal, source.sql | #D1D9ED | — |
| entity.name.tag | #F472B6 | — |
| entity.other.attribute-name.id, support.constant.property-value | #BD93F9 | — |
| support.type.property-name | #D1D9ED | — |
| constant.other.color, support.constant.font-name, meta.property-value.css | #EFD122 | — |
| entity.other.attribute-name, support.function.misc | #58C9FF | — |
| storage.type.function, keyword, keyword.operator.new, keyword.operator.expression.of, constant.numeric, support.function.aggregate, support.type.primitive | #BD93F9 | — |
| storage.type, constant.language, storage.modifier, support.variable.property, keyword.control.flow, markup.underline.link.markdown | #58C9FF | — |
| entity.name.function, entity.name.type, variable.other.object, variable.other.property | #EFD122 | — |
| keyword.control | #F472B6 | — |
| support.function.construct.output | #BD93F9 | — |
| source.python | #BD93F9 | — |
| constant.other | #D1D9ED | — |
| entity.name.section.markdown | #A5F2A3 | — |
| punctuation.definition, punctuation.decorator, punctuation.accessor, punctuation.separator, keyword.operator | #64748B | — |
| variable.parameter, storage.type, storage.type.enum, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | — | italic |
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}!`;
}