Porcelain Theme
Publisher: cyansaltThemes in package: 2
Porcelain theme for VSCode
Porcelain theme for VSCode
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 |
|---|---|---|
| Global | #e2e8f0 | — |
| variable | #e2e8f0 | — |
| comment, punctuation.definition.comment | #62748e | italic |
| punctuation.definition, punctuation.separator.comma, punctuation.terminator, constant.character.format.placeholder | #62748e | — |
| keyword, punctuation.definition.keyword, storage.type, storage.modifier | #cba6f7 | — |
| punctuation, keyword.operator, meta.brace | #74c7ec | — |
| entity.name.tag | #eba0ac | — |
| entity.name.function, support.function, meta.function-call.generic, entity.name.command | #89b4fa | — |
| constant.numeric, constant.language, support.constant, keyword.other.unit, support.type.builtin | #fab387 | — |
| string, punctuation.definition.string, fenced_code.block.language | #a6e3a1 | — |
| entity.name.type, support.class, entity.other.inherited-class | #f9e2af | — |
| support.type | #f9e2af | — |
| support.type.vendored | #f9e2af | italic |
| entity.other.attribute-name | #cba6f7 | — |
| invalid.deprecated.entity.other.attribute-name | #cba6f7 | strikethrough |
| variable.language, support.constant.vendored | #f38ba8 | italic |
| string.regexp, constant.character.escape, constant.other.color | #74c7ec | — |
| *url*, *link*, *uri* | — | underline |
| string.other.link | #89b4fa | — |
| markup.inline.raw | #90a1b9 | — |
| heading, markup.bold | — | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.italic markup.bold, markup.bold markup.italic, heading markup.italic | — | bold italic |
| markup.strikethrough markup.bold, markup.bold markup.strikethrough | — | bold strikethrough |
| markup.strikethrough markup.italic, markup.italic markup.strikethrough | — | italic strikethrough |
| markup.italic markup.bold markup.strikethrough, markup.italic markup.strikethrough markup.bold, markup.strikethrough markup.bold markup.italic, markup.strikethrough markup.italic markup.bold, markup.bold markup.italic markup.strikethrough, markup.bold markup.strikethrough markup.italic, heading markup.italic markup.strikethrough, heading markup.strikethrough markup.italic | — | bold italic strikethrough |
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}!`;
}