Pastel Palette
Publisher: a.aThemes in package: 2
A soft pastel theme
A soft pastel 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 |
|---|---|---|
| comment, punctuation.definition.comment | #D6D6D7 | italic |
| variable, string constant.other.placeholder | #9AAEC4 | — |
| keyword.other | #67B8E8 | — |
| entity.other.document.begin.yaml, entity.other.document.end.yaml, keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python, storage, storage.type, storage.modifier | #67B8E8 | — |
| keyword.operator, meta.tag | #7BB1D7 | — |
| punctuation, meta.brace.angle, punctuation.definition.tag, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, constant.other.color | #DEE6EC | — |
| punctuation.definition.variable.shell | #9AAEC4 | — |
| punctuation.definition.regex.arbitrary-repetition.shell, punctuation.definition.arbitrary-repetition.shell | #7BB1D7 | — |
| punctuation.separator.statement.and.shell, punctuation.separator.statement.or.shell, punctuation.separator.statement.background.shell | #7BB1D7 | — |
| punctuation.math.operator.latex | #7BB1D7 | — |
| punctuation.definition.string.heredoc | #9CAEBB | — |
| punctuation.definition.string.heredoc.quote.shell | #DEE6EC | — |
| keyword.operator.type.annotation, keyword.operator.type.ts, keyword.operator.type.tsx | #DEE6EC | — |
| storage.type.function.arrow | #DEE6EC | — |
| keyword.operator.arrow.cs, keyword.operator.class.php, keyword.operator.key.php, keyword.operator.arrow.fat.rust, keyword.operator.arrow.skinny.rust, keyword.operator.key-value.rust, keyword.operator.namespace.rust | #DEE6EC | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #67B8E8 | — |
| source.yaml entity.name.tag, entity.name.tag.yaml, support.type.property-name.toml, source.toml entity.name.tag | #67B8E8 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #94C3DF | — |
| meta.function entity.name.function, meta.definition.function entity.name.function, meta.definition.method entity.name.function, meta.method.declaration entity.name.function | #9C9BE0 | — |
| meta.block variable.other | #A8BBC8 | — |
| support.other.variable, string.other.link | #67B8E8 | — |
| constant.numeric, keyword.other.unit, constant.other.color.rgb-value.hex.css | #DAC4AD | — |
| constant.language, support.constant, constant.character, constant.escape, entity.name.variable.enum-member, variable.other.enummember, constant.other, variable.other.constant, constant.enum | #8C9CC0 | — |
| variable.parameter, entity.name.variable.parameter, meta.record.identifier | #A8BBC8 | — |
| entity.name.variable.field, entity.name.variable.property, entity.name.variable.event | #A8D2F0 | — |
| entity.name.variable.local, entity.name.variable.tuple-element, entity.name.variable.range-variable | #9AAEC4 | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #9CAEBB | — |
| string.quoted.double.json, string.quoted.single.yaml, string.quoted.double.yaml, string.unquoted.plain.yaml, string.unquoted.block.yaml | #A7CBE6 | — |
| entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #92A4DC | — |
| support.type | #92A4DC | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #94CBF2 | — |
| variable.language | #94CBF2 | italic |
| entity.name.method.js | #9C9BE0 | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #9C9BE0 | — |
| entity.other.attribute-name | #A7CBE6 | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #A7CBE6 | italic |
| entity.other.attribute-name.class | #67B8E8 | — |
| source.sass keyword.control | #67B8E8 | — |
| markup.inserted | #98B4C8 | — |
| markup.deleted | #D89898 | — |
| markup.changed | #A8D2F0 | — |
| string.regexp | #98ABB8 | — |
| constant.character.escape | #98ABB8 | — |
| *url*, *link*, *uri* | — | underline |
| support.attribute, meta.attribute.rust, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #92A4DC | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #67B8E8 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #67B8E8 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #92A4DC | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #8DBADA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #7894A8 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #98ABB8 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #5E6264 | — |
| punctuation.definition.list.begin.markdown, punctuation.definition.list.markdown | #BFD0E0 | — |
| text.html.markdown markup.inline.raw.markdown, text.html.markdown markup.inline.raw.string.markdown | #94CBF2 | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #98B4C8 | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #94CBF2 | — |
| markup.italic | #94CBF2 | italic |
| markup.bold, markup.bold string | #9CAEBB | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #9CAEBB | bold italic |
| entity.name.section.markdown, heading.1.markdown, markup.heading.markdown | #B7D9F2 | — |
| markup.underline | #A0C6E1 | underline |
| markup.quote punctuation.definition.blockquote.markdown | #A8D2F0 | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #9CAEBB | — |
| string.other.link.description.title.markdown | #9CAEBB | — |
| constant.other.reference.link.markdown | #A0C6E1 | — |
| markup.raw.block | #94CBF2 | — |
| markup.raw.block.fenced.markdown | #5E6264B3 | — |
| punctuation.definition.fenced.markdown | #5E626480 | — |
| variable.language.fenced.markdown, fenced_code.block.language | #DEE6EC | — |
| meta.separator | #7894A8 | bold |
| markup.table | #5E6264 | — |
| invalid, invalid.illegal | #D8546B | — |
| invalid.deprecated | #E8C8A8 | — |
| source.css meta.property-name, source.scss meta.property-name, source.less meta.property-name, source.sass meta.property-name, source.stylus meta.property-name, source.postcss meta.property-name, source.css support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.sass support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #A7CBE6 | — |
| source.css meta.at-rule.media.header, source.css meta.at-rule.header, source.css meta.at-rule.keyframes.header, source.css meta.at-rule.import | #A7CBE6 | — |
| constant.numeric.css, keyword.other.unit, source.css constant.numeric, source.scss constant.numeric, source.less constant.numeric | #DAC4AD | — |
| support.function.timing-function.css, invalid.deprecated.color.system.css | #B4C7D3 | — |
| punctuation.definition.entity.css, meta.property-list.css | #DEE6EC | — |
| source.css string, source.css meta.property-value, source.scss meta.property-value, source.less meta.property-value, source.css support.constant.property-value, source.scss string, source.scss support.constant.property-value, source.less string, source.less support.constant.property-value, source.sass string, source.stylus string | #B4C7D3 | — |
| text.html entity.name.tag, text.html.basic entity.name.tag, text.html.derivative entity.name.tag | #67B8E8 | — |
| text.html entity.other.attribute-name, text.html.basic entity.other.attribute-name, text.html.derivative entity.other.attribute-name | #A7CBE6 | — |
| text.html meta.tag string.quoted, text.html.basic meta.tag string.quoted, text.html.derivative meta.tag string.quoted | #B4C7D3 | — |
| source.css variable.argument.css, source.css variable.other.css, source.css meta.property-value.css variable, source.scss variable.argument.css, source.scss variable.other.css, source.less variable.argument, source.less variable.other | #9AAEC4 | — |
| source.css keyword.operator, source.scss keyword.operator, source.less keyword.operator | #7BB1D7 | — |
| source.css support.constant.property-value, source.css meta.property-value support.constant, source.scss support.constant.property-value, source.less support.constant.property-value | #B4C7D3 | — |
| source.css entity.other.attribute-name.pseudo-class, source.css entity.other.attribute-name.pseudo-element, source.scss entity.other.attribute-name.pseudo-class, source.scss entity.other.attribute-name.pseudo-element, source.less entity.other.attribute-name.pseudo-class, source.less entity.other.attribute-name.pseudo-element | #A7CBE6 | — |
| entity.other.keyframe-offset, source.css entity.name.tag, source.css meta.selector entity.name.tag, source.scss entity.name.tag, source.scss meta.selector entity.name.tag, source.less entity.name.tag, source.sass entity.name.tag | #67B8E8 | — |
| source.css support.type.vendored.property-name, source.css support.type.property-name.vendored, source.css meta.property-name support.type.vendored, source.scss support.type.vendored.property-name, source.less support.type.vendored.property-name | #A7CBE6 | — |
| source.css punctuation.section.property-list, source.css punctuation.section.property-list.begin, source.css punctuation.section.property-list.end, source.css meta.property-list.css punctuation, source.scss punctuation.section.property-list, source.less punctuation.section.property-list | #DEE6EC | — |
| text.html meta.tag punctuation.definition.tag, text.html meta.tag punctuation.definition.tag.begin, text.html meta.tag punctuation.definition.tag.end, text.html.basic meta.tag punctuation.definition.tag, text.html.basic meta.tag punctuation.definition.tag.begin, text.html.basic meta.tag punctuation.definition.tag.end, text.html.derivative meta.tag punctuation.definition.tag, text.html.derivative meta.tag punctuation.definition.tag.begin, text.html.derivative meta.tag punctuation.definition.tag.end, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #DEE6EC | — |
| punctuation.definition.string.begin.html, punctuation.definition.string.end.html, punctuation.separator.key-value.html, text.html meta.tag punctuation.separator.key-value, text.html.basic meta.tag punctuation.separator.key-value, text.html.derivative meta.tag punctuation.separator.key-value, text.html meta.tag punctuation.definition.string.begin, text.html meta.tag punctuation.definition.string.end, text.html.basic meta.tag punctuation.definition.string.begin, text.html.basic meta.tag punctuation.definition.string.end, text.html.derivative meta.tag punctuation.definition.string.begin, text.html.derivative meta.tag punctuation.definition.string.end | #DEE6EC | — |
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}!`;
}