strawberrylatteVibes
Publisher: rokageThemes in package: 1
a cozy chill theme
a cozy chill 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 |
|---|---|---|
| comment, punctuation.definition.comment | #00A7B3 | italic |
| comment.block.preprocessor | #A0785A | |
| comment.documentation, comment.block.documentation | #556B2F | — |
| invalid.illegal | #8B0000 | — |
| keyword.operator | #5A5A5A | — |
| keyword, storage | #DE3163 | — |
| storage.type, support.type | #8A00C4 | — |
| constant.language, support.constant, variable.language | #CD853F | — |
| variable, support.variable | #483D8B | — |
| entity.name.function, support.function | #483D8B | bold |
| entity.name.type, entity.other.inherited-class, support.class | #9E3A26 | bold |
| constant.character.entity, punctuation.definition.entity | #CD853F | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #483D8B | — |
| meta.property-name, support.type.property-name | #E40078 | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #556B2F | — |
| keyword.other.important | — | bold |
| markup.changed | #A0522D | — |
| markup.deleted | #8B0000 | — |
| markup.italic | — | italic |
| markup.error | #8B0000 | — |
| markup.inserted | #228B22 | — |
| meta.link | #6A5ACD | — |
| markup.output, markup.raw | #5A5A5A | — |
| markup.prompt | #5A5A5A | — |
| markup.heading | #8B4513 | — |
| markup.bold | — | bold |
| markup.traceback | #8B0000 | — |
| markup.underline | — | underline |
| markup.quote | #483D8B | — |
| markup.list | #6A5ACD | — |
| markup.bold, markup.italic | #556B2F | — |
| markup.inline.raw | #CD853F | |
| meta.diff.range, meta.diff.index, meta.separator | #696969 | — |
| meta.diff.header.from-file | #696969 | — |
| meta.diff.header.to-file | #696969 | — |
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}!`;
}