Hotline VS
Publisher: Bogdan SalypThemes in package: 1
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 | #8B21FF | italic |
| string.quoted, string.template, punctuation.definition.string | #23facb | bold |
| variable, entity.name.variable, variable.other.constant.property.js, variable.other.property.js, meta.object-literal.key, support.type.property-name, support.variable | #f862bf | bold |
| constant | #f963bf | bold |
| variable.parameter | — | italic bold |
| storage.type, storage.modifier | #fa9b4e | bold |
| string.regexp | #24facb | bold |
| constant.numeric | #3CDe7e | bold |
| constant.language | #ff6ffd | bold |
| constant.character.escape | #3cDe7f | bold |
| entity.name.tag | #fe6ffb | bold |
| punctuation.definition.tag | #3bDe7f | bold |
| entity.other.attribute-name.html | #fb9b4e | italic bold |
| entity.name.type, meta.attribute.class.html | #f761bf | bold |
| entity.other.inherited-class | #ff6ffb | bold |
| entity.name.function, variable.function, meta.function-call, support.function | #23faca | bold |
| keyword.control.export.js, keyword.control.import.js | #ff00fc | bold |
| keyword | #ff00fd | bold |
| keyword.control | #ff00fe | bold |
| keyword.operator | #3CDD7f | bold |
| keyword.other.unit | #3CDD7e | bold |
| support | #f962bf | bold |
| punctuation.terminator | #3CDD7d | bold |
| entity.other.attribute-name.class.css | #24facc | bold |
| entity.other.attribute-name.id | #24faca | bold |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #fa9a4e | bold |
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}!`;
}