BigDuo
Publisher: Jeff BoekThemes in package: 1
Big Duo theme for Code
Big Duo theme for Code
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #d2cfc6 | — |
| source | — | |
| comment | #74717e | |
| keyword.operator | #3D8F9A | — |
| keyword | #00D2E5 | |
| keyword.control | #dbcd5d | — |
| keyword.control.import | #e160b4 | — |
| storage | #ec7967 | — |
| entity.name.function, keyword.other.name-of-parameter.objc | #fb97d2 | |
| entity.name.type | #fb97d2 | |
| entity.name.section.namespace | #fb97d2 | |
| entity.other.inherited-class | #fb97d2 | |
| meta.package, storage.modifier.package, keyword.other.package | #00F6FF | |
| constant.numeric | #99CC66 | |
| punctuation.definition.string.begin, punctuation.definition.string.end | #ff91c5 | |
| variable.language, variable.other | #47aee8 | |
| constant, markup.heading | #34A2D9 | |
| variable.other.constant | #9ED34E | — |
| constant.language | #47aee8 | |
| string | #bbe16c | |
| support.function | #bb95ef | |
| support.type | #6E9CBE | |
| support.constant | #99CC33 | |
| meta.tag.sgml | #00F6FF | |
| meta.tag, markup.definition.note | #bd86fa | |
| entity.other.attribute-name | #8aa6ff | |
| declaration.tag, entity.name.tag | #ffa686 | |
| invalid | #FFFFFF | — |
| constant.character.escaped, constant.character.escape, string source, string source.ruby | #797BE6 | |
| meta.diff.git-commit | — | — |
| markup.inserted | — | — |
| markup.deleted | — | — |
| meta.diff.header, meta.separator.diff, meta.diff.index, meta.diff.range | — | |
| punctuation.definition.unchanged.diff | — | |
| markup.deleted.git_gutter | #ec7967 | — |
| markup.inserted.git_gutter | #bbe16c | — |
| markup.changed.git_gutter | #dbcd5d | — |
| source.litcoffee markup.raw.block | — | — |
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}!`;
}