Guru Light
Publisher: Pankaj PrakashThemes in package: 1
VSCode theme inspired from Github VSCode theme and IntelliJ
VSCode theme inspired from Github VSCode theme and IntelliJ
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 | #8C8C8C | — |
| comment.line.double-slash | — | italic |
| comment.block.preprocessor | #8C8C8C | |
| comment.documentation, comment.block.documentation | #8C8C8C | — |
| storage.type.class.jsdoc | #999999 | italic underline |
| variable.other.jsdoc | #3D3D3D | — |
| invalid.illegal | #660000 | — |
| keyword.operator, storage.type.function.arrow | #777777 | — |
| keyword, storage.type, storage.modifier, support.type, variable.language.this, keyword.operator.new, keyword.operator.expression, variable.language.super, constant.language.boolean, variable.language.java, support.variable | #0033B3 | — |
| variable.other.constant, variable.other.object.property.java | #871094 | italic |
| variable.other.readwrite | #080808 | — |
| variable.object.property, meta.object-literal.key | #871094 | — |
| entity.name.function, support.function | #00627A | — |
| entity.name.type, entity.other.inherited-class | #080808 | — |
| storage.modifier.import, storage.modifier.package | #080808 | — |
| variable.other.enummember | #871094 | italic |
| entity.name.exception | #660000 | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character | #1750EB | — |
| string | #c24e00 | — |
| constant.character.escape | — | bold |
| string.regexp | #032f62 | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #032f62 | — |
| string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #f66a0a | bold |
| string.regexp constant.other.character-class.range.regexp | #067D17 | — |
| string.regexp constant.character.escape | #22863a | bold |
| constant.other.symbol | #AB6526 | — |
| meta.decorator, storage.type.annotation | #9E880D | — |
| punctuation.definition.annotation | #9E880D | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #8C8C8C | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #1b1f23 | — |
| text.html | #1b1f23 | — |
| entity.name.tag | #0033B3 | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #174AD4 | — |
| constant.character.entity, punctuation.definition.entity.html | #c24e00 | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag | #0033B3 | — |
| entity.other.attribute-name | #871094 | — |
| meta.property-name, support.type.property-name | #174AD4 | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #448C27 | — |
| keyword.other.unit | #c24e00 | — |
| variable.scss | #c24e00 | — |
| entity.name.tag.reference | #0033B3 | — |
| markup.changed | #000000 | — |
| markup.deleted | #000000 | — |
| markup.italic | — | italic |
| markup.error | #660000 | — |
| markup.inserted | #000000 | — |
| meta.link | #005cc5 | — |
| markup.output, markup.raw | #777777 | — |
| markup.prompt | #777777 | — |
| markup.heading | #AA3731 | — |
| markup.bold | — | bold |
| markup.traceback | #660000 | — |
| markup.underline | — | underline |
| markup.quote | #7A3E9D | — |
| markup.list | #005cc5 | — |
| markup.bold, markup.italic | #448C27 | — |
| markup.inline.raw | #AB6526 | |
| meta.diff.range, meta.diff.index, meta.separator | #434343 | — |
| meta.diff.header.from-file | #434343 | — |
| meta.diff.header.to-file | #434343 | — |
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}!`;
}