Smoothy 7
Publisher: michael giesonThemes in package: 1
A light theme
A light 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 |
|---|---|---|
| — | #000000 | — |
| source | #000000 | |
| comment | #8C96A1 | |
| keyword, storage | #4295D4 | — |
| keyword.other.name-of-parameter.objc | #DE1BD4 | |
| entity.name.function | #000000 | |
| variable.parameter | #7d25f0 | italic |
| entity.name | #2171C2 | bold |
| entity.other.inherited-class | #2171C2 | bold italic |
| support | #881BC2 | |
| constant.numeric | #003CFF | |
| variable | #000000 | |
| constant | #3AABA3 | — |
| variable.other.constant | #003CFF | — |
| constant.language | #003CFF | |
| string | #31AB13 | |
| support.function | #CD61FF | |
| support.type | #0B51A6 | — |
| string.quoted.double.html | #2E9E44 | — |
| invalid | #EB1717 | — |
| constant.character.escaped, constant.character.escape, string source, string source.ruby | #000000 | |
| markup.inserted | #147A31 | — |
| markup.deleted | #BA1818 | — |
| meta.diff.header, meta.separator.diff, meta.diff.index, meta.diff.range | — | — |
| meta.selector.css, entity.other.attribute-name.pseudo-class.css, entity.name.tag.wildcard.css, entity.other.attribute-name.id.css, entity.other.attribute-name.class.css | #DD26E3 | — |
| support.type.property-name.css | #8960D1 | |
| keyword.other.unit.css, constant.other.rgb-value.css, constant.numeric.css | #2AA38B | — |
| support.constant.font-name.css, constant.other.color.rgb-value.css | #2AA38B | — |
| meta.tag.preprocessor.xml | #68685B | |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype entity, meta.tag.sgml.doctype string, meta.tag.preprocessor.xml, meta.tag.preprocessor.xml entity, meta.tag.preprocessor.xml string | #888888 | |
| string.quoted.docinfo.doctype.DTD | — | italic |
| meta.tag, declaration.tag | #8960D1 | |
| entity.name.tag | #8960D1 | — |
| entity.other.attribute-name | #2B99FF | italic |
| markup.heading | #0C07FF | — |
| markup.quote | #000000 | italic |
| markup.list | #B90690 | — |
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}!`;
}