Leone Dark
Publisher: brankoleoneThemes in package: 3
Leone Dark Color Theme based on One Dark Pro
Leone Dark Color Theme based on One Dark Pro
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 |
|---|---|---|
| source.ignore, keyword.other.definition | #A9DEF9 | — |
| storage, storage.type | #6A76DF | italic |
| keyword.control | #C678DD | italic |
| string | #D19A66 | italic |
| string.regexp | #56B6C2 | — |
| entity.name.function | #61AFEF | — |
| entity.name.namespace | #7CCA8D | — |
| support.function | #61AFEF | — |
| meta.class entity.name.type.class, meta.class entity.name.function, new.expr entity.name.function, new.expr support.class | #4CD1E0 | — |
| entity.name.type.interface, entity.name.type.alias, entity.name.type.enum | #2EA7B7 | — |
| meta.at-rule | #9FA0FF | — |
| variable.other.readwrite.alias, meta.type.annotation entity.name.type, meta.type.parameters entity.name.type, meta.return.type entity.name.type, entity.other.inherited-class, meta.object.member variable.other.readwrite, entity.name.type.rust | #9FA0FF | — |
| entity.name.type.struct | #E5C07B | — |
| constant.language, support.type.builtin | #6A76DF | — |
| constant.numeric | #4CD1E0 | — |
| variable, expression.ng variable.other.readwrite, support.type.property-name, meta.object-literal.key, variable.other.rust, variable.other.readwrite, keyword.key | #A9DEF9 | — |
| punctuation.support.type.property-name | #6A76DF | — |
| meta.ng-binding.event expression.ng variable.other.readwrite | #A9DEF9 | — |
| variable.other.constant, support.variable.property | #E5C07B | — |
| variable.other.readwrite | #A9DEF9 | — |
| variable.language | #E06C75 | — |
| variable.scss | #50AF8E | — |
| variable.parameter | #99CABB | italic |
| comment, punctuation.definition.comment | #5F6A79 | — |
| source.rust meta.attribute.rust punctuation.definition.attribute.rust | #47BFEE | — |
| source.rust meta.attribute.rust | #6A76DF | — |
| keyword.operator | #2EA7B7 | — |
| keyword.operator.new, keyword.operator.expression | #C678DD | — |
| keyword.operator.type, meta.brace.round, punctuation.accessor | #CACACA | — |
| keyword.other.unit | #2EA7B7 | — |
| meta.brace.round, punctuation.accessor | #ABABAB | — |
| punctuation.definition.template-expression, punctuation.section.embedded.rust | #C678DD | — |
| punctuation.section.embedded.rust | #E5C07B | — |
| support.type.primitive | #98C379 | — |
| support.class.builtin, meta.block entity.name.type | #E06C75 | — |
| meta.class support.class.error | #E06C75 | — |
| entity.name.tag | #E06C75 | — |
| entity.name.tag support.class.component | #FF616E | — |
| entity.other.attribute-name, punctuation.definition.ng-binding-name | #98C379 | italic |
| entity.other.attribute-name.id | #E5C07B | — |
| entity.other.attribute-name.class, punctuation.definition.entity | #7CCA8D | — |
| meta.at-rule.apply.tailwind entity.other.attribute-name.class | #9FA0FF | — |
| entity.other.ng-binding-name | #50AF8E | — |
| punctuation.definition.string, string.quoted.double punctuation.definition.block, text.html.derivative punctuation.definition.block | #99582A | — |
| support.type.object.module | #E5C07B | — |
| support.constant.property-value | #6A76DF | — |
| support.constant.font-name, meta.property-value | #E5C07B | — |
| punctuation | #ABABAB | — |
| punctuation.definition.keyword | #C678DD | — |
| support.type.vendored | #7CCA8D | — |
| constant.character.entity | #6A76DF | — |
| source | #ABABAB | — |
| source.ini | #D19A66 | — |
| source.python | #A9DEF9 | — |
| source.python support.type, support.function.builtin | #2EA7B7 | italic |
| source.python meta.function, source.python meta.function-call.generic | #61AFEF | — |
| meta.function-call | #E5C07B | — |
| markup.heading.markdown, markup.heading entity.name | #61AFEF | — |
| punctuation.definition.heading.markdown | #455368 | — |
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}!`;
}