Pequod Palette
Publisher: Tiago JacintoThemes in package: 2
A pigment-inspired colour palette for reading and code, rooted in Moby-Dick. Warm paper, deep ink, and eight accent hues named after the crew of the Pequod. Light and dark variants.
A pigment-inspired colour palette for reading and code, rooted in Moby-Dick. Warm paper, deep ink, and eight accent hues named after the crew of the Pequod. Light and dark variants.
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, punctuation.definition.comment | #76716B | italic |
| string, string.quoted, punctuation.definition.string | #177c55 | — |
| constant.character.escape, string.regexp | #552823 | — |
| constant.numeric, constant.language.boolean, constant.language | #6A4A00 | — |
| constant, variable.other.constant, support.constant | #CA6435 | — |
| keyword, keyword.control, storage, storage.type, storage.modifier | #A83732 | — |
| keyword.operator, punctuation.separator, punctuation.terminator | #76716B | — |
| entity.name.function, support.function, meta.function-call, variable.function | #0082B1 | — |
| variable.parameter | #552823 | — |
| entity.name.type, entity.name.class, entity.name.namespace, support.type, support.class | #253E82 | — |
| variable, variable.other | #0D2F42 | — |
| variable.other.property, variable.other.member, meta.object-literal.key, support.type.property-name | #552823 | — |
| entity.name.tag, meta.tag | #A83732 | — |
| entity.other.attribute-name | #6A4A00 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css | #A83732 | — |
| support.type.property-name.css | #0082B1 | — |
| support.constant.property-value.css, constant.other.color.rgb-value | #177c55 | — |
| markup.heading, entity.name.section | #253E82 | bold |
| punctuation.definition.heading.markdown | #BD8C68 | — |
| markup.bold | #A83732 | bold |
| punctuation.definition.bold.markdown | #BD8C68 | — |
| markup.italic | #6A4A00 | italic |
| punctuation.definition.italic.markdown | #BD8C68 | — |
| punctuation.definition.list.begin.markdown, markup.list | #163f54 | — |
| markup.underline.link, string.other.link | #163f54 | — |
| markup.quote | #76716B | italic |
| markup.inline.raw, markup.raw.inline | #552823 | — |
| markup.inserted | #177c55 | — |
| markup.deleted | #A83732 | — |
| invalid, invalid.illegal, invalid.deprecated | #A83732 | italic |
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}!`;
}