Tamp
Publisher: tamp-workshopThemes in package: 6
Six cinematic themes: three identities, night and day.
Six cinematic themes: three identities, night and day.
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, comment.line, comment.block, punctuation.definition.comment | #807890 | italic |
| string, string.quoted, string.unquoted, string.template, string.regexp | #7A4C08 | — |
| constant.numeric, constant.language.boolean, constant.language.null, constant.language.none | #586069 | — |
| keyword, keyword.control, storage, storage.type, storage.modifier | #24292E | bold |
| entity.name.function, support.function, meta.function-call.generic | #444D56 | bold |
| entity.name.type, entity.name.class, entity.name.namespace, support.class | #586069 | italic |
| variable, variable.parameter, variable.other.property, entity.name.field | #24292E | — |
| keyword.operator, punctuation, punctuation.separator, punctuation.terminator | #6A737D | — |
| markup.heading, entity.name.section.markdown | #24292E | bold |
| markup.italic | #24292E | italic |
| markup.bold | #24292E | bold |
| markup.inline.raw, markup.fenced_code | #444D56 | — |
| Doc Comment | #807890 | italic |
| Python Docstring | #807890 | italic |
| Shebang | #807890 | italic |
| String Escape | #8A5A10 | — |
| String Interpolation | #7A4C08 | — |
| Regex | #7A4C08 | — |
| Heredoc | #7A4C08 | — |
| Number | #186868 | — |
| Boolean | #186868 | — |
| Null / None / Nil | #186868 | — |
| Constant CAPS | #186868 | — |
| CSS Unit | #186868 | — |
| Keyword | #8A2828 | bold |
| Control Flow | #8A2828 | bold |
| Import / Use | #8A2828 | bold |
| Return / Yield / Await | #8A2828 | bold |
| Operator Keyword | #8A2828 | bold |
| SQL Keyword | #8A2828 | bold |
| Shell Keyword | #8A2828 | bold |
| Storage Type | #8A2828 | bold |
| Storage Modifier | #8A2828 | bold |
| Function Definition | #2A5C1A | — |
| Function Call | #2A5C1A | — |
| Built-in Function | #2A5C1A | — |
| Dunder / Magic | #2A5C1A | italic |
| SQL Function | #2A5C1A | — |
| Shell Function | #2A5C1A | — |
| Decorator / Attribute | #583868 | italic |
| Java Annotation | #583868 | italic |
| Macro | #583868 | italic |
| Type Name | #1A4878 | italic |
| Interface / Trait / Protocol | #1A4878 | italic |
| Built-in Type | #1A4878 | italic |
| Generic / Type Param | #1A4878 | italic |
| Namespace / Module | #1A4878 | italic |
| SQL Data Type | #1A4878 | italic |
| Variable | #1A1020 | — |
| Parameter | #5A5268 | italic |
| Property / Field / Member | #3A2848 | — |
| self / this / super | #6A6278 | italic |
| Operator | #807898 | — |
| Punctuation | #807898 | — |
| Bracket | #9890B0 | — |
| Lifetime (Rust) | #5A5268 | italic |
| MD Heading | #1A1020 | bold |
| MD Heading # | #807890 | — |
| MD Bold | #1A1020 | bold |
| MD Italic | #1A1020 | italic |
| MD Code Inline | #1A4878 | — |
| MD Code Block | #1A4878 | — |
| MD Link Text | #2A5C1A | — |
| MD URL | #1A4878 | underline |
| MD Quote | #807890 | italic |
| MD List Bullet | #8A2828 | — |
| HTML Tag | #8A2828 | italic |
| HTML Attribute Name | #2A5C1A | italic |
| HTML Entity | #186868 | — |
| HTML Tag Delimiter | #807898 | — |
| CSS Property | #2A5C1A | — |
| CSS Value | #1A1020 | — |
| CSS Selector Class/ID | #1A4878 | — |
| CSS At-Rule | #8A2828 | italic |
| CSS Tag Selector | #8A2828 | — |
| JSON Key | #2A5C1A | — |
| YAML Key | #2A5C1A | — |
| TOML Key | #2A5C1A | — |
| TOML Section | #1A4878 | — |
| Deprecated Syntax | #7A7288 | strikethrough |
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}!`;
}