Co-Dark Purple
Publisher: Bisher AlmasriThemes in package: 1
A purpl-is theme!
A purpl-is theme!
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 |
|---|---|---|
| string | #6720bd | — |
| constant.character.escape, text.html constant.character.entity.named, punctuation.definition.entity.html | #851efa | — |
| constant.language.boolean | #ac2fff | — |
| constant.numeric | #ff00ff | — |
| variable, support.variable, support.class, support.constant, meta.definition.variable, entity.name.function | #c66aff | — |
| variable.other.constant | #f351ff | — |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #be5eee | — |
| keyword.control.flow.js | #9d00ff | — |
| entity.name.function, support.function | #d400ff | — |
| storage.type, storage.modifier, keyword.operator.expression | #862fff | — |
| support.type | #8000ff | — |
| entity.name.type, entity.other.inherited-class | #a200ff | — |
| variable.object.property, meta.field.declaration entity.name.function | #be5eee | — |
| meta.definition.method entity.name.function | #be5eee | — |
| meta.function, entity.name.function | #be5eee | — |
| template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #822fff | — |
| meta.embedded, source.groovy.embedded, meta.template.expression | #FFFFFF | — |
| entity.name.tag.yaml | #b846ff | — |
| comment | #5e2c91 | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #7b5eee | — |
| constant.language.json | #bd2fff | — |
| entity.other.attribute-name.class | #b32fff | — |
| entity.other.attribute-name.id | #7d14a7 | — |
| source.css entity.name.tag | #c55eee | — |
| meta.tag, punctuation.definition.tag | #57119d | — |
| entity.name.tag | #8d26d2 | — |
| entity.other.attribute-name | #bf00ff | — |
| markup.heading | #b62fff | — |
| text.html.markdown meta.link.inline, meta.link.reference | #b246ff | — |
| text.html.markdown beginning.punctuation.definition.list | #9a2fff | — |
| markup.fenced_code.block.markdown punctuation.definition.markdown | #6214a7 | — |
| markup.inline.raw.string.markdown | #6214a7 | — |
| punctuation.definition.heading.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown, markup.fenced_code.block.markdown, meta.separator.markdown | #6735a0 | — |
| keyword.other.definition.ini | #ac46ff | — |
| entity.name.section.group-title.ini | #b32fff | — |
| source.cs meta.method.identifier entity.name.function | #be5eee | — |
| source.cs meta.method-call meta.method, source.cs entity.name.function | #bb00ff | — |
| source.cs storage.type | #be5eee | — |
| source.cs meta.method.return-type | #be5eee | — |
| source.cs meta.preprocessor | #3f1b51 | — |
| source.cs entity.name.type.namespace | #ffffff | — |
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}!`;
}