MinNox Theme
Publisher: caioufeThemes in package: 1
MinNox Theme é um tema dark minimalista projetado para oferecer uma interface limpa e sofisticada.
MinNox Theme é um tema dark minimalista projetado para oferecer uma interface limpa e sofisticada.
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 |
|---|---|---|
| — | #b392f0 | — |
| support.function, keyword.operator.accessor, meta.group.braces.round.function.arguments, meta.template.expression, markup.fenced_code meta.embedded.block | #b392f0 | — |
| emphasis | — | italic |
| strong, markup.heading.markdown, markup.bold.markdown | #FF7A84 | bold |
| markup.italic.markdown | — | italic |
| meta.link.inline.markdown | #1976D2 | underline |
| string, markup.fenced_code, markup.inline | #f2af60 | — |
| comment, string.quoted.docstring.multi | #6b737c | — |
| variable.other.object, variable.other.class, meta.property-name, support, string.other.link.title.markdown | #ffffff | |
| variable.language.this | #a389d4 | |
| meta.property-name, support.type.property-name.json, meta.object-literal.key | #8ac7de | — |
| constant.numeric, constant.other.placeholder, constant.character.format.placeholder, meta.property-value, keyword.other.unit, keyword.other.template, entity.name.tag.yaml, entity.other.attribute-name | #cad1c3 | — |
| keyword, storage.modifier, storage.type, storage.control.clojure, entity.name.function.clojure, support.function.node, punctuation.separator.key-value, punctuation.definition.template-expression | #d1dc5a | |
| variable.parameter.function | #FF9800 | — |
| entity.name.type, entity.other.inherited-class, meta.function-call, meta.instance.constructor, entity.other.attribute-name, entity.name.function, constant.keyword.clojure | #849af0 | — |
| entity.name.tag, keyword.other.template | #c7f464 | |
| meta.tag string, meta.tag string.quoted | #f2af60 | — |
| token.info-token | #316bcd | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #cd3131 | — |
| token.debug-token | #800080 | — |
| punctuation.definition.arguments, punctuation.definition.dict, punctuation.separator, meta.function-call.arguments | #bbbbbb | — |
| markup.underline.link | #ffab70 | — |
| beginning.punctuation.definition.list.markdown | #FF7A84 | — |
| punctuation.definition.metadata.markdown | #ffab70 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #79b8ff | — |
| constant.other.color | #ff0037 | — |
| punctuation.definition.string | #f2af60 | bold |
| entity.name.function, support.function | #a5e6c8 | |
| meta.function | — | |
| meta.function-call | — | |
| keyword.operator.arithmetic | #d1dc5a | bold |
| keyword.operator.assignment | #d1dc5a | bold |
| keyword.operator.logical | #d1dc5a | bold |
| keyword.operator.bitwise | #d1dc5a | bold |
| punctuation.separator | #f8fafc | bold |
| punctuation.accessor | #f8fafc | bold |
| punctuation.terminator | #f8fafc | bold |
| meta.tag | — | |
| punctuation.definition.tag | #bbbbbb | |
| entity.name.type.class, support.class | #768eee | — |
| keyword.operator.new | #acd84c | |
| keyword.operator | #a5e6c8 | bold |
| entity.name.type.interface | #849af0 | — |
| entity.name.type.enum | #849af0 | — |
| constant.character.escape | #bbbbbb | — |
| meta.var | — | |
| entity.other.attribute-name | #bbbbbb | — |
| storage.modifier | #d1dc5a | — |
| storage.type | #d1dc5a | — |
| string.regexp | #ff0037 | — |
| variable.language | #ff0000 | — |
| variable.parameter | #bbbbbb | — |
| meta.object.member, support.type.property-name | #bbbbbb | — |
| variable | #bbbbbb | — |
| constant | #bbbbbb | — |
| meta.import | — | |
| entity.name.function.constructor | #768eee | — |
| constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan | #5895a8 | — |
| constant.language | #ffffff | — |
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}!`;
}