TUI Themes
Publisher: TranswarpUIThemes in package: 4
tui-themes
tui-themes
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 |
|---|---|---|
| keyword, storage.type.js, storage.modifier.ts, meta.function.js, storage.type.class.ts | #B879FF | — |
| variable, support.type.property-name.json, support.type.property-name.json.comments, support.variable.property.ts, meta.object-literal.key.ts | #1ABBB0 | — |
| string | #FF690C | — |
| entity.name.function, meta.function, meta.function-call, support.function, entity.name.type.class.ts, meta.class.ts, meta.method.declaration.ts | #039EF1 | — |
| constant.numeric.decimal.js | #E7CA11 | — |
| entity.name.type.ts, meta.type.parameters.ts, meta.return.type.ts | #DF36A7 | — |
| comment | #5C6B6F | italic |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #D14242 | — |
| entity.name.tag | #D14242 | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #23CFFF | — |
| constant.character.entity, punctuation.definition.entity | #AB6526 | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #7b1db2 | — |
| meta.property-name, support.type.property-name | #c66714 | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #448C27 | — |
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}!`;
}