Brutalist
Publisher: willroeThemes in package: 2
A Brutalist color theme (port of https://git.madhouse-project.org/algernon/brutalist-theme.el)
A Brutalist color theme (port of https://git.madhouse-project.org/algernon/brutalist-theme.el)
Full workbench mockup using this variant's colors and tokenColors.
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 | #585858 | italic |
| comment.block.preprocessor | #585858 | |
| comment.documentation, comment.block.documentation | #585858 | |
| invalid.illegal | #660000 | |
| keyword.operator |
TypeScript sample highlighted with this variant's colors and tokenColors.
| — |
| bold |
| keyword, storage | — | bold |
| storage.type, support.type | — | underline |
| constant.language, support.constant, variable.language | — |
| variable, support.variable | — |
| entity.name.function, support.function | — |
| entity.name.type, entity.other.inherited-class, support.class | — |
| entity.name.exception | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | — |
| string | #0000ff |
| constant.character.escape | — | italic |
| string.regexp | — | italic |
| constant.other.symbol | — |
| punctuation | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | — | bold |
| entity.name.tag | — | bold |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | — | italic |
| constant.character.entity, punctuation.definition.entity | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | — |
| meta.property-name, support.type.property-name | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | — |
| keyword.other.important | — | bold |
| markup.changed | — |
| markup.deleted | — |
| markup.italic | — | italic |
| markup.error | — |
| markup.inserted | — |
| meta.link | — |
| markup.output, markup.raw | — |
| markup.prompt | — |
| markup.heading | — |
| markup.bold | — | bold |
| markup.traceback | — |
| markup.underline | — | underline |
| markup.quote | — |
| markup.list | — |
| markup.bold, markup.italic | — |
| markup.inline.raw | — |
| meta.diff.range, meta.diff.index, meta.separator | — |
| meta.diff.header.from-file | — |
| meta.diff.header.to-file | — |
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}!`;
}