Brainstorm Theme
Publisher: Rafael Mendonça VazThemes in package: 1
Brainstorm Dark Theme for VSCode.
Brainstorm Dark Theme for VSCode.
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, constant, entity, keyword, meta, storage, string, support, variable | — | italic |
| — | #b392f0 | — |
| meta.attribute.python, support.function.builtin.python, entity.name.function.c | #b392f0 | — |
| support.function, keyword.operator.accessor, meta.group.braces.round.function.arguments, meta.template.expression, markup.fenced_code meta.embedded.block, string | #e4e4e7 | — |
| emphasis | — | italic |
| strong, markup.heading.markdown, markup.bold.markdown | #ff4453 | bold |
| markup.italic.markdown | — | italic |
| meta.link.inline.markdown | #e4e4e7 | underline |
| markup.fenced_code, markup.inline | #c59d9d | — |
| comment, string.quoted.docstring.multi | #a1a1aa | — |
| constant.numeric, constant.other.placeholder, constant.character.format.placeholder, meta.property-value, keyword.other.unit, keyword.other.template, entity.name.tag.yaml, entity.other.attribute-name, variable.object.property, variable.other.property.go, meta.object-literal.key, meta.indexed-name.python, keyword.control.directive.include.c, punctuation.definition.directive.c | #06d6d6 | — |
| keyword, storage.modifier, storage.type, storage.control.clojure, entity.name.function.clojure, support.function.node, punctuation.separator.key-value, punctuation.definition.template-expression, support.type.primitive.prisma, punctuation.definition.entity, constant.character.entity | #f5a05b | — |
| variable.parameter.function, variable.other.readwrite, variable.parameter, meta.parameters, variable.other.property, variable.other.assignment, meta.definition.variable, meta.var-single-variable.expr, entity.name.type.class, entity.other.inherited-class, variable.other, support, constant.character.format.placeholder.other.python, constant.other.placeholder.c | #e4e4e7 | — |
| meta.function-call, meta.instance.constructor, entity.name.function, constant.keyword.clojure, constant.language.boolean, constant.language.json, support.class.component | #6cb2fd | — |
| constant.language, variable.language.this, variable.other.object, variable.other.class, variable.other.constant, meta.property-name, string.other.link.title.markdown, entity.name.type, variable.language.relations.prisma, variable.prop.css, support.type.python, constant.character.escape.c, support.type.primitive | #f580d7 | — |
| string.quoted, string.regexp, string.interpolated, string.template, string.unquoted.plain.out.yaml, keyword.other.template | #95bb60 | — |
| entity.name.tag, variable.parameter.function-call.python, storage.type.built-in.primitive.c | #fc5a5a | — |
| entity.name.function.decorator.python, punctuation.definition.decorator.python, string.quoted.other.lt-gt.include.c | #c2bf23 | — |
| token.info-token | #316bcd | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #cd3131 | — |
| token.debug-token | #800080 | — |
| punctuation.definition.arguments, punctuation.definition.dict, punctuation.separator, meta.function-call.arguments, punctuation.definition.parameters, punctuation.definition.block, punctuation.definition.square, punctuation.definition.begin.bracket.curly, punctuation.definition.typeparameters, punctuation.definition.tag, punctuation.definition.binding-pattern.object, punctuation.accessor, meta.var.expr, meta.block, source.python | #e4e4e7 | — |
| markup.underline.link | #e4e4e7 | — |
| beginning.punctuation.definition.list.markdown | #FF7A84 | — |
| punctuation.definition.metadata.markdown | #e4e4e7 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #79b8ff | — |
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}!`;
}