Morn Shadow
Publisher: Andrew ParisiThemes in package: 1
Dark, soft palette of cool colors
Dark, soft palette of cool colors
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 |
|---|---|---|
| — | #c5c8c6 | — |
| comment, punctuation.definition.comment, comment.block | #525252 | italic |
| variable, string constant.other.placeholder | #a8a4bc | — |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, meta.decorator.ts, meta.decorator.tsx | #a8a4bc | italic |
| invalid | #ffffff | — |
| invalid.deprecated | #ffffff | — |
| keyword, storage.type, storage.modifier | #5B66A8 | — |
| keyword.operator | #806946 | — |
| meta.brace.square<!--, meta.brace.curly--> | #A18964 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #d75a64 | — |
| entity.name.function, support.function, keyword.other.special-method, meta.block-level | #8a79a8 | bold |
| support.other.variable, string.other.link | #d75a64 | — |
| constant.numeric, constant.language, support.constant, constant.character, keyword.other.unit | #799AE0 | — |
| variable.parameter | #D6A27C | italic |
| 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 | #8BBAE0 | normal |
| constant.other.object.key.js, string.unquoted.label.js | #7B7CA8 | normal |
| entity.name.class, entity.name.type.class, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter | #845CB0 | bold |
| support.type | #7671AD | — |
| support.constant | #ABB6CC | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #cc6666 | — |
| variable.language | #cc6666 | italic |
| entity.name.method.js | #8a79a8 | — |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #8a79a8 | — |
| entity.other.attribute-name | #b294bb | — |
| markup.inserted | #b5bd68 | — |
| markup.deleted | #cc6666 | — |
| markup.changed | #b294bb | — |
| string.regexp | #8abeb7 | — |
| constant.character.escape | #8abeb7 | — |
| *url*, *link*, *uri* | — | underline |
| constant.numeric.line-number.find-in-files - match | #a3685a | — |
| entity.name.filename.find-in-files | #b5bd68 | — |
| source.js constant.other.object.key.js string.unquoted.label.js | #cc6666 | italic |
| source.json meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #cc6666bf | — |
| source.json meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #8a79a8bf | — |
| source.json meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #f0c674bf | — |
| source.json meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #b294bbbf | — |
| source.json meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #de935f | — |
| source.json meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #cc6666 | — |
| source.json meta meta meta meta.structure.dictionary.json string.quoted.double.json - meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta meta meta.structure.dictionary.json punctuation.definition.string - meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #8a79a8 | — |
| source.json meta meta.structure.dictionary.json string.quoted.double.json - meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta meta.structure.dictionary.json punctuation.definition.string - meta meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #f0c674 | — |
| source.json meta.structure.dictionary.json string.quoted.double.json - meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, source.json meta.structure.dictionary.json punctuation.definition.string - meta.structure.dictionary.json meta.structure.dictionary.value.json punctuation.definition.string | #b294bb | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #c5c8c6 | — |
| text.html.markdown markup.raw.inline | #cc6666 | — |
| text.html.markdown meta.dummy.line-break | #969896 | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #b5bd68 | — |
| markup.italic | #d75a64 | italic |
| markup.bold | #d75a64 | bold |
| markup.underline | #de935f | underline |
| markup.strike | #a3685a | strike |
| markup.quote, punctuation.definition.blockquote.markdown | #8abeb7 | italic |
| markup.quote | #8abeb7 | italic |
| string.other.link.title.markdown | #8a79a8 | underline |
| markup.raw.block | #b294bb | — |
| markup.raw.block.fenced.markdown | #c5c8c6 | — |
| punctuation.definition.fenced.markdown, variable.language.fenced.markdown | #969896 | — |
| variable.language.fenced.markdown | #969896 | |
| meta.separator | #969896 | bold |
| markup.table | #cc6666 | — |
| acejump.label | #ffffff | — |
| sublimelinter.mark.warning | #f0c674 | — |
| sublimelinter.gutter-mark | #ffffff | — |
| sublimelinter.mark.error | #cc6666 | — |
| markup.ignored.git_gutter | #969896 | — |
| markup.untracked.git_gutter | #969896 | — |
| gutter_color | #ffffff | — |
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}!`;
}