One Dark Pro Purple
Publisher: yaoyuanzhangThemes in package: 1
A Visual Studio Code theme that mashes the best of One Dark Pro and Shades of Purple together.
A Visual Studio Code theme that mashes the best of One Dark Pro and Shades of Purple together.
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 | #B362FF | — |
| entity | #FAD000 | — |
| constant | #FF628C | — |
| keyword, storage.type.class.js | #FF9D00 | — |
| meta | #9EFFFF | — |
| invalid | #EC3A37F5 | — |
| meta.brace | #ff89c0 | — |
| punctuation | #00DFA2 | — |
| punctuation.definition.parameters | #FFEE80 | — |
| punctuation.definition.template-expression | #FFEE80 | — |
| storage | #FAD000 | — |
| storage.type.function.arrow | #FAD000 | — |
| string, punctuation.definition.string | #A5FF90 | — |
| string.template, punctuation.definition.string.template | #3AD900 | — |
| support | #80FFBB | — |
| support.function | #FF9D00 | — |
| support.variable.property.dom | #9EFFFF | — |
| variable | #9EFFFF | — |
| source.ini entity | #ff89c0 | — |
| source.ini keyword | #FAD000 | — |
| source.ini punctuation.definition | #FFEE80 | — |
| source.ini punctuation.separator | #FF9D00 | — |
| source.css entity, source.stylus entity | #3AD900 | — |
| entity.other.attribute-name.id.css | #FFB454 | — |
| entity.name.tag | #9EFFFF | — |
| source.css support, source.stylus support | #A5FF90 | — |
| source.css constant, source.css support.constant, source.stylus constant, source.stylus support.constant | #FFEE80 | — |
| source.css string, source.css punctuation.definition.string, source.stylus string, source.stylus punctuation.definition.string | #FFEE80 | — |
| source.css variable, source.stylus variable | #9EFFFF | — |
| text.html.basic entity.name, punctuation.definition.tag.html, entity.name.tag.inline.any.html, meta.tag.other.html, meta.tag.inline.any.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, entity.name.tag, 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 | #9EFFFF | — |
| meta.toc-list.id.html | #A5FF90 | — |
| text.html.basic entity.other | #FAD000 | — |
| meta.tag.metadata.script.html entity.name.tag.html | #FAD000 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #92FC79 | — |
| meta.tag.inline.any.html, meta.tag.other | #FF9D00 | — |
| source.json support | #FAD000 | — |
| source.json string, source.json punctuation.definition.string | #92FC79 | — |
| source.js storage.type.function | #FB94FF | — |
| variable.language, entity.name.type.class.js | #FB94FF | — |
| entity.other.inherited-class | #FFEE80 | — |
| storage.type.extends.js, storage.type.class.jsdoc | #FF9D00 | — |
| punctuation.definition.block.tag.jsdoc | #FF9D00 | — |
| variable.other.jsdoc, entity.name.type.instance.jsdoc | #9EFFFF | — |
| variable.other.constant.js | #9EFFFF | — |
| punctuation.definition.tag.begin.js, punctuation.definition.tag.end.js | #9EFFFF | — |
| meta.jsx.children.js | #FFFFFF | — |
| storage.type.js, storage.type.class.js, storage.modifier.js, keyword.control, keyword.operator | #FF9D00 | — |
| punctuation.definition.bracket.curly | #494685 | — |
| keyword.operator.assignment.tsx, keyword.operator.assignment.jsx | #FF9D00 | — |
| keyword.operator.assignment | #FF9D00 | — |
| meta.jsx.children.tsx | #FFFFFF | — |
| meta.object-literal.key.js | #80FFBB | — |
| entity.name.type.class.tsx, entity.name.type.class.jsx, variable.other.readwrite.alias.tsx, variable.other.readwrite.tsx, variable.other.readwrite.alias.ts, variable.other.readwrite.alias.jsx, variable.other.readwrite.alias.js, variable.other.object.tsx, variable.other.object.jsx, support.class.component.tsx, support.class.component.jsx, entity.name.type.tsx, entity.name.type.jsx, variable.other.readwrite.js, variable.other.object.js | #9EFFFF | — |
| variable.other.property, variable.other.object.property | #FFEE80 | — |
| JSXNested | #FFFFFF | — |
| variable.parameter | #9EFFFF | — |
| variable.parameter.function.language.special.self.python | #9EFFFF | — |
| meta.function-call.python, meta.function-call.generic.python, support.function.builtin.python | #FAD000 | — |
| source.ts entity.name.type | #80FFBB | — |
| source.ts keyword | #FAD000 | — |
| source.ts punctuation.definition.parameters | #ff89c0 | — |
| meta.arrow.ts punctuation.definition.parameters | #FFEE80 | — |
| source.ts storage | #9EFFFF | — |
| entity.name.section.markdown, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #FAD000 | bold |
| meta.paragraph.markdown | #FFFFFF | — |
| markup.inline.raw.string.markdown | #A599E9 | — |
| beginning.punctuation.definition.quote.markdown | #FAD000 | — |
| markup.quote.markdown meta.paragraph.markdown | #A599E9 | — |
| meta.separator.markdown | #FAD000 | — |
| markup.bold.markdown | #A599E9 | bold |
| markup.italic.markdown | #A599E9 | — |
| beginning.punctuation.definition.list.markdown | #FAD000 | — |
| string.other.link.title.markdown | #A5FF90 | — |
| string.other.link.title.markdown, string.other.link.description.markdown, string.other.link.description.title.markdown | #A5FF90 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #9EFFFF | — |
| fenced_code.block.language, markup.inline.raw.markdown | #9EFFFF | — |
| punctuation.definition.markdown, punctuation.definition.raw.markdown, punctuation.definition.heading.markdown, punctuation.definition.bold.markdown | #494685 | — |
| text.jade entity.name | #9EFFFF | — |
| storage.type.function.pug | #FF9D00 | — |
| variable.parameter.function.js | #9EFFFF | — |
| variable.control.import.include.pug | #92FC79 | — |
| text.jade string.interpolated | #FFEE80 | — |
| storage.type.cs | #9EFFFF | — |
| entity.name.variable.property.cs | #9EFFFF | — |
| storage.modifier.cs | #80FFBB | — |
| source.php entity, variable.other.class.php | #9EFFFF | — |
| keyword.other.phpdoc.php | #FF9D00 | — |
| entity.name.function.php, support.function.basic_functions.php, meta.function-call.php, variable.other.property | #FAD000 | — |
| variable.other.php, punctuation.definition.variable.php, variable.other.global.php, variable.language.this.php | #9EFFFF | — |
| storage.modifier.php, keyword.other.namespace.php | #FF9D00 | — |
| punctuation.definition.block.sequence.item.yaml | #FF9D00 | — |
| storage.type.function.php, meta.function.parameters.php | #FB94FF | — |
| keyword.package.go, keyword.import.go | #FF9D00 | — |
| entity.name.section.group-title.ini | #FF9D00 | — |
| keyword.other.definition.ini | #FAD000 | — |
| punctuation.definition.entity.ini | #FFFFFF | — |
| keyword.function.go | #FB94FF | — |
| variable.other.assignment.go | #9EFFFF | — |
| punctuation.definition.string.begin.go, punctuation.definition.string.end.go, support.function.go | #FAD000 | — |
| support.type.property-name.json | #FAD000 | — |
| entity.name.tag.yaml | #FAD000 | — |
| string.unquoted.plain.out.yaml | #FFFFFF | — |
| italic, keyword.control, quote, storage, modifier, this, comment, support.type.property-name, entity.other.attribute-name, punctuation.definition.comment, text.html.basic entity.other, markup.quote, markup.italic, meta.tag.sgml.doctype, punctuation.binary, markup.changed, meta.diff.header, meta.diff.header.from-file, meta.diff.header.to-file, markup.deleted.diff, markup.inserted.diff, meta.delimiter.period, punctuation.accessor, meta.var.expr, meta.class meta.method.declaration meta.var.expr storage.type, variable.other.object.property, entity.name.tag.doctype, meta.tag.sgml.doctype, entity.name.section, meta.selector | — | italic |
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}!`;
}