JetBrains Dark Purple Theme
Publisher: Andy95Themes in package: 1
Dark Purple Theme for VSCode and Cursor — port of the JetBrains Dark Purple Theme by OlyaB. Works with IntelliJ IDEA, WebStorm, PyCharm color scheme.
Dark Purple Theme for VSCode and Cursor — port of the JetBrains Dark Purple Theme by OlyaB. Works with IntelliJ IDEA, WebStorm, PyCharm color scheme.
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 |
|---|---|---|
| source, text | #C9C9D1 | — |
| comment, comment.line, punctuation.definition.comment | #676773 | — |
| comment.block | #676773 | — |
| comment.block.documentation, comment.block.javadoc, comment.block.documentation.js, comment.block.documentation.ts | #5A6E5A | italic |
| comment.block.documentation storage.type.class.jsdoc, comment.block.documentation entity.name.tag, storage.type.class.jsdoc, entity.name.tag.inline.jsdoc | #5A6E5A | italic |
| comment.block.documentation variable.other | #8C6154 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.delete, keyword.operator.typeof, keyword.operator.void, keyword.operator.in, keyword.operator.instanceof, keyword.other.unit | #E6967A | — |
| storage.type, storage.modifier, keyword.declaration | #E6967A | — |
| keyword.control.async, keyword.control.await, keyword.control.from, keyword.control.import, keyword.control.export, keyword.control.as | #E6967A | — |
| string, string.quoted, string.template | #62A362 | — |
| constant.character.escape, string.regexp constant.character.escape | #E0957B | — |
| invalid.illegal.bad-ampersand, invalid.illegal | #F23F6C | — |
| string.template punctuation.definition.template-expression, string.template punctuation.section.embedded | #E0957B | — |
| constant.numeric | #37AEF3 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #93A6F5 | — |
| constant.other, variable.other.constant | #93A6F5 | — |
| variable, variable.other, variable.other.readwrite | #C9C9D1 | — |
| variable.other.local | #C9C9D1 | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.property-name | #93A6F5 | — |
| variable.other.static, variable.other.constant.property | #93A6F5 | italic |
| entity.name.function, meta.function entity.name.function, meta.definition.method entity.name.function | #C7A65D | — |
| meta.function-call entity.name.function, meta.function-call.python, support.function | #C9C9D1 | — |
| meta.method.static entity.name.function | #C7A65D | italic |
| entity.name.class, entity.name.type.class, support.class | #C7A65D | — |
| entity.name.type.interface, entity.name.type.alias, entity.name.type | #C7A65D | italic |
| entity.name.type.parameter, variable.type.parameter | #37CCCC | — |
| entity.other.inherited-class | #C7A65D | — |
| support.type, support.class.builtin | #37CCCC | — |
| variable.parameter, meta.function.parameters variable.other | #C9C9D1 | — |
| meta.decorator, meta.decorator entity.name.function, entity.other.attribute-name, entity.name.tag.decorator, storage.type.annotation, punctuation.decorator | #85A658 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.bitwise, keyword.operator.comparison, keyword.operator.relational, keyword.operator.assignment | #C9C9D1 | — |
| punctuation.separator.comma, punctuation.separator.parameter, punctuation.separator.list | #E0957B | bold |
| punctuation.terminator.statement, punctuation.terminator | #E0957B | bold |
| punctuation.definition.tag, meta.tag punctuation.definition.tag | #E0957B | — |
| entity.name.tag, meta.tag.sgml entity.name.tag | #E6967A | — |
| entity.other.attribute-name.html, entity.other.attribute-name | #FFFFFF | — |
| string.quoted.double.html, string.quoted.single.html, meta.attribute-with-value.html string | #62A362 | — |
| constant.character.entity.html, text.html.basic constant.character.entity | #4DACF0 | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype keyword | #6d6a80 | — |
| entity.name.tag.css, meta.selector.css entity.name.tag | #E67E5C | — |
| entity.other.attribute-name.class.css | #C7A65D | — |
| entity.other.attribute-name.id.css | #93A6F5 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, meta.property-name.css | #E67E5C | — |
| meta.property-value.css, support.constant.property-value.css, support.constant.color.css | #62A362 | — |
| constant.other.color.rgb-value.css, constant.other.color.rgb-value.hex.css | #4DACF0 | — |
| keyword.other.important.css | #E6967A | — |
| keyword.control.at-rule, meta.at-rule keyword | #E6967A | — |
| variable.css, variable.scss, variable.other.less | #4DACF0 | — |
| entity.name.tag.xml, entity.name.tag.localname.xml, meta.tag.xml entity.name.tag | #C7A65D | — |
| meta.tag.xml, punctuation.definition.tag.xml | #C7A65D | — |
| entity.other.attribute-name.xml, entity.other.attribute-name.localname.xml | #FFFFFF | — |
| constant.character.entity.xml | #4DACF0 | — |
| meta.tag.preprocessor.xml | #C7A65D | — |
| support.type.property-name.json, meta.structure.dictionary.json string.quoted | #93A6F5 | — |
| meta.structure.dictionary.value.json string.quoted, meta.structure.array.json string.quoted | #62A362 | — |
| constant.language.json, meta.structure.dictionary.value.json constant.language | #93A6F5 | — |
| meta.structure.dictionary.value.json constant.numeric | #37AEF3 | — |
| entity.name.tag.yaml | #93A6F5 | — |
| keyword.control.anchor.yaml, punctuation.definition.anchor.yaml, entity.name.type.anchor.yaml | #C7A65D | — |
| variable.other.alias.yaml | #4DACF0 | — |
| markup.heading, markup.heading entity.name | #93A6F5 | bold |
| markup.bold, markup.bold string | #C9C9D1 | bold |
| markup.italic | #C9C9D1 | italic |
| markup.underline.link, string.other.link.title.markdown | #7094ff | — |
| markup.inline.raw, markup.raw.inline | #62A362 | — |
| markup.quote | #6d6a80 | italic |
| beginning.of.line.fenced.markdown, punctuation.definition.list.begin.markdown | #E6967A | — |
| fenced_code.block.language | #85A658 | — |
| variable.language.special.self.python | #E6967A | — |
| meta.function.decorator.python, entity.name.function.decorator.python | #85A658 | — |
| support.function.magic.python | #C7A65D | — |
| support.function.builtin.python | #4DACF0 | — |
| string.interpolated.python | #62A362 | — |
| variable.language.this, variable.language.super | #E6967A | — |
| meta.import variable.other, meta.import entity.name, meta.export variable.other | #C9C9D1 | — |
| meta.type.annotation entity.name.type, meta.type.parameters entity.name.type, meta.return.type entity.name.type | #37CCCC | — |
| meta.interface keyword.declaration, meta.type-alias keyword.declaration | #E6967A | — |
| meta.type.parameters punctuation.definition.typeparameters | #E6967A | — |
| string.template meta.embedded.expression | #C9C9D1 | — |
| meta.object-literal.key, meta.object.member string, meta.objectliteral meta.object.member string | #93A6F5 | — |
| support.class.component.jsx, support.class.component.tsx, entity.name.tag.tsx, entity.name.tag.jsx | #C7A65D | — |
| entity.name.package.go | #C7A65D | — |
| support.function.builtin.go | #4DACF0 | — |
| entity.name.lifetime.rust, storage.modifier.lifetime.rust | #85A658 | — |
| meta.macro.rust entity.name.function.macro.rust, support.macro.rust | #4DACF0 | — |
| meta.attribute.rust | #85A658 | — |
| entity.name.type.enum.rust | #C7A65D | — |
| variable.other.normal.shell, variable.other.bracket.shell | #93A6F5 | — |
| support.function.builtin.shell | #4DACF0 | — |
| keyword.operator.quantifier.regexp, keyword.operator.or.regexp, keyword.control.anchor.regexp | #CC7832 | — |
| constant.other.character-class.regexp | #E8BF6A | — |
| punctuation.definition.group.regexp | #CC7832 | — |
| constant.character.escape.regexp | #E0957B | — |
| markup.inserted, meta.diff.header.to-file | #76B366 | — |
| markup.deleted, meta.diff.header.from-file | #dd3962 | — |
| markup.changed | #62BAF5 | — |
| meta.diff.range | #6d6a80 | — |
| invalid, invalid.illegal | #F23F6C | — |
| invalid.deprecated | #8C8C8C | — |
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}!`;
}