Rashid Lab
Publisher: Rashid FarhadThemes in package: 5
Real logos for the languages and frameworks you use, on coloured folders, with five colour schemes to put them on.
Real logos for the languages and frameworks you use, on coloured folders, with five colour schemes to put them on.
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 | #565A8C | italic |
| comment.block.documentation | #565A8C | italic |
| keyword, keyword.control, keyword.other | #A75FFF | — |
| keyword.operator.expression, keyword.operator.new, keyword.operator.logical | #A75FFF | — |
| storage, storage.type, storage.modifier | #A75FFF | — |
| string, string.quoted, string.template | #7BE3B8 | — |
| string.regexp | #7BE3B8 | — |
| constant.character.escape, constant.other.placeholder | #6FD8E8 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float | #FFC66D | — |
| constant.language, constant.language.boolean, constant.language.null | #FFC66D | — |
| constant.other, variable.other.constant, entity.name.constant | #FFC66D | — |
| entity.name.function, support.function, meta.function-call.generic | #79B8FF | — |
| entity.name.method, meta.function.method | #79B8FF | — |
| entity.name.type, entity.name.class, support.class, support.type | #6FD8E8 | — |
| entity.other.inherited-class | #6FD8E8 | italic |
| entity.name.type.interface, entity.name.type.parameter | #8FC9F0 | — |
| entity.name.namespace, entity.name.module, entity.name.scope-resolution | #8FC9F0 | — |
| variable, variable.other.readwrite, meta.definition.variable | #D7D9F5 | — |
| variable.other.property, support.variable.property, meta.object-literal.key | #B4B8E8 | — |
| variable.parameter, meta.parameter | #FF9EC4 | italic |
| variable.language, variable.language.this, variable.language.self | #A75FFF | italic |
| keyword.operator, punctuation.accessor | #8E93D6 | — |
| punctuation, meta.brace, punctuation.separator, punctuation.terminator | #6D72AA | — |
| entity.name.tag, meta.tag.sgml | #FF7BA9 | — |
| entity.other.attribute-name | #FFC66D | italic |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #79B8FF | — |
| support.type.property-name.css, support.type.vendored.property-name | #B4B8E8 | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #C79BFF | — |
| support.type.property-name.json, support.type.property-name.toml | #B4B8E8 | — |
| entity.name.tag.yaml, entity.name.tag.toml | #FF7BA9 | — |
| markup.heading, entity.name.section | #79B8FF | bold |
| markup.bold | #FFC66D | bold |
| markup.italic | #A75FFF | italic |
| markup.underline.link, string.other.link | #7B6DFF | underline |
| markup.inline.raw, markup.fenced_code.block | #7BE3B8 | — |
| markup.quote | #565A8C | italic |
| markup.list punctuation.definition.list, markup.list.numbered | #A75FFF | — |
| markup.inserted, meta.diff.header.to-file | #7BE3B8 | — |
| markup.deleted, meta.diff.header.from-file | #FF6B81 | — |
| markup.changed | #79B8FF | — |
| meta.diff.range | #C79BFF | — |
| invalid, invalid.illegal | #FF6B81 | — |
| invalid.deprecated | #FF6B81 | strikethrough |
| entity.name.label, meta.preprocessor | #C79BFF | — |
| support.constant, support.other.namespace | #FFC66D | — |
| string.unquoted.plain.out.yaml | #7BE3B8 | — |
| source.shell variable.other | #B4B8E8 | — |
| text.html.markdown meta.paragraph | #D7D9F5 | — |
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}!`;
}