Whimsical
Publisher: Raoul v. R.Themes in package: 2
Dark and subdued colors with subtle variations and pleasant highlights.
Dark and subdued colors with subtle variations and pleasant highlights.
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown, variable.legacy.builtin.python | #D4D4D4 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #90B090 | italic |
| constant.language | #DBC9BE | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #CEF7EF | — |
| constant.regexp | #C4A191 | — |
| entity.name.tag | #DBC9BE | — |
| entity.name.tag.html | #C4A191 | — |
| entity.name.tag.css, entity.name.tag.less | #C4A191 | — |
| entity.other.attribute-name | #D7D7D7 | — |
| entity.other.attribute-name.class.css, source.css entity.other.attribute-name.class, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.parent.less, source.css entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element.css, source.css.less, entity.other.attribute-name.scss | #C4A191 | — |
| entity.other.attribute-name.id | #D7D7D7 | — |
| invalid | #F44747 | — |
| markup.underline | — | underline |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #CEF7EF | — |
| markup.deleted | #CE9178 | — |
| markup.changed | #DBC9BE | — |
| punctuation.definition.quote.begin.markdown | #90B090 | — |
| punctuation.definition.list.begin.markdown | #6796E6 | — |
| markup.inline.raw | #CE9178 | — |
| punctuation.definition.tag | #808080 | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #D7C3BA | — |
| meta.preprocessor, entity.name.function.preprocessor | #DBC9BE | — |
| meta.preprocessor.string | #CE9178 | — |
| meta.preprocessor.numeric | #CEF7EF | — |
| meta.structure.dictionary.key.python | #CEF7EF | — |
| meta.diff.header | #DBC9BE | — |
| storage | #DBC9BE | — |
| storage.type | #C4A191 | — |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc, keyword.other.documentation.javadoc.java, keyword.other.phpdoc.php | #C0C0C0 | — |
| storage.modifier, keyword.operator.noexcept | #C4A191 | — |
| string, meta.embedded.assembly | #FFF1D5 | — |
| string.tag | #FFF1D5 | — |
| string.value | #FFF1D5 | — |
| string.regexp | #CEDAE3 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #FFF1D5 | — |
| meta.template.expression | #D7D7D7 | — |
| support.type.vendored.property-name, support.type.property-name, source.css variable, source.coffee.embedded | #D7D7D7 | — |
| keyword | #C4A191 | — |
| keyword.control | #C4A191 | — |
| keyword.operator | #DBC9BE | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #C4A191 | — |
| keyword.other.unit | #CEF7EF | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #DBC9BE | — |
| support.function.git-rebase | #CEF7EF | — |
| constant.sha.git-rebase | #CEF7EF | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #D7D7D7 | — |
| variable.language | #C4A191 | — |
| support.type.primitive.ts, support.type.builtin.ts, support.type.primitive.tsx, support.type.builtin.tsx | #D1D7BE | — |
| block.scope.end, block.scope.begin, punctuation.definition.block, punctuation.definition.binding-pattern.object | #D7C3BA | — |
| meta.brace.square, meta.brace.round | #D7C3BA | — |
| meta.paragraph.markdown | #D7D7D7 | — |
| entity.name.section.markdown,, markup.heading.markdown | #CCCCCC | — |
| punctuation.definition.heading.markdown | #CCCCCC | — |
| punctuation.definition.list.begin.markdown | #AEC2D2 | — |
| markup.heading.setext | #CEDAE3 | — |
| punctuation.definition.bold.markdown | #CEF7EF | — |
| markup.inline.raw.markdown, markup.inline.raw.string.markdown | #CEDAE3 | — |
| punctuation.definition.list.markdown | #AEC2D2 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #AEC2D2 | — |
| beginning.punctuation.definition.list.markdown | #CEF7EF | — |
| punctuation.definition.metadata.markdown | #AEC2D2 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #CEF7EF | — |
| punctuation.definition.link.title.begin.markdown, punctuation.definition.link.title.end.markdown | #AEC2D2 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #AEC2D2 | — |
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}!`;
}