Sakya Theme
Publisher: mouseleeThemes in package: 1
Color theme inspired by Sakya Monastery thangka paintings and Tibetan Buddhist art
Color theme inspired by Sakya Monastery thangka paintings and Tibetan Buddhist art
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 | #A09058 | italic |
| keyword, storage, storage.type, storage.modifier, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.typeof, keyword.operator.instanceof | #D2B450 | bold |
| entity.name.function, support.function, meta.function-call | #5B8AB8 | — |
| string, punctuation.definition.string | #527559 | — |
| constant.numeric | #E85600 | — |
| constant.language, support.constant, variable.other.constant | #E85600 | — |
| entity.name.type, support.type, support.class, entity.name.class, entity.other.inherited-class | #EFE2BE | — |
| variable, variable.other, variable.parameter | #E8E0D4 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, punctuation.separator | #527559 | — |
| variable.other.property, support.variable.property, variable.other.object.property, meta.object-literal.key | #C4BCAE | — |
| entity.name.tag, punctuation.definition.tag | #5B8AB8 | — |
| entity.other.attribute-name | #C88090 | — |
| invalid, invalid.illegal | #BB4441 | — |
| string.regexp, constant.other.character-class.regexp | #9F7045 | — |
| constant.character.escape | #E85600 | — |
| punctuation.bracket, punctuation.definition.block, meta.brace | #9E978C | — |
| markup.heading, entity.name.section | #D2B450 | bold |
| markup.bold | #EFE2BE | bold |
| markup.italic | #A09058 | italic |
| markup.underline.link | #5B8AB8 | — |
| markup.inline.raw, markup.fenced_code.block | #E85600 | — |
| markup.inserted | #527559 | — |
| markup.deleted | #BB4441 | — |
| markup.changed | #D2B450 | — |
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}!`;
}