Shrek 5
Publisher: Oliver JessnerThemes in package: 1
Best theme ever
Best theme ever
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 | #7e8531 | bold italic |
| comment.block.preprocessor | #b3c250 | bold italic |
| variable, string constant.other.placeholder, invalid.deprecated, keyword, storage.type | #448C27 | — |
| invalid.illegal | #b3c250 | — |
| keyword.operator | #586502 | — |
| keyword, storage | #818756 | — |
| storage.type, support.type | #e00013 | — |
| constant.language, support.constant, variable.language | #c1d15c | — |
| variable, support.variable | #4dfd02 | — |
| entity.name.function, support.function | #799a68 | bold italic |
| entity.name.type, entity.other.inherited-class, support.class | #91f866 | bold italic |
| entity.name.exception | #4dfd02 | — |
| entity.name.section | — | bold italic |
| constant.numeric, constant.character, constant | #4dfd02 | — |
| string | #4dfd02 | — |
| constant.character.escape | #4dfd02 | — |
| string.regexp | #448C27 | — |
| constant.other.symbol | #448C27 | — |
| punctuation | #000000 | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #000000 | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #5c0b0bae | — |
| entity.name.tag | #448C27 | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #6c2a1d | bold italic |
| constant.character.entity, punctuation.definition.entity | #af6728 | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #448C27 | — |
| meta.property-name, support.type.property-name | #448C27 | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #448C27 | — |
| keyword.other.important | — | bold italic |
| markup.changed | #448C27 | — |
| markup.deleted | #448C27 | — |
| markup.italic | — | bold italic |
| markup.error | #448C27 | — |
| markup.inserted | #448C27 | — |
| meta.link | #448C27 | — |
| markup.output, markup.raw | #777777 | — |
| markup.prompt | #448C27 | — |
| markup.heading | #448C27 | — |
| markup.bold | — | bold italic |
| markup.traceback | #448C27 | — |
| markup.underline | — | underline |
| markup.quote | #448C27 | — |
| markup.list | #4B83CD | — |
| markup.bold, markup.italic | #448C27 | — |
| markup.inline.raw | #448C27 | bold italic |
| meta.diff.range, meta.diff.index, meta.separator | #448C27 | — |
| meta.diff.header.from-file | #448C27 | — |
| meta.diff.header.to-file | #448C27 | — |
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}!`;
}