Monokai Saz
Publisher: andysazimaThemes in package: 1
A dimmed monokai theme with python-oriented semantic token coloring.
A dimmed monokai theme with python-oriented semantic token coloring.
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown | #ffb9ea | — |
| property, meta.attribute | #ecc4ff | — |
| meta.member.access | #f7fdbd | — |
| meta.function-call | #fffd8a | — |
| meta.function-call.arguments | #ffefeb | — |
| meta.item-access.arguments | #f86d6d | — |
| comment | #949284 | — |
| string | #95d8be | — |
| punctuation.definition.template-expression, punctuation.section.embedded, punctuation.separator | #ffffff | — |
| keyword.operator | #ffffff | — |
| keyword.control | #afe8ff | — |
| meta.template.expression | #6cf5e9 | — |
| constant.numeric | #22db3b | — |
| constant.language | #cdffac | — |
| constant.character, constant.other | #9fffbc | — |
| variable | #d2eeff | |
| keyword | #e7708e | — |
| storage | #ffffff | |
| storage.type | #89d1e7 | italic |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution | #c282ff | underline |
| entity.other.inherited-class | #96be70 | italic underline |
| entity.name.function | #fffc55 | |
| variable.parameter | #ffc1a4 | italic |
| entity.name.tag | #e7709c | |
| entity.other.attribute-name | #a6e967 | |
| support.function | #8997e7 | |
| support.constant | #89d1e7 | |
| support.type, support.class | #89d1e7 | italic |
| support.other.variable | — | |
| invalid | #F44747 | |
| invalid.deprecated | #F44747 | — |
| meta.structure.dictionary.json string.quoted.double.json | #CFCFC2 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #e7709c | — |
| markup.inserted | #a6e967 | — |
| markup.changed | #fff492 | — |
| constant.numeric.line-number.find-in-files - match | #b899ffA0 | — |
| entity.name.filename.find-in-files | #fff492 | — |
| markup.quote | #e7709c | — |
| markup.list | #fff492 | — |
| markup.bold, markup.italic | #89d1e7 | — |
| markup.inline.raw | #faab6a | |
| markup.heading | #a6e967 | — |
| markup.heading.setext | #a6e967 | bold |
| markup.heading.markdown | — | bold |
| markup.quote.markdown | #75715E | italic |
| markup.bold.markdown | — | bold |
| string.other.link.title.markdown,string.other.link.description.markdown | #b899ff | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #fff492 | — |
| markup.italic.markdown | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #F8F8F2 | — |
| punctuation.definition.list.begin.markdown | #a6e967 | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| variable.language | #ffc1a4 | — |
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}!`;
}