Ancient One Dark
Publisher: uetchyThemes in package: 3
Violet color theme for the ancient ones
Violet color theme for the ancient ones
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 |
|---|---|---|
| invalid | #f070a3 | — |
| meta.embedded, source.groovy.embedded, meta.template.expression | #d6cfdb | — |
| variable, punctuation.definition.variable, support.variable.property.dom, support.variable.dom, support.variable.property, punctuation.separator.parameter, string.interpolated.pug variable | #c07cff | — |
| variable.parameter, parameter.variable, meta.function.parameter variable, source.rust meta.type_params.rust | #c07cff | — |
| entity.name.function, support.class, support.function, new.expr entity.name.type, entity.other.inherited-class | #e678e8 | — |
| markup.inline.raw | #e678e8 | — |
| comment, punctuation.definition.comment | #73688d | — |
| string, punctuation.definition.string | #e6be7d | — |
| constant.character.escape | #bba5d4 | — |
| keyword, constant.language.import-export-all | #c7a8ed | — |
| keyword.control, keyword.operator, storage, support.type, keyword.operator.expression, keyword.operator.new | #c7a8ed | — |
| entity.name.type, support.type.primitive, support.type.builtin, meta.type.annotation entity.name.type, meta.type.parameters entity.name.type | #5aa1db | — |
| punctuation.definition.typeparameters, keyword.operator.type, keyword.operator.optional, punctuation.definition.template-expression, source.tsx punctuation.section.embedded, source.jsx punctuation.section.embedded | #6C607A | — |
| constant | #b573b4 | — |
| constant.numeric, constant.language | #fc6a9d | — |
| punctuation, meta.brace | #98939b | — |
| variable.language.this, variable.language.special.self | #bba5d4 | — |
| entity.name.tag | #bba5d4 | — |
| entity.name.section.markdown, markup.heading.setext | #8c76c0 | — |
| punctuation.definition.list | #8c76c0 | — |
| meta.separator.markdown | #8c76c0 | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| meta.link punctuation.definition.string, meta.image punctuation.definition.string | #98939b | — |
| link, markup.underline.link, constant.other.reference.link.markdown | #bcaee5 | — |
| markup.quote | #c36586 | — |
| entity.name.tag.css, entity.name.tag.wildcard | #FBD089 | — |
| markup.inserted | #96bd65 | — |
| markup.changed | #e0bc58 | — |
| markup.deleted | #d36666 | — |
| meta.diff.header | #375de6 | — |
| meta.diff.range | #bba5d4 | — |
| quote, storage, this, comment, punctuation.definition.comment, modifier | — | italic |
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}!`;
}