Patinhooh's Theme
Publisher: patinhoohThemes in package: 2
Crafted because nothing out there matched my style. It's sharp, vibrant, and exactly what I needed.
Crafted because nothing out there matched my style. It's sharp, vibrant, and exactly what I needed.
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 |
|---|---|---|
| — | #f8f8f0 | — |
| keyword | #f92672 | — |
| comment | #757571 | — |
| string | #ffef62 | — |
| constant.numeric | #ae81ff | — |
| constant.language, builtinConstant | #ae81ff | — |
| constant.character, constant.other | #ae81ff | — |
| support.constant | #ae81ff | |
| storage | #f92672 | |
| storage.type | #1ccad8 | italic |
| entity.name.namespace, entity.name.scope-resolution | #f8f8f0 | |
| entity.name.class, entity.name.type, entity.other.inherited-class | #a6e22e | |
| support.type, support.class | #a6e22e | italic |
| entity.name.function | #f8f8f0 | |
| support.function | #1ccad8 | |
| variable.parameter | #f8f8f0 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #f92672 | — |
| entity.name.tag | #f92672 | |
| entity.other.attribute-name | #a6e22e | |
| invalid, invalid.deprecated | #b00b00 | |
| variable.parameter.function.language.special.self.python | #ffa500 | — |
| string.quoted.docstring.multi.python | #757575 | — |
| punctuation.definition.decorator.python | #a6e22e | italic |
| meta.template.expression | #f8f8f0 | — |
| support.type.property-name.json | #1ccad8 | — |
| meta.structure.dictionary.json string.quoted.double.json | #f8f8f0 | — |
| string.unquoted.plain.out.yaml | #f8f8f0 | — |
| support.type.property-name.toml | #1ccad8 | — |
| string.quoted.single.basic.line.toml | #f8f8f0 | — |
| string.quoted.single.literal.line.toml | #f8f8f0 | — |
| string.quoted.triple.basic.block.toml | #f8f8f0 | — |
| string.quoted.triple.literal.block.toml | #f8f8f0 | — |
| markup.inline.raw | #f8f8f0 | |
| markup.strikethrough | — | strikethrough |
| markup.list.unnumbered, markup.list.numbered | #f8f8f0 | — |
| markup.quote | #f92672 | — |
| markup.list | #ffef62 | — |
| meta.diff, meta.diff.header | #757571 | — |
| markup.deleted | #f92672 | — |
| markup.inserted | #a6e22e | — |
| markup.changed | #ffef62 | — |
| punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | #f92672 | — |
| punctuation.definition.heading.markdown | #a6e22e | bold |
| entity.name.section.markdown | #a6e22e | bold |
| punctuation.definition.quote.begin.markdown | #ae81ff | — |
| meta.paragraph.markdown | #f8f8f0 | — |
| string.other.link.title.markdown,string.other.link.description.markdown, string.other.link.description.title.markdown | #ae81ff | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown, constant.other.reference.link.markdown | #1ccad8 | italic |
| markup.bold.markdown | — | bold |
| markup.italic.markdown | — | italic |
| punctuation.definition.list.begin.markdown | #a6e22e | — |
| constant.numeric.line-number.find-in-files - match | #ae81ffa0 | — |
| entity.name.filename.find-in-files | #ffef62 | — |
| token.info-token | #00a7c9 | — |
| token.warn-token | #f8f8f0 | — |
| token.error-token | #b00b00 | — |
| token.debug-token | #bc3fbc | — |
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}!`;
}