Illuminary
Publisher: Aerobird98Themes in package: 1
Illuminary is a vibrant dark-yellowish theme for vscode based on the Pantone colors of the year 2021.
Illuminary is a vibrant dark-yellowish theme for vscode based on the Pantone colors of the year 2021.
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 |
|---|---|---|
| string | #F93822 | |
| constant.character.escape, text.html constant.character.entity.named, punctuation.definition.entity.html | #F93822 | bold |
| constant.language.boolean | #F93822 | |
| constant.numeric | #F93822 | |
| variable, support.variable, support.class, support.constant, meta.definition.variable entity.name.function | #F2F0EB | |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #4ABBD5 | bold |
| entity.name.function, support.function | #F5DF4D | |
| storage.type, storage.modifier | #4ABBD5 | bold |
| support.module, support.node | #4ABBD5 | italic |
| support.type, entity.name.type, entity.other.inherited-class | #F5DF4D | bold |
| comment | #939597 | |
| meta.class, entity.name.type.class | #F5DF4D | bold |
| variable.object.property, meta.field.declaration entity.name.function | #4ABBD5 | |
| meta.definition.method entity.name.function | #F5DF4D | |
| meta.function entity.name.function | #F5DF4D | |
| template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #F93822 | bold |
| meta.embedded, source.groovy.embedded, meta.template.expression | #F2F0EB | |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #4ABBD5 | bold |
| constant.language.json | #F2F0EB | |
| source.json constant.numeric | #F2F0EB | |
| source.json string | #F2F0EB | |
| source.json constant.character.escape | #F2F0EB | bold |
| entity.other.attribute-name.class | #4ABBD5 | bold |
| entity.other.attribute-name.id | #4ABBD5 | bold |
| source.css entity.name.tag | #4ABBD5 | bold |
| meta.tag, punctuation.definition.tag | #F93822 | |
| entity.name.tag | #F5DF4D | |
| entity.other.attribute-name | #4ABBD5 | |
| markup.heading | #4ABBD5 | |
| text.html.markdown meta.link.inline, meta.link.reference | #4ABBD5 | underline |
| text.html.markdown string | #4ABBD5 | |
| markup.italic | #F5DF4D | italic |
| markup.bold | #F93822 | bold |
| markup.bold markup.italic, markup.italic markup.bold | #F5DF4D | italic bold |
| markup.fenced_code.block.markdown | #4ABBD5 | |
| markup.inline.raw.string.markdown | #4ABBD5 | |
| markup.quote.markdown | #939597 | |
| keyword.other.definition.ini | #4ABBD5 | |
| entity.name.section.group-title.ini | #F5DF4D | |
| entity.name.class.luxe | #F5DF4D | |
| variable.other.luxe | #F2F0EB | |
| support.function.luxe | #4ABBD5 | |
| entity.other.attribute-name.luxe | #F5DF4D | bold |
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}!`;
}