Midnight Mirage Theme
Publisher: PuszkarekThemes in package: 1
It provides a comfortable and eye-catching coding experience that is easy on the eyes
It provides a comfortable and eye-catching coding experience that is easy on the eyes
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 |
|---|---|---|
| block.scope.end, block.scope.begin, meta.tag, meta.brace.square, meta.template.expression, punctuation.separator.list.comma, punctuation.separator.key-value, punctuation.separator.delimiter, function.brace, variable.parameter.function, support.type.property-name, support.constant.property-value, invalid, token.package | #e1dbdb | — |
| rgb-value | #f286c4 | — |
| punctuation.section.embedded, variable.interpolation, punctuation.definition.string.begin, punctuation.definition.string.end | #fff672 | — |
| punctuation.quasi.element, punctuation.section.embedded, punctuation.definition.constant, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #f286c4 | — |
| comment, punctuation.definition.comment | #9ba0a7 | italic |
| comment.line.double-slash,comment.block.documentation | — | italic |
| entity.other.attribute-name, entity.other.attribute-name, variable.parameter, variable.language.super | — | italic |
| meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff | #a1ff77 | — |
| punctuation.definition.bold | #9188e3 | — |
| string.regexp | #9188e3 | — |
| keyword, support.variable.dom, support.variable.property.dom, support.type.object.dom, support.variable.property.process, support.constant.json, support.constant.font-name, support.constant.property.math, constant.character.escape, constant.character.entity, token.storage, storage | #f286c4 | — |
| entity.name.function, support.function, variable.function, keyword.other.special-method | #a1ff77 | — |
| string | #fff672 | — |
| constant, entity.name.namespace, variable.language, support.constant.math, support.type.primitive, entity.name.type.module, support.module.node, support.type.object.module, support.module.node | #9188e3 | — |
| variable, meta.object-literal.key, support.variable.property, support.variable.object.process, support.variable.object.node, support.type.object.console | #f2f3f5 | — |
| keyword.operator.assignment.compound, keyword.operator.assignment | #f286c4 | — |
| variable.other.property, variable.parameter, constant.other.character-class.regexp, constant.other.symbol, support.function, text.variable, text.bracketed | #ffc280 | — |
| support.class, entity.name.type.namespace, entity.name.type.class, entity.name.class, variable.other.class, entity.other.inherited-class, entity.name.type, support.type.primitive | #9ef7ff | — |
| support.type.builtin | #9b88e3 | — |
| source.json meta.structure.dictionary.json > string.quoted.json, support.type.property-name.json | #ffc280 | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json, source.json meta.structure.array.json > value.json > string.quoted.json, source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation, source.json meta.structure.array.json > value.json > string.quoted.json > punctuation | #fff672 | — |
| entity.name.tag, meta.selector | #f286c4 | — |
| entity.other.attribute-name | #a7ff71 | — |
| keyword.other.template.begin, keyword.other.template.end, keyword.other.substitution.begin, keyword.other.substitution.end | #fff672 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #9CDCFE | — |
| entity.other.attribute-name.id, source.css entity.other.attribute-name.class.css, source.sass entity.other.attribute-name.class.css, source.scss entity.other.attribute-name.class.css, source.less entity.other.attribute-name.class.css, source.stylus entity.other.attribute-name.class.css, source.postcss entity.other.attribute-name.class.css | #a7ff71 | — |
| selector.css, selector.scss, selector.sass, entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #f286c4 | — |
| keyword.operator.css, keyword.operator.scss, keyword.operator.less, support.type.vendored.property-name.css, support.type.vendored.property-name.scss, support.constant.property-value.scss, support.constant.property-value.css, support.constant.color.css, support.constant.color.scss | #9b88e3 | — |
| markup.heading | #ffc280 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #a1ff77 | — |
| punctuation.definition.italic, todo.emphasis, todo.bold, markup.italic, markup.bold | #f286c4 | — |
| comment markup.link | #9ba0a7 | — |
| markup.changed.diff | #9188e3 | — |
| markup.inserted.diff | #fff672 | — |
| markup.deleted.diff | #ffc280 | — |
| token.info-token | #a1ff77 | — |
| token.warn-token | #f286c4 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #f286c4 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}