The Night Ocean
Publisher: HectorAiryJimHerThemes in package: 1
The night ocean is a dark theme for lovers of the sea and northern lights.
The night ocean is a dark theme for lovers of the sea and northern lights.
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 |
|---|---|---|
| meta.paragraph.markdown, string.other.link.description.title.markdown | #EEFFFF | — |
| entity.name.section.markdown, punctuation.definition.heading.markdown | #5ABEB0 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, markup.quote.markdown | #82AAFF | — |
| markup.quote.markdown | #82AAFF | italic |
| markup.bold.markdown, punctuation.definition.bold.markdown | #57cdff | bold |
| markup.italic.markdown, punctuation.definition.italic.markdown | #C792EA | italic |
| markup.inline.raw.string.markdown, markup.fenced_code.block.markdown | #f7ecb5 | italic |
| punctuation.definition.metadata.markdown | #f3b8c2 | — |
| markup.underline.link.image.markdown, markup.underline.link.markdown | #6dbdfa | — |
| comment | #999999 | italic |
| punctuation.definition.string | #6bff81 | — |
| string | #bcf0c0 | — |
| string.quoted, variable.other.readwrite.js | #bcf0c0 | |
| constant.numeric | #8dec95 | — |
| constant.language.boolean | #8dec95 | — |
| constant | #A170C6 | — |
| constant.language, punctuation.definition.constant, variable.other.constant | #92b6f4 | — |
| constant.character, constant.other | #82AAFF | — |
| variable | #a4ceee | italic |
| variable.other.object.js | #d6deeb | italic |
| variable.other.readwrite.alias.ts, variable.other.readwrite.alias.tsx, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.object.ts, variable.other.object.tsx, variable.object.property.ts, variable.object.property.tsx, variable.other.ts, variable.other.tsx, variable.tsx, variable.ts | #d6deeb | — |
| meta.class entity.name.type.class.tsx | #d29ffcff | — |
| entity.name.type.tsx, entity.name.type.module.tsx | #d29ffcff | — |
| meta.method.declaration storage.type.ts, meta.method.declaration storage.type.tsx | #a1bde6 | — |
| variable.other.object.property | #f7ecb5 | italic |
| variable.instance, variable.other.instance, variable.readwrite.instance, variable.other.readwrite.instance, variable.other.property | #7fdbca | — |
| variable.other.readwrite.js, variable.parameter | #d7dbe0 | — |
| string.template meta.template.expression | #c63ed3 | — |
| string.template punctuation.definition.string | #fff | — |
| storage | #6dbdfa | |
| keyword, storage.type, storage.modifier, variable.language.this | #00bff9 | italic |
| keyword.operator | #00bff9 | italic |
| storage, meta.var.expr, meta.class meta.method.declaration meta.var.expr storage.type.js, storage.type.property.js, storage.type.property.ts | #c792ea | italic |
| variable.other.meta.import.js, meta.import.js variable.other, variable.other.meta.export.js, meta.export.js variable.other | #d3eed6 | — |
| entity.name.class | #f7ecb5 | — |
| entity.other.inherited-class | #4FB4D8 | |
| variable.other.readwrites, meta.definition.variable | #f7ecb5 | |
| support.variable.property | #7fdbca | — |
| entity.name.function | #87aff4 | italic |
| variable.parameter | #d7dbe0 | |
| entity.name.tag | #6dbdfa | |
| entity.name.type | #d29ffc | — |
| entity.other.attribute-name | #f7ecb5 | italic |
| punctuation.decorator | #f7ecb5 | italic |
| punctuation.definition.block, punctuation.definition.tag | #ffffff | — |
| support.function | #f7ecb5 | |
| support.constant | #ec9cd2 | |
| support.type, support.class | #7fdbca | — |
| support.other.variable | #CBCDD2 | — |
| invalid | #6dbdfa | italic bold underline |
| invalid.deprecated | #6dbdfa | bold italic underline |
| support.type.property-name.json | #91dacd | — |
| support.constant.json | #addb67 | — |
| meta.structure.dictionary.value.json string.quoted.double | #e0aff5 | — |
| string.quoted.double.json punctuation.definition.string.json | #80CBC4 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value constant.language | #f29fd8 | — |
| source.json support | #6dbdfa | — |
| source.json string, source.json punctuation.definition.string | #ece7cd | — |
| markup.list | #6dbdfa | — |
| markup.heading punctuation.definition.heading, entity.name.section | #4FB4D8 | |
| text.html.markdown meta.paragraph meta.link.inline, text.html.markdown meta.paragraph meta.link.inline punctuation.definition.string.begin.markdown, text.html.markdown meta.paragraph meta.link.inline punctuation.definition.string.end.markdown | #78bd65 | — |
| meta.paragraph.markdown | #ffffff | — |
| markup.quote | #78bd65 | italic |
| meta.link | #78BD65 | — |
| source.dockerfile | #99d0f7 | — |
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}!`;
}