Melayang Dark Theme
Publisher: ndhaniffThemes in package: 4
Readable VS Code themes with Melayang's blue, pink, and green identity in Dark, Midnight, Eclipse, and Light variants.
Readable VS Code themes with Melayang's blue, pink, and green identity in Dark, Midnight, Eclipse, and Light variants.
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 | #8292a5 | italic |
| invalid, invalid.illegal, invalid.deprecated, invalid.broken, invalid.unimplemented | #f39098 | — |
| keyword, keyword.control, keyword.control.flow, keyword.control.import, keyword.control.return, keyword.control.conditional, keyword.control.loop, keyword.control.exception, keyword.other, storage, storage.modifier | #7ddaf2 | — |
| keyword.operator, keyword.operator.expression, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, keyword.operator.relational, keyword.operator.increment, keyword.operator.decrement | #7ddaf2 | — |
| punctuation, meta.brace, meta.delimiter, punctuation.separator, punctuation.terminator, punctuation.accessor | #97a8bd | — |
| string, markup.inline.raw, markup.fenced_code.block.markdown | #afdf8f | — |
| punctuation.definition.string, punctuation.quasi.element | #afdf8f | — |
| constant.character.escape, constant.character.string.escape | #7ddaf2 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded.begin, punctuation.section.embedded.end | #7ddaf2 | — |
| meta.template.expression, source.ts.embedded, source.js.embedded | #e7f0f8 | — |
| string.regexp, constant.other.character-class.regexp | #8ce4d0 | — |
| keyword.operator.quantifier.regexp, keyword.operator.or.regexp, punctuation.definition.group.regexp, punctuation.definition.character-class.regexp | #7ddaf2 | — |
| constant.numeric, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language, constant.character, constant.other.symbol, constant.other.color, support.constant | #f7b7c8 | — |
| variable.other.constant, variable.other.enummember, support.constant.property-value, support.constant.color, support.constant.color.w3c-standard-color-name | #f7b7c8 | — |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.interface, entity.name.enum, entity.name.type.alias, support.type, support.class, storage.type, storage.type.annotation, storage.type.primitive, storage.type.generic, keyword.other.type | #c6b3f8 | — |
| entity.name.type.parameter, variable.other.generic-type | #7ddaf2 | — |
| entity.name.namespace, entity.name.module, entity.name.package, entity.name.scope-resolution, support.module, support.type.module | #d2e5f7 | — |
| entity.name.function, entity.name.method, support.function, support.function.any-method, variable.function, meta.function-call, meta.method-call, meta.function.method, meta.definition.method, meta.function, meta.method | #f5f9fd | — |
| support.function.builtin, support.function.console | #eef5fb | — |
| entity.name.decorator, meta.function.decorator, meta.annotation, punctuation.definition.annotation, support.type.property-name.annotation, support.token.decorator.python | #7ddaf2 | — |
| variable, meta.definition.variable.name, entity.name.variable, support.variable, meta.object-literal.key, meta.definition.property | #e7f0f8 | — |
| variable.parameter, meta.parameter, function.parameter | #e4cd97 | — |
| variable.other.property, support.variable.property, entity.name.variable.field, meta.property-name, support.type.property-name, support.type.property-name.json, meta.mapping.key, meta.mapping.key.yaml | #e7f0f8 | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super, support.variable.magic | #7ddaf2 | italic |
| entity.name.tag, entity.name.tag.custom, entity.name.tag.localname, meta.tag | #7ddaf2 | — |
| punctuation.definition.tag, meta.tag punctuation | #97a8bd | — |
| entity.other.attribute-name, support.type.property-name.css | #f7b7c8 | — |
| meta.selector, entity.other.attribute-name.class, entity.other.attribute-name.id, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #7ddaf2 | — |
| source.json meta.structure.dictionary > string.quoted.json, source.json meta.structure.dictionary > string.quoted.json > punctuation.string, support.type.property-name.json, entity.name.tag.yaml | #e7f0f8 | — |
| markup.heading, entity.name.section | #c6b3f8 | — |
| markup.bold, punctuation.definition.bold | #f7b7c8 | — |
| markup.italic, punctuation.definition.italic | #7ddaf2 | italic |
| markup.underline.link, markup.underline.link.image, string.other.link.title, string.other.link.description | #7ddaf2 | — |
| markup.quote, punctuation.definition.list | #8292a5 | — |
| markup.inserted, markup.inserted.diff | #afdf8f | — |
| markup.deleted, markup.deleted.diff | #f39098 | — |
| markup.changed, markup.changed.diff | #7ddaf2 | — |
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}!`;
}