rediohead theme
Publisher: ChiliMelonThemes in package: 1
A spicy red dark theme inspired by chili peppers, Silent Red, and Vesper. Optimized for Go, Python, and TypeScript.
A spicy red dark theme inspired by chili peppers, Silent Red, and Vesper. Optimized for Go, Python, and TypeScript.
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 | #7a6c6d | italic |
| invalid, invalid.illegal | #ff6d6d | — |
| keyword, storage.type, storage.modifier, keyword.control | #c678dd | — |
| keyword.operator, punctuation.separator.key-value, punctuation.separator.comma, punctuation.section.embedded | #56b6c2 | — |
| entity.name.function, support.function, variable.function, meta.function-call, meta.function-call.generic | #61afef | — |
| variable, meta.definition.variable.name | #d9bcbc | — |
| variable.parameter | #bfa4a6 | — |
| string, constant.other.symbol | #98c379 | — |
| constant.numeric, constant.language, constant.character, constant.escape | #d19a66 | — |
| support.type, entity.name.type, entity.name.class, support.class | #e5c07b | — |
| entity.name.tag | #c73a3c | — |
| entity.other.attribute-name | #d19a66 | — |
| support.type.property-name.json | #c73a3c | — |
| markup.heading, markup.heading punctuation.definition.heading | #e5c07b | — |
| entity.name.package.go | #e5c07b | — |
| support.type.builtin.go | #e5c07b | — |
| keyword.operator.assignment.go, keyword.operator.arithmetic.go, keyword.operator.address.go | #56b6c2 | — |
| meta.function.decorator.python, support.token.decorator.python | #61afef | — |
| support.variable.magic.python | #c73a3c | — |
| punctuation.separator.period.python, punctuation.separator.element.python, punctuation.parenthesis.begin.python, punctuation.parenthesis.end.python | #a88e90 | — |
| meta.function-call.generic.python | #61afef | — |
| constant.character.format.placeholder.other.python | #d19a66 | — |
| support.type.primitive.ts, support.type.builtin.ts, support.type.primitive.tsx, support.type.builtin.tsx | #e5c07b | — |
| entity.name.type.ts, entity.name.interface.ts | #e5c07b | — |
| keyword.operator.expression.import | #61afef | — |
| variable.other.property, support.variable.property | #d9bcbc | — |
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}!`;
}