Blueberg Dark
Publisher: BluebergThemes in package: 1
Simplistic theme with contrasting syntax colors for fast identification of symbols and regions.
Simplistic theme with contrasting syntax colors for fast identification of symbols and regions.
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 |
|---|---|---|
| meta.type.declaration.ts entity.name.type.alias.ts | #C63954 | — |
| string.quoted.single.ts, punctuation.definition.string.begin.ts, punctuation.definition.string.end.ts | #e6db74 | — |
| meta.function.ts meta.definition.function.ts entity.name.function.ts, meta.function.tsx meta.definition.function.tsx entity.name.function.tsx, meta.import.ts meta.block.ts variable.other.readwrite.alias.ts, meta.export.ts meta.block.ts variable.other.readwrite.alias.ts, meta.import.tsx meta.block.tsx variable.other.readwrite.alias.tsx, meta.export.tsx meta.block.tsx variable.other.readwrite.alias.tsx, entity.name.tag.tsx support.class.component.tsx, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx, meta.arrow.tsx meta.tag.tsx entity.name.tag.tsx | #FFC66D | — |
| meta.method.declaration.ts variable.other.object.ts, meta.method.declaration.tsx variable.other.object.tsx, variable.other.constant.ts, variable.other.constant.tsx, meta.method.declaration.ts variable.other.readwrite.ts, meta.method.declaration.tsx variable.other.readwrite.tsx, new.expr.ts meta.objectliteral.ts meta.object.member.ts meta.object-literal.key.ts, new.expr.tsx meta.objectliteral.tsx meta.object.member.tsx meta.object-literal.key.tsx, new.expr.ts meta.objectliteral.ts meta.object.member.ts meta.objectliteral.ts meta.object.member.ts variable.other.readwrite.ts, new.expr.tsx meta.objectliteral.tsx meta.object.member.tsx meta.objectliteral.tsx meta.object.member.tsx variable.other.readwrite.tsx, new.expr.ts meta.objectliteral.ts meta.object.member.ts, new.expr.tsx meta.objectliteral.tsx meta.object.member.tsx, variable.other.readwrite.ts, variable.other.readwrite.tsx, meta.object-literal.key.ts, meta.object-literal.key.tsx, variable.other.constant.property.ts, variable.other.constant.property.tsx, meta.objectliteral.ts meta.object.member.ts variable.other.object.property.ts, meta.objectliteral.tsx meta.object.member.tsx variable.other.object.property.tsx, meta.class.ts variable.other.object.property.ts, meta.class.tsx variable.other.object.property.tsx, meta.block.ts variable.other.object.property.ts, meta.block.tsx variable.other.object.property.tsx, meta.block.ts variable.other.property.ts, meta.class.ts variable.other.property.ts, source.js support.type.object.module.js, source.jsx support.type.object.module.jsx, meta.type.declaration.tsx meta.object.type.tsx meta.field.declaration.tsx meta.definition.property.tsx variable.object.property.tsx, meta.jsx.children.tsx meta.embedded.expression.tsx variable.other.constant.property.tsx, source.tsx meta.var.expr.tsx meta.arrow.tsx meta.block.tsx meta.var.expr.tsx meta.object-binding-pattern-variable.tsx meta.definition.variable.tsx variable.other.constant.tsx, meta.var-single-variable.expr.tsx, meta.block.tsx variable.other.readwrite.tsx, meta.var.expr.tsx variable.other.property.tsx, meta.definition.property.ts variable.object.property.ts, meta.definition.property.tsx variable.object.property.tsx | #FFFFFF | — |
| meta.tag.attributes.tsx keyword.operator.assignment.tsx, meta.tag.attributes.tsx entity.other.attribute-name.tsx | #BABABA | — |
| punctuation.accessor.ts, keyword.operator.type.annotation.ts, punctuation.accessor.tsx, keyword.operator.type.annotation.tsx | #ff5555 | — |
| meta.function.ts meta.block.ts meta.var.expr.ts keyword.operator.assignment.ts, meta.function.tsx meta.block.tsx meta.var.expr.tsx keyword.operator.assignment.tsx | #ff5555 | bold |
| support.type.primitive.ts, support.type.builtin.ts, constant.language.boolean.true.ts, constant.language.boolean.false.ts, support.type.primitive.tsx, support.type.builtin.tsx, constant.language.boolean.true.tsx, constant.language.boolean.false.tsx, meta.objectliteral.ts meta.object.member.ts constant.language.boolean.false.ts, meta.objectliteral.tsx meta.object.member.tsx constant.language.boolean.false.tsx, constant.language.null.ts, constant.language.null.tsx, keyword.operator.new.ts, keyword.operator.new.tsx | #65D9EF | — |
| meta.function.ts meta.block.ts meta.var.expr.ts meta.brace.round.ts | #E8BA35 | — |
| meta.arrow.ts variable.other.readwrite.ts, meta.parameters.tsx meta.parameter.object-binding-pattern.tsx variable.parameter.tsx, meta.jsx.children.tsx meta.embedded.expression.tsx variable.other.readwrite.tsx, variable.other.object.tsx | #FD9721 | — |
| meta.function.ts meta.block.ts meta.block.ts meta.var.expr.ts meta.function-call.ts variable.other.object.property.ts, meta.type.declaration.ts meta.type.paren.cover.ts meta.type.annotation.ts entity.name.type.ts, meta.class.ts entity.name.type.class.ts | #A7E22E | — |
| constant.numeric.decimal.ts | #FFB5E5 | — |
| source.json.comments meta.structure.dictionary.json.comments string.json.comments support.type.property-name.json.comments, source.json support.type.property-name.json | #9876AA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.separator.dictionary.pair.json | #65D9EF | — |
| string.quoted.double.json.comments, string.quoted.double.json, meta.tag.tsx meta.jsx.children.tsx | #6Aa759 | — |
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}!`;
}