Semantic Lunaria
Publisher: James YeanThemes in package: 4
A family of scientifically-designed, moderate-contrast, semantic color themes
A family of scientifically-designed, moderate-contrast, semantic color 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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| meta.diff.header | #4189B6 | — |
| markup.inserted | #419278 | — |
| markup.deleted | #B3686D | — |
| markup.changed | #4189B6 | — |
| invalid | #FF9A7B | bold underline |
| invalid.deprecated | #F1CA59 | bold underline |
| markup.underline | — | underline |
| markup.bold | #BE8A7E | bold |
| markup.heading | #9693C2 | bold |
| markup.italic | #A89769 | italic |
| beginning.punctuation.definition.list.markdown, beginning.punctuation.definition.quote.markdown, punctuation.definition.link.restructuredtext | #799DC0 | — |
| markup.inline.raw, markup.raw.restructuredtext | #82A284 | — |
| markup.underline.link, markup.underline.link.image | #799DC0 | — |
| meta.link.reference.def.restructuredtext, punctuation.definition.directive.restructuredtext, string.other.link.description, string.other.link.title | #B38AAA | — |
| entity.name.directive.restructuredtext, markup.quote | #A89769 | italic |
| meta.separator.markdown | #78828A | — |
| fenced_code.block.language, markup.raw.inner.restructuredtext, markup.fenced_code.block.markdown punctuation.definition.markdown | #82A284 | — |
| punctuation.definition.constant.restructuredtext | #9693C2 | — |
| markup.heading.markdown punctuation.definition.string.begin, markup.heading.markdown punctuation.definition.string.end | #9693C2 | — |
| meta.paragraph.markdown punctuation.definition.string.begin, meta.paragraph.markdown punctuation.definition.string.end | #CACED8 | — |
| markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.begin, markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.end | #A89769 | — |
| comment, punctuation.definition.comment | #78828A | — |
| keyword | — | bold |
| storage.modifier, storage.type.modifier | #799DC0 | bold |
| storage.type.namespace | #DFE2ED | bold |
| storage.type.class, storage.type.struct, storage.type.union, storage.type.enum | #BE8A7E | bold |
| storage.type.modifier.access.control | #799DC0 | bold |
| storage.type.template | — | bold |
| storage.type.function | #DFE2ED | bold |
| variable.language.this, variable.parameter.function.language.special.self | — | bold |
| keyword.control | #799DC0 | — |
| keyword.control.return, keyword.control.throw | #BE8A7E | — |
| keyword.operator, entity.name.operator | #799DC0 | |
| storage.modifier.reference | — | |
| constant.language | #799DC0 | bold |
| constant.numeric | #799DC0 | — |
| string | #82A284 | — |
| string.regexp | #BE8A7E | — |
| string support.type.property-name | #9693C2 | — |
| entity.name.namespace | #A89769 | — |
| storage.type.primitive, storage.type.built-in | #9693C2 | bold |
| entity.name.type | #9693C2 | — |
| storage.type.return-type.lambda | #9693C2 | — |
| entity.name.function.member, variable.other.property, variable.other.enummember | — | italic |
| variable.parameter | #B38AAA | — |
| variable.parameter.function-call | #78828A | bold |
| meta.function.definition.parameters variable.parameter | — | underline |
| entity.name.function.preprocessor, entity.name.function.macro | #78828A | — |
| entity.name.other.preprocessor.macro.predefined | — | bold |
| support.function.builtin | — | bold |
| token.info-token | #8ACC86 | — |
| token.warn-token | #F1CA59 | — |
| token.error-token | #FF9A7B | — |
| token.debug-token | #DF8CC7 | — |
| keyword.operator.new, keyword.operator.delete | #BE8A7E | bold |
| keyword.other.using, keyword.other.typedef | #BE8A7E | — |
| keyword.other.default.constructor.cpp, keyword.other.delete.constructor.cpp | #799DC0 | — |
| keyword.other.operator.overload.cpp | #799DC0 | |
| variable.parameter.preprocessor.cpp | — | underline |
| keyword.operator.logical.python | — | bold |
| punctuation.definition.decorator.python | #78828A | — |
| entity.name.function.decorator.python | #78828A | bold |
| keyword.control.new.java | #BE8A7E | — |
| keyword.operator.instanceof.java | — | bold |
| variable.language.java | — | bold |
| storage.modifier.import.java | — | |
| punctuation.definition.annotation.java | #78828A | — |
| storage.type.annotation.java | #78828A | bold |
| key.function.go | #DFE2ED | bold |
| storage.type.boolean.go | #799DC0 | bold |
| entity.name.import.go | #A89769 | — |
| entity.name.tag | #9693C2 | — |
| entity.other.attribute-name | #B38AAA | italic |
| entity.other.attribute-name.parent-selector | #9693C2 | — |
| storage.type.js | #799DC0 | bold |
| keyword.operator.expression | — | bold |
| support.function.js | — | bold |
| meta.directive.vue entity.other.attribute-name | — | bold italic |
| expression.embedded punctuation.definition.generic.begin, expression.embedded punctuation.definition.generic.end | #799DC0 | — |
| entity.name.function.target.makefile, entity.name.tag.yaml, support.type.property-name.json | #799DC0 | — |
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}!`;
}