Lighting Vally
Publisher: lighting-allyThemes in package: 1
A simple vscode theme that i made
A simple vscode theme that i made
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 |
|---|---|---|
| invalid | #F07171 | — |
| meta.embedded, source.groovy.embedded, meta.template.expression | #2b76da | — |
| variable, punctuation.definition.variable, support.variable.property.dom, support.variable.dom, support.variable.property, punctuation.separator.parameter, string.interpolated.pug variable | #2b76da | — |
| comment, punctuation.definition.comment | #213469 | — |
| string, punctuation.definition.string | #24db7c | — |
| constant.character.escape | #24b296 | — |
| keyword, constant.language.import-export-all | #148be6 | — |
| entity.name.type, support.type.primitive, support.type.builtin, meta.type.annotation entity.name.type, meta.type.parameters entity.name.type | #378bae | — |
| keyword.control, keyword.operator, storage, support.type, keyword.operator.expression, keyword.operator.new | #24b296 | — |
| entity.name.function, support.class, support.function, new.expr entity.name.type, entity.other.inherited-class | #29c287 | — |
| punctuation.definition.typeparameters, keyword.operator.type, keyword.operator.optional, punctuation.definition.template-expression, source.tsx punctuation.section.embedded, source.jsx punctuation.section.embedded | #35bb81 | — |
| constant | #378bae | — |
| constant.numeric, constant.language | #3db0e1 | — |
| variable.parameter, parameter.variable, meta.function.parameter variable, source.rust meta.type_params.rust | #3db0e1 | — |
| punctuation, meta.brace | #1e539a | — |
| variable.language.this, variable.language.special.self | #24b296 | — |
| comment.block.documentation entity.name.type | #35bb81 | — |
| variable.language.super | #29c287 | — |
| meta.tag.metadata.doctype entity.name.tag, meta.tag.metadata.doctype punctuation.definition.tag, meta.tag.metadata.doctype string, meta.tag.metadata.doctype entity.other.attribute-name.html, meta.tag.sgml.doctype | #1e539a | — |
| entity.name.tag | #24b296 | — |
| meta.tag string | #24db7c | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #148be6 | — |
| constant.character.entity, punctuation.definition.entity | #3db0e1 | — |
| entity.name.section.markdown, markup.heading.setext | #148be6 | — |
| punctuation.definition.list | #148be6 | — |
| meta.separator.markdown | #148be6 | — |
| markup.inline.raw | #24b296 | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| meta.link punctuation.definition.string, meta.image punctuation.definition.string | #1e539a | — |
| link, markup.underline.link, constant.other.reference.link.markdown | #29c287 | — |
| markup.quote | #3db0e1 | — |
| entity.name.tag.css, entity.name.tag.wildcard | #24db7c | — |
| entity.other.attribute-name.class, entity.other.attribute-name punctuation.definition.entity | #148be6 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class, constant.other.color | #24b296 | — |
| entity.other.attribute-name.id, entity.other.attribute-name.id punctuation.definition.entity | #29c287 | — |
| source.css constant.numeric, source.less constant.numeric, source.scss constant.numeric | #24db7c | — |
| meta.property-name, support.type.property-name | #3db0e1 | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #29c287 | — |
| variable.parameter.url | #3db0e1 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #148be6 | — |
| entity.name.section | #29c287 | — |
| support.type.property-name.json | #148be6 | — |
| markup.inserted | #11a1c5 | — |
| markup.changed | #37e6ac | — |
| markup.deleted | #F07171 | — |
| meta.diff.header | #37e6ac | — |
| meta.diff.range | #24b296 | — |
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}!`;
}