Ceramic
Publisher: Jennifer OngThemes in package: 2
A ceramic toned theme.
A ceramic toned theme.
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 |
|---|---|---|
| keyword.control, keyword.control punctuation, keyword.other | #5b673e | bold |
| storage, storage.type, keyword.operator.new, entity.name.type | #744d43 | bold |
| entity.name.type.module | #848484 | bold |
| entity.name.namespace | #637b83 | — |
| token, meta.property-list | #79808e | — |
| entity.name.function | #1d6870 | — |
| comment, puncutuation.definition.comment, puncutuation.definition.comment.json, comment.line.double-slash | #494945 | italic |
| string, punctuation.definition.string, string.regexp punctuation.definition.string, meta.attribute-selector | #828282 | — |
| support.type.primitive, keyword.type, support.type.builtin | #336278 | bold |
| constant.numeric, constant.language, keyword.other.unit, keyword.operator.quantifier | #39657f | bold |
| entity.name.scope-resolution | #5b6f76 | — |
| meta.structure, punctuation.definition.block, meta.brace.square, meta.brace.round, punctuation.definition.parameters, keyword.operator.logical | #888888 | — |
| keyword.operator.optional | #8c7a6c | — |
| punctuation.separator.pointer-access | #bfbfbf | — |
| source variable, source support.variable | #5b7883 | — |
| keyword.operator, punctuation.separator.pointer | #888888 | — |
| variable.parameter | #5b6f76 | — |
| source variable.other.constant, variable.other.constant | #786541 | — |
| support.constant.property-value | #989898 | — |
| constant.character, constant.other | #5b6f76 | — |
| entity.other.attribute-name | #495e48 | — |
| variable.language.this | #a4a4a4 | — |
| entity.name.tag.reference | #52708b | — |
| source.css, support.type.property-name.css | #756644 | — |
| support.class.component, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, entity.name.tag | #6b665c | — |
| variable.other.property, support.type.property-name | #4f6f56 | — |
| punctuation.definition.array.begin, punctuation.definition.array.end | #796344 | bold |
| punctuation.definition.dictionary.begin, punctuation.definition.dictionary.end | #88543e | bold |
| punctuation.separator.dictionary.key-value | #1e767c | bold |
| string.quoted.double.json, punctuation.definition.string.begin.json, punctuation.definition.string.end.json | #717152 | — |
| heading.1.markdown | #7d7d3d | — |
| heading.2.markdown | #4b763d | — |
| heading.3.markdown | #2f7179 | — |
| heading.4.markdown | #894c41 | — |
| heading.5.markdown | #82693e | — |
| heading.6.markdown | #286c54 | — |
| text.html.markdown | #909090 | — |
| meta.link.inline.markdown, string.other.link.title.markdown | #746d2c | — |
| markup.fenced_code.block.markdown | #494945 | — |
| meta.embedded.block | #969696 | — |
| markup.bold.markdown | #969696 | bold |
| markup.italic.markdown | — | italic |
| meta.separator.markdown | #705128 | — |
| markup.quote.markdown | #5f733e | — |
| markup.list.unnumbered.markdown | #1d7479 | — |
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}!`;
}