Flat GOOI Material
Publisher: ilyag88Themes in package: 1
Modified version of the dark Flat UI Material theme by Muhammad Sammy and Kaiyuan Liu.
Modified version of the dark Flat UI Material theme by Muhammad Sammy and Kaiyuan Liu.
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 | #616161 | — |
| constant | #d18c66 | — |
| constant.character.escape.python | #c3c3c3 | — |
| entity.name.function | #3193c6 | — |
| entity.name.tag.yaml | #929292 | — |
| entity.name.type | #d5b272 | — |
| entity.name.function.decorator.python | #929292 | — |
| entity.name.function.support | #4da2ad | — |
| heading.1.markdown | #d19a66 | bold underline |
| heading.2.markdown | #b06cc5 | bold underline |
| heading.3.markdown | #4da2ad | bold underline |
| heading.4.markdown | #d2656e | bold underline |
| heading.5.markdown | #05ad97 | bold underline |
| heading.6.markdown | #3193c6 | bold underline |
| keyword | #b06cc5 | — |
| keyword.codetag.notation.python | #c3c3c3 | — |
| keyword.control | #d2656e | — |
| keyword.operator | #c3c3c3 | — |
| keyword.operator.logical.python | #d2656e | — |
| markup.bold | #c3c3c3 | bold |
| markup.deleted.diff | #d2656e | — |
| markup.fenced_code.block.markdown | #616161 | — |
| markup.inline.raw | #c3c3c3 | — |
| markup.inserted.diff | #05ad97 | — |
| markup.italic | #c3c3c3 | italic |
| markup.math.block.markdown | #4da2ad | — |
| markup.math.inline.markdown | #c3c3c3 | — |
| markup.quote | #b06cc5 | — |
| meta.diff.header.git | #c3c3c3 | — |
| meta.diff.header.from-file | #d2656e | — |
| meta.diff.header.to-file | #05ad97 | — |
| meta.diff.index.git | #c3c3c3 | — |
| meta.diff.range.unified | #d5b272 | — |
| meta.function-call | #4da2ad | — |
| meta.function-call.arguments | #929292 | — |
| meta.function-call.c | #929292 | — |
| meta.link.inline.markdown | #3193c6 | underline |
| punctuation.definition.list.begin.markdown | #616161 | — |
| punctuation.definition.subshell.single.shell | #b06cc5 | — |
| punctuation.definition.variable | #d5b272 | — |
| storage | #b06cc5 | — |
| string | #05ad97 | — |
| string.quoted.double.shell | #929292 | — |
| string.quoted.single.shell | #929292 | — |
| string.unquoted.argument.shell | #929292 | — |
| string.other.link.title.markdown | #3193c6 | — |
| support | #4da2ad | — |
| support.function | #4da2ad | — |
| support.function.magic.python | #3193c6 | — |
| support.type.property-name | #929292 | — |
| support.type.python | #4da2ad | — |
| support.type.exception.python | #929292 | — |
| support.variable.magic.python | #3193c6 | — |
| variable.language.special.self.python | #d5b272 | — |
| variable.other.assignment.shell | #d18c66 | — |
| variable.other.normal.shell | #d5b272 | — |
| variable.other.readwrite.batchfile | #d5b272 | — |
| variable.parameter.batchfile | #d18c66 | — |
| variable.parameter.function | #929292 | — |
| variable.parameter.function-call | #05ad97 | — |
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}!`;
}