peepee-theme
Publisher: Pee EnterprisesThemes in package: 1
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 |
|---|---|---|
| source | #dedede | — |
| meta.function.definition.elixir keyword.control | #3b3b3b | — |
| storage.type | #3b3b3b | italic |
| keyword.control | #777777 | — |
| keyword.control.flow | #777777 | bold |
| keyword.other.special-method.elixir, keyword.control.import, keyword.control.export, keyword.control.type | #eb6eb7 | — |
| markup.bold.markdown | #eb6eb7 | bold |
| markup.italic.markdown | #eb6eb7 | italic |
| entity.name.function.elixir, meta.definition.variable entity.name.function, entity.name.type | #56d8c9 | bold |
| entity.name.tag | #56d8c9 | italic |
| entity.name.function.call.local.elixir, entity.name.function.call.dot.elixir, meta.function-call, variable.other.property, markup.inline.raw | #56d8c9 | — |
| variable.other.anonymous.elixir | #fa5750 | — |
| variable.other.constant.elixir, support.class.component, string.unquoted.block.yaml | #4f9cfe | — |
| variable.language.elixir, meta.definition.variable variable.other.constant | #368aeb | italic |
| entity.name.type.module.elixir, markup.heading.markdown | #4f9cfe | bold |
| keyword.control.module.elixir | #EB6EB7 | — |
| keyword.operator | #777777 | — |
| keyword.operator.assignment.elixir, keyword.operator.comparison | #b891f5 | bold |
| constant.language.symbol.elixir, meta.object-literal, meta.tag.attributes, variable.object.property, support.type.property-name, markup.underline.link.markdown | #A98F80 | italic |
| constant.language, constant.language.elixir, constant.language.null, constant.language.boolean, string.other.link.title.markdown | #e67f43 | italic |
| constant.numeric | #dbb32d | — |
| comment.wildcard.elixir | #777777 | — |
| punctuation, meta.brace | — | |
| punctuation.definition.map.elixir | #A580E2 | — |
| punctuation.separator.object.elixir | #b891f5 | — |
| variable.other.readwrite.module.elixir, string.unquoted.plain.out.yaml | #eb6eb7 | — |
| comment.unused.elixir | #777777 | italic strikethrough |
| punctuation.definition.string.begin.elixir, punctuation.definition.string.end.elixir, punctuation.section.embedded.elixir | #83c746 | — |
| string.quoted.double, string.template.js, punctuation.definition.list.begin.markdown | #70b433 | — |
| string.quoted.single | #83c746 | |
| comment, comment.line.number-sign.elixir, comment.documentation.heredoc.elixir | #51616D | — |
| emphasis | — | italic |
| strong | — | bold |
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}!`;
}