Calming Dark
Publisher: SplashcardThemes in package: 1
a dark grey theme with moderate color contrast
a dark grey theme with moderate color contrast
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 |
|---|---|---|
| variable, string constant.other.placeholder, invalid.deprecated, keyword, storage.type, storage.modifier | #000000 | — |
| variable, string constant.other.placeholder, entity.name.function, punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | #1FBCFF | italic |
| meta.var.expr.ts | #006eff | — |
| variable.other.constant.ts, variable.other.object.ts, variable.other.readwrite.ts, variable.other.readwrite.js | #00d9ff | italic |
| list.errorForeground | #ff0000 | bold |
| editorWarning.foreground | #eeff00 | bold |
| punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | #000000 | — |
| constant.other.php | #000000 | — |
| constant.other.color | #FFFFFF | — |
| invalid, invalid.illegal | #000000 | — |
| variable.other.object.property.ts, variable.language.this.ts | #7F83F0 | — |
| variable.other.property.ts | #7fb9f0 | — |
| punctuation.definition.block.ts, meta.brace.round.ts, meta.brace.square.ts, meta.array.literal.ts | #62faffa4 | — |
| Keyword, Storage | — | italic |
| keyword.operator.new.ts, keyword.operator.relational.ts | #ff4287 | bold |
| entity.name.function.ts, storage.type.ts, entity.name.function.js | #1FBCFF | italic bold |
| comment.line.double-slash.ts, comment.block.ts, comment.block.documentation.ts, punctuation.definition.comment.ts | #868686 | italic underline |
| keyword.control, constant.other.color, punctuation.definition.tag, punctuation, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, entity.name.tag.reference.scss | #A7A8AF | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, entity.name.type.module.js | #00ffb3c2 | — |
| keyword.control.at-rule, punctuation.terminator.rule.css, keyword.control.operator, punctuation.definition.entity.css, keyword.operator.assignment.js, punctuation.separator.comma.js, punctuation.definition.string.begin.js, punctuation.definition.string.end.js, punctuation.definition.binding-pattern.object.js | #009B9E | — |
| punctuation.definition, string.quoted.single.scss | #EDB9FE | — |
| keyword.control | — | bold |
| comment.line.scss, comment.line.double-slash.js, punctuation.definition.comment.scss, punctuation.definition.comment.js, punctuation.definition.comment.html, comment.block.html | #6D6F7C | — |
| text.html.derivative | #a2fffa | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #009B9E | — |
| entity.name.tag.html | — | bold |
| variable.parameter.js, variable.parameter.keyframe-list.css | #ff86e1 | italic |
| #2C9FFF | — | |
| variable.other.object.js, storage.type.js, string.other.link.title.markdown, variable.other.readwrite.js, variable.other.property.js, support.type.object.module.js | #57EBFF | — |
| punctuation.definition.block.js, meta.brace.round.js | #73e3ff9a | — |
| numeric.decimal.ts, keyword.operator.arithmetic.ts, keyword.operator.assignment.ts, constant.numeric.decimal.ts | #FF8FEC | — |
| string, variable.other.constant.js, variable.other.object.property.js, string.quoted.double.json, markup.fenced_code.block.markdown, markup.inline.raw.string.markdown, variable.function, keyword.other.special-method, entity.name.function, markup.bold, markup.bold.markdown, markup.italic.markdown, meta.class-method.js entity.name.function.js, variable.function.constructor, entity.name.tag.other.html, entity.name.tag.block.any.html, source.sass keyword.control | #000000 | — |
| entity.name.function.js | #1FBCFF | bold |
| string.template.js | #4e9bff | italic |
| list.begin.bracket.curly.css, entity.other.attribute-name.class.css, list.end.bracket.curly.css | #00ffb3 | — |
| error.css | #FF0000 | bold |
| constant.character.escape.js | #0077ff | bold |
| support.type.property-name.css | #5dffff | bold |
| support.constant.property-value.css | #0084ff | — |
| entity.other.attribute-name.id.css, punctuation.definition.entity.css | #ff95f6 | — |
| entity.other.attribute-name.class.css | #fc59ee | — |
| punctuation.definition.string.begin.html, punctuation.definition.string.end.html, string.quoted.double.html, string.quoted.single.html | #ff8ef9 | — |
| meta.brace.round | #ff00f2 | — |
| support.other.variable, string.other.link, markup.table | #009B9E | — |
| constant.numeric, constant.language, constant.character, constant.escape, keyword.other.unit, keyword.other, punctuation.separator.key-value.html | #f952ff | — |
| variable.parameter.function.language.special, variable.parameter | #000000 | — |
| constant.other.symbol, constant.other.key, entity.other.inherited-class, keyword.other.unit, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly, constant.other.object.key.js, string.unquoted.label.js | #000000 | |
| entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #0044ff | — |
| entity.other.attribute-name.html, meta.tag.metadata.doctype.html, meta.attribute.style.html | #FF0000 | bold |
| support.type | #B2CCD6 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #000000 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #000000 | — |
| entity.name.method.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #000000 | italic |
| entity.other.attribute-name, support.function | #000000 | — |
| entity.other.attribute-name.id, entity.other.attribute-name.class, entity.other.attribute-name.pseudo-class, entity.name.tag.css, keyword.control.conditional.js, support.constant, entity.other.attribute-name.html, string.quoted.single.js, storage.type.function.js, meta.object-literal.key | #009B9E | — |
| source.scss keyword.control | #000000 | — |
| markup.inserted | #000000 | — |
| markup.deleted | #000000 | — |
| markup.changed | #000000 | — |
| string.regexp | #000000 | — |
| constant.character.escape | #000000 | — |
| *url*, *link*, *uri* | — | underline |
| source.js constant.other.object.key.js string.unquoted.label.js | #009B9E | italic |
| support.type.property-name.json | #009B9E | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #009B9E | — |
| text.html.markdown markup.inline.raw.markdown | #000000 | — |
| text.html.markdown markup.inline.raw.markdown, punctuation.definition.raw.markdown, storage.type.function.arrow.ts | #2C9FFF50 | — |
| text.html.markdown meta.dummy.line-break | — | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, entity.name.section.markdown | #000000 | bold |
| markup.underline | #000000 | underline |
| markup.strike | — | |
| markup.quote punctuation.definition.blockquote.markdown | #2C9FFF50 | — |
| punctuation.definition.string.begin.ts, punctuation.definition.string.end.ts, string.quoted.double.ts, string.quoted.single.ts, string.quoted.double.js, string.quoted.single.js, keyword.operator.increment.ts, entity.name.tag.html, punctuation.separator.key-value.html, string.template.ts | #EDB9FE | — |
| constant.character.escape.ts | #84F5E5 | — |
| storage.type.type.ts, storage.type.constant.ts, storage.type.function.ts, variable.parameter.ts, support.type.primitive.ts, storage.type.function.js | #f07ff0 | — |
| keyword.operator.type.annotation.ts | #ffffff | bold |
| meta.brace.square.ts | #009178 | — |
| constant.language.boolean.false.ts, constant.language.boolean.true.ts, constant.language.boolean.true.js, constant.language.boolean.false.js | #00eeff | bold |
| markup.quote | — | italic |
| string.other.link.description.title.markdown | #000000 | — |
| constant.other.reference.link.markdown | #000000 | — |
| markup.raw.block | #000000 | — |
| punctuation.definition.raw.markdown, keyword.control.import.ts | #000000 | — |
| variable.language.fenced.markdown, keyword.control.import.ts, keyword.control.from.ts, variable.other.constant.object.ts | #2C9FFF | — |
| variable.other.constant.property.ts | #2cc3ff | — |
| keyword.operator.assignment.compound.ts, keyword.operator.comparison.ts | #2C9FFF | bold |
| keyword.control.loop.ts, meta.object-literal.key.ts | #2C9FFF | — |
| meta.separator | #A7A8AF | bold |
| variable.other.readwrite.alias.ts | #00ffff | italic |
| token.info-token | #2C9FFF | — |
| token.warn-token | #000000 | — |
| token.error-token | #FF293B | — |
| token.debug-token | #000000 | — |
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}!`;
}