AGNIS
Publisher: Magnus NordThemes in package: 2
A theme from up north, created A Gloomy Night In Sweden (AGNIS).
A theme from up north, created A Gloomy Night In Sweden (AGNIS).
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 |
|---|---|---|
| punctuation.definition.group.no-capture.regexp | #A2A599 | — |
| constant.character.escape.backslash.regexp | #D4FF70 | — |
| string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #e98604 | — |
| string.regexp punctuation.definition.group.regexp | #C3A644 | — |
| punctuation.definition.group.assertion.regexp, keyword.operator.negation.regexp | #F2E2AE | bold |
| punctuation.definition.block.tag.jsdoc, meta.brace.curly.jsdoc, entity.name.type.instance.jsdoc, punctuation.definition.bracket.curly.begin.jsdoc, punctuation.definition.bracket.curly.end.jsdoc, storage.type.class.jsdoc, support.type.builtin.primitive.jsdoc, storage.type.internaldeclaration.ts | #A2A599 | |
| variable.other.jsdoc | #A2A599 | bold |
| support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #36aabf | — |
| meta.return-type, entity.other.attribute, entity.name.class, entity.name.function, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy, storage.type.accessor, storage.type.function, storage.type.class, storage.type.extends, meta.function-call.generic.python, storage.type.namespace | #36aabf | — |
| entity.name.type.ts | #69ABB8 | — |
| storage.type.generic.java, storage.type.java | #2dcfc2 | — |
| support.class, support.type | #B1B4A7 | — |
| support.type | #848683 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #36aabf | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator, keyword.operator.new, keyword.operator.expression.typeof, keyword.operator.expression.instanceof, keyword.operator.typeof, keyword.operator.instanceof | #e0c871 | |
| meta.import.js, keyword.control.from.js, keyword.control.import.js | #9CA091 | |
| variable.other.readwrite.alias.js | #95988b | |
| keyword.control.flow, keyword.control.trycatch.js | #ebae3d | |
| keyword.control.module, string.quoted.module.js, keyword.control.import.ts, keyword.control.as.ts, keyword.control.from.ts, keyword.control.export.ts, keyword.control.import.tsx, keyword.control.as.tsx, keyword.control.from.tsx, keyword.control.export.tsx, keyword.operator.module.all.js | #a8aaa5 | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable, constant.other.placeholder | #CDD0CA | — |
| meta.function.parameters, variable.parameter | #E1E4DE | — |
| variable.other.constant, variable.other.enummember, meta.delimiter.comma, keyword.operator.accessor | #CDD0CA | |
| meta.object-literal.key | #CDD0CA | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #BAA083 | — |
| punctuation.definition.group.regexp, support.other.parenthesis.regexp, constant.other.character-class.set.regexp, constant.character.set.regexp | #d4ff70 | — |
| punctuation.definition.character-class.regexp, constant.character.character-class.regexp, constant.other.character-class.regexp | #AFD35C | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #89ddff | — |
| keyword.operator.quantifier.regexp | #F06A9B | — |
| constant.character | #9BCF23 | — |
| constant.character.escape | #89DDFF | — |
| entity.name.label | #A9ADA7 | — |
| entity.name.namespace, entity.name.scope-resolution | #B1B4A7 | bold |
| support.class.component.open.jsx, support.class.component.close.jsx, support.class.component.svelte | #d3ff35 | |
| entity.other.attribute-name.jsx | #f2e2ae | — |
| JSXNested | #CDD0CA | |
| keyword.other.animation.svelte, keyword.control.svelte | #EAEEE7 | italic |
| entity.name.label.js | #EAEEE7 | bold |
| punctuation.definition.group.no-capture.regexp | #A2A599 | — |
| constant.character.escape.backslash.regexp | #D4FF70 | — |
| string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #e98604 | — |
| string.regexp punctuation.definition.group.regexp | #C3A644 | — |
| punctuation.definition.group.assertion.regexp, keyword.operator.negation.regexp | #F2E2AE | bold |
| punctuation.definition.block.tag.jsdoc, meta.brace.curly.jsdoc, entity.name.type.instance.jsdoc, punctuation.definition.bracket.curly.begin.jsdoc, punctuation.definition.bracket.curly.end.jsdoc, storage.type.class.jsdoc, support.type.builtin.primitive.jsdoc, storage.type.internaldeclaration.ts | #A2A599 | |
| variable.other.jsdoc | #A2A599 | bold |
| support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #36aabf | — |
| meta.return-type, entity.other.attribute, entity.name.class, entity.name.function, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy, storage.type.accessor, storage.type.function, storage.type.class, storage.type.extends, meta.function-call.generic.python, storage.type.namespace | #36aabf | — |
| entity.name.type.ts | #69ABB8 | — |
| storage.type.generic.java, storage.type.java | #2dcfc2 | — |
| support.class, support.type | #B1B4A7 | — |
| support.type | #848683 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #36aabf | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator, keyword.operator.new, keyword.operator.expression.typeof, keyword.operator.expression.instanceof, keyword.operator.typeof, keyword.operator.instanceof | #e0c871 | |
| meta.import.js, keyword.control.from.js, keyword.control.import.js | #9CA091 | |
| variable.other.readwrite.alias.js | #95988b | |
| keyword.control.flow, keyword.control.trycatch.js | #ebae3d | |
| keyword.control.module, string.quoted.module.js, keyword.control.import.ts, keyword.control.as.ts, keyword.control.from.ts, keyword.control.export.ts, keyword.control.import.tsx, keyword.control.as.tsx, keyword.control.from.tsx, keyword.control.export.tsx, keyword.operator.module.all.js | #a8aaa5 | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable, constant.other.placeholder | #CDD0CA | — |
| meta.function.parameters, variable.parameter | #E1E4DE | — |
| variable.other.constant, variable.other.enummember, meta.delimiter.comma, keyword.operator.accessor | #CDD0CA | |
| meta.object-literal.key | #CDD0CA | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #BAA083 | — |
| punctuation.definition.group.regexp, support.other.parenthesis.regexp, constant.other.character-class.set.regexp, constant.character.set.regexp | #d4ff70 | — |
| punctuation.definition.character-class.regexp, constant.character.character-class.regexp, constant.other.character-class.regexp | #AFD35C | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #89ddff | — |
| keyword.operator.quantifier.regexp | #F06A9B | — |
| constant.character | #9BCF23 | — |
| constant.character.escape | #89DDFF | — |
| entity.name.label | #A9ADA7 | — |
| entity.name.namespace, entity.name.scope-resolution | #B1B4A7 | bold |
| support.class.component.open.jsx, support.class.component.close.jsx, support.class.component.svelte | #d3ff35 | |
| entity.other.attribute-name.jsx | #f2e2ae | — |
| JSXNested | #CDD0CA | |
| keyword.other.animation.svelte, keyword.control.svelte | #EAEEE7 | italic |
| entity.name.label.js | #EAEEE7 | bold |
| source | #CDD0CA | — |
| meta.embedded, source.groovy.embedded | #CDD0CA | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #4fc7dc | — |
| comment | #8B8E81 | — |
| constant.language | #df99ff | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #df99ff | — |
| constant.regexp | #D4FF70 | — |
| entity.name.tag | #b1b4a7 | |
| entity.name.tag.css | #b1b4a7 | |
| entity.other.attribute-name | #f2e2ae | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #36aabf | — |
| invalid | #f04400 | — |
| meta.paragraph.markdown | #CDD0CA | — |
| string.other.link.title.markdown | #36aabf | — |
| meta.link.inline.markdown | #BAA083 | — |
| markup.underline.link.markdown | #256F6E | — |
| markup.underline | — | underline |
| markup.bold | #E1E4DE | bold |
| markup.heading | #d4e448 | bold |
| markup.italic | — | italic |
| markup.inserted | #C3E88D | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #C792EA | — |
| punctuation.definition.quote.begin.markdown | #b1b4a7 | — |
| punctuation.definition.list.begin.markdown | #e0c871 | — |
| markup.inline.raw | #b1b4a7 | — |
| punctuation.definition.tag | #A9ADA7 | — |
| text.html.derivative | #CDD0CA | — |
| meta.preprocessor, entity.name.function.preprocessor | #A2A599 | — |
| meta.preprocessor.string | #BAA083 | — |
| meta.preprocessor.numeric | #df99ff | — |
| meta.structure.dictionary.key.python | #CDD0CA | — |
| meta.diff.header | #e0c871 | — |
| storage | #d1c082 | — |
| storage.type, keyword.operator.noexcept | #d1c082 | — |
| storage.modifier | #d1c082 | |
| string, meta.embedded.assembly | #BAA083 | — |
| string.tag | #BAA083 | bold |
| string.value | #BAA083 | bold |
| string.regexp | #D4FF70 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.quasi.element.begin, punctuation.quasi.element.end, punctuation.section.embedded | #C9B08A | |
| meta.template.expression | #CDD0CA | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #d2d4ca | — |
| keyword | #e0c871 | — |
| keyword.control | #e0c871 | — |
| keyword.operator | #F06A9B | bold |
| punctuation.accessor.optional | #EAEEE7 | |
| keyword.operator.assignment, keyword.operator.spread | #a9aca8 | |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #F06A9B | |
| keyword.other.unit | #F06A9B | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #F06A9B | — |
| support.function.git-rebase | #36aabf | — |
| constant.sha.git-rebase | #A9B84A | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #CDD0CA | — |
| variable.language | #A9ADA7 | italic |
| punctuation.definition.group.no-capture.regexp | #A2A599 | — |
| constant.character.escape.backslash.regexp | #D4FF70 | — |
| string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #e98604 | — |
| string.regexp punctuation.definition.group.regexp | #C3A644 | — |
| punctuation.definition.group.assertion.regexp, keyword.operator.negation.regexp | #F2E2AE | bold |
| punctuation.definition.block.tag.jsdoc, meta.brace.curly.jsdoc, entity.name.type.instance.jsdoc, punctuation.definition.bracket.curly.begin.jsdoc, punctuation.definition.bracket.curly.end.jsdoc, storage.type.class.jsdoc, support.type.builtin.primitive.jsdoc, storage.type.internaldeclaration.ts | #A2A599 | |
| variable.other.jsdoc | #A2A599 | bold |
| support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #36aabf | — |
| meta.return-type, entity.other.attribute, entity.name.class, entity.name.function, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy, storage.type.accessor, storage.type.function, storage.type.class, storage.type.extends, meta.function-call.generic.python, storage.type.namespace | #36aabf | — |
| entity.name.type.ts | #69ABB8 | — |
| storage.type.generic.java, storage.type.java | #2dcfc2 | — |
| support.class, support.type | #B1B4A7 | — |
| support.type | #848683 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #36aabf | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator, keyword.operator.new, keyword.operator.expression.typeof, keyword.operator.expression.instanceof, keyword.operator.typeof, keyword.operator.instanceof | #e0c871 | |
| meta.import.js, keyword.control.from.js, keyword.control.import.js | #9CA091 | |
| variable.other.readwrite.alias.js | #95988b | |
| keyword.control.flow, keyword.control.trycatch.js | #ebae3d | |
| keyword.control.module, string.quoted.module.js, keyword.control.import.ts, keyword.control.as.ts, keyword.control.from.ts, keyword.control.export.ts, keyword.control.import.tsx, keyword.control.as.tsx, keyword.control.from.tsx, keyword.control.export.tsx, keyword.operator.module.all.js | #a8aaa5 | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable, constant.other.placeholder | #CDD0CA | — |
| meta.function.parameters, variable.parameter | #E1E4DE | — |
| variable.other.constant, variable.other.enummember, meta.delimiter.comma, keyword.operator.accessor | #CDD0CA | |
| meta.object-literal.key | #CDD0CA | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #BAA083 | — |
| punctuation.definition.group.regexp, support.other.parenthesis.regexp, constant.other.character-class.set.regexp, constant.character.set.regexp | #d4ff70 | — |
| punctuation.definition.character-class.regexp, constant.character.character-class.regexp, constant.other.character-class.regexp | #AFD35C | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #89ddff | — |
| keyword.operator.quantifier.regexp | #F06A9B | — |
| constant.character | #9BCF23 | — |
| constant.character.escape | #89DDFF | — |
| entity.name.label | #A9ADA7 | — |
| entity.name.namespace, entity.name.scope-resolution | #B1B4A7 | bold |
| support.class.component.open.jsx, support.class.component.close.jsx, support.class.component.svelte | #d3ff35 | |
| entity.other.attribute-name.jsx | #f2e2ae | — |
| JSXNested | #CDD0CA | |
| keyword.other.animation.svelte, keyword.control.svelte | #EAEEE7 | italic |
| entity.name.label.js | #EAEEE7 | bold |
| source | #CDD0CA | — |
| meta.embedded, source.groovy.embedded | #CDD0CA | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #4fc7dc | — |
| comment | #8B8E81 | — |
| constant.language | #df99ff | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #df99ff | — |
| constant.regexp | #D4FF70 | — |
| entity.name.tag | #b1b4a7 | |
| entity.name.tag.css | #b1b4a7 | |
| entity.other.attribute-name | #f2e2ae | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #36aabf | — |
| invalid | #f04400 | — |
| meta.paragraph.markdown | #CDD0CA | — |
| string.other.link.title.markdown | #36aabf | — |
| meta.link.inline.markdown | #BAA083 | — |
| markup.underline.link.markdown | #256F6E | — |
| markup.underline | — | underline |
| markup.bold | #E1E4DE | bold |
| markup.heading | #d4e448 | bold |
| markup.italic | — | italic |
| markup.inserted | #C3E88D | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #C792EA | — |
| punctuation.definition.quote.begin.markdown | #b1b4a7 | — |
| punctuation.definition.list.begin.markdown | #e0c871 | — |
| markup.inline.raw | #b1b4a7 | — |
| punctuation.definition.tag | #A9ADA7 | — |
| text.html.derivative | #CDD0CA | — |
| meta.preprocessor, entity.name.function.preprocessor | #A2A599 | — |
| meta.preprocessor.string | #BAA083 | — |
| meta.preprocessor.numeric | #df99ff | — |
| meta.structure.dictionary.key.python | #CDD0CA | — |
| meta.diff.header | #e0c871 | — |
| storage | #d1c082 | — |
| storage.type, keyword.operator.noexcept | #d1c082 | — |
| storage.modifier | #d1c082 | |
| string, meta.embedded.assembly | #BAA083 | — |
| string.tag | #BAA083 | bold |
| string.value | #BAA083 | bold |
| string.regexp | #D4FF70 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.quasi.element.begin, punctuation.quasi.element.end, punctuation.section.embedded | #C9B08A | |
| meta.template.expression | #CDD0CA | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #d2d4ca | — |
| keyword | #e0c871 | — |
| keyword.control | #e0c871 | — |
| keyword.operator | #F06A9B | bold |
| punctuation.accessor.optional | #EAEEE7 | |
| keyword.operator.assignment, keyword.operator.spread | #a9aca8 | |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #F06A9B | |
| keyword.other.unit | #F06A9B | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #F06A9B | — |
| support.function.git-rebase | #36aabf | — |
| constant.sha.git-rebase | #A9B84A | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #CDD0CA | — |
| variable.language | #A9ADA7 | italic |
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}!`;
}