Lighthaus
Publisher: LighthausThemes in package: 1
A Lighthaus theme for Visual Studio Code
A Lighthaus theme for Visual Studio Code
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 | #CCCCCC | italic |
| variable, string constant.other.placeholder | #50C16E | — |
| constant.other.color | #FFFADE | — |
| invalid, invalid.illegal | #FF5050 | — |
| keyword, storage.type, storage.modifier | #5AD1AA | — |
| keyword.control, meta.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #539D99 | — |
| punctuation, punctuation.definition.separator, punctuation.definition.parameters | #D6D6D6 | — |
| entity.name.tag, punctuation.definition.tag, meta.tag.sgml | #50C16E | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #47A8A1 | — |
| meta.block variable.other | #D6D6D6 | — |
| support.other.variable, string.other.link | #D6D6D6 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other | #D68EB2 | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #47A8A1 | — |
| entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #DC7C45 | — |
| support.type | #D6D6D6 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #D6D6D6 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #5AD1AA | — |
| variable.language | #47A8A1 | italic |
| entity.name.method.js | #47A8A1 | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #1D918B | — |
| entity.other.attribute-name | #D68EB2 | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #FFEE79 | italic |
| entity.other.attribute-name.class | #FFEE79 | — |
| source.sass keyword.control | #44B273 | — |
| markup.inserted | #21252D | — |
| markup.deleted | #21252D | — |
| markup.changed | #21252D | — |
| string.regexp | #00BFA4CC | — |
| constant.character.escape | #50C16E | — |
| *url*, *link*, *uri* | #D6D6D6 | — |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #D68EB2 | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #47A8A1 | italic |
| support.class.dart | #50C16E | — |
| entity.name.function.dart | #DC7C45 | — |
| keyword.other.import.dart | #D68EB2 | — |
| punctuation.dot.dart | #D6D6D6 | — |
| string.interpolated.single.dart, string.interpolated.double.dart | #72B890 | — |
| storage.type.primitive.dart, storage.type.annotation.dart | #00BFA4 | — |
| keyword.type.go | #FFEE79 | — |
| entity.name.package.go | #DC7C45 | — |
| storage.type.go, storage.type.boolean.go, storage.type.byte.go, storage.type.error.go, storage.type.numeric.go, storage.type.rune.go, storage.type.string.go, storage.type.uintptr.go | #50C16E | — |
| keyword.import.go, keyword.package.go | #1D918B | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D6D6D6 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D6D6D6 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D6D6D6 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D6D6D6 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D6D6D6 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D6D6D6 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D6D6D6 | — |
| punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json, punctuation.separator.dictionary.key-value.json, punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.separator.dictionary.pair.json, punctuation.separator.array.json | #CCCCCC | — |
| support.type.property-name.json | #ED722E | — |
| string.quoted.double.json | #72B890 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #D6D6D6 | — |
| text.html.markdown markup.inline.raw.markdown | #D16BB7E6 | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #CCCCCC | — |
| markup.heading | #5AD1AA | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #5AD1AA | bold |
| markup.italic | #D6D6D6 | italic |
| markup.bold, markup.bold string | #D6D6D6 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #CCCCCC | bold |
| markup.underline | #D6D6D6 | underline |
| markup.quote punctuation.definition.blockquote.markdown | #44B273 | — |
| markup.quote | #44B273 | italic |
| string.other.link.title.markdown | #D16BB7E6 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #CCCCCC | — |
| string.other.link.description.title.markdown | #D68EB2 | — |
| constant.other.reference.link.markdown | #D68EB2 | — |
| markup.raw.block | #8E8D8D | — |
| punctuation.definition.fenced.markdown | #FFFADE | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #D6D6D6 | — |
| variable.language.fenced.markdown | #8E8D8D | — |
| meta.separator | #1D918B | bold |
| markup.table | #D6D6D6 | — |
| source.python entity.name.function.decorator, source.python meta.function.decorator support.type | #DC7C45 | — |
| source.python constant | #D6D6D6 | — |
| source.python constant.other | #FFFADE | — |
| source.python meta.function-call.generic | #DC7C45 | — |
| source.python variable.parameter.function.language | #D6D6D6 | — |
| source.python meta.function.parameters variable.parameter.function.language.special.self | #DC7C45 | — |
| punctuation.separator.parameters.python | #CCCCCC | — |
| source.python keyword.operator.logical.python | #D16BB7 | — |
| support.variable.magic.python | #FFEE79 | — |
| constant.character.format.placeholder.other.python storage | #FFFADE | — |
| source.python support.type | #50C16E | — |
| source.python variable.parameter | #DC7C45 | — |
| meta.attribute.rust | #FFEE79 | — |
| storage.type.rust, storage.type.module.rust | #5AD1AA | — |
| support.function.sql | #00BFA4 | — |
| keyword.other.sql | #DC7C45 | — |
| punctuation.definition.string.end.sql, punctuation.definition.string.begin.sql | #44B273 | — |
| string.quoted.single.sql, string.quoted.double.sql | #72B890 | — |
| keyword.other.verb.sql | #CCCCCC | — |
| constant.other.boolean.toml | #42BDAB | — |
| entity.other.attribute-name.table.toml, punctuation.definition.table.toml, entity.other.attribute-name.table.array.toml, punctuation.definition.table.array.toml | #D68EB2 | — |
| variable.key.table.toml, variable.key.toml, variable.key.array.table.toml, variable.other.key.toml | #D6D6D6 | — |
| keyword.key.toml | #ED722E | — |
| string.quoted.single.basic.line.toml, string.quoted.single.literal.line.toml | #72B890 | — |
| punctuation.definition.anchor.yaml, punctuation.definition.block.sequence.item.yaml, punctuation.definition.keyValuePair.toml | #DC7C45 | — |
| source.yaml entity.name.tag | #FFFADE | — |
| punctuation.separator.key-value.mapping.yaml | #8E8D8D | — |
| punctuation.definition.string.begin.yaml, punctuation.definition.string.end.yaml | #44B273 | — |
| string.quoted.single.yaml, string.quoted.double.yaml | #72B890 | — |
| string.unquoted.plain.out.yaml, string.unquoted.plain.in.yaml, string.unquoted.block.yaml | #44B273 | — |
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}!`;
}