Comrade Yuri
Publisher: Zachary TaylorThemes in package: 5
More contrast friendly spin on Rainglow's Comrade theme
More contrast friendly spin on Rainglow's Comrade theme
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 |
|---|---|---|
| — | #343939 | — |
| comment | #9ba5a5 | — |
| string | #3c6767 | — |
| constant.numeric | #2f6868 | — |
| constant.language | #4a6656 | — |
| constant.character, constant.other | #4a6656 | — |
| variable | — | |
| keyword | #4a6656 | — |
| storage | #4a6656 | |
| storage.type | #a73b39 | |
| entity.name.class | #4a6656 | underline |
| entity.other.inherited-class | #4a6656 | |
| entity.name.function | #343939 | |
| variable.parameter | #566262 | |
| entity.name.tag | #a73b39 | |
| entity.other.attribute-name | #4a6656 | |
| support.function | #a73b39 | |
| support.constant | #4a6656 | |
| support.type, support.class | #4a6656 | |
| support.other.variable | — | |
| invalid | #B0302C | |
| invalid.deprecated | #B0302C | — |
| meta.structure.dictionary.json string.quoted.double.json | #3c6767 | — |
| meta.diff, meta.diff.header | #9ba5a5 | — |
| markup.deleted | #e61f44 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #f7b83d | — |
| constant.numeric.line-number.find-in-files - match | #8FBE00A0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| keyword.other | #738080 | — |
| meta.property-value, support.constant.property-value, constant.other.color | #3c6767 | — |
| meta.structure.dictionary.json string.quoted.double.json | #4a6656 | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #3c6767 | — |
| meta.property-name support.type.property-name | — | normal |
| meta.property-value punctuation.separator.key-value | #343939 | — |
| keyword.other.use, keyword.other.function.use, keyword.other.namespace, keyword.other.new, keyword.other.special-method, keyword.other.unit, keyword.other.use-as | #a73b39 | — |
| meta.use support.class.builtin, meta.other.inherited-class support.class.builtin | #a73b39 | normal |
| variable.other | #566262 | normal |
| variable.parameter.function.coffee | #2f6868 | |
| entity.name.section.markdown | #4a6656 | — |
| punctuation.definition.heading.markdown | #4a6656 | — |
| markup.raw.inline.markdown | #3c6767 | — |
| punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | #4a6656 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #4a6656 | — |
| punctuation.definition.metadata.markdown | #4a6656 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, meta.image.inline.markdown | #a73b39 | |
| markup.bold.markdown, markup.italic.markdown | #a73b39 | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| markup.raw.block.markdown | #664e4d | — |
| markup.deleted.git_gutter | #e61f44 | — |
| markup.inserted.git_gutter | #50680E | — |
| markup.changed.git_gutter | #f7b83d | — |
| meta.template.expression | #343939 | — |
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}!`;
}