Silicon Pro Themes
Publisher: SKR Electronics LabThemes in package: 20
The ultimate professional theme collection for VS Code. Meticulously engineered for visual fidelity, focus, and premium aesthetics.
The ultimate professional theme collection for VS Code. Meticulously engineered for visual fidelity, focus, and premium aesthetics.
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 | #738295 | italic |
| constant, entity.name.constant, variable.other.constant, variable.language | #77D5A3 | — |
| constant.numeric, constant.language, support.constant, constant.character, variable.parameter, keyword.other.unit | #77D5A3 | — |
| entity, entity.name | #A87FFB | — |
| entity.name.function, support.function, entity.name.tag | #A87FFB | bold |
| entity.name.type, entity.other.attribute-name, support.type, support.class, meta.tag | #77D5A3 | — |
| entity.other.inherited-class | #77D5A3 | italic |
| variable, string constant.other.placeholder | #D9DFE7 | — |
| variable.parameter.function | #D9DFE7 | — |
| variable.other.object, variable.other.object.property | #D9DFE7 | — |
| variable.other.readwrite.alias | #77D5A3 | — |
| keyword, storage.type, storage.modifier, keyword.operator.expression | #A87FFB | bold |
| keyword.control, keyword.operator.new | #A87FFB | bold |
| keyword.other.unit | #77D5A3 | — |
| string, entity.other.inherited-class | #77D5A3 | — |
| string.quoted.double.html, string.quoted.single.html, string.unquoted.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #77D5A3 | — |
| string.quoted.double.xml, string.quoted.single.xml, string.unquoted.xml, punctuation.definition.string.begin.xml, punctuation.definition.string.end.xml | #77D5A3 | — |
| storage | #A87FFB | bold |
| meta.preprocessor, entity.name.function.preprocessor | #FFC26E | — |
| markup.heading, markup.bold | #A87FFB | bold |
| markup.heading entity.name | #A87FFB | bold |
| markup.italic | — | italic |
| markup.code, markup.inline.raw | #77D5A3 | — |
| markup.quote | #738295 | — |
| markup.changed | #A87FFB | — |
| markup.inserted | #77D5A3 | — |
| markup.deleted | #F76769 | — |
| markup.ignored, markup.untracked | #738295 | — |
| punctuation.definition.list.begin.markdown | #77D5A3 | — |
| meta.separator | #A87FFB | bold |
| string.regexp, constant.character.escape | #77D5A3 | — |
| source.css string, source.scss string | #77D5A3 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css | #77D5A3 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less | #D9DFE7 | — |
| entity.name.tag.css, entity.name.tag.less, entity.name.tag.custom.css | #A87FFB | — |
| support.type.property-name.json | #D9DFE7 | — |
| string.quoted.double.json | #77D5A3 | — |
| invalid, invalid.illegal | #F76769 | underline |
| invalid.deprecated | #F76769 | italic underline |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #738295 | — |
| brackethighlighter.unmatched | #F76769 | — |
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}!`;
}