Purple-Dark-Horizon
Publisher: Ricardo AmorimThemes in package: 1
Fork of "Dark Horizon", inspired in Victor's Dark Horizon, but focusing on being a purple color theme.
Fork of "Dark Horizon", inspired in Victor's Dark Horizon, but focusing on being a purple color 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 |
|---|---|---|
| comment | #BBBBBB4D | italic |
| constant.character.escape | #25B0BCE6 | — |
| entity.name | #FAC29AE6 | — |
| entity.name.function | #FDB849 | — |
| entity.name.tag | #569cd6 | bold |
| entity.name.type, storage.type.cs | #02f5a5 | — |
| entity.other.attribute-name | #4ec9b0 | — |
| entity.other.inherited-class | #FAB795E6 | — |
| entity.other.attribute-name.id | #25B0BCE6 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #FAB795E6 | — |
| variable | #9cdcfe | — |
| entity.name.type.class.ts, entity.name.type.interface.ts | #E0AAFF | — |
| variable.other.constant.property.ts, variable.other.constant.object.property.ts | #FFFFFF | — |
| variable.other.constant, variable.other.enummember | #BD93F9 | — |
| meta.definition.function, meta.definition.method | #50FA7B | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #fab050 | — |
| entity.name.variable.parameter, meta.at-rule.function variable, meta.at-rule.mixin variable, variable.parameter | #FFB86C | italic |
| header | #BD93F9 | — |
| keyword.other.this, variable.language, variable.parameter.function.language.special | #BD93F9 | — |
| support.variable.property.js | #BD93F9 | — |
| keyword.other.unit | #F09483E6 | — |
| markup.quote | #FAB795B3 | italic |
| markup.heading, entity.name.section | #E95678E6 | — |
| markup.bold | #B877DBE6 | bold |
| markup.italic | #25B0BCE6 | italic |
| markup.inline.raw, markup.fenced_code.block | #F09483E6 | — |
| markup.underline.link | #FAB795E6 | — |
| storage, keyword, keyword.operator, keyword.operator.new, keyword.operator.logical, keyword.operator.expression, keyword.operator.delete, variable.language | #f08bfd | bold |
| storage.type | #3cc1d3 | italic bold |
| text.html.derivative | #ced4da | — |
| string.quoted, string.template, constant, string.quoted.double, string.quoted.single, string.quoted.double.ts, constant.numeric.decimal, constant.language.null | #eaac8b | — |
| string.regexp | #F09483E6 | — |
| string.other.link | #F09483E6 | — |
| support | #b547ff | italic |
| support.function | #25B0BCE6 | — |
| support.variable | #E95678E6 | — |
| support.type.property-name, meta.object-literal.key | #bf56e9e6 | |
| support.type.property-name.css | #d9d9d9 | — |
| variable.parameter | — | italic |
| string.template meta.embedded | #BBBBBB | — |
| punctuation.definition.tag, punctuation.separator | #ffffff42 | — |
| punctuation.definition.template-expression | #B877DBE6 | — |
| punctuation.section.embedded | #B877DBE6 | — |
| punctuation.definition.list | #F09483E6 | — |
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}!`;
}