BeaDark
Publisher: ballombertThemes in package: 7
Calm ADHD-friendly VS Code theme
Calm ADHD-friendly VS Code 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 | #647487 | — |
| keyword, storage, storage.modifier | #2E7ED6 | — |
| keyword.operator, punctuation, meta.brace, meta.delimiter | #3B4A5B | — |
| string, string.quoted, string.template | #3F9B62 | — |
| constant.numeric, constant.language, constant.character, constant.other | #7B67BF | — |
| invalid, invalid.illegal, invalid.deprecated | #C84F65 | — |
| entity.name.function, support.function, meta.function-call, variable.function | #2F9F95 | — |
| entity.name.type, entity.name.class, support.type, support.class, storage.type | #3D95A8 | — |
| variable, meta.definition.variable.name, support.variable, variable.other.readwrite | #1E2936 | — |
| variable.parameter, meta.function.parameters | #3B4A5B | — |
| variable.language.this, variable.language.self | #3D95A8 | — |
| markup.heading, markup.heading entity.name | #2E7ED6 | bold |
| markup.bold, markup.italic, markup.underline, markup.strikethrough | #3B4A5B | — |
| markup.link, markup.underline.link, markup.inline.raw | #2F9F95 | — |
| markup.fenced_code | #1E2936 | — |
| markup.inserted, punctuation.definition.inserted | #2F9F95 | — |
| markup.deleted, punctuation.definition.deleted | #C84F65 | — |
| markup.changed | #3D95A8 | — |
| meta.diff.header | #3B4A5B | — |
| entity.name.tag, punctuation.definition.tag | #2E7ED6 | — |
| entity.other.attribute-name | #3B4A5B | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, meta.selector | #3D95A8 | — |
| support.type.property-name.css, support.type.property-name, variable.css, variable.scss, variable.other.less | #1E2936 | — |
| variable.css, variable.argument.css | #2E7ED6 | — |
| support.type.property-name.json, meta.structure.dictionary.key.json string.quoted.double, meta.object-literal.key, meta.object-literal.key entity.name.function | #2E7ED6 | — |
| meta.structure.dictionary.value.json string.quoted.double | #3F9B62 | — |
| constant.numeric.json, constant.language.json | #7B67BF | — |
| punctuation.separator.dictionary.key-value.json, punctuation.separator.array.json | #3B4A5B | — |
| entity.name.tag.yaml | #2E7ED6 | — |
| string.quoted.single.yaml, string.quoted.double.yaml, string.unquoted.plain.out.yaml | #3F9B62 | — |
| constant.language.boolean.yaml, constant.language.null.yaml | #7B67BF | — |
| constant.numeric.yaml | #7B67BF | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml, punctuation.definition.anchor.yaml, punctuation.definition.alias.yaml | #7B67BF | — |
| punctuation.definition.block.sequence.item.yaml | #3B4A5B | — |
| punctuation.definition.document.begin.yaml, punctuation.definition.document.end.yaml | #647487 | — |
| markup.heading.atx.1.markdown, heading.1.markdown | #2E7ED6 | bold |
| markup.heading.atx.2.markdown, heading.2.markdown | #2F9F95 | bold |
| markup.heading.atx.3.markdown, markup.heading.atx.4.markdown, markup.heading.atx.5.markdown, markup.heading.atx.6.markdown | #3B4A5B | bold |
| markup.bold.markdown | #1E2936 | bold |
| markup.italic.markdown | #3B4A5B | italic |
| markup.inline.raw.string.markdown, code.markdown | #2F9F95 | — |
| markup.fenced_code.block.markdown | #1E2936 | — |
| fenced_code.block.language.markdown | #3D95A8 | — |
| markup.quote.markdown | #647487 | — |
| punctuation.definition.list.begin.markdown | #2E7ED6 | — |
| meta.link.inline.markdown, string.other.link.title.markdown | #2F9F95 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #2E7ED6 | — |
| string.other.link.description.markdown | #3B4A5B | — |
| meta.separator.markdown | #C7D5E4 | — |
| meta.type.annotation, meta.return-type | #3D95A8 | — |
| support.type.primitive, support.type.builtin | #3D95A8 | — |
| entity.name.type.module, entity.name.namespace, entity.name.type.interface | #3D95A8 | — |
| variable.other.constant | #7B67BF | — |
| variable.other.object.property, meta.property.object | #2E7ED6 | — |
| meta.decorator, punctuation.decorator | #7B67BF | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #2E7ED6 | — |
| storage.type.function.arrow | #2E7ED6 | — |
| punctuation.accessor, punctuation.separator.key-value | #3B4A5B | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #2E7ED6 | — |
| variable.language.special.self.python, variable.parameter.function.language.special.cls.python | #3D95A8 | — |
| support.function.magic.python, entity.name.function.magic.python | #2F9F95 | — |
| entity.name.function.decorator.python, meta.function.decorator.python | #7B67BF | — |
| keyword.operator.logical.python | #2E7ED6 | — |
| support.type.python | #3D95A8 | — |
| variable.other.constant.python | #7B67BF | — |
| punctuation.definition.interpolation.begin.python, punctuation.definition.interpolation.end.python | #2E7ED6 | — |
| entity.name.lifetime.rust, storage.modifier.lifetime.rust, punctuation.definition.lifetime.rust | #7B67BF | — |
| meta.macro.rust, support.macro.rust, entity.name.function.macro.rust | #2F9F95 | — |
| meta.attribute.rust, punctuation.definition.attribute.rust | #7B67BF | — |
| entity.name.type.alias.rust, entity.name.type.trait.rust | #3D95A8 | — |
| storage.modifier.unsafe.rust, keyword.other.unsafe.rust | #C84F65 | — |
| meta.path.rust | #1E2936 | — |
| support.function.builtin.go | #2F9F95 | — |
| entity.name.package.go | #3D95A8 | — |
| entity.name.type.go | #3D95A8 | — |
| keyword.channel.go, keyword.const.go, keyword.var.go, keyword.type.go | #2E7ED6 | — |
| constant.other.placeholder.go | #7B67BF | — |
| entity.name.type.class.cs, entity.name.type.struct.cs, entity.name.type.enum.cs, entity.name.type.interface.cs, entity.name.type.delegate.cs, source.cs storage.type | #3D95A8 | — |
| entity.name.type.attribute.cs, meta.attribute.cs | #7B67BF | — |
| comment.block.documentation.cs, comment.xml.doc.cs | #647487 | — |
| meta.preprocessor.cs, keyword.preprocessor.cs | #7B67BF | — |
| constant.language.null.cs | #7B67BF | — |
| punctuation.definition.interpolation.begin.cs, punctuation.definition.interpolation.end.cs | #2E7ED6 | — |
| keyword.query.cs | #2E7ED6 | — |
| string.regexp, constant.regexp, keyword.control.anchor.regexp | #7B67BF | — |
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}!`;
}