mauvey
Publisher: nhuang131Themes in package: 1
mauvey af
mauvey af
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 | #F0DFAF | — |
| string | #F0DFAF | — |
| constant.numeric | #60B48A | — |
| constant.language | #60B48A | — |
| constant.character, constant.other | #60B48A | — |
| variable | — | |
| keyword | #DCA3A3 | — |
| storage | #DCA3A3 | |
| storage.type | #8CD0D3 | italic |
| entity.name.class | #F0DFAF | underline |
| variable.language.this | #D5C6F0 | — |
| entity.other.inherited-class | #F0DFAF | italic underline |
| entity.name.function | #F0DFAF | |
| variable.parameter | #EC93D3 | italic |
| entity.name.tag | #DCA3A3 | |
| entity.other.attribute-name | #F0DFAF | |
| support.function | #8CD0D3 | |
| support.constant | #8CD0D3 | |
| support.type, support.class | #8CD0D3 | italic |
| support.other.variable | — | |
| invalid | #DCA3A3 | |
| invalid.deprecated | #DFDFCB | — |
| meta.diff, meta.diff.header | #F0DFAF | italic |
| markup.deleted | #EC93D3 | — |
| markup.changed | #EC93D3 | — |
| markup.inserted | #60B48A | — |
| markup.quote | #EC93D3 | — |
| markup.bold | #8CD0D3 | bold |
| markup.italic | #8CD0D3 | italic |
| markup.inline.raw | #F0DFAF | — |
| markup.heading.markdown | #DDBB88 | bold |
| text.html.php punctuation.section.embedded.begin.php, text.html.php punctuation.section.embedded.end.php | #D5C6F0 | — |
| source.java storage.modifier.import, source.java storage.modifier.package | #DDA0B4 | |
| source.java keyword.other.documentation.javadoc.java | #9966B8 | — |
| source.clojure meta.symbol | #BEB0CC | — |
| source.clojure entity.global, source.clojure meta.definition.global | #af6f9b | — |
| source.clojure constant.keyword | #C19FD8 | — |
| source.clojure meta.symbol meta.expression, source.clojure meta.vector | #DF7E9F | — |
| source.python variable.language.special.self.python, source.python variable.language.special.cls.python | #af6f9b | — |
| source.python string.quoted.docstring.multi.python | #F0DFAF | — |
| source.python meta.function.python support.function.builtin.python | #F0DFAF | — |
| source.python keyword.operator.logical.python, source.python keyword.operator.comparison.python | #60B48A | — |
| source.python meta.function.decorator.python, source.python entity.name.function.decorator.python | #8CD0D3 | italic |
| source.python meta.function.parameters.python, source.python keyword.operator.unpacking.parameter.python | #8CD0D3 | italic |
| string.unquoted.plain.out.yaml | #DEC0E2 | — |
| string.quoted.double.yaml | #8CD0D3 | — |
| comment.line.number-sign.yaml | #A186CF | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #DCA3A3 | — |
| token.debug-token | #af6f9b | — |
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}!`;
}