Moonlight
Publisher: atomiksThemes in package: 4
A VS Code theme with bubblegum colors on a moonlit background.
A VS Code theme with bubblegum colors on a moonlit background.
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 |
|---|---|---|
| — | #c8d3f5 | — |
| comment, punctuation.definition.comment | #7a88cf | normal |
| variable, string constant.other.placeholder | #c8d3f5 | — |
| constant.other.php | #ffc777 | — |
| constant.other.color | #c8d3f5 | — |
| text, meta.jsx.children | #c8d3f5 | — |
| invalid, invalid.illegal | #ff5370 | — |
| invalid.deprecated | #af9fff | — |
| keyword, storage.type, storage.modifier | #af9fff | normal |
| keyword.control.flow | #78dbff | normal |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default, constant.other.color, punctuation, meta.tag, meta.block, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, keyword.other.template, keyword.other.substitution, keyword.operator, meta.brace, string.other.begin.code, string.other.end.code | #78dbff | normal |
| punctuation.definition.template-expression | #ff757f | — |
| keyword.operator.logical, keyword.operator.comparison | #af9fff | — |
| keyword.operator.spread, keyword.operator.rest | #ff757f | bold |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #ff757f | — |
| entity.name.function, variable.function, keyword.other.special-method, meta.function-call.generic | #7cafff | — |
| support.function, meta.function-call entity.name.function | #7cafff | — |
| source.cpp meta.block variable.other | #ff757f | — |
| variable.other.object.property | #78dbff | — |
| support.variable.property, variable.other.property | #a9b8e8 | — |
| meta.object-literal.key, entity.name.label.js, string.unquoted, meta.field.declaration.ts variable.object.property, variable.object.property | #c3e88d | — |
| support.variable.dom, support.constant.json, support.constant.math | #ffc777 | — |
| support.variable.object.node, support.variable.object.process | #ffc777 | — |
| support.other.variable, string.other.link | #ff757f | — |
| constant.language, support.constant, constant.escape, keyword.other.unit | #ff98a4 | — |
| constant.character | #ff757f | — |
| constant.numeric, constant.language.infinity, constant.language.nan | #ff966c | — |
| constant.language.undefined, constant.language.null | #979bb6 | — |
| variable.parameter.function.language.special, variable.parameter | #fca7ea | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #7af8ca | normal |
| entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types, support.type.object.module | #ffc777 | — |
| support.class.component | #fd8aca | — |
| support.type | #ff966c | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #c3e88d | — |
| keyword.other.unit | #ff98a4 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #ff5370 | — |
| variable.language | #ff757f | — |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #7cafff | — |
| entity.other.attribute-name | #f8b576 | normal |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #f8b576 | normal |
| meta.tag.metadata.doctype entity.name.tag, meta.tag.metadata.doctype entity.other.attribute-name | #af9fff | normal |
| source.css | #78dbff | — |
| entity.other.attribute-name.class | #ffc777 | — |
| support.type.property-name.css, support.type.property-name | #7cafff | — |
| meta.property-name.css, meta.property-name.scss, meta.property-name.less, support.type.vendored.property-name | #a9b8e8 | — |
| support.constant.property-value.css, meta.property-value, support.constant.font-name.css, support.constant.vendored.property-value.css | #b4f9f8 | — |
| variable.parameter.keyframe-list, meta.at-rule.keyframes entity.name.function | #fca7ea | — |
| entity.other.keyframe-offset, meta.at-rule.keyframes entity.other.attribute-name | #c3e88d | — |
| meta.attribute-selector, markup.inline.raw.code | #7af8ca | — |
| source.sass keyword.control | #7cafff | — |
| keyword.other.unit | #fc7b7b | — |
| markup.inserted | #c3e88d | — |
| markup.deleted | #ff5370 | — |
| markup.changed | #af9fff | — |
| string.regexp | #b4f9f8 | — |
| constant.other.character-class.regexp | #c3e88d | — |
| constant.other.character-class.set.regexp | #ffc777 | — |
| keyword.operator.quantifier.regexp | #fca7ea | — |
| constant.character.escape | #78dbff | — |
| *url*, *link*, *uri* | — | underline |
| meta.decorator.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #7cafff | normal |
| source.js constant.other.object.key.js string.unquoted.label.js | #ff757f | normal |
| source.json meta.structure.dictionary.json support.type.property-name.json | #7cafff | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #c3e88d | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #fca7ea | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #ffc777 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #60bdff | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #ff757f | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #ff757f | — |
| text.html.markdown, meta.embedded.block | #c8d3f5 | — |
| text.html.markdown markup.inline.raw.markdown | #af9fff | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #78dbff | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #78dbff | — |
| entity.name.section.markdown | #7cafff | — |
| markup.italic | #ff757f | italic |
| markup.bold, markup.bold string | #ff757f | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #ff757f | bold |
| markup.underline | #60bdff | underline |
| markup.strike | — | strike |
| markup.quote punctuation.definition.blockquote.markdown | #a9b8e8 | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #b4f9f8 | — |
| constant.other.reference.link.markdown | #ffc777 | — |
| markup.raw.block | #af9fff | — |
| markup.fenced_code.block.markdown, markup.inline.raw.string.markdown | #78dbff | — |
| variable.language.fenced.markdown | #a9b8e8 | — |
| meta.separator | #a9b8e8 | bold |
| markup.table | #b4c2f0 | — |
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}!`;
}