Calm Coder
Publisher: maxdevtoolThemes in package: 2
A soothing color theme optimized for ADHD focus, featuring soft blues, greens, and earth tones to reduce visual overstimulation
A soothing color theme optimized for ADHD focus, featuring soft blues, greens, and earth tones to reduce visual overstimulation
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 | #6a8a6f | italic |
| string, string.quoted, string.template | #2a8d6f | — |
| punctuation.definition.template-expression, meta.embedded | #4a90a4 | — |
| constant.numeric, constant.language.numeric | #a87f3f | — |
| constant.language, constant.character, constant.other | #2a8d8f | — |
| keyword, keyword.control, keyword.operator.new, keyword.other | #3a7a9f | bold |
| keyword.operator, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.comparison | #5a8aaf | — |
| storage, storage.type, storage.modifier | #3a7a9f | bold |
| entity.name.function, support.function | #a87f3f | — |
| meta.function-call, variable.function | #a87f3f | — |
| entity.name.type, entity.name.class, support.type, support.class | #2a8d8f | — |
| variable, variable.other, variable.parameter | #3a6a8f | — |
| variable.other.property, variable.other.object.property, support.variable.property | #4a7a9f | — |
| variable.language, variable.language.this, variable.language.super | #3a7a9f | italic bold |
| keyword.control.import, keyword.control.export, keyword.control.from | #3a7a9f | bold |
| meta.decorator, entity.name.function.decorator, punctuation.definition.decorator | #a87f3f | italic |
| entity.name.tag, meta.tag | #3a7a9f | — |
| entity.other.attribute-name | #4a8a9f | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #3a7a9f | — |
| support.type.property-name.css | #4a7a9f | — |
| support.type.property-name.json, string.json support.type.property-name.json | #3a7a9f | — |
| markup.heading, entity.name.section.markdown | #3a7a9f | bold |
| markup.bold | #4a8a9f | bold |
| markup.italic | #3a9d7f | italic |
| markup.underline.link, string.other.link.title.markdown | #2a8d6f | — |
| markup.inline.raw, markup.fenced_code.block.markdown | #a87f3f | — |
| string.regexp | #a87f3f | — |
| punctuation | #5a7a8f | — |
| invalid, invalid.deprecated | #a67c73 | underline |
| source.json string.json support.type.property-name.json, source.json meta.structure.dictionary.json string.json support.type.property-name.json, source.yaml meta.map.key.yaml entity.name.tag.yaml, source.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml, source.yaml meta.map.key.yaml string.quoted.double.yaml entity.name.tag.yaml, source.yaml meta.map.key.yaml string.quoted.single.yaml entity.name.tag.yaml, source.yaml meta.flow.map.key.yaml string.unquoted.plain.in.yaml entity.name.tag.yaml, source.toml variable.other.key.toml, source.toml entity.name.section.key.quoted.toml, text.xml entity.name.tag.xml, text.xml entity.name.tag.localname.xml, text.xml entity.other.attribute-name.xml, text.xml entity.other.attribute-name.localname.xml | #859900 | — |
| source.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta.structure.array.json string.quoted.double.json, source.yaml meta.map.value.yaml string.quoted.double.yaml, source.yaml meta.map.value.yaml string.quoted.single.yaml, source.yaml meta.map.value.yaml string.unquoted.plain.out.yaml, source.yaml meta.block.sequence.yaml string.quoted.double.yaml, source.yaml meta.block.sequence.yaml string.quoted.single.yaml, source.yaml string.unquoted.block.yaml, source.toml string.quoted.double.toml, source.toml string.quoted.single.toml, source.toml string.quoted.double.multiline.toml, source.toml string.quoted.single.multiline.toml, text.xml string.quoted.double.xml, text.xml string.quoted.single.xml, text.xml string.unquoted.cdata.xml | #2aa198 | — |
| source.json constant.numeric.json, source.json constant.numeric, source.yaml constant.numeric.integer.decimal.yaml, source.yaml constant.numeric.integer.octal.yaml, source.yaml constant.numeric.integer.hexadecimal.yaml, source.yaml constant.numeric.float.yaml, source.yaml constant.numeric.float.inf.yaml, source.yaml constant.numeric.float.nan.yaml, source.yaml constant.numeric.yaml-version.yaml, source.yaml constant.numeric.indentation-indicator.yaml, source.toml constant.numeric.toml, source.toml constant.numeric.integer.toml, source.toml constant.numeric.float.toml, source.toml constant.numeric.hex.toml, source.toml constant.numeric.binary.toml, source.toml constant.numeric.octal.toml | #d33682 | — |
| source.json constant.language.json, source.json constant.language, source.yaml constant.language.null.yaml, source.yaml constant.language.boolean.yaml, source.toml constant.language.boolean.toml | #b58900 | — |
| source.json constant.character.escape.json, source.yaml constant.character.escape.yaml, source.yaml constant.character.escape.single-quote.yaml, source.yaml constant.character.escape.unicode.8-bit.yaml, source.yaml constant.character.escape.unicode.16-bit.yaml, source.yaml constant.character.escape.unicode.32-bit.yaml, source.toml constant.character.escape.toml, text.xml constant.character.entity.xml, text.xml constant.character.parameter-entity.xml | #268bd2 | — |
| source.json punctuation.definition.dictionary.begin.json, source.json punctuation.definition.dictionary.end.json, source.json punctuation.definition.array.begin.json, source.json punctuation.definition.array.end.json, source.json punctuation.separator.dictionary.key-value.json, source.json punctuation.separator.dictionary.pair.json, source.json punctuation.definition.string.begin.json, source.json punctuation.definition.string.end.json, source.json punctuation.separator.array.json, source.json punctuation.support.type.property-name.begin.json, source.json punctuation.support.type.property-name.end.json, source.yaml punctuation.separator.map.value.yaml, source.yaml punctuation.definition.map.key.yaml, source.yaml punctuation.definition.block.sequence.item.yaml, source.yaml punctuation.definition.string.begin.yaml, source.yaml punctuation.definition.string.end.yaml, source.toml punctuation.definition.table.begin.toml, source.toml punctuation.definition.table.end.toml, source.toml punctuation.definition.table.array.begin.toml, source.toml punctuation.definition.table.array.end.toml, source.toml keyword.operator.assignment.toml, source.toml punctuation.separator.dot.toml, source.toml punctuation.definition.comment.toml, text.xml punctuation.definition.tag.xml, text.xml punctuation.definition.string.begin.xml, text.xml punctuation.definition.string.end.xml, text.xml punctuation.separator.namespace.xml, text.xml punctuation.definition.constant.xml | #93a1a1 | — |
| source.json invalid.illegal, source.json invalid.deprecated, source.yaml invalid.illegal, source.yaml invalid.deprecated, source.toml invalid.illegal, source.toml invalid.deprecated, text.xml invalid.illegal, text.xml invalid.deprecated | #dc322f | — |
| text.html.basic entity.name.tag, text.html.basic entity.name.tag.html | #72f1b8 | — |
| text.html.basic punctuation.definition.tag, text.html.basic punctuation.definition.tag.html | #36f9f6 | — |
| text.html.basic entity.other.attribute-name, text.html.basic entity.other.attribute-name.html | #fede5d | italic |
| text.html.basic meta.attribute.class.html, text.html.basic entity.other.attribute-name.id.html, text.html.basic entity.other.attribute-name.class.html | #fe4450 | — |
| text.html.basic string.quoted.double.html, text.html.basic string.quoted.single.html | #ff8b39 | — |
| text.html.basic string.unquoted.html | #ff8b39 | — |
| text.html.basic punctuation.separator.key-value.html, text.html.basic punctuation.definition.string.begin.html, text.html.basic punctuation.definition.string.end.html | #b6b1b1 | — |
| text.html.basic comment, text.html.basic comment.block.html | #848bbd | italic |
| text.html.basic punctuation.definition.entity.html, text.html.basic constant.character.entity | #36f9f6 | — |
| text.html.basic invalid.illegal, text.html.basic invalid.deprecated | #fe4450 | — |
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}!`;
}