TommyTachasTheme
Publisher: TommyTachasThemes in package: 1
A Chachi Theme
A Chachi Theme
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 |
|---|---|---|
| punctuation.definition.bracket.go, punctuation.definition.dot, punctuation.definition.comma, keyword.operator, punctuation.definition.colon | #ff0000 | bold |
| punctuation.definition.string | #128a00 | bold |
| comment | #ff79d2 | italic |
| constant | #fada66 | — |
| entity | #ffdf00 | underline |
| keyword | #00ffdd | bold |
| storage | #ff0000 | bold |
| string, meta.verbatim | #1ed500 | — |
| support | #fac501 | — |
| variable | #2380db | italic |
| invalid.deprecated | #0FF | italic bold |
| invalid.illegal | #ffffff | underline |
| entity.other.inherited-class | #FF6400 | italic bold |
| string constant.other.placeholder | #C9F | — |
| meta.tag, meta.tag entity | #a46ec2 | italic |
| entity.name.section | #FF0 | |
| Comment.documentation | #00c776 | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
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}!`;
}