Illumination
Publisher: Fabius AndriamarosonThemes in package: 2
A dark themes
A dark themes
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 | #FBD96870 | italic |
| meta.var.expr storage.type, keyword.control.flow, keyword.control.return, meta.directive.vue punctuation.separator.key-value.html, meta.directive.vue entity.other.attribute-name.html, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, storage.modifier | — | italic |
| constant | #ff4d4d | — |
| entity | #fff200 | — |
| variable.parameter, meta.parameter | — | italic |
| invalid | #ff3838 | — |
| storage.type.function | #ffb8b8 | — |
| keyword, storage.type.class, keyword.control.default.ts | #ffb8b8 | — |
| meta | #ffffff | — |
| meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #fff | italic |
| meta.brace | #ffffff | — |
| punctuation | #ffffff | — |
| punctuation.definition.parameters | #c7ecee | italic |
| punctuation.definition.template-expression | #c7ecee | — |
| storage | #fff200 | — |
| storage.type.function.arrow | #fff200 | — |
| string, punctuation.definition.string | #32ff7e | — |
| string.template, punctuation.definition.string.template | #fffa65 | — |
| support | #18dcff | — |
| support.function | #ffb8b8 | — |
| support.variable.property.dom | #ffffff | — |
| variable | #F8EFBA | — |
| source.css entity, source.stylus entity | #fffa65 | — |
| entity.other.attribute-name.id.css | #e15f41 | — |
| entity.name.tag | #17c0eb | — |
| source.css support, source.stylus support | #32ff7e | — |
| source.css constant, source.css support.constant, source.stylus constant, source.stylus support.constant | #c7ecee | — |
| source.css string, source.css punctuation.definition.string, source.stylus string, source.stylus punctuation.definition.string | #c7ecee | — |
| source.css variable, source.stylus variable | #17c0eb | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #ff3838 | — |
| text.html.basic entity.name | #17c0eb | — |
| meta.toc-list.id.html | #32ff7e | — |
| text.html.basic entity.other | #fff200 | italic |
| meta.tag.metadata.script.html entity.name.tag.html | #fff200 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #2fff00 | — |
| source.ini entity | #ffffff | — |
| source.ini keyword | #fff200 | — |
| source.ini punctuation.definition | #c7ecee | — |
| source.ini punctuation.separator | #ffb8b8 | — |
| source.js storage.type.function, source.ts storage.type.function | #7d5fff | — |
| variable.language, entity.name.type.class.js | #ff757f | italic |
| entity.other.inherited-class.js | #808e9b | — |
| variable.other.object.js | #7efff5 | — |
| variable.parameter.function.language.special.self.python | #7d5fff | — |
| source.json support | #fff200 | — |
| source.json string, source.json punctuation.definition.string | #ffffff | — |
| punctuation.definition.heading.markdown | #ffffff | — |
| entity.name.section.markdown, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #fff200 | bold |
| meta.paragraph.markdown | #ffffff | — |
| beginning.punctuation.definition.quote.markdown | #fff200 | — |
| markup.quote.markdown meta.paragraph.markdown | #17c0eb | italic |
| meta.separator.markdown | #fff200 | — |
| markup.bold.markdown | #17c0eb | bold |
| markup.italic.markdown | #17c0eb | italic |
| beginning.punctuation.definition.list.markdown | #fff200 | — |
| string.other.link.title.markdown | #32ff7e | — |
| string.other.link.title.markdown, string.other.link.description.markdown, string.other.link.description.title.markdown | #32ff7e | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #17c0eb | — |
| fenced_code.block.language, markup.inline.raw.markdown | #17c0eb | — |
| fenced_code.block.language, markup.inline.raw.markdown | #17c0eb | — |
| text.jade entity.name | #17c0eb | — |
| text.jade entity.other.attribute-name.tag | — | italic |
| text.jade string.interpolated | #c7ecee | — |
| source.ts entity.name.type | #18dcff | — |
| source.ts keyword | #fff200 | — |
| source.ts punctuation.definition.parameters | #ffffff | — |
| meta.arrow.ts punctuation.definition.parameters | #c7ecee | — |
| source.php entity | #17c0eb | — |
| variable.other.php | #fff200 | — |
| storage.type.cs | #17c0eb | — |
| entity.name.variable.property.cs | #17c0eb | — |
| storage.modifier.cs | #18dcff | — |
| modifier, this, comment, storage.modifier, entity.other.attribute-name.js, entity.other.attribute-name.js, entity.other.attribute-name.ts, entity.other.attribute-name.tsx, entity.other.attribute-name.html | — | italic |
| keyword.control.export | #ffb8b8 | italic |
| meta.return.type.ts | #7158e2 | 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}!`;
}