Night Operator Theme
Publisher: Sandesh pandeyThemes in package: 1
A customized Dark Theme with Operator Mono support for Visual Studio Code.
A customized Dark Theme with Operator Mono support for Visual Studio Code.
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 | #697098 | italic |
| string | #80CBC4 | — |
| string.quoted | #80CBC4 | — |
| string.unquoted | #E0E4EB | — |
| support.constant.math | #FFCB6B | — |
| constant.numeric, constant.character.numeric | #F78C6C | — |
| constant.language, punctuation.definition.constant, variable.other.constant | #82AAFF | — |
| constant.character, constant.other | #82AAFF | — |
| constant.character.escape | #F78C6C | — |
| string.regexp, string.regexp keyword.other | #80CBC4 | — |
| meta.function punctuation.separator.comma | #EEFFFF | — |
| variable | #FFCB6B | — |
| punctuation.accessor, keyword | #C792EA | — |
| storage, storage.type, meta.var.expr storage.type, storage.type.property.js, storage.type.property.ts, storage.type.property.tsx, meta.class meta.method.declaration meta.var.expr storage.type.js | #C792EA | — |
| entity.name.class, meta.class entity.name.type.class | #FFCB6B | — |
| entity.other.inherited-class | #A9C77D | — |
| entity.name.function | #82AAFF | — |
| variable.parameter | #7986E7 | — |
| punctuation.definition.tag, meta.tag | #64748b | — |
| entity.name.tag support.class.component, meta.tag.other.html, meta.tag.other.js, meta.tag.other.tsx, entity.name.tag.tsx, entity.name.tag.js, entity.name.tag, meta.tag.js, meta.tag.tsx, meta.tag.html | #FF5572 | — |
| entity.other.attribute-name | #FFCB6B | — |
| entity.name.tag.custom | #FFCB6B | — |
| support.function, support.constant | #82AAFF | — |
| support.constant.meta.property-value | #89DDFF | — |
| support.type, support.class | #FFCB6B | — |
| support.variable.dom | #FFCB6B | — |
| invalid | #FFFFFF | — |
| invalid.deprecated | #FFFFFF | — |
| keyword.operator | #89DDFF | — |
| keyword.operator.relational | #C792EA | — |
| keyword.operator.assignment | #C792EA | — |
| comment.line.double-slash | #697098 | — |
| object | #CDEBF7 | — |
| constant.language.null | #FF5874 | — |
| meta.brace | #E0E4EB | — |
| meta.delimiter.period | #C792EA | — |
| constant.language.boolean | #FF5874 | — |
| object.comma | #FFFFFF | — |
| variable.parameter.function | #89DDFF | — |
| support.type.vendored.property-name, support.constant.vendored.property-value, support.type.property-name, meta.property-list entity.name.tag | #80CBC4 | — |
| meta.property-list entity.name.tag.reference | #FF5572 | — |
| constant.other.color.rgb-value punctuation.definition.constant | #F78C6C | — |
| constant.other.color | #FFEB95 | — |
| keyword.other.unit | #FFEB95 | — |
| meta.selector | #C792EA | — |
| entity.other.attribute-name.id | #FAD430 | — |
| meta.property-name | #80CBC4 | — |
| entity.name.tag.doctype, meta.tag.sgml.doctype | #C792EA | italic |
| punctuation.definition.parameters | #D9F5DD | — |
| keyword.control.operator | #89DDFF | — |
| variable.instance, variable.other.instance, variable.reaedwrite.instance, variable.other.readwrite.instance | #FF5572 | — |
| variable.other.property, variable.other.object.property | #89DDFF | — |
| entity.name.function | #82AAFF | — |
| keyword.operator.comparison, keyword.operator.logical | #89DDFF | — |
| support.constant, keyword.other.special-method, keyword.other.new | #89DDFF | — |
| support.function | #89DDFF | — |
| invalid.broken | #020E14 | — |
| invalid.unimplemented | #FFFFFF | — |
| invalid.illegal | #FFFFFF | — |
| variable.language | #FF5572 | — |
| support.variable.property | #89DDFF | — |
| variable.function | #82AAFF | — |
| variable.interpolation | #EC5F67 | — |
| meta.function-call | #82AAFF | — |
| punctuation.section.embedded | #D3423E | — |
| punctuation.terminator.expression, punctuation.definition.arguments, punctuation.definition.array, punctuation.section.array, meta.array | #E0E4EB | — |
| punctuation.definition.list.begin, punctuation.definition.list.end, punctuation.separator.arguments, punctuation.definition.list | #D9F5DD | — |
| string.template meta.template.expression | #D3423E | — |
| string.template punctuation.definition.string | #E0E4EB | — |
| italic | #C792EA | italic |
| bold | #FFCB6B | bold |
| quote | #697098 | italic |
| raw | #80CBC4 | — |
| variable.assignment.coffee | #89DDFF | — |
| variable.parameter.function.coffee | #E0E4EB | — |
| variable.assignment.coffee | #89DDFF | — |
| variable.other.readwrite.cs | #E0E4EB | — |
| entity.name.type.class.cs, storage.type.cs | #82AAFF | — |
| entity.name.type.namespace.cs | #B2CCD6 | — |
| entity.name.tag.css, entity.name.tag.less, entity.name.tag.custom.css | #FF5572 | — |
| entity.name.tag.wildcard.css, entity.name.tag.wildcard.less, entity.name.tag.wildcard.scss, entity.name.tag.wildcard.sass | #FF5572 | — |
| keyword.other.unit.css, constant.length.units.css, keyword.other.unit.less, constant.length.units.less, keyword.other.unit.scss, constant.length.units.scss, keyword.other.unit.sass, constant.length.units.sass | #FFEB95 | — |
| meta.attribute-selector.css entity.other.attribute-name.attribute | #F78C6C | — |
| source.js source.css meta.property-list, source.js source.css punctuation.section, source.js source.css punctuation.terminator.rule, source.js source.css punctuation.definition.entity.end.bracket, source.js source.css punctuation.definition.entity.begin.bracket, source.js source.css punctuation.separator.key-value, source.js source.css punctuation.definition.attribute-selector, source.js source.css meta.property-list, source.js source.css meta.property-list punctuation.separator.comma, source.ts source.css punctuation.section, source.ts source.css punctuation.terminator.rule, source.ts source.css punctuation.definition.entity.end.bracket, source.ts source.css punctuation.definition.entity.begin.bracket, source.ts source.css punctuation.separator.key-value, source.ts source.css punctuation.definition.attribute-selector, source.ts source.css meta.property-list, source.ts source.css meta.property-list punctuation.separator.comma, source.jsx source.css punctuation.section, source.jsx source.css meta.property-list, source.jsx source.css punctuation.terminator.rule, source.jsx source.css punctuation.definition.entity.end.bracket, source.jsx source.css punctuation.definition.entity.begin.bracket, source.jsx source.css punctuation.separator.key-value, source.jsx source.css punctuation.definition.attribute-selector, source.jsx source.css meta.property-list, source.jsx source.css meta.property-list punctuation.separator.comma, source.tsx source.css punctuation.section, source.tsx source.css punctuation.terminator.rule, source.tsx source.css punctuation.definition.entity.end.bracket, source.tsx source.css punctuation.definition.entity.begin.bracket, source.tsx source.css punctuation.separator.key-value, source.tsx source.css punctuation.definition.attribute-selector, source.tsx source.css meta.property-list, source.tsx source.css meta.property-list punctuation.separator.comma | #E0E4EB | — |
| source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir | #82AAFF | — |
| source.elixir entity.name.function | #FFCB6B | — |
| source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir | #82AAFF | — |
| source.elixir punctuation.definition.string | #A9C77D | — |
| source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #FFCB6B | — |
| source.elixir .punctuation.binary.elixir | #C792EA | — |
| source.go meta.function-call.go | #DDDDDD | — |
| variable.qraphql | #E0E4EB | — |
| entity.other.attribute-name.id.html | #FFCB6B | — |
| punctuation.definition.tag.html | #64748b | — |
| meta.tag.sgml.doctype.html | #C792EA | italic |
| meta.class entity.name.type.class.js | #FFCB8B | — |
| meta.method.declaration storage.type.js | #82AAFF | normal |
| terminator.js, terminator.ts | #E0E4EB | — |
| meta.js punctuation.definition.js, meta.ts punctuation.definition.js | #E0E4EB | — |
| entity.name.type.instance.jsdoc, entity.name.type.instance.phpdoc | #EEFFFF | — |
| variable.other.jsdoc, variable.other.phpdoc | #78CCF0 | — |
| variable.other.meta.import.js, variable.other.meta.import.ts, meta.import.js variable.other, meta.import.ts variable.other, variable.other.meta.export.js, variable.other.meta.export.ts, meta.export.js variable.other, meta.export.ts variable.other | #E0E4EB | — |
| variable.parameter.function.js,variable.parameter.function.ts | #7986E7 | — |
| variable.other.readwrite.js, variable.other.readwrite.ts | #E0E4EB | — |
| meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #E0E4EB | — |
| variable.other.object.js, variable.other.object.ts, variable.other.object.tsx, variable.other.object.jsx, meta.object-literal.key.ts, meta.object-literal.key.tsx, meta.object-literal.key.js, meta.object-literal.key.jsx, variable.object.property.ts, variable.object.property.tsx, variable.object.property.js, variable.object.property.jsx | #E0E4EB | — |
| variable.js, variable.other.js, variable.ts, variable.other.ts | #E0E4EB | — |
| entity.name.type.js, entity.name.type.module.js | #FFCB8B | — |
| support.class.js, support.class.ts | #E0E4EB | — |
| support.type.property-name.json | #80CBC4 | italic |
| punctuation, meta.brace.round.js, meta.brace.square.js | #BF616A | — |
| support.constant.json | #FFCB6B | — |
| meta.structure.dictionary.value.json string.quoted.double | #C3E88D | italic |
| string.quoted.double.json punctuation.definition.string.json | #C3E88D | italic |
| meta.structure.dictionary.json meta.structure.dictionary.value constant.language | #FF5874 | italic |
| variable.other.ruby | #E0E4EB | — |
| constant.language.symbol.hashkey.ruby | #89DDFF | — |
| entity.name.tag.less | #FF5572 | — |
| meta.attribute-selector.less entity.other.attribute-name.attribute | #F78C6C | — |
| markup.heading | #82B1FF | — |
| markup.italic | #C792EA | italic |
| markup.bold | #FFCB6B | bold |
| markup.quote | #697098 | italic |
| markup.inline.raw | #C3E88D | — |
| markup.underline.link, markup.underline.link.image | #FF869A | — |
| markup.meta.attribute-list | #A9C77D | — |
| markup.admonition | — | bold |
| markup.list.bullet | #D9F5DD | — |
| markup.superscript, markup.subscript | — | italic |
| string.other.link.title.markdown, string.other.link.description.markdown | #E0E4EB | — |
| punctuation.definition.string.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, meta.link.inline.markdown punctuation.definition.string | #82B1FF | — |
| punctuation.definition.metadata.markdown | #FF5572 | — |
| beginning.punctuation.definition.list.markdown | #82B1FF | — |
| entity.name.function.asciidoc | #F78C6C | — |
| variable.other.php | #BEC5D4 | — |
| support.class.php | #FFCB8B | — |
| meta.function-call.php punctuation | #E0E4EB | — |
| variable.other.global.php | #FFCB6B | — |
| variable.other.global.php punctuation.definition.variable | #FFCB6B | — |
| constant.language.python | #FF5874 | — |
| variable.parameter.function.python, meta.function-call.arguments.python | #7986E7 | — |
| meta.function-call.python, meta.function-call.generic.python | #B2CCD6 | — |
| punctuation.python | #E0E4EB | — |
| entity.name.function.decorator.python | #FFCB6B | — |
| source.python variable.language.special | #8EACE3 | — |
| variable.scss, variable.sass, variable.parameter.url.scss, variable.parameter.url.sass | #DDDDDD | — |
| source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable | #82AAFF | — |
| source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable | #BEC5D4 | — |
| meta.attribute-selector.scss entity.other.attribute-name.attribute, meta.attribute-selector.sass entity.other.attribute-name.attribute | #F78C6C | — |
| entity.name.tag.scss, entity.name.tag.sass | #FF5572 | — |
| variable.other.readwrite.alias.ts, variable.other.readwrite.alias.tsx, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.object.ts, variable.other.object.tsx, variable.object.property.ts, variable.object.property.tsx, variable.other.ts, variable.other.tsx, variable.tsx, variable.ts | #E0E4EB | — |
| entity.name.type.ts, entity.name.type.tsx | #78CCF0 | — |
| support.class.node.ts, support.class.node.tsx | #82AAFF | — |
| meta.type.parameters.ts entity.name.type, meta.type.parameters.tsx entity.name.type | #EEFFFF | — |
| meta.import.ts punctuation.definition.block, meta.import.tsx punctuation.definition.block, meta.export.ts punctuation.definition.block, meta.export.tsx punctuation.definition.block | #E0E4EB | — |
| meta.decorator punctuation.decorator.ts, meta.decorator punctuation.decorator.tsx | #82AAFF | — |
| meta.tag.js meta.jsx.children.tsx | #82AAFF | — |
| entity.name.tag.yaml | #89DDFF | — |
| variable.parameter.handlebars | #BEC5D4 | — |
| entity.other.attribute-name.handlebars variable.parameter.handlebars | #FFCB6B | — |
| entity.other.attribute-name.handlebars | #89DDFF | — |
| entity.other.attribute-value.handlebars variable.parameter.handlebars | #7986E7 | — |
| meta.tag.js meta.embedded.expression.js punctuation.section.embedded.begin.js, meta.tag.js meta.embedded.expression.js punctuation.section.embedded.end.js, meta.property-list.css meta.property-value.css variable.other.less, punctuation.section.embedded.begin.js.jsx, punctuation.section.embedded.end.js.jsx, meta.property-list.scss variable.scss, meta.property-list.sass variable.sass, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.ternary, keyword.operator.comparison, keyword.operator.assignment, keyword.operator.operator, keyword.operator.or.regexp, keyword.operator.expression.in, keyword.operator.type, punctuation.section.embedded.js, punctuation.definintion.string | — | italic |
| keyword.other.unit, support.type.property-name.css, support.type.vendored.property-name.css, support.constant.vendored.property-value.css, meta.import.ts meta.block.ts variable.other.readwrite.alias.ts, meta.import.tsx meta.block.tsx variable.other.readwrite.alias.tsx, meta.import.js variable.other, meta.export.ts meta.block.ts variable.other.readwrite.alias.ts, meta.export.tsx meta.block.tsx variable.other.readwrite.alias.tsx, meta.export.js variable.other, entity.name.function.ts, entity.name.function.tsx, support.type.primitive, entity.name.tag.yaml, entity.other.attribute-name, meta.tag.sgml.doctype.html, entity.name.tag.doctype, meta.tag.sgml.doctype, entity.name.tag.custom, source.js.jsx keyword.control.flow.js, support.type.property.css, support.function.basic_functions, constant.other.color.rgb-value.hex.css, constant.other.rgb-value.css, variable.assignment.coffee, support.function.basic_functions, keyword.operator.expression.typeof, punctuation.section.embedded, keyword.operator.type.annotation, variable.object.property.ts, variable.object.property.js, variable.object.property.jsx, variable.object.property.tsx, assignment.coffee, entity.name.type.ts, support.constant.math, meta.object-literal.key, meta.var.expr storage.type, variable.scss, variable.sass, variable.other.less, variable.parameter.url.scss, variable.parameter.url.sass, parameter, string, italic, quote, keyword, storage, language, constant.language, variable.language, type .function, type.function, storage.type.class, type.var, meta.parameter, variable.parameter, meta.parameters, keyword.control, modifier, this, comment | — | italic |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}