ShadowedNight
Publisher: PritudevThemes in package: 1
🌌 ShadowedNight: Embrace the mystery of the night with an elegant and immersive dark theme for a captivating coding experience. 🌃
🌌 ShadowedNight: Embrace the mystery of the night with an elegant and immersive dark theme for a captivating coding experience. 🌃
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 | #aba8c2 | — |
| variable, punctuation.definition.variable, support.variable.property.dom, support.variable.dom, support.variable.property, punctuation.separator.parameter, string.interpolated.pug variable | #aba8c2 | — |
| comment, punctuation.definition.comment | #4a494e | italic |
| string, punctuation.definition.string | #757ff8 | — |
| constant.character.escape | #ff386a | — |
| keyword, constant.language.import-export-all | #42d9ff | — |
| entity.name.type, support.type.primitive, support.type.builtin, meta.type.annotation entity.name.type, meta.type.parameters entity.name.type | #4db5ff | — |
| keyword.control, storage, support.type, keyword.operator.expression, keyword.operator.new | #ff386a | — |
| keyword.operator | #56b6c2 | — |
| entity.name.function, support.class, support.function, new.expr entity.name.type, entity.other.inherited-class | #c678dd | — |
| punctuation.definition.typeparameters, keyword.operator.type, keyword.operator.optional, punctuation.definition.template-expression, source.tsx punctuation.section.embedded, source.jsx punctuation.section.embedded | #eebf7c | — |
| constant | #4db5ff | — |
| constant.numeric, constant.language | #b3e8ff | — |
| variable.parameter, parameter.variable, meta.function.parameter variable, source.rust meta.type_params.rust | #b3e8ff | — |
| punctuation, meta.brace | #737182 | — |
| variable.language.this, variable.language.special.self | #ff386a | — |
| comment.block.documentation entity.name.type | #eebf7c | — |
| variable.language.super | #17c0de | — |
| 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 | #737182 | — |
| entity.name.tag | #ff386a | — |
| meta.tag string | #98c379 | — |
| variable.other.object | #e5c07b | — |
| entity.other.attribute-name | #7bd8d3 | — |
| entity.other.attribute-name.html | #84ceff | — |
| constant.character.entity, punctuation.definition.entity | #b3e8ff | — |
| entity.name.section.markdown, markup.heading.setext | #42d9ff | — |
| punctuation.definition.list | #42d9ff | — |
| meta.separator.markdown | #42d9ff | — |
| markup.inline.raw | #ff386a | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| meta.link punctuation.definition.string, meta.image punctuation.definition.string | #737182 | — |
| link, markup.underline.link, constant.other.reference.link.markdown | #17c0de | — |
| markup.quote | #b3e8ff | — |
| entity.name.tag.css, entity.name.tag.wildcard | #757ff8 | bold |
| entity.other.attribute-name.class, entity.other.attribute-name punctuation.definition.entity | #42d9ff | bold |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class, constant.other.color | #ff386a | — |
| entity.other.attribute-name.id, entity.other.attribute-name.id punctuation.definition.entity | #17c0de | — |
| source.css constant.numeric, source.less constant.numeric, source.scss constant.numeric | #757ff8 | — |
| meta.property-name, support.type.property-name | #c7c7c7 | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #17c0de | — |
| variable.parameter.url | #b3e8ff | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #42d9ff | — |
| entity.name.section | #17c0de | — |
| support.type.property-name.json | #42d9ff | — |
| markup.inserted | #78BD65 | — |
| markup.changed | #60a8dc | — |
| markup.deleted | #F07171 | — |
| meta.diff.header | #60a8dc | — |
| meta.diff.range | #ff386a | — |
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}!`;
}