smettboi-themes
Publisher: smettboiThemes in package: 1
themes for smettboi, by smettboi
themes for smettboi, by smettboi
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 |
|---|---|---|
| — | #292938 | — |
| doctype, entity.name.function, entity.name.function, entity.name.tag, entity.name.tag.css, entity.name.tag.style.html, entity.name.type, entity.other.attribute-name, entity.other.attribute-name.class, entity.other.attribute-name.id, entity.other.inherited-class, meta.selector, meta.selector entity, meta.selector entity punctuation, punctuation.definition.keyword.css, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, support.class, support.function, variable.other.class, variable.other.readwrite.alias | #0014CC | — |
| comment, punctuation.definition.comment, meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #8C8CAB | — |
| constant.language, entity.other.attribute-name.html, keyword, keyword.operator, meta.property-name, meta.property-value constant.other, meta.tag entity.other.attribute-name, storage, support.constant, support.constant.property-value.css, support.type.property-name.css, variable.language | #000 | — |
| entity.name.exception, invalid.deprecated, invalid.illegal | #990000 | — |
| #292938 | — | |
| constant.language, entity.other.attribute-name.html, meta.tag entity.other.attribute-name, support.class, support.constant, support.function, variable.language, variable.other.class, variable.other.readwrite.alias | — | bold |
| constant.language, keyword, keyword.operator, storage, support.constant, variable.language | — | bold italic |
| support.type.property-name.json | — | none |
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}!`;
}