Rumpus Theme
Publisher: 715dThemes in package: 1
A warm, earthy terminal color scheme inspired by 1970s rumpus rooms and mid-century modern design aesthetics
A warm, earthy terminal color scheme inspired by 1970s rumpus rooms and mid-century modern design aesthetics
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 | #A07D67 | italic |
| comment.block.documentation, comment.line.documentation | #9BB589 | italic |
| string, string.quoted, string.template | #79966d | — |
| constant.character.escape, string.regexp | #D3BE47 | — |
| constant.numeric, constant.language.numeric | #D3BE47 | — |
| constant.language.boolean | #F67422 | — |
| constant, constant.language, constant.character, variable.other.constant | #F67422 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, storage.type, storage.modifier | #F67422 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.relational | #F4DDB3 | — |
| entity.name.function, support.function, meta.function-call | #E9A131 | — |
| variable.parameter, meta.function.parameters | #F4DDB3 | italic |
| entity.name.type, entity.name.class, support.type, support.class, storage.type.primitive | #6687A4 | — |
| entity.name.function.constructor, keyword.operator.new | #6687A4 | — |
| entity.name.function.decorator, meta.decorator, punctuation.decorator | #E9A131 | — |
| variable.other.property, variable.other.object.property, support.type.property-name, entity.name.tag.yaml | #6687A4 | — |
| variable, variable.other, variable.other.readwrite | #F4DDB3 | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #F67422 | — |
| punctuation, punctuation.separator, punctuation.terminator | #A07D67 | — |
| punctuation.definition.block, punctuation.section.block, punctuation.definition.parameters, punctuation.definition.array, punctuation.section.brackets | #A07D67 | — |
| entity.name.tag, punctuation.definition.tag | #E9A131 | — |
| entity.other.attribute-name | #E9A131 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #E9A131 | — |
| support.type.property-name.css | #6687A4 | — |
| support.type.property-name.json, string.json support.type.property-name.json | #6687A4 | — |
| markup.heading, entity.name.section.markdown | #E9A131 | bold |
| markup.bold | #F67422 | bold |
| markup.italic | #F67422 | italic |
| markup.inline.raw, markup.fenced_code.block | #79966d | — |
| markup.underline.link, string.other.link.title.markdown | #6687A4 | underline |
| string.other.link.description.markdown | #79966d | italic |
| string.regexp | #79966d | — |
| invalid, invalid.illegal | #E84E3C | — |
| invalid.deprecated | #D3BE47 | — |
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}!`;
}