Umbra Black
Publisher: AuraBoxThemes in package: 1
OLED black/gray theme with JetBrains Islands–inspired JS/TS syntax, Symbols file icons, and matching outline product icons.
OLED black/gray theme with JetBrains Islands–inspired JS/TS syntax, Symbols file icons, and matching outline product icons.
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, comment.line, comment.block, punctuation.definition.comment, comment.line.double-slash.js, comment.line.double-slash.ts, comment.block.js, comment.block.ts | #7A7E85 | italic |
| comment.block.documentation, comment.block.documentation.js, comment.block.documentation.ts | #5F826B | italic |
| storage.type.class.jsdoc, entity.name.type.instance.jsdoc, variable.other.jsdoc, entity.name.type.instance.jsdoc | #67A37C | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.single.js, string.quoted.double.js, string.quoted.single.ts, string.quoted.double.ts, string.template, string.template.js, string.template.ts | #6AAB73 | — |
| string.regexp, string.regexp.js, string.regexp.ts, constant.other.character-class.regexp, keyword.operator.quantifier.regexp | #42C3D4 | — |
| constant.character.escape, constant.character.escape.js, constant.character.escape.ts, constant.other.placeholder | #CF8E6D | — |
| punctuation.definition.template-expression, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.end.js, punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts, meta.template.expression | #CF8E6D | — |
| constant.numeric, constant.numeric.decimal, constant.numeric.hex, constant.numeric.binary, constant.numeric.octal, constant.numeric.decimal.js, constant.numeric.decimal.ts | #2AACB8 | — |
| constant.language.boolean, constant.language.boolean.true, constant.language.boolean.false, constant.language.null, constant.language.undefined, constant.language.nan, constant.language.infinity, constant.language | #CF8E6D | — |
| keyword, keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.control.switch, keyword.control.trycatch, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default, keyword.operator.new, keyword.operator.expression, keyword.operator.expression.delete, keyword.operator.expression.instanceof, keyword.operator.expression.in, keyword.operator.expression.of, keyword.operator.expression.typeof, keyword.operator.expression.void, keyword.operator.expression.keyof, keyword.operator.expression.infer, keyword.operator.expression.is, keyword.other, keyword.other.debugger | #CF8E6D | — |
| storage.type, storage.type.function, storage.type.class, storage.type.interface, storage.type.type, storage.type.enum, storage.type.namespace, storage.type.module, storage.modifier, storage.modifier.async, storage.modifier.static, storage.modifier.readonly, storage.modifier.declare, storage.modifier.abstract, storage.modifier.export, meta.class.decorator | #CF8E6D | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.assignment.compound, keyword.operator.comparison, keyword.operator.logical, keyword.operator.relational, keyword.operator.ternary, keyword.operator.optional, keyword.operator.nullish-coalescing, keyword.operator.spread, keyword.operator.rest, punctuation, punctuation.accessor, punctuation.accessor.optional, punctuation.separator, punctuation.terminator, punctuation.separator.comma, meta.brace, meta.brace.round, meta.brace.square, meta.brace.curly | #F0F0F0 | — |
| entity.name.function, entity.name.function.js, entity.name.function.ts, support.function, support.function.js, support.function.ts, meta.function-call, meta.function-call.method, meta.definition.function, meta.definition.method | #56A8F5 | — |
| entity.name.function.member, entity.name.function.member.js, entity.name.function.member.ts | #57AAF7 | — |
| entity.name.function.member.static | #57AAF7 | italic |
| entity.name.type.class, entity.name.class, entity.name.class.js, entity.name.class.ts, support.class, support.class.js, support.class.ts, entity.other.inherited-class, entity.other.inherited-class.js, entity.other.inherited-class.ts | #BCBEC4 | — |
| entity.name.type, entity.name.type.js, entity.name.type.ts, entity.name.type.alias, entity.name.type.alias.ts, support.type, support.type.primitive, support.type.builtin, support.type.primitive.ts | #BCBEC4 | — |
| entity.name.type.interface, entity.name.type.interface.ts, entity.name.type.parameter, entity.name.type.parameter.ts, meta.type.parameters, meta.type.parameters.ts | #16BAAC | — |
| entity.name.type.enum, entity.name.type.enum.ts, entity.name.type.module, entity.name.type.namespace | #BCBEC4 | — |
| variable, variable.other, variable.other.readwrite, variable.other.object, variable.other.readwrite.js, variable.other.readwrite.ts, meta.definition.variable, meta.definition.variable.js, meta.definition.variable.ts | #F0F0F0 | — |
| variable.parameter, variable.parameter.js, variable.parameter.ts, meta.parameters, meta.function.parameters | #F0F0F0 | — |
| variable.other.constant, variable.other.constant.js, variable.other.constant.ts, variable.other.enummember, variable.other.enummember.ts, constant.other, support.constant, support.variable.object.process, support.variable.object.node | #C77DBB | italic |
| variable.other.property, variable.other.object.property, variable.object.property, meta.object-literal.key, meta.object-literal.key.js, meta.object-literal.key.ts, meta.definition.property, support.variable.property, support.variable.property.js, support.variable.property.ts, support.variable.property.dom | #C77DBB | — |
| variable.other.property.static | #C77DBB | italic |
| variable.language, variable.language.this, variable.language.super, variable.language.arguments, variable.language.this.js, variable.language.this.ts, variable.language.super.js, variable.language.super.ts | #CF8E6D | — |
| variable.other.readwrite.alias, meta.import variable.other.readwrite, meta.import variable.other.readwrite.alias, meta.import.ts variable.other.readwrite, meta.import.js variable.other.readwrite | #F0F0F0 | — |
| string.quoted.single.js meta.import, string.quoted.double.js meta.import, string.quoted.single.ts meta.import, string.quoted.double.ts meta.import | #6AAB73 | — |
| meta.decorator, meta.decorator.js, meta.decorator.ts, punctuation.decorator, punctuation.decorator.ts, entity.name.function.decorator, entity.name.function.decorator.ts, storage.type.annotation | #B3AE60 | — |
| support.class.component, support.class.component.js, support.class.component.jsx, support.class.component.ts, support.class.component.tsx, entity.name.tag.jsx, entity.name.tag.tsx | #2FBAA3 | — |
| entity.name.tag, entity.name.tag.js, punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, punctuation.definition.tag.begin.jsx, punctuation.definition.tag.end.jsx, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx | #D5B778 | — |
| entity.other.attribute-name, entity.other.attribute-name.js, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, meta.tag.attributes | #F0F0F0 | — |
| support.type.object.module, support.variable.object.console, support.class.promise, support.class.console, support.type.object.console | #BCBEC4 | — |
| support.type.property-name.json | #C77DBB | — |
| markup.heading, entity.name.section.markdown | #56A8F5 | bold |
| markup.underline.link, string.other.link | #56A8F5 | — |
| markup.inline.raw, markup.fenced_code | #6AAB73 | — |
| invalid, invalid.illegal | #F75464 | — |
| markup.inserted | #6AAB73 | — |
| markup.deleted | #FFA198 | — |
| markup.changed | #E8A33E | — |
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}!`;
}