Darkwaves
Publisher: SpacelaxyThemes in package: 11
Beautiful dark themes collection by Spacelaxy LLC
Beautiful dark themes collection by Spacelaxy LLC
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 | #6A6F76 | italic |
| string, string.quoted, string.quoted.double, string.quoted.single, punctuation.definition.string.begin, punctuation.definition.string.end | #8FCB6D | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.binary, constant.numeric.octal | #D87D7D | — |
| keyword, storage.type, storage.modifier, keyword.control.conditional, keyword.control.loop, keyword.control.throw, keyword.control.try, keyword.control.catch, keyword.control.finally, keyword.control.switch, keyword.control.case, keyword.control.default, keyword.control.break, keyword.control.continue | #E67E62 | — |
| entity.name.function, support.function, meta.function-call, variable.function | #5C90EF | — |
| variable.other.readwrite, variable.other.property, variable.parameter, variable.other, support.variable, variable.language.this, variable.language.super | #C6C6C6 | — |
| entity.name.type, support.type, support.type.primitive, entity.other.inherited-class, entity.name.interface, entity.name.type.alias | #D5B06B | — |
| entity.name.class, entity.name.interface, entity.name.enum, entity.name.struct | #D5B06B | — |
| keyword.other.unit.css, keyword.other.unit.scss, keyword.other.unit.less | #E67E62 | — |
| constant.numeric.css, constant.numeric.scss, constant.numeric.less | #E67E62 | — |
| variable.other.php, variable.language.php, punctuation.definition.variable.php | #D6D6D6 | — |
| entity.name.tag.html, entity.name.tag.jsx, entity.name.tag.tsx, entity.name.tag.xml | #D5B06B | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.begin.jsx, punctuation.definition.tag.end.jsx, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx, punctuation.definition.tag.begin.xml, punctuation.definition.tag.end.xml | #B0B0B0 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, entity.other.attribute-name.xml | #5C90EF | — |
| string.quoted.double.html, string.quoted.single.html, string.quoted.double.jsx, string.quoted.single.jsx, string.quoted.double.tsx, string.quoted.single.tsx, string.quoted.double.xml, string.quoted.single.xml | #8FCB6D | — |
| meta.tag.sgml.doctype.html, meta.tag.sgml.doctype.xml | #D5B06B | — |
| constant.character.entity.html, constant.character.entity.xml | #E67E62 | — |
| comment.block.html, comment.block.xml | #6A6F76 | italic |
| meta.tag.html, meta.tag.xml | #D5B06B | — |
| entity.name.tag.script.html, entity.name.tag.style.html | #D5B06B | — |
| entity.name.tag.link.html, entity.name.tag.a.html | #D5B06B | — |
| entity.name.tag.yaml, support.type.property-name.yaml, meta.key-pair.yaml | #5C90EF | — |
| string.quoted.double.yaml, string.quoted.single.yaml, string.unquoted.yaml, constant.numeric.yaml | #8FCB6D | — |
| comment.line.number-sign.yaml, comment.line.yaml, punctuation.definition.comment.yaml | #6A6F76 | italic |
| punctuation.definition.key-value.yaml, punctuation.separator.key-value.yaml, punctuation.definition.block-sequence.yaml, punctuation.definition.block-mapping.yaml, punctuation.definition.flow-sequence.yaml, punctuation.definition.flow-mapping.yaml | #B0B0B0 | — |
| variable.other.anchor.yaml, variable.other.alias.yaml, punctuation.definition.anchor.yaml, punctuation.definition.alias.yaml | #E67E62 | — |
| constant.character.document-separator.yaml, punctuation.definition.document-separator.yaml | #D5B06B | — |
| entity.name.tag.yaml, punctuation.definition.tag.yaml | #D5B06B | — |
| constant.language.boolean.yaml, constant.language.true.yaml, constant.language.false.yaml | #E67E62 | — |
| constant.language.null.yaml | #E67E62 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #D5D53B | — |
| keyword.control.flow, keyword.control.return, keyword.control | — | italic |
| keyword.control.import, keyword.control.import.namespace, keyword.control.import.php, keyword.control.import.namespace.php | #E67E62 | — |
| keyword.control.export | #E67E62 | — |
| keyword.control.from | #E67E62 | — |
| entity.name.tag.vue, entity.name.tag.pug, entity.name.tag.jade | #5C90EF | — |
| entity.name.tag.script.vue, entity.name.tag.template.vue, entity.name.tag.style.vue | #5C90EF | — |
| entity.name.tag.angular, entity.name.tag.ng-template | #D87D7D | — |
| entity.name.tag.custom.jsx, entity.name.tag.custom.tsx | #5C90EF | — |
| entity.name.tag.xml, entity.name.tag.config, entity.name.tag.manifest | #E5E54B | — |
| entity.name.tag.markdown, markup.heading.markdown, markup.italic.markdown, markup.bold.markdown | #E5E54B | — |
| entity.name.tag.handlebars, entity.name.tag.mustache, entity.name.tag.ejs, entity.name.tag.nunjucks, entity.name.tag.twig | #D5B06B | — |
| entity.name.tag.config.json, entity.name.tag.config.yaml, entity.name.tag.config.toml, entity.name.tag.config.ini | #D5B06B | — |
| entity.name.tag.dockerfile, entity.name.tag.docker-compose | #8FCB6D | — |
| entity.name.tag.generic, entity.name.tag.unknown | #C6C6C6 | — |
| entity.name.tag | #5C90EF | — |
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}!`;
}