Luca Themed
Publisher: luca aliotoThemes in package: 1
Attempting to convert my R Studio theme to VsCode/Positron
Attempting to convert my R Studio theme to VsCode/Positron
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, source.r, source.python, markup.raw.block, variable, meta.function-call, meta.embedded.block.r | #9CDCFE | — |
| text.html.markdown, meta.paragraph | #dedede | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #dedede | bold |
| markup.bold, punctuation.definition.bold.markdown | #dedede | bold |
| markup.italic, punctuation.definition.italic.markdown | #dedede | italic |
| markup.list, punctuation.definition.list.begin.markdown | #B1CFA3 | — |
| markup.quote | #6B9258 | italic |
| string.other.link.title.markdown | #A9E1FB | underline |
| keyword.control.import.reference | #FFFFFF | — |
| keyword.control.latex, keyword.control.tex, support.function.general.tex, support.function.latex, constant.character.escape, punctuation.definition.keyword.tex, punctuation.definition.backslash | #c681dd | bold |
| string.other.math.tex, punctuation.definition.string.begin.tex, punctuation.definition.string.end.tex | #DCDC9E | — |
| support.type.property-name.json.comments, string.json.comments, meta.structure.dictionary.json.comments, meta.structure.array.json.comments, meta.structure.dictionary.value.json.comments, source.json.comments | #A9E1FB | — |
| comment, punctuation.definition.comment | #6B9258 | italic |
| string, string.quoted, string.template | #CE9178 | — |
| keyword, keyword.control, storage, meta.keyword | #CE9178 | — |
| keyword.operator, punctuation, punctuation.terminator, punctuation.separator, meta.brace | #D7D7D7 | — |
| constant.numeric, constant.language, constant.character | #B1CFA3 | — |
| entity.name.function, support.function, keyword.other | #c681dd | — |
| entity.name.tag, entity.other.attribute-name | #CC6666 | — |
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}!`;
}