nuuvo
Publisher: jacksonhardyThemes in package: 7
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 | #CDB184 | — |
| variable, string constant.other.placeholder | #D9D7CA | — |
| constant.other.color | #FF9E7A | — |
| invalid, invalid.illegal | #F33939 | — |
| storage.type | #AE90DE | — |
| storage.modifier | #AE90DE | — |
| keyword.control.flow, keyword.control.conditional, keyword.control.loop | #AE90DE | bold |
| keyword.control, constant.other.color, meta.tag, keyword.other.template, keyword.other.substitution, keyword.other | #AE90DE | — |
| keyword.other.definition.ini | #FF9E7A | — |
| keyword.control.trycatch | #FF4A65 | bold |
| keyword.other.unit, keyword.operator | #EFBA4F | — |
| punctuation, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, meta.brace, keyword.operator.type.annotation, keyword.operator.namespace | #99A0E3 | — |
| entity.name.tag, meta.tag.sgml | #FFD78E | — |
| entity.name.tag.html | #AE90DE | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #84A9F4 | — |
| entity.name.function.macro | #FF9E7A | — |
| meta.block variable.other | #D9D7CA | — |
| support.other.variable | #D9D7CA | — |
| string.other.link | #FF9E7A | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape | #5BA7C8 | — |
| constant.language.boolean | #FF9E7A | — |
| constant.numeric | #D27E99 | — |
| string, punctuation.definition.string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, markup.inline.raw.string | #BADBB5 | — |
| entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, support.type.sys-types | #94DCB0 | — |
| entity.name.type.module, entity.name.namespace | #D9D7CA | — |
| entity.name.import.go | #BADBB5 | — |
| variable.other.property | #FFD78E | — |
| keyword.control.import, keyword.import, meta.import | #FF9E7A | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #94DCB0 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #FF4A65 | — |
| variable.language | #FF4A65 | — |
| entity.name.method.js | #84A9F4 | — |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #84A9F4 | — |
| entity.other.attribute-name | #AE90DE | — |
| entity.other.attribute-name.html, entity.other.attribute-name, invalid.deprecated.entity.other.attribute-name.html | #FFD78E | — |
| entity.other.attribute-name.class | #FFD78E | — |
| source.sass keyword.control | #5BA7C8 | — |
| markup.inserted | #3B834B | — |
| markup.deleted | #B3393B | — |
| markup.changed | #EFA64C | — |
| string.regexp | #5BA7C8 | — |
| constant.character.escape | #5BA7C8 | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #AE90DE | — |
| source.js constant.other.object.key.js string.unquoted.label.js | #FF4A65 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #D27E99 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FFD78E | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF9E7A | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF4A65 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF9E7A | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #84A9F4 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D27E99 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #AE90DE | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #BADBB5 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #D9D7CA | — |
| text.html.markdown markup.inline.raw.markdown | #AE90DE | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #AE90DE | — |
| markdown.heading, entity.name.section.markdown, markup.heading.markdown | #84A9F4 | — |
| markup.italic | #E77582 | italic |
| markup.bold, markup.bold string | — | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #E77582 | bold |
| markup.underline | #5BA7C8 | underline |
| markup.quote punctuation.definition.blockquote.markdown | #CDB184 | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #FF9E7A | — |
| string.other.link.description.title.markdown | #AE90DE | — |
| constant.other.reference.link.markdown | #FFD78E | — |
| markup.raw.block | #AE90DE | — |
| markup.raw.block.fenced.markdown | #CDB184 | — |
| punctuation.definition.fenced.markdown | #CDB184 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #D9D7CA | — |
| variable.language.fenced.markdown | #CDB184 | — |
| meta.separator | #99A0E3 | bold |
| markup.table | #D9D7CA | — |
| token.info-token | #81A1DA | — |
| token.warn-token | #F5B745 | — |
| token.error-token | #DB3A3A | — |
| token.debug-token | #BF78F1 | — |
| comment | #878C8A | — |
| punctuation.definition.comment | #878C8A | — |
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}!`;
}