Unibronga One Dark
Publisher: UnibrongaThemes in package: 1
Unibronga One Dark Theme
Unibronga One Dark 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, string.comment | # | — |
| constant, entity.name.constant, variable.other.constant, variable.language | #d77531 | — |
| entity, entity.name | #aeb25d | — |
| variable.parameter.function | #e1e4e8 | — |
| entity.name.tag | #ffb732 | — |
| entity.name.tag.html | #ff7010 | — |
| entity.other.attribute-name.html | #FCCA46 | — |
| string.quoted.double.html | #fff1ca | — |
| storage.type.function.js, meta.function.js, source.js, meta.embedded.block.html | #FCCA46 | — |
| entity.name.function.js, meta.function-call.js, meta.embedded.block.html | #9CB44D | — |
| variable.parameter.js, meta.parameters.js, meta.function.js, meta.embedded.block.html | #F9C74F | — |
| punctuation.section.property-list.begin.bracket.curly.css, punctuation.section.property-list.end.bracket.curly.css, meta.property-list.css, entity.other.attribute-name.class.css, meta.selector.css, source.css | #FCCA46 | — |
| punctuation.separator.key-value.css | #fff7e2 | — |
| meta.property-name.css | #79B8FF | — |
| punctuation.terminator.rule.css, punctuation.section.function.begin.bracket.round.css, punctuation.section.function.end.bracket.round.css, support.function.misc.css, meta.function.color.css, constant.other.color.rgb-value.hex.css, keyword.other.unit.px.css, constant.numeric.css, support.constant.font-name.css, support.constant.property-value.css, meta.property-value.css, meta.property-list.css, source.css | #9CB44D | — |
| variable.css, meta.property-list.css, source.css | #F94144 | — |
| variable.parameter.misc.css, variable.argument.css, meta.function.variable.css | #9CB44D | — |
| punctuation.definition.tag | #F94144 | — |
| comment.line.double-slash.js | #6A737D | — |
| storage.type.class.js, meta.class.js, keyword.operator.new.js, new.expr.js, keyword.control.flow.js, meta.block.js, meta.function.js, storage.type.function.js, meta.var.expr.js, source.js | #F94144 | — |
| entity.other.inherited-class.js, entity.name.type.class.js, storage.type.js, meta.var.expr.js, source.js | #FF791A | — |
| variable.other.constant.js, variable.other.readwrite.js, meta.definition.variable.js, meta.var-single-variable.expr.js, meta.var.expr.js, source.js | #FCCA46 | — |
| meta.object-literal.key.js, meta.object.member.js, meta.objectliteral.js, constant.numeric.decimal.js, constant.numeric.js, meta.var.expr.js, source.js | #FFF1CA | — |
| meta.brace.square.js, meta.brace.curly.js, meta.brace.round.js, meta.brace.js, meta.var.expr.js, source.js | #FCCA46 | — |
| keyword.operator.relational.js, keyword.operator.increment.js, keyword.operator.arithmetic.js, keyword.operator.logical.js, keyword.operator.assignment.js, string.template.js, string.quoted.single.js, new.expr.js, string.quoted.double.js, meta.block.js, meta.var.expr.js, source.js | #FFF1CA | — |
| support.type.primitive.ts, variable.other.object.js, meta.function-call.js, source.js | #FCCA46 | — |
| meta.return.type.ts, meta.array.literal.js, keyword.control.loop.js, meta.block.js, meta.function.js, source.js | #79B8FF | — |
| comment.block.ts, comment.block.documentation.ts, comment.line.double-slash.ts | #6A737D | — |
| variable.object.property.ts, meta.definition.property.ts, meta.field.declaration.ts, storage.type.class.ts, meta.class.ts, keyword.operator.new.ts, new.expr.ts, keyword.control.flow.ts, meta.block.ts, meta.function.ts, storage.type.function.ts, meta.var.expr.ts, source.ts | #F94144 | — |
| storage.type.property.ts, entity.other.inherited-class.ts, entity.name.type.class.ts, storage.type.ts, meta.var.expr.ts, source.ts | #FF791A | — |
| variable.other.constant.ts, meta.definition.variable.ts, meta.var-single-variable.expr.ts, meta.var.expr.ts, source.ts | #FCCA46 | — |
| entity.name.type.ts, punctuation.definition.typeparameters.begin.ts, punctuation.definition.typeparameters.end.ts, entity.name.type.interface.ts, variable.other.readwrite.ts, meta.object-literal.key.ts, meta.object.member.ts, meta.objectliteral.ts, constant.numeric.decimal.ts, constant.numeric.ts, meta.var.expr.ts, source.ts | #FFF1CA | — |
| entity.name.function.ts, variable.other.property.ts, variable.parameter.ts, meta.brace.square.ts, meta.brace.curly.ts, meta.brace.round.ts, meta.brace.ts, meta.var.expr.ts, source.ts | #FCCA46 | — |
| keyword.operator.relational.ts, keyword.operator.increment.ts, keyword.operator.arithmetic.ts, keyword.operator.logical.ts, keyword.operator.assignment.ts, string.template.ts, string.quoted.single.ts, new.expr.ts, string.quoted.double.ts, meta.block.ts, meta.var.expr.ts, source.ts | #FFF1CA | — |
| meta.method.declaration.ts, variable.language.this.ts, variable.other.object.ts, meta.function-call.ts, source.ts | #9CB44D | — |
| meta.array.literal.ts, keyword.control.loop.ts, meta.block.ts, meta.function.ts, source.ts | #79B8FF | — |
| storage.modifier.ts | #8BBAAD | — |
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}!`;
}