Deep Purple
Publisher: Melanie BrownThemes in package: 1
A friendlier dark mode.
A friendlier dark mode.
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 | #cccccc | |
| meta.embedded | #bbbbbb | |
| source.haskell.embedded, source.groovy.embedded | #dddddd | |
| meta.tag | #bf7fff | |
| emphasis | — | italic |
| strong | — | bold |
| header | #00007f | — |
| support.function.section.latex | #00bfff | bold |
| constant.numeric, constant.numeric.integral | #009f7f | bold |
| constant.numeric.floating | #009fbf | bold |
| punctuation.definition.string.begin.latex, punctuation.definition.string.end.latex, punctuation.definition.arguments.begin.latex, punctuation.definition.arguments.end.latex | #cfcfff | |
| punctuation.definition.generic, punctuation.definition.tag | #1f00ff | bold |
| meta.tag, meta.attribute.class | #5f00ff | bold |
| entity.name.tag, entity.other.attribute-name | #7f0fff | bold |
| constant.language, constant.language.empty-list, constant.language.unit, constant.other, constant.other.color.rgb-value, constant.other.rgb-value, keyword.operator.lambda | #9f00ff | bold |
| support.class.math.latex, entity.name.section.latex | #007fff | |
| variable.other.generic-type | #3f7fff | bold |
| keyword.other.preprocessor | #5f00ff | bold |
| constant.regexp | #646695 | — |
| invalid | #ff007f | — |
| markup.underline | — | underline |
| markup.bold | — | bold |
| markup.heading | #5f5fff | bold |
| markup.italic | — | italic |
| markup.inserted | #00ffbf | — |
| markup.deleted | #ff007f | — |
| markup.changed | #7f7fff | — |
| punctuation.brace.haskell | — | bold |
| punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown | #7f007f | — |
| markup.inline.raw | #9f9fff | — |
| comment, meta.preprocessor | #3f00ff | — |
| meta.structure.dictionary.key.python | #5fbfff | — |
| meta.diff.header | #5fbfff | — |
| string, string.value, string.quoted.single, string.quoted.double, meta.preprocessor.string, string.unquoted.plain.out.yaml, meta.embedded.assembly | #bf00bf | |
| meta.parameters.js | #bf7fff | |
| string.tag | #9f9fff | — |
| string.regexp, meta.function.environment.latex.tikz | #bfbfff | — |
| meta.function.environment.general.latex | #ffffff | |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded, punctuation.section.interpolation.begin, punctuation.section.interpolation.end | #5f5fff | bold |
| meta.template.expression | #d4d4d4 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #7fbfff | — |
| meta.deriving, meta.declaration.instance, meta.declaration.type, meta.declaration.exports, meta.declaration.data.algebraic, meta.declaration.newtype.algebraic, meta.function.type-declaration, meta.type-declaration, meta.type-application, variable.other.enummember | — | bold |
| meta.quasi-quotation | #bfdfff | |
| support.function.git-rebase | #9cdcfe | — |
| constant.sha.git-rebase | #b5cea8 | — |
| variable.language | #5f5fff | — |
| support.function, support.constant.handlebars, entity.name.function, entity.name.quasi-quoter, entity.name.operator.custom-literal, keyword.operator.prefix, keyword.operator.infix, keyword.operator.postfix, keyword.operator.function.infix, entity.name.function.infix, variable.other.member, variable.other.member.definition | #9f7fff | |
| meta.return-type, support.class, support.type, entity.other.attribute, entity.name.scope-resolution, entity.name.type, entity.name.class, entity.name.namespace, storage, storage.type, storage.modifier, meta.diff.header, storage.type.function.latex, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy, support.constant.dom, support.constant.json, support.constant.math, support.constant.unit | #5f9fff | bold |
| storage.modifier.import.java, storage.modifier.package.java, variable.language.wildcard.java | #d4d4d4 | — |
| meta.type.cast.expr, meta.type.new.expr, entity.other.inherited-class | #00ffff | — |
| support.function.general.latex, support.function.general.tex, keyword.control.preamble.latex, support.function.js, support.function.json.js, support.function.math.js | #9f5fff | |
| support.function.textit.latex, support.function.texttt.latex, support.function.textbf.latex, support.function.emph.latex, support.class.math.block.environment.latex | #9f9fff | |
| support.function.be.latex, variable.parameter.latex, variable.parameter.function.latex | #bf00ff | bold |
| variable, meta.definition.variable.name, support.variable, entity.name.variable | #9cdcfe | — |
| variable.other.constant, variable.other.enummember | #4fc1ff | — |
| meta.objectliteral.js, meta.object-literal.key | #ff7fff | — |
| keyword, keyword.control, keyword.operator.new, keyword.other, keyword.other.unit, keyword.other.using, keyword.operator, keyword.operator.alignas, keyword.operator.alignof, keyword.operator.cast, keyword.operator.delete, keyword.operator.expression, keyword.operator.instanceof, keyword.operator.lambda, keyword.operator.logical, keyword.operator.minus, keyword.operator.new, keyword.operator.noexcept, keyword.operator.plus, keyword.operator.sizeof, keyword.operator.typeid, keyword.operator.wordlike, keyword.other.operator, entity.name.operator, support.class.latex | #ff00ff | bold |
| constant.other.general.math.tex | #7f7fff | bold |
| constant.other.math.tex | #5fbfff | bold |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, support.constant.color | #5f5fff | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #ce9178 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #d16969 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #dcdcaa | — |
| keyword.operator.quantifier.regexp | #d7ba7d | — |
| constant.character | #bf7fff | — |
| constant.character.escape | #9f00ff | |
| constant.character.latex | #ff5fff | |
| constant.character.math.tex | #bf5fff | bold |
| constant.character.escape.tex, punctuation.math.operator.latex, punctuation.math.begin.bracket.curly, punctuation.math.end.bracket.curly | #9fffff | |
| entity.name.label | #c8c8c8 | — |
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}!`;
}