Purps
Publisher: amessythemeThemes in package: 1
It's purple.
It's purple.
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 |
|---|---|---|
| constant.language.undefined, keyword, storage.modifier, variable.language.this, variable.language.super, storage.type.function.js, storage.type.function.ts, storage.type.class.js, storage.type.class.ts, storage.type.js, storage.type.ts, storage.type.type.ts, source.css support.function | #00B0FF | — |
| constant.character.escape | #9003FF | — |
| keyword.operator, constant.character.escape, punctuation.definition.logical, punctuation.definition.quote, punctuation.definition.list, punctuation.definition.para, punctuation.definition.template-expression, punctuation.definition.attribute | #00B0FF | — |
| entity.name.type, punctuation.definition.group, support.type.primitive, storage.type | #8A2BE2 | — |
| storage.type.annotation, variable.parameter | #00CBFF | — |
| string, markup.quote, constant.other.reference, markup.underline.link | #00BEEF | — |
| comment, meta.separator | #C15DFB | — |
| entity.name.function | #9300FF | — |
| constant.numeric, constant.language.null, constant.language.boolean | #8800FF | — |
| variable, meta.import variable.other.readwrite.alias | #AA00FF | — |
| entity.name.tag, variable.other.property, variable.other.normal.shell, punctuation.definition.variable.shell, punctuation.definition.character-class, constant.other.character-class, entity.other.attribute-name, support.type.property-name, meta.import variable | #9300FF | — |
| variable.other.enummember, variable.other.constant, punctuation.definition.character-class | #AA00FF | — |
| heading, markup.bold | #8A2BE2 | — |
| markup.inline.raw, markup.italic, markup.bold, markup.strikethrough | #00B0FF | — |
| string.other.link.title.markdown | #8A2BE2 | — |
| heading | — | bold |
| entity.name.tag.html, entity.name.tag.css, entity.name.tag.script.html.vue, entity.name.tag.style.html.vue, entity.name.tag.template.html.vue | #8A2BE2 | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id.html, meta.attribute.id.html string | #8800FF | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.html, meta.attribute.class.html string | #00B0FF | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-class.html | #00CBFF | — |
| entity.other.attribute-name.css, entity.other.attribute-name.html | #9300FF | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| comment, punctuation.definition.comment | #AAAAAA | italic |
| comment.block.preprocessor | #AAAAAA | |
| comment.documentation, comment.block.documentation | #448C27 | — |
| invalid.illegal | #660000 | — |
| keyword.operator | #777777 | — |
| keyword, storage | #4B83CD | — |
| storage.type, support.type | #7A3E9D | — |
| constant.language, support.constant, variable.language | #AB6526 | — |
| variable, support.variable | #7A3E9D | — |
| entity.name.function, support.function | #AA3731 | bold |
| entity.name.type, entity.other.inherited-class, support.class | #7A3E9D | bold |
| entity.name.exception | #660000 | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #AB6526 | — |
| string | #448C27 | — |
| constant.character.escape | #777777 | — |
| string.regexp | #4B83CD | — |
| constant.other.symbol | #AB6526 | — |
| punctuation | #777777 | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #AAAAAA | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #91B3E0 | — |
| entity.name.tag | #4B83CD | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #91B3E0 | italic |
| constant.character.entity, punctuation.definition.entity | #AB6526 | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #7A3E9D | — |
| meta.property-name, support.type.property-name | #AB6526 | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #448C27 | — |
| keyword.other.important | — | bold |
| markup.changed | #000000 | — |
| markup.deleted | #000000 | — |
| markup.italic | — | italic |
| markup.error | #660000 | — |
| markup.inserted | #000000 | — |
| meta.link | #4B83CD | — |
| markup.output, markup.raw | #777777 | — |
| markup.prompt | #777777 | — |
| markup.heading | #AA3731 | — |
| markup.bold | — | bold |
| markup.traceback | #660000 | — |
| markup.underline | — | underline |
| markup.quote | #7A3E9D | — |
| markup.list | #4B83CD | — |
| markup.bold, markup.italic | #448C27 | — |
| markup.inline.raw | #AB6526 | |
| meta.diff.range, meta.diff.index, meta.separator | #434343 | — |
| meta.diff.header.from-file | #434343 | — |
| meta.diff.header.to-file | #434343 | — |
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}!`;
}