BoxLang Theme
Publisher: Ortus SolutionsThemes in package: 2
Modern dark and light themes for BoxLang development
Modern dark and light themes for BoxLang development
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 | #7D8799 | italic |
| string.quoted, string.template, punctuation.definition.string, punctuation.definition.block.js | #6DF18E | — |
| string.template meta.embedded.line | #F3F3F3 | — |
| variable, entity.name.variable | #85EEA7 | — |
| variable.language, variable.other.object.js | #78A8D6 | normal |
| variable.parameter | #14FFD4 | bold |
| storage.type, storage.modifier | #3ED9F1 | bold |
| constant | #FFD700 | — |
| string.regexp | #85EEA7 | — |
| constant.numeric | #EEFF00 | bold |
| constant.language | #00FF91 | — |
| constant.character.escape | #F2F2F2 | — |
| entity.name | #78A8D6 | — |
| entity.name.tag | #14FFE0 | bold |
| entity.name.tag.boxlang, entity.name.tag.bx | #35FF78 | bold |
| entity.name.tag.boxlang.component, meta.tag.boxlang entity.name.tag, source.boxlang entity.name.tag | #FF6B35 | bold |
| punctuation.definition.tag.boxlang, punctuation.definition.tag.begin.boxlang, punctuation.definition.tag.end.boxlang | #14FF76 | — |
| punctuation.definition.tag | #DA70D6 | — |
| entity.other.attribute-name | #85EEA7 | — |
| entity.name.type | #7C5CFA | bold |
| entity.other.inherited-class | #F2F2F2 | — |
| entity.name.function, variable.function | #7EDA70 | bold |
| keyword | #37FF14 | bold |
| keyword.control | #69FDFF | bold |
| keyword.operator | #F535FF | bold |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical | #00FFFF | bold |
| keyword.other.unit | #85EEA7 | — |
| support | #78A8D6 | bold |
| support.function | #F5FAF3 | — |
| support.variable | #78A8D6 | — |
| meta.object-literal.key, support.type.property-name | #85EEA7 | — |
| variable.other.property.js | #7ADAD1 | bold |
| punctuation.separator.key-value | #AB35FF | bold |
| punctuation.section.embedded | #F2F2F2 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #FF1493 | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #85EEA7 | |
| constant.other.color | #FFA500 | bold |
| support.constant.font-name | #85EEA7 | — |
| entity.other.attribute-name.id | #FFD700 | bold |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #70CEDA | — |
| support.function.misc.css | #14FFCC | bold |
| markup.heading, entity.name.section | #FF6B35 | — |
| markup.quote | #FF1493 | bold |
| beginning.punctuation.definition.list | #85EEA7 | — |
| markup.underline.link | #00FFFF | — |
| string.other.link.description | #85EEA7 | — |
| token.info-token | #78A8D6 | — |
| token.warn-token | #FFA500 | — |
| token.error-token | #FF1493 | — |
| token.debug-token | #DA70D6 | — |
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}!`;
}