Prismatic
Publisher: Chris KlimasThemes in package: 3
A theme for Visual Studio Code that takes Prism.js's default color scheme as direct inspiration
A theme for Visual Studio Code that takes Prism.js's default color scheme as direct inspiration
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 |
|---|---|---|
| entity.other.attribute-name | #d1949e | — |
| constant, string.quoted.double.html, string | #A0BE63 | — |
| comment, punctuation.definition.comment | #708090 | — |
| entity.name.tag, property, support.type.property-name.json, support.type.property-name.css | #BE6396 | — |
| entity.name.function, entity.name.type.class | #BE6396 | — |
| entity.name.section.markdown, keyword, keyword.operator.new, storage.modifier, storage.type, variable.language.this | #339bba | — |
| markup.changed | #6d5232 | — |
| markup.deleted | #bb2846 | — |
| markup.inserted | #7e9141 | — |
| keyword.operator | #8F7454 | — |
| meta.brace.round, punctuation | #777 | — |
| constant.numeric.css, keyword.other.unit, variable | #aaa | — |
| entity.name.tag.css, entity.name.tag.html, entity.name.tag.wildcard.css, entity.other.attribute-name.class.css, entity.other.attribute-name.html, entity.other.attribute-name.id.css, punctuation.definition.entity.css, tag | #539bba | — |
| entity.other.attribute-name.html | #91bab8 | — |
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}!`;
}