Nautical Twilight
Publisher: Zac de LusignanThemes in package: 1
A dark, nautical, grey-blue theme.
A dark, nautical, grey-blue theme.
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 | #5A6476 | italic |
| variable, variable.other.readwrite | #b1bbd7 | — |
| constant.other.color | #b1bbd7 | — |
| invalid, invalid.illegal | #FF7F9D | — |
| keyword, storage.modifier, keyword.control, constant.other.color, storage.type, storage.modifier, storage.type.haskell, keyword.other.julia, keyword.other.fn.rust, keyword.other.rust | #8C8CFA | italic |
| keyword.other | #9AE1FC | — |
| keyword.control | #8C8CFA | italic |
| punctuation, punctuation.definition.tag, punctuation.definition.string, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, keyword.operator, meta.brace, meta.bracket, meta.preprocessor.haskell, punctuation.section.class.end.bracket | #9AE1FC | — |
| keyword.operator.assignment, keyword.operator.update | #F9939C | — |
| constant.character.format, storage.type.format, string constant.other.placeholder | #FFD2E1 | italic |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #9AE1FC | — |
| meta.tag | #b1bbd7 | — |
| entity.name.function, variable.function, meta.function-call | #8FC3FF | — |
| keyword.other.special-method, support.function | #FFB4B7 | — |
| meta.function-call.arguments | #b1bbd7 | — |
| meta.block variable.other | #b1bbd7 | — |
| support.other.variable, variable.other.object.property, meta.embedded.expression | #b1bbd7 | — |
| string.other.link | #CCFBFF | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, keyword.other.unit, constant.other | #FFD2E1 | — |
| variable.parameter | #EEEEEE | italic |
| string, constant.other.symbol, constant.other.key, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #CCFBFF | — |
| entity.name | #b1bbd7 | — |
| support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types, entity.name.type.class, support.type, entity.name.class, entity.other.inherited-class | #FFD2B3 | — |
| meta.attribute | #D5A7FF | italic |
| 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 | #F5EFDF | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #FFD2B3 | — |
| variable.language | #EBCDFF | italic |
| entity.name.method.js | #8CC3FA | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #8CC3FA | — |
| entity.other.attribute-name | #b1bbd7 | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #8C8CFA | italic |
| entity.other.attribute-name.class | #8C8CFA | — |
| source.sass keyword.control | #8CC3FA | — |
| markup.inserted | #98c379 | — |
| markup.deleted | #FF7F9D | — |
| markup.changed | #8C8CFA | — |
| string.regexp | #CCFBFF | — |
| constant.character.escape | #9AE1FC | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #9AE1FC | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #de7a76 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #8C8CFA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #91beff | — |
| 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 | #FFB4AA | — |
| 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 | #ffda91 | — |
| 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 | #ffa5c3 | — |
| 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 | #8C8CFA | — |
| 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 | #91beff | — |
| 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 meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FFB4AA | — |
| 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 meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #ffda91 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #E0E9FF | — |
| text.html.markdown markup.inline.raw.markdown, entity.name.section.markdown | #8C8CFA | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #E0E9FF | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #8C8CFA | — |
| markup.italic | #E07A7A | italic |
| markup.bold, markup.bold string | #E07A7A | 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 | #E07A7A | bold |
| markup.underline | #FFD2E1 | underline |
| markup.quote punctuation.definition.blockquote.markdown | #E0E9FF | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #A0C9FF | — |
| string.other.link.description.title.markdown | #8C8CFA | — |
| constant.other.reference.link.markdown | #76CBD6 | — |
| markup.raw.block | #8C8CFA | — |
| markup.raw.block.fenced.markdown | #00000050 | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #E0E9FF | — |
| variable.language.fenced.markdown | #E0E9FF | — |
| meta.separator | #E0E9FF | bold |
| markup.table | #E0E9FF | — |
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}!`;
}