Retro Cathode-Ray Minimal Theme
Publisher: xXBalestraroXxThemes in package: 1
Retro theme inspired by CRT monitors while being minimal and with a focus on usability
Retro theme inspired by CRT monitors while being minimal and with a focus on usability
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, punctuation.definition.comment, markup.quote | #60706F | — |
| string, punctuation.definition.string, variable.template.interpolation, template.expression | #99CC99 | — |
| keyword, keyword.control, keyword.control.class, keyword.control.def, keyword.control.function, storage.type, storage.modifier, storage.type.modifier, keyword.other.debugger, invalid, invalid.deprecated, markup.deleted | #DB5252 | — |
| entity.name.function, support.function, entity.name.method, variable.function, meta.function.call, entity.name.function.member, meta.property.object, variable.other.property, entity.name.property, punctuation, meta.brace, meta.delimiter, operator, keyword.operator, markup.inserted, markup.changed | #7A9C9B | — |
| variable, entity.name.variable, support.variable, meta.definition.variable, meta.module-reference, entity.other.type.php, entity.name.scope-resolution, support.constant.property, variable.other.property, meta.property.object, entity.name.property, support.variable.property, markup.heading, markup.heading entity.name, markup.heading punctuation.definition.heading, markup.bold, markup.italic, markup.strikethrough, markup.list, entity.name.tag, punctuation.definition.tag.html, entity.other.attribute-name, support.constant, constant.numeric, constant.language, constant.other.color, variable.language.this, variable.language.super, entity.name.tag.yaml, entity.name.section.yaml | #D0D0D0 | — |
| markup.inserted, markup.changed | #7A9C9B | — |
| markup.deleted | #DB5252 | — |
| markup.underline.link, string.other.link | #D0D0D0 | underline |
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}!`;
}