Vintage Rust Theme
Publisher: Hmad AfzalThemes in package: 1
An Amazing theme for vintage lovers
An Amazing theme for vintage lovers
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, punctuation.definition.tag, comment.block.documentationpunctuation.definition.bracket, source.ocamlcommentconstant.regexpmeta.separator, markup.other.anchorsupport.constant, markup.fenced_code, markup.fenced_codepunctuation.definition, punctuation.definition.heading, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.strikethrough.markdown | #dcdcdc | — |
| constant.character, constant.escape, text.html.markdown, punctuation.definition.list_item, keyword.begin.tag.ejs, constant.name.attribute.tag.pug, source.clojuremeta.symbol, constant.other.description.jsdoc, keyword.other.array.phpdoc.php, keyword.operator.other.powershell, meta.link.inlinepunctuation.definition.string, source.sql, sourcemeta.brace, sourcepunctuation, text.htmlpunctuation, markupmetapunctuation.definition, meta.bracket.julia, meta.array.julia, entity.name.footnote, source.ocamlpunctuation.definition.tag, source.ocamlentity.name.filename, source.reasonentity.name.filename, entity.other.attribute-namestrong, binding.fsharpkeyword.symbol.fsharp, entity.name.record.field.elm, entity.name.record.field.accessor.elm, storage.modifier.array.bracket, source.cssentity.other, meta.attribute-selectorpunctuation.definition.entity, markup.other.anchorstring, punctuation.separator, punctuation.section, punctuation.terminator | #dad7be | — |
| keyword, keyword.control, keyword.other.template, keyword.other.substitution, storage.modifier, meta.tag.sgml, punctuation.accessor, constant.other.color, entity.name.section, markup.heading, markup.headingpunctuation.definition, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element, tag.decorator.jsentity.name.tag.js, tag.decorator.jspunctuation.definition.tag.js, storage.type.function.pug, text.pugstorage.type, text.pugmeta.tag.other, source.clojurestorage.control, meta.expression.clojure, punctuation.separator.slice.python, punctuation.separator.question-mark.cs, punctuation.definition.parameters.varargs, source.gokeyword.operator, punctuation.separator.pointer-access, punctuation.separator.other.ruby, keyword.package, keyword.import, punctuation.definition.keyword, punctuation.separator.hash.cs, entity.other.attribute-name.pseudo-class.csspunctuation.definition.entity.css, entity.other.attribute-name.pseudo-element.csspunctuation.definition.entity.css, source.kotlinstorage.type.import, source.kotlinstorage.type.package, constant.string.documentation.powershell, punctuation.section.directive, storage.type.rust, punctuation.definition.attribute, punctuation.definition.preprocessor, punctuation.separator.namespace, punctuation.separator.method, keyword.controlpunctuation.definition.function, source.ocamlvariable.interpolationstring, source.reasonvariable.interpolation, punctuation.definition.directive, storage.type.modifier, keyword.other.class.fileds, source.tomlentity.other.attribute-name, source.cssentity.name.tag.custom, sharing.modifier, keyword.control.class.ruby, keyword.control.def.ruby | #df769b | — |
| variable, variable.object, variable.other, variable.parameter, support, entity.name.module, variable.import.parameter, variable.other.class, meta.toc-list.id.html, source.jsonmeta.structure.dictionary.jsonsupport.type.property-name.json, meta.var.clojure, entity.name.variable, source.javameta.class.body.java, entity.name.package.go, source.c, source.cpp, source.go, source.python, meta.function-call.arguments.python, source.ruby, source.coffee.embedded.source, source.coffee, storage.modifier.import, storage.modifier.package, storage.type.annotation, punctuation.definition.annotation, source.groovy.embedded.source, punctuation.definition.variable, source.powershell, string.quoted.interpolated.valaconstant.character.escape.vala, source.apacheconf, source.objc, source.crystal, string.quoted.double.kotlinentity.string.template.element.kotlin, entity.name.package.kotlin, meta.template.expression.kotlin, parameter.variable.function, variable.other.constant.elixir, source.elixir.embedded.source, source.sql.embedded, punctuation.definition.placeholder, source.swift, source.julia, source.shell, variable.other.normalpunctuation.definition.variable.shell, source.reasonvariable.language, source.reasonvariable.languagestring.other.link, source.elmmeta.value, source.elmmeta.declaration.module, meta.embedded.blockvariablepunctuation.definition.variable.php, string.quoted.double.class.other, source.tomlkeyword, support.type.nim, source.tfmeta.template.expression, source.scalaentity.name.import, markup.code, markup.fenced_code.block | #e4b781 | — |
| support.variable.property, constant.other.symbol.hashkey.ruby, constant.other.symbol.hashkey.rubypunctuation.definition.constant.ruby, entity.other.attribute-name.id, entity.other.attribute-name.idpunctuation.definition.entity, entity.name.type.annotation.kotlin, support.type.primitive, meta.type.parametersentity.name.type, meta.type.annotationentity.name.type, punctuation.definition.typeparameters, source.pythonsupport.type.python, comment.block.documentation.phpdoc.phpkeyword.other.type.php, storage.type.php, keyword.type, storage.type.cs, storage.type.c, storage.type.objc, punctuation.definition.storage.type.objc, markuppunctuation.definition, storage.type.powershell, comment.block.documentationentity.name.type, source.javastorage.type, storage.type.primitive, source.groovystorage.type, storage.type.r, source.haskellstorage.type, punctuation.separator.clause-head-body, source.gostorage.type, storage.type.core.rust, storage.class.std.rust, storage.modifier.lifetime.rust, entity.name.lifetime.rust, support.type.vb, support.type.julia, constant.other.reference, source.graphqlsupport.type, source.reasonsupport.typestring, source.elmstorage.type, storage.type.user-defined, storage.type.built-in, support.type.builtin, source.swiftsupport.type, support.class.crystal, storage.type.integral, source.cppstorage.type.cpp, source.valastorage.type, source.hlslstorage.type.basic, source.hlslsupport.type.other, source.apexstorage.type, source.nimstorage.type, support.class.builtin, source.tfmeta.keyword.string, source.tfmeta.keyword.number, source.scalaentity.name.class, markup.raw.monospace, markup.mark, entity.name.type | #d67e5c | — |
| constant, variable.other.constant, support.constant, punctuation.definition.entity, constant.character.entity, support.variable.magic, markup.quote, entity.name.type.type-parameter.cs, punctuation.bracket.angle, entity.name.function.preprocessor.c, storage.type.scala, entity.helper.apacheconf, variable.language.crystal, punctuation.definition.constant, support.constantpunctuation.definition.variable, constant.character.math, support.class.math, source.graphqlconstant.character, source.reasonconstant.language.list, source.cppvariable.other.enummember, support.variable.class.hideshow, entity.other.attribute-name.class, meta.attribute.identity.other.attribute-name, text.htmlentity.other.attribute-name, meta.tag.attributesentity.other.attribute-name, text.xmlentity.other.attribute-name, source.csentity.other.attribute-name, constant.character.format.placeholder, constant.other.placeholder, source.vueentity.other.attribute-name, entity.other.attribute-name.mjml, source.vuemeta.directivepunctuation.separator.key-value, meta.definition.attribute-entrypunctuation.separator | #d5971a | — |
| variable.language, variable.parameter.function.language.special, punctuation.definition.italic, punctuation.definition.bold, entity.name.tag, variable.languagepunctuation.definition.variable, keyword.control.clojure, support.type.exception.python, keyword.other.this.cs, keyword.other.base.cs, keyword.other.var.cs, storage.modifier.super, source.gokeyword, keyword.function.go, meta.separator, keyword.other.fn.rust, storage.modifier.static.rust, source.rmeta.function.rkeyword.control.r, storage.type.def, meta.class.identifierstorage.modifier, source.scalakeyword.declaration, storage.type, comment.block.documentationpunctuation.definition.block.tag, comment.block.documentationpunctuation.definition.inline.tag, entity.tag.apacheconf, keyword.other.julia, source.juliastorage.modifier, constant.language.empty-list.haskell, meta.function.powershellstorage.type.powershell, keyword.control.fun, punctuation.terminator.function, keyword.other.rust, keyword.other.declaration-specifier.swift, keyword.control.class, keyword.control.def, source.ocamlkeywordmarkup.underline, source.ocamlstorage.typemarkup.underline, binding.fsharpkeyword, function.anonymouskeyword, function.anonymouskeyword.symbol.fsharp, meta.embedded.blockvariable.languagepunctuation.definition.variable.php, keyword.declaration.dart, source.wsdkeyword.other.class, source.wsdkeyword.other.linebegin, keyword.other.skinparam.keyword, keyword.other.nim, markup.deleted.diff, source.tfsupport.class.variable, meta.function.luakeyword.control.lua, markup.blockentity.name.tag, markup.meta.attribute-list, source.zigkeyword.default, source.zigkeyword.structure | #e66533 | — |
| string, punctuation.definition.string, source.csssupport.constant, entity.name.import.go, markup.raw.texttt, markup.inserted.diff, source.scalapunctuation.definition.character, constant.character.literal.scala, source.tfentity.name | #49e9a6 | — |
| string.template, punctuation.definition.string.template, string.interpolated.pythonstring.quoted.single.python, string.quoted.double.heredoc, string.quoted.interpolated.vala, string.quoted.interpolated.valapunctuation.definition.string, string.regexp.apacheconf, markup.inline.raw.string, markup.inline.rawpunctuation.definition.raw, string.quoted.double.interpolated.crystal, string.quoted.double.interpolated.crystalpunctuation.definition.string, text.texmarkup.raw | #16b673 | — |
| constant.numeric, constant.language, punctuation.separator.decimal.period.php, keyword.operator.null-conditional.cs, punctuation.separator.question-mark.cs, constant.integer.apacheconf, keyword.operator.nullable-type, constant.languagepunctuation.definition.variable, constant.others.fsharp, keyword.other.unit, string.quoted.double.skinparam.value, source.tomlconstant, source.zigkeyword.constant.bool, source.zigkeyword.constant.default | #7060eb | — |
| variable.function, support.type.property-name, entity.name.function, string.other.link, markup.link, support.type.vendored, support.other.variable, meta.function-call.generic.python, meta.method-call.groovymeta.method.groovy, meta.class.body.groovymeta.method.body.javastorage.type.groovy, punctuation.definition.decorator, support.function.any-method, text.texsupport.function, text.texpunctuation.definition.function, entity.name.section.fsharpentity.name.section.fsharp, support.variable.class.function, keyword.control.cucumber.table, punctuation.decorator, source.tfsupport.class | #16a3b6 | — |
| entity.name, entity.other, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, support.type, support.class, punctuation.definition.parameters, support.function, support.function.construct, markup.changed.git_gutter, markup.underline.link, markup.underline.link.image, markup.underline, meta.symbol.namespace.clojure, entity.mime-type.apacheconf, keyword.operator.function.infix, entity.name.function.infix, entity.name.function.call.kotlin, text.texsupport.function.verb, text.texsupport.function.texttt, source.reasonconstant.language.unit, source.ocamlconstant.languageconstant.numericentity.other.attribute-name.id.css, source.reasonentity.other.attribute-nameconstant.languageconstant.numeric, constant.language.unit.fsharp, source.wsdsupport.class.preprocessings, keyword.language.gherkin.feature.scenario, source.nimkeyword.other.common.function, entity.name.scope-resolution.function.call | #49d6e9 | — |
| source.jsconstant.other.object.key.jsstring.unquoted.label.js, source.jspunctuation.section.embedded, punctuation.definition.template-expression, support.class, storage.type.string.python, string.interpolated.pug, support.constant.handlebars, source.clojurepunctuation.section.set, source.clojurepunctuation.section.metadata, entity.global.clojure, source.pythonmeta.function-call.pythonsupport.type.python, entity.other.inherited-class.python, punctuation.definition.interpolation, punctuation.section.embedded.begin.ruby, punctuation.section.embedded.end.rubysource.ruby, support.constant.math, entity.namespace.r, meta.method-call.groovystorage.type.groovy, source.scalaentity.name.class.declaration, constant.character.escape, support.function.macro.julia, string.replacement.apacheconf, storage.modifier.using.vala, constant.other.haskell, source.objcentity.name.tag, string.quoted.other.literal.upper.crystalpunctuation.definition.string, meta.embedded.line.crystalpunctuation.section.embedded, meta.embedded.line.crystalpunctuation.section.embeddedsource.crystal, punctuation.section.embedded, punctuation.section.tag, punctuation.section.embeddedsource.swift, variable.other.bracketpunctuation.definition.variable, string.interpolated.dollarpunctuation.definition.string, constant.character.escapepunctuation.definition.keyword, source.ocamlentity.name.classconstant.numeric, source.reasonentity.name.class, keyword.format.specifier.fsharp, support.module.elm, meta.embedded.block.phppunctuation.definition.variable.php, source.valastorage.type, support.variable.class.group, entity.name.type.class, source.tfmeta.keyword.list, source.tfmeta.keyword.map, entity.name.class.lua, markup.substitution | #e9b449 | — |
| invalid, invalid.illegal | #e3541c | — |
| comment, storage.modifier, punctuation.definition.comment, entity.other, variable.language, support.type.vendored, support.constant.vendored, markup.quote, markup.italic, tag.decorator.jsentity.name.tag.js, tag.decorator.jspunctuation.definition.tag.js, keyword.control.clojure, source.clojuremeta.symbol.dynamic, keyword.other.this.cs, keyword.other.base.cs, variable.other.member.c, support.type.core.rust, variable.other.object.property, variable.other.property, source.rmeta.function.rkeyword.control.r, comment.line.roxygen.rkeyword, comment.line.roxygen.rvariable.parameter.r, keyword.control.inheritance.coffee, comment.block.documentation.phpdoc.phpkeyword, keyword.other.array.phpdoc.php, storage.type.modifier, comment.block.javadoc.javakeyword, comment.block.javadoc.javavariable.parameter.java, keyword.operator.documentation.powershell, storage.type.scala, variable.parameter.function.language.special, comment.block.documentation.scalakeyword, comment.block.documentation.scalavariable.parameter, support.function.builtin.go, constant.other.symbol.hashkey.ruby, constant.other.symbol.hashkey.rubypunctuation.definition.constant.ruby, constant.other.symbol.ruby, source.valastorage.type.generic, constant.other.table-name, constant.other.placeholder, variable.other.field, entity.alias.import.go, source.swiftkeyword.other.declaration-specifier, support.variable.swift, keyword.other.capture-specifier, text.texsupport.function.emph, constant.other.math, support.function.textit, entity.name.footnote, entity.name.function.directive.graphql, source.graphqlsupport.type.enum, source.ocamlentity.name.filename, source.reasonentity.name.filename, abstract.definition.fsharpkeyword, abstract.definition.fsharpentity, function.anonymouskeyword, entity.name.record.field.accessor.elm, support.type.primitive, support.type.builtin, keyword.type.cs, storage.type.built-in, storage.type.primitive, source.pythonsupport.type.python, storage.type.core.rust, source.swiftsupport.type, source.gostorage.type, storage.type.php, storage.type.function.kotlin, entity.name.type.kotlin, support.type.julia, variable.other.member, keyword.other.import, keyword.package, keyword.import, source.wsdkeyword.control.diagram, keyword.language.gherkin.feature.step, source.hlslstorage.type.basic, source.apexkeyword.type, sharing.modifier, source.nimstorage.type.concrete, meta.preprocessor.pragma.nim, storage.type.integral, entity.name.scope-resolution.function.call, support.class.builtin, comment.block.documentationstorage.type.class, source.tfmeta.keyword.string, source.tfmeta.keyword.number, source.scalaentity.name.class, meta.importkeyword.control, keyword.control.export, source.vuemeta.directivepunctuation.separator.key-value, keyword.local.lua, markup.mark.constrainedmarkup.mark, markup.block.open, entity.name.type.primitive, entity.name.type.numeric, source.zigkeyword.type, source.zigkeyword.storage, source.zigkeyword.structure | — | italic |
| keyword, keyword.control, keyword.operator, keyword.other.template, keyword.other.substitution, storage.type.function.arrow, constant.other.color, punctuation.accessor, entity.name.section, markdown.heading, markup.inline.rawpunctuation.definition.raw, markup.heading, storage.type.function.pug, storage.type.function.python, storage.type.annotation, punctuation.bracket.angle, keyword.other.new, storage.type.generic.wildcard, source.gokeyword.operator, constant.other.symbol.rubypunctuation.definition.constant.ruby, variable.parameter, support.function.builtin.rust, storage.type.function.coffee, entity.name.variable.parameter, punctuation.separator.hash.cs, constant.other.symbol.rubypunctuation.definition.constant.ruby, constant.other.symbol.hashkey.rubypunctuation.definition.constant.ruby, meta.function.parametersvariable.other, entity.name.type.annotation.kotlin, storage.type.objc, parameter.variable.function, markuppunctuation.definition, punctuation.section.directive, punctuation.definition.preprocessor, source.rubypunctuation.definition.variable, support.function.textbf, source.graphqlsupport.type.builtin, source.ocamlvariable.interpolationstring, entity.name.function.definition.special.constructor, entity.name.function.definition.special.member.destructor., meta.function.parametersvariablepunctuation.definition.variable.php, source.wsdkeyword.other.activity, keyword.control.class.ruby, keyword.control.def.ruby, keyword.function.go, keyword.other.fn.rust, markup.other.anchor, markup.list.bullet, markup.listpunctuation.definition, keyword.control.default, punctuation.section, punctuation.separator, punctuation.terminator, markup.bold.markdown, source.zigstorage.type.function, entity.name.type | — | bold |
| markup.quotemarkup.bold, text.htmlpunctuation.section.embedded, variable.other.c, storage.modifier.lifetime.rust, entity.name.lifetime.rust, source.rustmeta.attribute.rust, meta.attribute.identity.other.attribute-name, source.ocamlpunctuation.definition.tagemphasis, source.tfentity.name, markup.quotepunctuation.definition, markup.fenced_codepunctuation.definition, fenced_code.block.language | — | bolditalic |
| keyword.begin.tag.ejs, source.pythonmeta.function.decorator.pythonsupport.type.python, source.cskeyword.other, keyword.other.var.cs, source.gokeyword, storage.modifier.static.rust, variable.parameter.r, variable.parameter.handlebars, storage.modifier.import, storage.modifier.package, meta.class.identifierstorage.modifier, keyword.operator.other.powershell, source.cssvariable.parameter, string.interpolatedvariable.parameter, source.apacheconfkeyword, keyword.other.julia, storage.modifier.using.vala, source.objckeyword.other.property.attribute, source.sqlkeyword.other, keyword.other.using.vala, keyword.operator.function.infix, keyword.control.directive, keyword.other.rust, keyword.other.declaration-specifier.swift, entity.name.function.swift, keyword.control.class, keyword.control.def, punctuation.definition.variable, entity.name.section.latex, source.ocamlkeywordmarkup.underline, source.ocamlconstant.languageconstant.numericentity.other.attribute-name.id.css, source.reasonentity.other.attribute-nameconstant.languageconstant.numeric, keyword.format.specifier.fsharp, entity.name.section.fsharp, binding.fsharpkeyword, binding.fsharpkeyword.symbol, record.fsharpkeyword, keyword.symbol.fsharp, entity.name.section.fsharpkeyword, namespace.open.fsharpkeyword, namespace.open.fsharpentity, storage.type, source.cppkeyword.other, source.ckeyword.other, keyword.other.unit, storage.modifier.array.bracket, meta.import.haskellkeyword, keyword.declaration.dart, source.wsdkeyword.other, keyword.other.skinparam, source.csskeyword.control, source.csskeyword.operator, keyword.language.gherkin.feature.scenario, keyword.control.cucumber.table, source.tomlentity.other.attribute-name, source.tomlkeyword, keyword.other.nim, source.nimkeyword.other.common.function, source.nimkeyword.other, source.scalakeyword.declaration, source.scalaentity.name.class.declaration, keyword.control.lua, source.csspunctuation.section, punctuation.section.embedded, source.cpunctuation.section, source.cpppunctuation.section, source.javapunctuation.section, source.phppunctuation.section, source.powershellpunctuation.section, source.rpunctuation.section, source.rubypunctuation.section, source.swiftpunctuation.section, source.objcpunctuation.section, source.zigkeyword.constant.bool, source.zigkeyword.default, source.zigkeyword.statement, source.zigkeyword.constant.default | — | |
| markup.strikethrough | — | strikethrough |
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}!`;
}