N-DarkTheme
Publisher: AkakøThemes in package: 1
N-Dark Theme is the perfect dark theme for you, it has everything you need to write better code. Dark blue background and
N-Dark Theme is the perfect dark theme for you, it has everything you need to write better code. Dark blue background and
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, comment.line.scss, comment.line.double-slash.js, punctuation.definition.comment.scss, punctuation.definition.comment.js, punctuation.definition.comment.html, comment.block.html | #818181 | italic |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class | #92A6FF | italic |
| punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #92A6FF | italic |
| string constant.other.placeholder, keyword, invalid.deprecated | #fff | — |
| storage.type, storage.modifier | #D4AF00 | — |
| variable | #fceb96 | — |
| variable, string constant.other.placeholder, entity.name.function, punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | — | italic |
| punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | #D4AF00 | — |
| constant.other.php | #D4AF00 | — |
| constant.other.color | #fff | — |
| invalid, invalid.illegal | #DF001E | — |
| Keyword, Storage | — | italic |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #7BA9FF | — |
| keyword.control.at-rule, punctuation.terminator.rule.css, keyword.control.operator, punctuation.definition.entity.css, keyword.operator.assignment.js, punctuation.separator.comma.js, punctuation.definition.binding-pattern.object.js | #EEF0FF | — |
| keyword.control | #ffae00 | italic |
| text.html.derivative | #EEF0FF | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #EEF0FF | — |
| entity.name.tag.html | #A5B8D8 | bold |
| variable.parameter.js, variable.parameter.keyframe-list.css | #fceb96 | — |
| variable.other.object.js, storage.type.js, string.other.link.title.markdown, variable.other.readwrite.js, variable.other.property.js, entity.name.type.module.js | #A5B8D8 | — |
| variable.function, keyword.other.special-method, entity.name.function, markup.bold, markup.bold.markdown, markup.italic.markdown, meta.class-method.js entity.name.function.js, variable.function.constructor, entity.name.tag.other.html, entity.name.tag.block.any.html, source.sass keyword.control | #92A6FF | — |
| support.other.variable, string.other.link, markup.table | #EEF0FF | — |
| constant.numeric, constant.language, constant.character, constant.escape, keyword.other.unit, keyword.other, punctuation.separator.key-value.html | #92A6FF | — |
| variable.parameter.function.language.special, variable.parameter | #fceb96 | — |
| constant.other.symbol, constant.other.key, entity.other.inherited-class, keyword.other.unit, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #92A6FF | |
| 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, entity.other.attribute-name.html | #ffae00 | italic |
| support.type | #B2CCD6 | — |
| 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 | #fff | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #fceb96 | — |
| entity.name.method.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #171722 | italic |
| entity.other.attribute-name, support.function | #92A6FF | — |
| entity.other.attribute-name.id, entity.other.attribute-name.class, entity.other.attribute-name.pseudo-class, entity.name.tag.css, keyword.control.conditional.js, support.constant, entity.other.attribute-name.html, string.quoted.single.js, storage.type.function.js, meta.object-literal.key | #A5B8D8 | bold |
| source.scss keyword.control | #ff0000 | — |
| markup.inserted | #D4AF00 | — |
| markup.deleted | #df001e | — |
| markup.changed | #92A6FF | — |
| string.regexp | #c4f1ff | — |
| constant.character.escape | #c4f1ff | — |
| *url*, *link*, *uri* | — | underline |
| source.js constant.other.object.key.js string.unquoted.label.js | #EEF0FF | italic |
| support.type.property-name.json | #EEF0FF | — |
| text.html.markdown markup.inline.raw.markdown | #92A6FF | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #92A6FF50 | — |
| text.html.markdown meta.dummy.line-break | — | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, entity.name.section.markdown | #A5B8D8 | bold |
| markup.underline | #171722 | underline |
| markup.strike | — | |
| markup.quote punctuation.definition.blockquote.markdown | #92A6FF50 | — |
| markup.quote | — | italic |
| string.other.link.description.title.markdown | #92A6FF | — |
| constant.other.reference.link.markdown | #92A6FF | — |
| markup.raw.block | #92A6FF | — |
| punctuation.definition.raw.markdown, punctuation.definition.markdown | #c4f1ff | — |
| variable.language.fenced.markdown | #92A6FF | — |
| meta.separator | #c4f1ff | bold |
| token.info-token | #92A6FF | — |
| token.warn-token | #92A6FF | — |
| token.error-token | #ff293b | — |
| token.debug-token | #c4f1ff | — |
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}!`;
}