Astral
Publisher: Zac de LusignanThemes in package: 1
A dark theme with purple, blue, and teal.
A dark theme with purple, blue, and teal.
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 | #B8E4FF | — |
| punctuation, meta.bracket, bracket.sql, keyword.operator.relation.julia, keyword.operator.arithmetic.julia, keyword.operator.dots.julia, keyword.operator.range.julia, keyword.operator.relation.types.julia, keyword.operator.other.r, keyword.operator.arithmetic.r, keyword.operator.comparison.r, keyword.other.r, keyword.operator.infix.haskell, keyword.operator.key-value.rust, keyword.operator.comparison.rust, keyword.operator.range.rust, keyword.operator.access.dot.rust, keyword.operator.logical.rust, keyword.operator.namespace.rust, keyword.operator.dereference.rust, keyword.operator.borrow.and.rust | #A1C3FF | — |
| constant.other.symbol | #A1C3FF | — |
| entity.name.function, meta.function-call, support.function.aggregate.sql, meta.function, source.python meta.function-call.python, entity.name.function.call, variable.function.r, meta.function-call.r | #D2DCFF | |
| constant.character.escape, text.html constant.character.entity.named | #A3A7D8 | — |
| constant.language.boolean | #D2DCFF | — |
| constant.numeric | #DCB9FF | — |
| keyword.other.sql.common, keyword.other.data-integrity.sql, meta.preprocessor.haskell, keyword.other.module.haskell, keyword.other.import.haskell, meta.import.haskell, keyword.other.deriving.haskell | #A1C3FF | |
| variable, support.variable, variable.language, support.constant, meta.definition.variable, entity.name.function, meta.function-call.arguments, keyword.operator.star.sql | #A3A7D8 | — |
| constant.language | #DCB9FF | — |
| keyword, modifier, variable.language.this, support.type.object, meta.import.haskell, meta.preprocessor.haskell, keyword.other, keyword.other.DDL.create.II.sql, keyword.other.DML.sql, keyword.other.preprocessor.pragma.haskell, keyword.other.preprocessor.extension.haskell | #A1C3FF | — |
| storage.type, storage.modifier, storage.control | #666EFF | — |
| support.module, support.node | #A0A0FF | italic |
| entity.name.type, entity.other.inherited-class, entity.other | #A0A0FF | — |
| comment | #666888 | italic |
| comment punctuation.definition.comment, string.quoted.docstring | #666888 | italic |
| punctuation | #A1C3FF | |
| entity.name, entity.name.type.class, support.type, meta.use | #A0A0FF | — |
| variable.object.property, meta.field.declaration entity.name.function | #D2DCFF | — |
| meta.definition.method entity.name.function, entity.namespace.r | #A0A0FF | — |
| template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #A1C3FF | — |
| meta.embedded, source.groovy.embedded, meta.template.expression | #A3A7D8 | — |
| entity.name.tag.yaml, entity.name.type.option.rust, entity.name.type.rust | #D2DCFF | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #D2DCFF | — |
| constant.language.json | #A1C3FF | — |
| entity.other.attribute-name.class | #D2DCFF | — |
| entity.other.attribute-name.id | #DCB9FF | — |
| source.css entity.name.tag | #D2DCFF | — |
| support.type.property-name.css | #B2CCD6 | — |
| meta.tag, punctuation.definition.tag | #A1C3FF | — |
| entity.name.tag | #A0A0FF | — |
| entity.other.attribute-name | #A0A0FF | — |
| punctuation.definition.entity.html | #A3A7D8 | — |
| markup.heading | #A1C3FF | — |
| text.html.markdown meta.link.inline, meta.link.reference | #D2DCFF | — |
| text.html.markdown beginning.punctuation.definition.list | #A1C3FF | — |
| markup.italic | #D2DCFF | italic |
| markup.bold | #D2DCFF | bold |
| markup.bold markup.italic, markup.italic markup.bold | #D2DCFF | italic bold |
| markup.fenced_code.block.markdown punctuation.definition.markdown | #B8E4FF | — |
| markup.inline.raw.string.markdown | #B8E4FF | — |
| keyword.other.definition.ini | #D2DCFF | — |
| entity.name.section.group-title.ini | #A1C3FF | — |
| source.cs meta.class.identifier storage.type | #D2DCFF | — |
| source.cs meta.method.identifier entity.name.function | #D2DCFF | — |
| source.cs meta.method-call meta.method, source.cs entity.name.function | #A1C3FF | — |
| source.cs storage.type | #D2DCFF | — |
| source.cs meta.method.return-type | #D2DCFF | — |
| source.cs meta.preprocessor | #464B5D | — |
| source.cs entity.name.type.namespace | #A3A7D8 | — |
| meta.jsx.children, SXNested | #A3A7D8 | — |
| source.cpp meta.block variable.other | #A3A7D8 | — |
| source.python meta.member.access.python | #D2DCFF | italic |
| meta.block | #D2DCFF | — |
| source.php support.other.namespace, source.php meta.use support.class | #A3A7D8 | — |
| constant.keyword | #D2DCFF | italic |
| markup.deleted | #F7B7CF | — |
| markup.inserted | #B8E4FF | — |
| markup.underline | — | underline |
| keyword.control | #A1C3FF | italic |
| markup.quote | #A1C3FF | italic |
| keyword.operator.assignment, keyword.operator.update, keyword.operator.eq.haskell | #666EFF | — |
| keyword.other.special-method, support.function | #D2DCFF | — |
| entity.name.type.class, support.type, support.class, meta.use, support.class.component | #A0A0FF | — |
| meta.function-call.generic.python | #D2DCFF | — |
| meta.function-call.arguments | #A3A7D8 | — |
| markup.fenced_code.block | #A3A7D890 | — |
| variable.parameter, meta.recordexpression.powerquery, entity.name.powerquery | #E1E1E8 | italic |
| punctuation.definition.quote | #A1C3FF | — |
| meta.structure.dictionary.json support.type.property-name.json | #666EFF | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #A1C3FF | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D2DCFF | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #A0A0FF | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #DCB9FF | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #F0CCCF | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #A0A0FF | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #B8E4FF | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D2DCFF | — |
| token.info-token | #D2DCFF | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| support.function.ranking.sql, support.function.conversion.sql | #A1C3FF | — |
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}!`;
}