vp-syntax-theme
Publisher: Viktor PyskunovThemes in package: 1
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 | #546E7A | italic |
| variable, string constant.other.placeholder | #a7a7a7 | — |
| constant.other.color | #ffffff | — |
| invalid, invalid.illegal | #FF5370 | — |
| keyword, storage.type, storage.modifier, keyword.control.export, keyword.control.import , keyword.control.from, keyword.control.switch, keyword.control.conditional, keyword.control.default | #d86464 | — |
| keyword.control, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, keyword.operator.comparison, keyword.operator.bitwise, keyword.operator.relational | #649891 | — |
| punctuation.definition.template-expression | #b56469 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #f07178 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #739818 | — |
| meta.block variable.other | #f07178 | — |
| support.other.variable, string.other.link | #f07178 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other, meta.jsx.children | #a7a7a7 | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, punctuation.definition.string | #b29731 | — |
| entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, entity.other.inherited-class, support.type.sys-types | #a7a7a7 | — |
| support.type | #B2CCD6 | — |
| source.css support.type.property-name, 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 | #B2CCD6 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #FF5370 | — |
| variable.language | #FF5370 | italic |
| entity.name.method.js | #82AAFF | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #82AAFF | — |
| entity.other.attribute-name | #C792EA | — |
| text.html.derivative entity.other.attribute-name.html | #739818 | — |
| text.html.derivative punctuation.definition.tag.begin.html, text.html.derivative punctuation.definition.tag.end.html, text.html.derivative entity.name.tag.html | #d86464 | — |
| text.html.derivative string.quoted.double.html, text.html.derivative string.quoted.double.html punctuation.definition.string.begin.html, text.html.derivative string.quoted.double.html punctuation.definition.string.end.html | #C1B660 | — |
| text.html.derivative | #a7a7a7 | — |
| entity.other.attribute-name.class, source.css.scss entity.other.attribute-name.class.css punctuation.definition.entity.css, source.css meta.selector entity.other.attribute-name.class punctuation.definition.entity | #5aa0e5 | — |
| source.css.scss entity.other.attribute-name.id.css | #5aa0e5 | — |
| source.css.scss meta.property-list.scss punctuation.section.property-list.begin.bracket.curly.scss, source.css.scss meta.property-list.scss punctuation.section.property-list.end.bracket.curly.scss | #a7a7a7 | — |
| source.css support.function.misc | #a7a7a7 | — |
| source.css.scss meta.property-list.scss meta.property-value.scss string.quoted.double.scss punctuation.definition.string.begin.scss, source.css.scss meta.property-list.scss meta.property-value.scss string.quoted.double.scss punctuation.definition.string.end.scss, source.css.scss meta.property-list.scss meta.property-value.scss string.quoted.double.scss | #C1B660 | — |
| source.css meta.property-list meta.property-value constant.numeric, source.css constant.numeric keyword.other.unit | #ba9d2e | — |
| source.css.scss meta.property-list.scss punctuation.terminator.rule.scss, source.css.scss meta.property-list.scss meta.property-value.scss, source.css.scss meta.property-list.scss support.constant.mathematical-symbols.scss, source.css.scss meta.definition.variable.scss punctuation.separator.key-value.scss, source.css meta.property-list meta.property-value punctuation.separator.delimiter, source.css.scss punctuation.terminator.rule.scss, source.css meta.property-list punctuation.section.property-list | #a7a7a7 | — |
| source.css.scss entity.name.tag.css | #5aa0e5 | — |
| source.css.scss meta.definition.variable.scss variable.scss , variable.scss, variable.sass, variable.sass punctuation.definition.variable | #d86464 | — |
| source.css punctuation.definition.keyword, source.css keyword.control.at-rule.import | #d86464 | — |
| source.css keyword.control.at-rule.import punctuation.definition.keyword | #649891 | — |
| source.css.scss punctuation.separator.key-value.scss, source.css.scss meta.property-list.scss meta.property-name.scss support.type.property-name.css, source.css meta.property-list meta.property-name support.type.property-name | #739818 | — |
| source.css meta.property-list punctuation.separator.key-value | #a7a7a7 | — |
| source.css.scss meta.definition.variable.scss constant.other.color.rgb-value.hex.css, source.css.scss meta.definition.variable.scss constant.other.color.rgb-value.hex.css punctuation.definition.constant.css , source.css constant.other.color.rgb-value.hex punctuation.definition.constant, source.css constant.other.color.rgb-value.hex | #a7a7a7 | — |
| source.css punctuation.terminator.rule, source.css punctuation.section.function | #a7a7a7 | — |
| markup.inserted | #C3E88D | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #C792EA | — |
| string.regexp | #89DDFF | — |
| constant.character.escape | #89DDFF | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #82AAFF | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #FF5370 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #b56469 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #b56469 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #b56469 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D19A66 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D19A66 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D19A66 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D19A66 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D19A66 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D19A66 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json | #739818 | — |
| source.json meta.structure.dictionary.json string.json support.type.property-name.json punctuation.support.type.property-name.end.json, source.json meta.structure.dictionary.json string.json support.type.property-name.json punctuation.support.type.property-name.begin.json | #b56469 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json punctuation.definition.string.begin.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json punctuation.definition.string.end.json | #739818 | — |
| source.json meta.structure.dictionary.json punctuation.definition.dictionary.begin.json, source.json meta.structure.dictionary.json punctuation.definition.dictionary.end.json | #a7a7a7 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.separator.dictionary.key-value.json | #a7a7a7 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.separator.dictionary.pair.json | #a7a7a7 | — |
| text.html.markdown, text.html.markdown meta.paragraph.markdown, punctuation.definition.list_item.markdown | #a7a7a7 | — |
| text.html.markdown markup.inline.raw.markdown | #C792EA | — |
| text.html.markdown markup.underline.link.markdown, text.html.markdown string.other.link.title.markdown | #5aa0e5 | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #65737E | — |
| text.html.markdown markup.list.numbered.markdown punctuation.definition.list.begin.markdown, text.html.markdown markup.list.unnumbered.markdown punctuation.definition.list.begin.markdown | #C2A536 | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, entity.name.section.markdown, text.html.markdown markup.heading.markdown | #d86464 | — |
| text.html.markdown meta.paragraph.markdown meta.link.inline.markdown punctuation.definition.metadata.markdown | #C2A536 | — |
| text.html.markdown meta.paragraph.markdown markup.italic.markdown, text.html.markdown meta.paragraph.markdown markup.italic.markdown punctuation.definition.italic.markdown | #5aa0e5 | — |
| markup.italic | #f07178 | italic |
| markup.bold, markup.bold string | #f07178 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #f07178 | bold |
| markup.underline | #F78C6C | underline |
| markup.quote punctuation.definition.blockquote.markdown | #65737E | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #82AAFF | — |
| string.other.link.description.title.markdown | #C792EA | — |
| constant.other.reference.link.markdown | #FFCB6B | — |
| markup.raw.block | #C792EA | — |
| markup.raw.block.fenced.markdown | #00000050 | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #EEFFFF | — |
| variable.language.fenced.markdown | #65737E | — |
| meta.separator | #65737E | bold |
| markup.table | #EEFFFF | — |
| text.html.handlebars meta.tag.block.any.html punctuation.definition.tag.html , text.html.handlebars meta.tag.block.any.html entity.name.tag.block.any.html , text.html.handlebars meta.tag.structure.any.html punctuation.definition.tag.html | #d86464 | — |
| text.html.handlebars meta.tag.block.any.html entity.other.attribute-name.html entity.other.attribute-name.generic, text.html.handlebars meta.tag.structure.any.html entity.other.attribute-name.id.html, text.html.handlebars meta.tag.block.any.html entity.other.attribute-name.id.html, text.html.handlebars meta.tag.any.html entity.other.attribute-name.html entity.other.attribute-name.generic, text.html.handlebars meta.tag.structure.any.html entity.other.attribute-name.html entity.other.attribute-name.generic | #739818 | — |
| text.html.handlebars meta.structure.any.html string.quoted.double.handlebars , text.html.handlebars meta.structure.any.html string.quoted.double.handlebars punctuation.definition.string.begin.html , text.html.handlebars meta.structure.any.html string.quoted.double.handlebars punctuation.definition.string.end.html , text.html.handlebars meta.tag.block.any.html string.quoted.double.handlebars , text.html.handlebars meta.tag.block.any.html string.quoted.double.handlebars | #C1B660 | — |
| punctuation.separator.comma.js, punctuation.definition.block.js, punctuation.definition.block.tsx, punctuation.definition.block.ts, punctuation.separator.parameter.js, meta.brace.round.js , punctuation.terminator.statement, meta.block.js punctuation.definition.block.js, punctuation.separator.comma.tsx, punctuation.separator.comma.ts, keyword.operator.ternary.js, meta.array.literal meta.brace.square | #a481df | — |
| meta.object-literal.key.js punctuation.separator.key-value.js, punctuation.separator.key-value.ts, punctuation.definition.section.case-statement.js , keyword.operator.arithmetic.js, keyword.operator.spread.js, keyword.operator.logical.js, keyword.operator.comparison.js, keyword.operator.comparison.ts, keyword.operator.assignment.tsx, keyword.operator.assignment.ts, keyword.operator.assignment.js, keyword.operator.spread.ts, punctuation.definition.section.case-statement.ts | #649891 | — |
| punctuation.accessor.js, punctuation.accessor.tsx, punctuation.accessor.ts | #a7a7a7 | — |
| keyword.control.flow.js, keyword.control.as.js, keyword.control, variable.language.this.js, variable.language.super.js, keyword.control.import.js, storage.type.function.js, keyword.control.from.js, keyword.control.conditional.js, keyword.operator.new.js, keyword.operator.expression.typeof, storage.type.type, keyword.operator.optional, storage.type.class, storage.modifier | #b56469 | |
| variable.other.constant.js, variable.other.object.js, variable.other.property.js, variable.other.readwrite.js, variable.other.readwrite.ts, variable.other.readwrite.alias.ts, variable.other.object.property.js, variable.other.readwrite.alias.js, variable.other.object.ts, variable.other.property.ts, punctuation.accessor.js | #a7a7a7 | — |
| variable.other.constant.object.js, variable.other.constant.property | #a7a7a7 | — |
| support.type.object.module.js, keyword.control.export.js, keyword.control.default | #b56469 | — |
| meta.object-literal.key.js, meta.object-literal.key.ts, meta.objectliteral.ts punctuation.definition.block.ts, meta.object.member.ts variable.other.readwrite.ts | #649891 | — |
| punctuation.definition.parameters, variable.parameter.js, meta.parameters.tsx meta.parameter.object-binding-pattern.tsx punctuation.definition.binding-pattern.object.tsx, variable.parameter.tsx, variable.parameter.ts | #cb8e55 | — |
| entity.name.function.js, support.function.js | #739818 | — |
| source.js meta.var.expr.js storage.type.js | #b56469 | — |
| storage.type.function.arrow.js, storage.type.function.arrow.tsx, storage.type.function.arrow.ts | #D19A66 | — |
| constant.language.boolean.undefined.js, constant.language.null.js, constant.language.boolean.false.js , constant.language.boolean.true.js | #b56469 | — |
| constant.numeric | #b29731 | — |
| support.class.builtin.js | #a7a7a7 | — |
| constant.language.import-export-all.js | #a7a7a7 | — |
| source.js meta.tag.js entity.name.tag.js, source.js meta.tag.js punctuation.definition.tag.begin.js, source.js meta.tag.js punctuation.definition.tag.end.js, source.js meta.tag.js support.class.component.js, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx, entity.name.tag.tsx, entity.name.tag.tsx support.class.component.tsx | #9c8957 | — |
| source.js meta.tag.js entity.other.attribute-name.js, source.js meta.tag.js keyword.operator.assignment.js, entity.other.attribute-name.tsx, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx | #a481df | — |
| source.js meta.tag.js meta.jsx.children.js | #a7a7a7 | — |
| source.tsx meta.import.tsx meta.block.tsx variable.other.readwrite.alias.tsx, source.tsx meta.import.tsx meta.block.tsx variable.other.readwrite.tsx | #a7a7a7 | — |
| source.tsx meta.interface.tsx meta.field.declaration.tsx meta.type.annotation.tsx entity.name.type.tsx, source.tsx meta.interface.tsx meta.field.declaration.tsx meta.type.annotation.tsx keyword.operator.type.annotation.tsx, source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx meta.type.annotation.tsx entity.name.type.module.tsx, source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx meta.type.annotation.tsx punctuation.accessor.tsx, source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx meta.type.annotation.tsx entity.name.type.tsx, punctuation.definition.typeparameters.begin.tsx, punctuation.definition.typeparameters.begin.ts, punctuation.definition.typeparameters.end.tsx, punctuation.definition.typeparameters.end.ts, meta.type.annotation.tsx keyword.operator.type.annotation.tsx, meta.type.annotation.tsx support.type.primitive.tsx, meta.type.annotation.tsx entity.name.type.tsx, entity.name.type.interface.tsx, entity.name.type.interface.ts, keyword.operator.type.annotation.ts, support.type.primitive.ts, entity.name.type.ts, support.type.primitive | #4191e1 | — |
| keyword.operator.arithmetic.ts, keyword.operator.arithmetic.tsx, keyword.operator.logical.ts, keyword.operator.logical.tsx, keyword.operator.ternary.ts, keyword.operator.ternary.tsx | #b56469 | — |
| variable.other.constant.tsx, variable.other.constant.ts, variable.other.readwrite.tsx, variable.other.object.tsx, variable.other.object.property.tsx, variable.other.object.property.ts, variable.other.property.tsx | #a7a7a7 | — |
| meta.brace.round.tsx, meta.brace.round.ts | #a481df | — |
| punctuation.definition.string.begin.tsx, punctuation.definition.string.end.tsx, string.quoted.single.tsx | #b29731 | — |
| meta.array-binding-pattern-variable.tsx punctuation.definition.binding-pattern.array.tsx, keyword.operator.assignment.ts | #a481df | — |
| variable.language.super.ts, variable.language.super.tsx, variable.language.this.tsx, keyword.control.import.ts, keyword.control.import.tsx, keyword.control.from.ts, keyword.control.from.tsx, keyword.control.export.ts, keyword.control.export.tsx, storage.type.function.ts, storage.type.function.tsx, storage.type.interface.ts, storage.type.interface.tsx, storage.type.enum.ts, storage.type.enum.tsx, storage.modifier.async.ts, storage.modifier.async.tsx, storage.type.ts, storage.type.tsx, keyword.operator.spread.ts, keyword.operator.spread.tsx, keyword.generator.asterisk.ts, keyword.generator.asterisk.tsx, keyword.control.conditional.ts, keyword.control.conditional.tsx | #b56469 | |
| source.css.scss meta.property-name.scss support.type.property-name.css | #739818 | — |
| source.css.scss punctuation.separator.key-value.scss | #739818 | — |
| source.css.scss meta.property-value.scss keyword.other.unit.px.css, source.css.scss meta.property-list.scss meta.property-value.scss constant.numeric.css | #ba9d2e | — |
| source.css.scss entity.name.tag.reference.scss | #5aa0e5 | — |
| variable.other.php, variable.other.class.php, variable.language.this.php, punctuation.definition.variable.php | #9c8957 | |
| storage.type.php, entity.other.inherited-class.php | #a7a7a7 | |
| punctuation.definition.parameters, punctuation.definition.begin, punctuation.definition.end, punctuation.definition.arguments | #a7a7a7 | — |
| punctuation.separator.delimiter.php, keyword.operator.assignment.php, keyword.operator.key.php, keyword.operator.class.php, punctuation.terminator.expression.php, punctuation.definition.class.end.bracket.curly.php, punctuation.definition.class.begin.bracket.curly.php, keyword.operator.return-value.php, keyword.operator.comparison.php | #a7a7a7 | |
| keyword.other.use.php, storage.type.class.php, storage.modifier.extends.php, keyword.other.namespace.php, keyword.other.new.php, storage.modifier.php, storage.type.function.php, keyword.control.return.php | #b56469 | — |
| string.quoted.single.php, punctuation.definition.string.begin.php, punctuation.definition.string.end.php, string.quoted.double.php, string.regexp.single-quoted.php | #5aa0e5 | — |
| punctuation.section.array.begin.php, punctuation.section.array.end.php | #a7a7a7 | — |
| constant.language.php, keyword.operator.logical.php, keyword.operator.nullable-type.php | #b56469 | |
| constant.numeric.decimal.php | #a7a7a7 | |
| keyword.other.phpdoc.php, keyword.other.type.php, meta.other.type.phpdoc.php support.class.php, meta.other.type.phpdoc.php support.class.builtin.php, meta.other.type.phpdoc.php support.class.builtin.php punctuation.separator.inheritance.php | #546e7a | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}