Dive Bar
Publisher: mattseddonThemes in package: 1
A dive bar theme for VS Code
A dive bar theme for VS Code
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 | #45898C | italic |
| entity | #A6E2E0 | — |
| invalid | #FF427B | italic bold underline |
| keyword | #D5358F | — |
| markup | #94B4C4 | — |
| storage | #F37AB0 | — |
| string | #A9FEF7 | — |
| support | #7CB3B6 | — |
| variable | #B4DAE9 | — |
| comment.block.documentation | #75B7BB | — |
| comment.block.documentation storage | #FDA8BC | — |
| comment.block.documentation entity | #45898C | — |
| variable.other.jsdoc | #BAF7FC | — |
| support.function | #8CE1E7 | — |
| keyword.import | #F272AA | — |
| meta.paragraph.markdown | #BCCFCF | — |
| comment.block.html | #48676A | — |
| entity.name.section.markdown | #FFDFEE | bold |
| punctuation.definition.heading.markdown | #A8FFDB | bold |
| markup.inline.raw.string.markdown | #FF96AA | — |
| punctuation.definition.raw.markdown | #FFDFEE | — |
| markup.fenced_code.block.markdown | #74A39D | — |
| meta.separator.markdown | #999EE1 | — |
| meta.link.inline.markdown | #9CEEEB | — |
| markup.underline.link | #A8FFEFAD | italic |
| meta.link.inline.markdown punctuation.definition.string | #5AF5F0 | — |
| constant.other.reference.link | #9CEEEB | — |
| meta.link.reference.def markup.underline.link | #74A39D | italic |
| meta.link.reference.def punctuation.definition.constant | #75FFFAAD | — |
| punctuation.definition.list.begin | #A8FFDBAD | — |
| markup.bold.markdown | #74A39D | bold |
| markup.italic.markdown | #ABDADA | italic |
| markup.italic.markdown punctuation.definition | #ABDADA | italic |
| entity.name.function | #8CE1E7 | — |
| keyword.control.flow | #FF1998 | — |
| keyword.control.export | #FF1998 | — |
| keyword.operator | #FE8DA5 | — |
| storage.type.function | #FB4293 | — |
| storage.type.function.arrow | #FE8DA5 | — |
| string.template | #A4FFE4 | — |
| support.type.property-name.json | #7C9C9E | — |
| source.json string | #BAF7FC | — |
| source.json punctuation.separator, source.json punctuation.definition.dictionary, source.json punctuation.definition.array | #45898C | — |
| entity.name.tag | #6ACBD8 | — |
| punctuation.definition.tag | #639196 | — |
| support.class.component | #7AFFE2 | — |
| entity.name.tag.yaml | #7C9C9E | — |
| source.yaml string | #BAF7FC | — |
| source.yaml punctuation.separator, source.yaml punctuation.definition.sequence | #45898C | — |
| constant | #0ADB8B | — |
| constant.language.boolean | #0ADB8B | — |
| constant.language.null | #0ADB8B | — |
| keyword.control | #0ADB8B | — |
| keyword.control.import, keyword.control.from | #E45CFF | — |
| token.warn-token | #00EAFF | — |
| token.info-token | #6796E6 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}