Nexus Theme
Publisher: Tin LamThemes in package: 1
This is a dark theme for Visual Studio Code that provides a sleek and modern look for your coding environment.
This is a dark theme for Visual Studio Code that provides a sleek and modern look for your coding environment.
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.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #10b1fe | — |
| storage.modifier, storage.modifier.java, storage.modifier.php, storage.modifier.other.kotlin, storage.modifier.static.groovy, storage.modifier.async.js, storage.modifier.async.ts, storage.modifier.async.tsx, storage.modifier.async.js.jsx, storage.modifier.js, storage.modifier.ts, storage.modifier.tsx, storage.modifier.js.jsx, storage.modifier.rust, storage.modifier.mut.rust, storage.modifier.declaration.python, storage.modifier.visibility.php, storage.modifier.visibility.set.php, storage.modifier.readonly.php, storage.modifier.static.php, storage.type.modifier.access, storage.type.modifier.access.control, storage.type.modifier.access.control.cpp, storage.type.modifier.access.control.c | #33937f | — |
| storage.type.class, storage.type.class.js, storage.type.class.ts, storage.type.class.tsx, storage.type.class.js.jsx, storage.type.class.php, storage.type.class.python, storage.type.class.cs, storage.type.struct, storage.type.struct.cs, storage.type.struct.declare.cpp, storage.type.class.declare.cpp, storage.type.record.cs, keyword.declaration.class, keyword.declaration.struct, keyword.declaration.struct.rust, keyword.control.class.ruby, keyword.other.class.php | #33937f | — |
| comment.unused.elixir | #abb2bf | — |
| entity.name.namespace, entity.name.module, entity.name.type.module, entity.name.type.package.go, entity.name.type.namespace.cs, entity.name.type.namespace.php | #fd5108 | — |
| variable.other.label | #50acae | — |
| comment, punctuation.definition.comment, comment.block.documentation punctuation.definition, string.comment, comment.block.documentation, comment.block | #737d94 | italic |
| comment.block.documentation variable, keyword.other.documentation, storage.type.class.jsdoc, comment.block variable.parameter, keyword.other.phpdoc, comment.block.documentation entity.name.type, meta.other.type.phpdoc support class | #7c8495 | — |
| punctuation.comma, punctuation.semi, punctuation.definition.variable, punctuation.definition.parameters, punctuation.definition.array, punctuation.definition.function, punctuation.brace, punctuation.terminator.statement, punctuation.delimiter.object.comma, punctuation.definition.entity, punctuation.definition, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.separator.key-value, punctuation.separator.dictionary, punctuation.terminator, punctuation.delimiter.comma, punctuation.separator.comma, punctuation.accessor, punctuation.separator.array, punctuation.section, punctuation.section.property-list.begin.bracket.curly, punctuation.section.property-list.end.bracket.curly, punctuation.separator.statement, punctuation.section.array.elixir, punctuation.separator.object.elixir, punctuation.section.embedded.elixir, punctuation.section.function.elixir, punctuation.section.scope.elixir, punctuation.separator.parameter, meta.brace.round, meta.brace.square, meta.brace.curly, constant.name.attribute.tag.pug, punctuation.section.embedded, punctuation.separator.method, punctuation.separator, punctuation.other.comma, punctuation.bracket, punctuation.brackets, keyword.control.ternary, string.interpolated.pug, support.function.interpolation.sass, punctuation.parenthesis.begin, punctuation.parenthesis.end, punctuation.operation.graphql, punctuation.colon.graphql, constant.character.format.placeholder.other.python, punctuation.description, punctuation | #7a82da | — |
| none | #abb2bf | — |
| support.type.python | #00ff98 | — |
| keyword.operator | #7a82da | — |
| keyword, keyword.operator.expression, keyword.operator.type.asserts, variable.language, keyword.other.special-method.elixir, meta.control.flow, meta.separator.grain | #10b1fe | — |
| meta.use.rust keyword.other.rust, meta.import.rust storage.type.rust, keyword.control.import, keyword.control.import.python, keyword.other.import.java, keyword.other.import.groovy, keyword.other.use.php, keyword.control.import.include.php, keyword.control.directive.include.cpp, keyword.control.directive.include.c, keyword.control.directive.import.cpp, keyword.control.import.go, keyword.control.import.haskell, keyword.soft.kotlin, keyword.other.special-method.ruby, keyword.other.import.ruby, keyword.control.import.graphql, keyword.control.import.ts, keyword.control.import.tsx, keyword.control.import.js, keyword.control.import.js.jsx, keyword.control.from.ts, keyword.control.from.tsx, keyword.control.from.js, keyword.control.from.js.jsx, keyword.other.directive.using.cs, keyword.other.using.directive.cpp, keyword.control.at-rule.import.css, keyword.control.include.makefile | #74ff98 | — |
| support.type.primitive, support.type.primitive.js, support.type.primitive.ts, support.type.primitive.tsx, support.type.primitive.js.jsx, storage.type.primitive.java, storage.type.primitive.array.java, support.type.builtin, storage.type.built-in, storage.type.built-in.primitive, storage.type.built-in.cpp, storage.type.built-in.primitive.cpp, storage.type.built-in.c, storage.type.built-in.primitive.c, storage.type.numeric.go, storage.type.boolean.go, storage.type.byte.go, storage.type.rune.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.sql, keyword.type, keyword.other.type.php, keyword.other.type.never.php, entity.name.type.primitive.rust, entity.name.type.numeric.rust | #00ff98 | — |
| variable, source.elixir.embedded.source, string source.groovy, string meta.embedded.line.ruby | #abb2bf | — |
| entity.name.function, meta.require, support.function.any-method, meta.function-call, meta.method-call, variable.function | #aaa0fa | — |
| entity.name.type, entity.name.type.cpp, variable.other.constant.elixir, storage.type.haskell, support.type.graphql, support.type.enum.graphql | #00ff98 | — |
| support.class, entity.name.class, entity.name.type.class, meta.class.instance, meta.class.inheritance, entity.other.inherited-class | #efb080 | — |
| keyword.other.special-method | #3fc56b | — |
| constant.language | #ff6347 | — |
| storage.type.function, storage.type.function.js, storage.type.function.ts, storage.type.function.tsx, storage.type.function.js.jsx, storage.type.function.python, storage.type.function.async.python, storage.type.function.lambda.python, storage.type.function.php, storage.type.function.arrow.js, storage.type.function.arrow.ts, storage.type.function.arrow.tsx, storage.type.function.arrow.js.jsx, storage.type.function.arrow.java, keyword.declaration.function, keyword.function.go, keyword.other.fn.rust, keyword.control.def.ruby, keyword.other.function.use.php | #10B1FE | — |
| storage.type.interface, storage.type.interface.js, storage.type.interface.ts, storage.type.interface.tsx, storage.type.interface.js.jsx, storage.type.interface.cs, storage.type.interface.php, storage.type.type, storage.type.type.js, storage.type.type.ts, storage.type.type.tsx, storage.type.type.js.jsx, storage.type.trait.php, keyword.declaration.interface, keyword.declaration.trait, keyword.declaration.trait.rust, keyword.declaration.type, keyword.declaration.type.rust, entity.name.type.interface | #5fd0c2 | — |
| storage.type.enum, storage.type.enum.js, storage.type.enum.ts, storage.type.enum.tsx, storage.type.enum.js.jsx, storage.type.enum.cs, storage.type.enum.php, storage.type.enum.cpp, storage.type.enum.declare.cpp, storage.type.enum.case.php, keyword.declaration.enum, keyword.declaration.enum.rust | #9f7efe | — |
| storage.type.module, keyword.package.go, keyword.control.module.ruby, keyword.other.crate.rust, entity.name.type.module.java, storage.modifier.import.java, storage.modifier.package.java | #FF839B | — |
| storage.type.namespace, storage.type.namespace.js, storage.type.namespace.ts, storage.type.namespace.tsx, storage.type.namespace.js.jsx, storage.type.namespace.cs, storage.type.namespace.definition.cpp, storage.type.namespace.directive.cpp, storage.type.namespace.alias.cpp, keyword.other.package.java, keyword.other.namespace.php, keyword.other.namespace.definition.cpp, keyword.other.namespace.directive.cpp, keyword.other.namespace.alias.cpp, keyword.control.at-rule.namespace.css | #ff6480 | — |
| keyword.control.export, keyword.control.export.js, keyword.control.export.ts, keyword.control.export.tsx, keyword.control.export.js.jsx | #b4e85a | — |
| storage.type.annotation, storage.type.annotation.java, storage.type.annotation.groovy, entity.name.function.decorator, entity.name.function.decorator.python, entity.name.type.annotation, entity.name.type.annotation.java, entity.name.type.annotation.kotlin, punctuation.definition.annotation, punctuation.definition.decorator, punctuation.decorator, meta.decorator variable.other.readwrite, meta.decorator variable.function, meta.decorator entity.name.function, meta.decorator support.function, meta.attribute.rust punctuation.definition.attribute, meta.attribute.rust entity.name | #f0e68c | — |
| support.function | #3fc56b | — |
| string, punctuation.definition.string, support.constant.property-value, string.quoted.double.shell, support.function.variable.quoted.single.elixir, storage.type.string | #f9c859 | — |
| string.quoted.docstring.multi, string.quoted.docstring.multi.python punctuation.definition.string.begin, string.quoted.docstring.multi.python punctuation.definition.string.end, string.quoted.docstring.multi.python constant.character.escape | #4169e1 | italic |
| constant.numeric, variable.other.anonymous.elixir | #ff78f8 | — |
| constant, variable.other.constant, punctuation.definition.constant, constant.other.symbol, constant.language.symbol, support.constant, support.variable.magic.python, variable.other.enummember, entity.name.variable.enum-member.cs, constant.other.enum.java, constant.enum.php | #9f7efe | — |
| entity.name.tag, punctuation.definition.tag | #3691ff | — |
| entity.other.attribute-name, string.unquoted.alias.graphql | #ff936a | — |
| meta.selector | #7a82da | — |
| none | #ff78f8 | — |
| markup.heading, punctuation.definition.heading, entity.name.section, markup.heading.setext | #f9c859 | |
| keyword.other.unit | #f9c859 | — |
| markup.bold, punctuation.definition.bold | #ff6480 | bold |
| markup.italic, punctuation.definition.italic | #ff936a | italic |
| markup.strikethrough, punctuation.definition.strikethrough | #737d94 | strikethrough |
| markup.strikethrough markup.italic, markup.strikethrough markup.italic punctuation.definition.italic | #737d94 | italic strikethrough |
| markup.strikethrough markup.bold, markup.strikethrough markup.bold punctuation.definition.bold | #737d94 | bold strikethrough |
| markup.raw.inline | #f9c859 | — |
| string.other.link | #3691ff | — |
| meta.link | #10b1fe | — |
| beginning.punctuation.definition.list | #ce9887 | — |
| markup.quote | #9f7efe | — |
| meta.separator | #abb2bf | — |
| markup.inserted | #3fc56b | — |
| markup.deleted | #ff6480 | — |
| markup.changed | #10b1fe | — |
| string.regexp | #f9c859 | — |
| constant.character.escape, constant.other.character-class | #ff936a | — |
| variable.interpolation | #10b1fe | — |
| invalid, invalid.illegal | #ff5370 | — |
| entity.other.attribute-name.id | #ff6480 | — |
| meta.function-call.arguments | #abb2bf | — |
| string.unquoted.block.yaml | #adff2f | — |
| variable.other.assignment.dockerfile, variable.other.assignment.shell, variable.other.env | #87ceeb | — |
| meta.object-literal.key, meta.object.member, variable.other.property, variable.other.object.property, support.variable.property, variable.object.property, support.type.property-name, support.type.property-name.json, support.type.property-name.json.comments, support.type.property-name.json.lines, support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml, support.type.property-name.css, support.type.vendored.property-name.css, meta.property-name, entity.name.tag.yaml, constant.other.key, constant.other.object.key.js, string.unquoted.label.js, support.type.map.key, variable.graphql, entity.name.grain, entity.other.grain, variable.key.dotenv | #87ceeb | — |
| constant.language.json, constant.language.json.comments, constant.language.json.lines, constant.language.boolean.yaml, constant.language.null.yaml, constant.language.boolean.toml, constant.language.yaml.yaml | #ff6347 | — |
| entity.other.jinja.delimiter.tag, entity.other.jinja.delimiter.comment, punctuation.other.jinja | #7a82da | — |
| keyword.control.jinja | #10b1fe | — |
| entity.name.function.target.makefile, variable.other.makefile, variable.language.makefile | #87ceeb | — |
| storage.modifier.sql | #50acae | — |
| entity.name.tag.xml, entity.name.tag.localname.xml, entity.name.tag.namespace.xml | #3691ff | — |
| entity.other.attribute-name.xml, entity.other.attribute-name.localname.xml, entity.other.attribute-name.namespace.xml | #ff936a | — |
| markup.inline.raw, markup.fenced_code.block, markup.raw.block | #ce9887 | — |
| markup.underline.link.image | #3fc56b | — |
| variable.parameter, parameter.variable.function.elixir, variable.other.block.ruby | #8bcdef | — |
| string.interpolated.dollar.shell | #ff6480 | — |
| string.other.math.shell | #3691ff | — |
| punctuation.definition.string.begin.shell, punctuation.definition.string.end.shell | #7a82da | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #EEFFFF | — |
| text.html.markdown markup.inline.raw.markdown | #C792EA | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #737d94 | — |
| variable.other.normal.shell, punctuation.definition.variable.shell | #7fff00 | — |
| variable.other.read.github-actions-expression | #ffd700 | — |
| keyword.operator.assignment, keyword.operator.assignment.go, keyword.operator.assignment.c, keyword.operator.assignment.cpp, keyword.operator.assignment.ruby, keyword.operator.assignment.java, keyword.operator.assignment.groovy, keyword.operator.assignment.rust, keyword.operator.assignment.zig, keyword.operator.assignment.python, keyword.operator.assignment.js, keyword.operator.assignment.jsx, keyword.operator.assignment.ts, keyword.operator.assignment.tsx, keyword.operator.assignment.shell | #ffd700 | — |
| comment.rainbow4 | #ce9887 | — |
| markup.bold.rainbow9 | #9f7efe | |
| invalid.rainbow10 | #ff936a | — |
| storage | #10b1fe | — |
| variable.other.go | #c586c0 | — |
| wow.deathknight | #c41e3a | — |
| wow.druid | #ff7c0a | — |
| wow.hunter | #aad372 | — |
| wow.mage | #3fc7eb | — |
| wow.evoker | #33937f | — |
| wow.demonhunter | #a330c9 | — |
| wow.monk | #00ff98 | — |
| wow.paladin | #f48cba | — |
| wow.priest | #ffffff | — |
| wow.rogue | #fff468 | — |
| wow.shaman | #0070dd | — |
| wow.warlock | #8788ee | — |
| wow.warrior | #c69b6d | — |
| meta.shebang.shell | #fd5108 | — |
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}!`;
}