Quimera Night
Publisher: Andres Antonio CardosoThemes in package: 3
Un tema oscuro inspirado en la vibra nocturna (similar a Tokyo Night).
Un tema oscuro inspirado en la vibra nocturna (similar a Tokyo Night).
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 | #556783 | italic |
| string, punctuation.definition.string | #a6f0c6 | — |
| constant.numeric | #ffd166 | — |
| keyword, storage.type, storage.modifier | #7aa2ff | — |
| keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.control.import, keyword.control.exception, keyword.control.return, keyword.control.trycatch, keyword.control.async, keyword.control.await | #7aa2ff | — |
| entity.name.function, support.function, meta.function-call | #5aa7ff | — |
| entity.name.type, support.type, support.class | #4fd6be | — |
| variable, meta.definition.variable.name, entity.name.variable | #c7d0e3 | — |
| storage.modifier.readonly, storage.modifier.immutable | #e0af68 | — |
| constant.language, support.constant | #ff6b8a | — |
| invalid.deprecated, markup.deleted | #556783 | strikethrough |
| keyword.operator, punctuation, meta.brace, meta.delimiter | #91a0be | — |
| variable.other.property, support.type.property-name, meta.object-literal.key | #4fd6be | — |
| support.type.property-name.json, support.type.property-name.jsonc | #4fd6be | — |
| variable.parameter, meta.function.parameters | #e0af68 | — |
| entity.name.class, entity.name.struct, entity.name.namespace, entity.name.module | #4fd6be | — |
| entity.name.tag, entity.name.tag.jsx, entity.name.tag.tsx | #7aa2ff | — |
| entity.other.attribute-name, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #4fd6be | — |
| string.regexp, constant.character.escape | #bb9af7 | — |
| invalid, invalid.illegal | #ff6b8a | underline |
| markup.heading, entity.name.section | #7aa2ff | bold |
| markup.inline.raw, markup.fenced_code.block, markup.raw.block | #a6f0c6 | — |
| markup.underline.link, markup.underline.link.image | #5aa7ff | underline |
| support.function.builtin.python, support.type.python, variable.language.special.self.python | #5aa7ff | — |
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}!`;
}