Midnight Ember
Publisher: Waqar Ali SiyalThemes in package: 2
A premium dark theme with warm ember accents, teal highlights, and a rich midnight base. Built for developers who live in the dark.
A premium dark theme with warm ember accents, teal highlights, and a rich midnight base. Built for developers who live in the dark.
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 | #484F58 | italic |
| comment.block.documentation, comment.block.javadoc, string.quoted.docstring | #6E7681 | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.delete, keyword.operator.typeof, keyword.operator.void, keyword.operator.instanceof, keyword.operator.in, keyword.operator.of, keyword.operator.ternary | #E8964F | — |
| keyword.control.conditional, keyword.control.loop, keyword.control.flow, keyword.control.trycatch, keyword.control.switch, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default | #E8964F | italic |
| storage, storage.type, storage.modifier | #E8964F | — |
| storage.type.function, storage.type.class, storage.type.interface, storage.type.enum, storage.type.type | #E8964F | italic |
| entity.name.function, meta.function-call entity.name.function, support.function, meta.function-call, meta.method-call | #82CFBE | — |
| variable.parameter, meta.parameter, meta.function.parameters | #D2A8FF | italic |
| variable, variable.other, variable.other.readwrite, meta.variable | #C9D1D9 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #C9D1D9 | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #FF9E64 | italic |
| variable.other.constant, constant.other, support.constant | #79C0FF | — |
| string, string.quoted, string.template, string.quoted.single, string.quoted.double, string.quoted.triple | #F7768E | — |
| string.template meta.template.expression, punctuation.definition.template-expression, punctuation.section.embedded | #E8964F | — |
| constant.character.escape | #7DCFFF | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary | #FF9E64 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #FF9E64 | — |
| entity.name.type, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.alias, entity.name.type.module, support.class, support.type | #7DCFFF | — |
| entity.name.type.parameter | #BB9AF7 | — |
| entity.other.inherited-class | #7DCFFF | italic |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.relational, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.decrement | #7DCFFF | — |
| keyword.operator.spread, keyword.operator.rest | #E8964F | bold |
| storage.type.function.arrow, keyword.operator.arrow | #E8964F | — |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator, meta.brace, punctuation.accessor, punctuation.definition.block, punctuation.definition.parameters, punctuation.section | #8B949E | — |
| punctuation.definition.string, punctuation.definition.string.begin, punctuation.definition.string.end | #F7768E | — |
| meta.decorator, meta.decorator entity.name.function, punctuation.decorator | #FFB86C | italic |
| entity.name.tag, punctuation.definition.tag | #FF7B72 | — |
| entity.other.attribute-name | #E8964F | italic |
| support.class.component, entity.name.tag support.class.component | #7DCFFF | — |
| constant.character.entity, punctuation.definition.entity | #FF9E64 | — |
| support.type.property-name.css, meta.property-name.css | #7DCFFF | — |
| support.constant.property-value.css, meta.property-value.css | #FF9E64 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css | #82CFBE | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #BB9AF7 | italic |
| keyword.other.unit.css, keyword.other.unit | #FF9E64 | — |
| constant.other.color.rgb-value.hex.css, punctuation.definition.constant.css | #F7768E | — |
| support.type.property-name.json, string.json support.type.property-name.json | #7DCFFF | — |
| string.quoted.double.json | #F7768E | — |
| heading.1.markdown entity.name, heading.2.markdown entity.name, heading.3.markdown entity.name, heading.4.markdown entity.name, heading.5.markdown entity.name, heading.6.markdown entity.name, markup.heading | #E8964F | bold |
| markup.bold | #C9D1D9 | bold |
| markup.italic | #C9D1D9 | italic |
| markup.underline.link, string.other.link | #7DCFFF | — |
| markup.inline.raw, markup.fenced_code, markup.raw | #82CFBE | — |
| beginning.punctuation.definition.list | #E8964F | — |
| markup.quote | #484F58 | italic |
| string.regexp | #F7768E | — |
| punctuation.definition.group.regexp, punctuation.definition.character-class.regexp, keyword.operator.quantifier.regexp, keyword.operator.or.regexp, keyword.control.anchor.regexp | #E8964F | — |
| entity.name.function.decorator.python, meta.function.decorator.python | #FFB86C | italic |
| variable.parameter.function.language.special.self.python, variable.language.special.self.python | #FF9E64 | italic |
| meta.fstring.python, storage.type.string.python | #F7768E | — |
| support.function.magic.python | #82CFBE | italic |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default | #E8964F | italic |
| meta.type.annotation entity.name.type, meta.return.type entity.name.type | #7DCFFF | — |
| support.type.object.console, support.type.object.module, entity.name.type.module, support.type.object.dom | #79C0FF | — |
| support.function.dom, support.function.console | #82CFBE | — |
| storage.type.annotation.dart | #FFB86C | italic |
| variable.parameter.dart | #FFA657 | italic |
| variable.other.normal.shell, variable.other.special.shell, variable.other.positional.shell | #79C0FF | — |
| support.function.builtin.shell, entity.name.command.shell | #82CFBE | — |
| entity.name.tag.yaml, support.type.property-name.toml | #7DCFFF | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml, keyword.control.flow.block-scalar.literal.yaml, keyword.control.flow.block-scalar.folded.yaml | #E8964F | — |
| storage.modifier.lifetime.rust, entity.name.type.lifetime.rust | #BB9AF7 | italic |
| entity.name.function.macro.rust, entity.name.function.macro.rules.rust | #FF7B72 | — |
| entity.name.package.go | #C9D1D9 | — |
| support.function.builtin.go | #82CFBE | italic |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql | #E8964F | |
| markup.inserted | #3FB950 | — |
| markup.deleted | #FF7B72 | — |
| markup.changed | #E8964F | — |
| support.function, support.function.misc | #82CFBE | — |
| support.type, support.class | #7DCFFF | — |
| support.constant | #79C0FF | — |
| support.variable | #79C0FF | — |
| invalid, invalid.illegal | #FF7B72 | strikethrough |
| invalid.deprecated | #FFB86C | strikethrough |
| emphasis | — | italic |
| strong | — | bold |
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}!`;
}