Parkside Light
Publisher: Marcus KazmierczakThemes in package: 1
A bright, colorful light theme with playful chrome and GitHub Light syntax colors
A bright, colorful light theme with playful chrome and GitHub Light syntax colors
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, string.comment | #6a737d | — |
| constant, entity.name.constant, variable.other.constant, variable.other.enummember, variable.language | #005cc5 | — |
| entity, entity.name | #6f42c1 | — |
| entity.name, meta.export.default, meta.definition.variable | #e36209 | — |
| variable.parameter.function, meta.jsx.children, meta.block, meta.tag.attributes, entity.name.constant, meta.object.member, meta.embedded.expression | #24292e | — |
| entity.name.function | #6f42c1 | — |
| entity.name.tag, support.class.component | #22863a | — |
| keyword | #d73a49 | — |
| storage, storage.type | #d73a49 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #24292e | — |
| string, string punctuation.section.embedded source | #032f62 | — |
| support | #005cc5 | — |
| meta.property-name, support.type.property-name | #005cc5 | — |
| variable | #e36209 | — |
| variable.other | #24292e | — |
| invalid.broken, invalid.deprecated, invalid.illegal, invalid.unimplemented | #b31d28 | italic |
| string variable | #005cc5 | — |
| source.regexp, string.regexp | #032f62 | — |
| string.regexp constant.character.escape | #22863a | bold |
| support.constant, support.variable | #005cc5 | — |
| support.type.property-name.json | #22863a | — |
| punctuation.section.embedded | #d73a49 | — |
| constant.other.placeholder, constant.character | #d73a49 | — |
| markup.heading, markup.heading entity.name | #005cc5 | bold |
| markup.quote | #22863a | — |
| markup.italic | #24292e | italic |
| markup.bold | #24292e | bold |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| markup.inline.raw | #005cc5 | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #b31d28 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #22863a | — |
| markup.changed, punctuation.definition.changed | #e36209 | — |
| meta.diff.range | #6f42c1 | bold |
| meta.diff.header | #005cc5 | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #586069 | — |
| brackethighlighter.unmatched | #b31d28 | — |
| constant.other.reference.link, string.other.link | #032f62 | — |
| entity.name.tag.html | #22863a | — |
| entity.other.attribute-name.html, entity.other.attribute-name | #6f42c1 | — |
| string.quoted.double.html, string.quoted.single.html | #032f62 | — |
| punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #22863a | — |
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}!`;
}