Nord Theme by Zam
Publisher: ZamBamThemes in package: 1
Theme based on the Nord colorway
Theme based on the Nord colorway
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 |
|---|---|---|
| variable, string constant.other.placeholder, invalid.deprecated, keyword, storage.type, storage.modifier | #81a1c1 | — |
| variable | #88c0d0 | — |
| variable, string constant.other.placeholder, entity.name.function, punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | — | italic |
| punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | #3E97C1 | — |
| constant.other.php | #81a1c1 | — |
| constant.other.color | #ebcb8b | — |
| invalid, invalid.illegal | #ebcb8b | — |
| Keyword, Storage | — | italic |
| keyword.control, constant.other.color, punctuation.definition.tag, punctuation, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, entity.name.tag.reference.scss | #7c91a2 | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, entity.name.type.module.js | #ebcb8b | — |
| keyword.control.at-rule, punctuation.terminator.rule.css, keyword.control.operator, punctuation.definition.entity.css | #b48ead | — |
| keyword.control.import.python, keyword.control.import.include.php, keyword.control.if.php, keyword.control.flow.python | #ebca89 | — |
| keyword.operator.comparison.js, keyword.operator.assignment.js, keyword.operator.comparison.python, keyword.operator.assignment.python, punctuation.separator.comma.js, punctuation.definition.string.begin.js, punctuation.definition.string.end.js, punctuation.definition.binding-pattern.object.js | #ebcb8b | — |
| string.quoted.single.css, string.quoted.single.scss, string.quoted.single.sass, string.quoted.double.css, string.quoted.double.scss, string.quoted.double.sass | #b48ead | — |
| punctuation.definition | #ebcb8b | — |
| keyword.control | — | bold |
| comment.line.scss, comment.line.double-slash.js, comment.line.double-slash.php, comment.line.number-sign.python, comment.block.html, comment.block.css, comment.block.documentation.phpdoc.php | #d08670cc | — |
| punctuation.definition.comment.begin.css, punctuation.definition.comment.end.css, punctuation.definition.comment.scss, punctuation.definition.comment.js, punctuation.definition.comment.php, punctuation.definition.comment.phps, punctuation.definition.comment.html, punctuation.definition.comment.python | #5e81ac | — |
| text.html.derivative, text.html.php | #81a1c1 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #b48ead | — |
| entity.name.tag.html | — | bold |
| variable.parameter.js, variable.parameter.keyframe-list.css | #81a1c1 | — |
| string.other.link.title.markdown | #88c0d0 | |
| variable.other.readwrite.js, variable.other.property.js, variable.other.constant.js, variable.other.object.property.js | #88c0d0 | |
| variable.other.object.js | #d8dee9 | — |
| support.variable.property.js | #ebcb8b | — |
| storage.type.js | #b48ead | — |
| string, string.quoted.double.json, markup.fenced_code.block.markdown, markup.inline.raw.string.markdown, variable.function, keyword.other.special-method, markup.bold, markup.bold.markdown, markup.italic.markdown, meta.class-method.js entity.name.function.js, variable.function.constructor, entity.name.tag.other.html, entity.name.tag.block.any.html, source.sass keyword.control | #8fbcbb | — |
| string.quoted.double.html, string.quoted.single.html | #88c0d0 | — |
| entity.name.function | #81a1c1 | — |
| punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #E9C8E9 | — |
| support.other.variable, string.other.link, markup.table | #d8dee9 | — |
| constant.numeric, constant.language, constant.character, constant.escape, keyword.other, punctuation.separator.key-value.html | #81a1c1 | — |
| variable.parameter.function.language.special, variable.parameter | #ebcb8b | — |
| constant.other.symbol, constant.other.key, entity.other.inherited-class, keyword.other.unit, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly, constant.other.object.key.js, string.unquoted.label.js | #ebcb8b | |
| entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types, entity.other.attribute-name.html | #81a1c1 | — |
| support.type | #B2CCD6 | — |
| source.css support.type.property-name, source.python, 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 | #8fbcbb | — |
| meta.property-name.css | #d8dee9 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #ebcb8b | — |
| entity.name.method.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #b48ead | italic |
| entity.other.attribute-name, support.function, meta.attribute.python | #81a1c1 | — |
| entity.other.attribute-name.id, entity.other.attribute-name.class, entity.other.attribute-name.pseudo-class, entity.name.tag.css, support.constant, entity.other.attribute-name.html, meta.object-literal.key | #8fbcbb | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.scss, entity.other.attribute-name.class.sass | #b48ead | — |
| support.constant.property-value.css, support.constant.property-value.scss, support.constant.property-value.sass | #a3be8c | — |
| keyword.control.conditional.js | #b48ead | — |
| string.quoted.single.js, string.quoted.double.js | #8fbcbb | — |
| storage.type.function.js, storage.type.function.python | #a3be8c | — |
| meta.function-call.generic.python, meta.function-call.python | #88c0d0 | — |
| source.scss keyword.control | #81a1c1 | — |
| markup.inserted | #3E97C1 | — |
| markup.deleted | #ebcb8b | — |
| markup.changed | #81a1c1 | — |
| string.regexp | #E9C8E9 | — |
| constant.character.escape | #E9C8E9 | — |
| *url*, *link*, *uri* | — | underline |
| source.js constant.other.object.key.js string.unquoted.label.js | #d8dee9 | italic |
| support.type.property-name.json | #d8dee9 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #d8dee9 | — |
| text.html.markdown markup.inline.raw.markdown | #81a1c1 | — |
| text.html.markdown markup.inline.raw.markdown, punctuation.definition.raw.markdown | #8fbcbb50 | — |
| text.html.markdown meta.dummy.line-break | — | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, entity.name.section.markdown | #B6C9B9 | bold |
| markup.underline | #b48ead | underline |
| markup.strike | — | |
| markup.quote punctuation.definition.blockquote.markdown | #8fbcbb50 | — |
| markup.quote | — | italic |
| string.other.link.description.title.markdown | #81a1c1 | — |
| constant.other.reference.link.markdown | #81a1c1 | — |
| markup.raw.block | #81a1c1 | — |
| punctuation.definition.raw.markdown, punctuation.definition.markdown | #E9C8E9 | — |
| variable.language.fenced.markdown | #8fbcbb | — |
| meta.separator | #A7A8AF | bold |
| token.info-token | #8fbcbb | — |
| token.warn-token | #81a1c1 | — |
| token.error-token | #BE7179 | — |
| token.debug-token | #E9C8E9 | — |
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}!`;
}