Slatis Nyx
Publisher: Ignacio Utreras UrrutiaThemes in package: 6
A gift from Slatis engineers to the engineers who work while the world sleeps. Nyx was the goddess of night, and night was never the absence of something.
A gift from Slatis engineers to the engineers who work while the world sleeps. Nyx was the goddess of night, and night was never the absence of something.
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, string.comment | #768390 | italic |
| constant, entity.name.constant, variable.other.constant, variable.language, support, support.constant, support.variable, support.type.property-name.json, meta.property-name, meta.module-reference, string variable | #6cb6ff | — |
| entity, entity.name | #dcbdfb | — |
| variable.parameter.function, meta.function-call.arguments | #adbac7 | — |
| entity.name.tag, entity.name.tag.yaml | #8ddb8c | — |
| keyword, storage, storage.type, storage.modifier, keyword.operator | #f47067 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #adbac7 | — |
| string, punctuation.definition.string, string punctuation.section.embedded source, markup.inline.raw.string.markdown | #96d0ff | — |
| source.regexp, string.regexp, string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #c6e6ff | — |
| string.regexp constant.character.escape | #8ddb8c | — |
| variable, entity.other.attribute-name | #f69d50 | — |
| variable.other, meta.embedded, meta.template.expression, meta.jsx.children, meta.object-literal.key, string source, punctuation, meta.brace, punctuation.definition.tag, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #adbac7 | — |
| invalid.broken, invalid.deprecated, invalid.illegal, invalid.unimplemented, message.error | #ff938a | italic |
| markup.heading, markup.heading entity.name | #6cb6ff | bold |
| markup.quote | #8ddb8c | italic |
| punctuation.definition.list.begin.markdown | #f69d50 | — |
| markup.raw, markup.inline.raw | #6cb6ff | — |
| markup.underline.link, string.other.link | #c6e6ff | underline |
| markup.italic | #adbac7 | italic |
| markup.bold | #adbac7 | bold |
| markup.bold markup.italic, markup.italic markup.bold | — | italic bold |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #ff938a | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #8ddb8c | — |
| markup.changed, punctuation.definition.changed | #f69d50 | — |
| markup.ignored, markup.untracked | #22272e | — |
| meta.separator | #6cb6ff | bold |
| meta.output | #6cb6ff | — |
| token.info-token | #6cb6ff | — |
| token.warn-token | #f69d50 | — |
| token.error-token | #ff938a | — |
| token.debug-token | #dcbdfb | — |
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}!`;
}