Pantone Theme
Publisher: Andlz EngineeringThemes in package: 200
A collection of VS Code color themes based on official Pantone colors, featuring analogous and complementary color harmonies with bold/italic syntax styling.
A collection of VS Code color themes based on official Pantone colors, featuring analogous and complementary color harmonies with bold/italic syntax styling.
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, comment.line, comment.block, comment.block.documentation, punctuation.definition.comment | #868d4d | italic |
| keyword, keyword.control, keyword.control.conditional, keyword.control.loop, keyword.control.flow, keyword.control.import, keyword.control.export, keyword.control.from | #5a7431 | bold |
| keyword.operator.new, keyword.operator.expression, keyword.operator.instanceof, keyword.operator.typeof, keyword.operator.logical, keyword.operator.delete | #5a7431 | bold |
| storage.type, storage.modifier | #5a7431 | bold |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple, string.template, string.quoted.other | #845bbd | |
| string.interpolated, punctuation.definition.template-expression, punctuation.section.embedded | #5a7431 | |
| string.regexp | #845bbd | |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #4b746b | |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #8c690f | bold |
| variable.other.constant, variable.other.enummember | #8c690f | bold |
| constant.character.escape | #5e713e | |
| entity.name.type, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.alias, entity.name.type.module, support.type, support.type.builtin | #3d7925 | italic |
| entity.name.type.parameter | #3d7925 | italic |
| entity.name.function, meta.function entity.name.function | #786d74 | bold |
| meta.function-call entity.name.function, support.function | #786d74 | |
| meta.method-call entity.name.function, entity.name.function.member | #786d74 | |
| variable, variable.other, variable.other.readwrite | #1e2710 | |
| variable.parameter | #1e2710 | italic |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #5a7431 | italic |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #1e2710 | |
| entity.name.class, entity.name.type.class, support.class | #c2342d | bold italic |
| entity.other.inherited-class | #c2342d | italic |
| entity.name.tag, punctuation.definition.tag | #5a7431 | bold |
| entity.other.attribute-name | #786d74 | italic |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.ternary | #5e713e | |
| punctuation, punctuation.separator, punctuation.terminator, meta.brace | #868d4d | |
| meta.decorator, meta.decorator entity.name.function, punctuation.decorator | #3d7925 | italic |
| support.type.property-name.css, support.type.vendored.property-name.css | #3d7925 | |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #c2342d | bold |
| support.constant.property-value.css, support.constant.color.css | #8c690f | |
| keyword.other.unit.css | #4b746b | |
| support.type.property-name.json | #3d7925 | |
| markup.heading, markup.heading entity.name, entity.name.section.markdown | #5a7431 | bold |
| markup.bold | #8c690f | bold |
| markup.italic | #3d7925 | italic |
| markup.inline.raw, markup.raw | #845bbd | |
| markup.underline.link | #786d74 | |
| markup.quote | #868d4d | italic |
| markup.inserted | #88b04b | — |
| markup.deleted | #dd4132 | — |
| markup.changed | #efc050 | — |
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}!`;
}