Ninghao Color Theme
Publisher: ninghaoThemes in package: 1
a vscode color theme by ninghao.net
a vscode color theme by ninghao.net
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.embedded, source.groovy.embedded | #D4D4D4 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #6A9955 | — |
| constant.language | #569CD6 | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #B5CEA8 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #569CD6 | — |
| entity.name.tag.css | #D7BA7D | — |
| entity.other.attribute-name | #9CDCFE | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #D7BA7D | — |
| invalid | #F44747 | — |
| markup.underline | — | underline |
| markup.bold | #569CD6 | bold |
| markup.heading | #569CD6 | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #B5CEA8 | — |
| markup.deleted | #CE9178 | — |
| markup.changed | #569CD6 | — |
| punctuation.definition.quote.begin.markdown | #6A9955 | — |
| punctuation.definition.list.begin.markdown | #6796E6 | — |
| markup.inline.raw | #CE9178 | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor, entity.name.function.preprocessor | #569CD6 | — |
| meta.preprocessor.string | #CE9178 | — |
| meta.preprocessor.numeric | #B5CEA8 | — |
| meta.structure.dictionary.key.python | #9CDCFE | — |
| meta.diff.header | #569CD6 | — |
| storage | #569CD6 | — |
| storage.type | #569CD6 | — |
| storage.modifier, keyword.operator.noexcept | #569CD6 | — |
| string, meta.embedded.assembly | #CE9178 | — |
| string.tag | #CE9178 | — |
| string.value | #CE9178 | — |
| string.regexp | #D16969 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #569CD6 | — |
| meta.template.expression | #D4D4D4 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #9CDCFE | — |
| keyword | #569CD6 | — |
| keyword.control | #569CD6 | — |
| keyword.operator | #D4D4D4 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #569CD6 | — |
| keyword.other.unit | #B5CEA8 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #569CD6 | — |
| support.function.git-rebase | #9CDCFE | — |
| constant.sha.git-rebase | #B5CEA8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #D4D4D4 | — |
| variable.language | #569CD6 | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #DCDCAA | — |
| support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #4EC9B0 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #4EC9B0 | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator | #C586C0 | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable, constant.other.placeholder | #9CDCFE | — |
| variable.other.constant, variable.other.enummember | #4FC1FF | — |
| meta.object-literal.key | #9CDCFE | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #CE9178 | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #CE9178 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #D16969 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #DCDCAA | — |
| keyword.operator.quantifier.regexp | #D7BA7D | — |
| constant.character | #569CD6 | — |
| constant.character.escape | #D7BA7D | — |
| entity.name.label | #C8C8C8 | — |
| support.constant.edge | #C678DD | — |
| constant.other.character-class.regexp | #E06C75 | — |
| keyword.operator.quantifier.regexp | #D19A66 | — |
| punctuation.definition.string.begin,punctuation.definition.string.end | #98C378 | — |
| variable.parameter.function | #A6B2C0 | — |
| comment, punctuation.definition.comment | #555555 | italic |
| comment markup.link | #5C6370 | — |
| markup.changed.diff | #E0C285 | — |
| meta.diff.header.from-file,punctuation.definition.from-file.diff | #569CD6 | — |
| markup.inserted.diff | #98C379 | — |
| markup.deleted.diff | #E06C75 | — |
| meta.function.c | #E06C75 | — |
| keyword.control.cpp | #E5C07B | — |
| punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c | #ABB2BF | — |
| punctuation.separator.key-value | #BBBBBB | — |
| entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super | — | italic |
| keyword.operator.expression.import | #61AFEF | — |
| support.constant.math | #E5C07B | — |
| support.constant.property.math | #D19A66 | — |
| variable.other.constant | #D19A66 | — |
| storage.type.annotation.java | #E5C07B | — |
| source.java | #E06C75 | — |
| punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,storage.type.generic.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,meta.method.body.java | #ABB2BF | — |
| meta.method.java | #61AFEF | — |
| storage.modifier.import.java,storage.type.java | #E5C07B | — |
| meta.definition.variable.name.java | #E06C75 | — |
| keyword.operator.logical.js | #56B6C2 | — |
| keyword.operator.bitwise | #56B6C2 | — |
| support.constant.property-value.scss,support.constant.property-value.css | #D19A66 | — |
| support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss | #D19A66 | — |
| punctuation.separator.list.comma.css | #B9C0CA | — |
| support.constant.color.w3c-standard-color-name.css | #D19A66 | — |
| support.type.vendored.property-name.css | #56B6C2 | — |
| punctuation.definition.template-expression.begin,punctuation.definition.template-expression.end | #E06C75 | — |
| support.module.node,support.type.object.module,support.module.node | #E5C07B | — |
| variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node | #E06C75 | — |
| comment.line.double-slash,comment.block.documentation | — | italic |
| comment.line.double-slash.c,comment.block.documentation.c,comment.line.double-slash.cpp,comment.block.documentation.cpp | — | bold |
| support.constant.json | #D19A66 | — |
| keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional | #C678DD | — |
| support.type.object.console | #E06C75 | — |
| support.variable.property.process | #D19A66 | — |
| entity.name.function,support.function.console | #61AFEF | — |
| keyword.operator | #56B6C2 | — |
| support.type.object.dom | #56B6C2 | — |
| support.variable.dom,support.variable.property.dom | #E06C75 | — |
| keyword.operator.arithmetic,keyword.operator.comparison | #56B6C2 | — |
| keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.bitwise.shift.c | #C678DD | — |
| punctuation.separator.delimiter.c | #BBBBBB | — |
| support.type.posix-reserved.c | #57ADB8 | — |
| keyword.operator.sizeof.c | #C178DD | — |
| variable.parameter.function.language.python | #D19A66 | — |
| support.type.python | #56B6C2 | — |
| keyword.operator.logical.python | #C678DD | — |
| meta.function-call.arguments.python | #E06C60 | — |
| meta.function-call.python | #E06C60 | — |
| variable.parameter.function.python | #D18C4E | — |
| punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python,meta.function-call.arguments.python | #ABB2BF | — |
| meta.function-call.generic.python | #61AFEF | — |
| constant.character.format.placeholder.other.python | #98C379 | — |
| none | #A6B2C0 | — |
| keyword.operator | #ABB2BF | — |
| keyword | #C678DD | — |
| variable | #E06C75 | — |
| token.variable.parameter.java | #ABB2BF | — |
| import.storage.java | #E5C07B | — |
| token.package.keyword | #C678DD | — |
| token.package | #ABB2BF | — |
| entity.name.function, meta.require, support.function.any-method | #61AFEF | — |
| entity.name.type.namespace | #E5C07B | — |
| support.class, entity.name.type.class | #E5C07B | — |
| entity.name.class.identifier.namespace.type | #E5C07B | — |
| entity.name.class, variable.other.class | #E5C07B | — |
| variable.other.class.php | #E06C75 | — |
| entity.name.type | #E5C07B | — |
| keyword.control | #C678DD | — |
| control.elements, keyword.operator.less | #D19A66 | — |
| keyword.other.special-method | #61AFEF | — |
| storage | #C678DD | — |
| token.storage | #C678DD | — |
| keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void | #C678DD | — |
| token.storage.type.java | #E5C07B | — |
| support.function | #56B6C2 | — |
| support.type.property-name | #ABB2BF | — |
| support.constant.property-value | #ABB2BF | — |
| support.constant.font-name | #D19A66 | — |
| meta.tag | #ABB2BF | — |
| string, entity.other.inherited-class | #98C379 | — |
| constant.other.symbol | #56B6C2 | — |
| constant.numeric | #D19A66 | — |
| none | #D19A66 | — |
| none | #D19A66 | — |
| constant | #D19A66 | — |
| punctuation.definition.constant | #D19A66 | — |
| entity.name.tag | #E06C75 | — |
| entity.other.attribute-name | #D19A66 | — |
| entity.other.attribute-name.id | #61AFEF | normal |
| entity.other.attribute-name.class.css | #D19A66 | normal |
| meta.selector | #C678DD | — |
| none | #D2945D | — |
| markup.heading | #E06C75 | bold |
| markup.heading punctuation.definition.heading, entity.name.section | #61AFEF | — |
| keyword.other.unit | #D19A66 | — |
| markup.bold,todo.bold | #D19A66 | bold |
| punctuation.definition.bold | #E5C07B | — |
| markup.italic, punctuation.definition.italic,todo.emphasis | #C678DD | — |
| emphasis md | #C678DD | — |
| entity.name.section.markdown | #E06C75 | — |
| punctuation.definition.heading.markdown | #E06C75 | — |
| markup.heading.setext | #ABB2BF | — |
| punctuation.definition.bold.markdown | #D19A66 | — |
| markup.inline.raw.markdown | #98C379 | — |
| markup.inline.raw.string.markdown | #98C379 | — |
| beginning.punctuation.definition.list.markdown | #E06C75 | — |
| markup.quote.markdown | #5C6370 | italic |
| punctuation.definition.string.begin.markdown,punctuation.definition.string.end.markdown,punctuation.definition.metadata.markdown | #ABB2BF | — |
| punctuation.definition.metadata.markdown | #C678DD | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #C678DD | — |
| string.other.link.title.markdown,string.other.link.description.markdown | #61AFEF | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| string.regexp | #57B6C2 | — |
| constant.character.escape | #57B6C2 | — |
| punctuation.section.embedded, variable.interpolation | #BE4F44 | — |
| invalid.illegal | #FFFFFF | — |
| invalid.broken | #FFFFFF | — |
| invalid.deprecated | #FFFFFF | — |
| invalid.unimplemented | #FFFFFF | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #E06C75 | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #E06C75 | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation | #98C379 | — |
| source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json | #56B6C2 | — |
| support.type.property-name.json | #E06C75 | — |
| support.type.property-name.json punctuation | #E06C75 | — |
| text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade | #C679DD | — |
| text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade | #C679DD | — |
| support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php | #E5C07B | — |
| keyword.operator.error-control.php | #C678DD | — |
| keyword.operator.type.php | #C678DD | — |
| punctuation.section.array.begin.php | #ABB2BF | — |
| punctuation.section.array.end.php | #ABB2BF | — |
| invalid.illegal.non-null-typehinted.php | #FF0000 | — |
| storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php | #E5C07B | — |
| meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php | #61AFEF | — |
| punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php | #BBBBBB | — |
| support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php | #D19A66 | — |
| entity.name.goto-label.php,support.other.php | #61AFEF | — |
| keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php | #56B6C2 | — |
| keyword.operator.regexp.php | #C678DD | — |
| keyword.operator.comparison.php | #56B6C2 | — |
| punctuation.definition.variable.php | #E06C75 | — |
| keyword.operator.heredoc.php,keyword.operator.nowdoc.php | #C678DD | — |
| meta.function.decorator.python | #61AFEF | — |
| support.token.decorator.python,meta.function.decorator.identifier.python | #56B6C2 | — |
| function.parameter | #D19A66 | — |
| function.parameter | #ABB2BF | — |
| function.brace | #ABB2BF | — |
| function.parameter.ruby, function.parameter.cs | #ABB2BF | — |
| rgb-value | #56B6C2 | — |
| inline-color-decoration rgb-value | #D19A66 | — |
| less rgb-value | #D19A66 | — |
| selector.sass | #E06C75 | — |
| var.this,variable.language.this.js,variable.language.this.ts,variable.language.this.jsx,variable.language.this.tsx | #E5C07B | italic |
| support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx | #E5C07B | — |
| block.scope.end,block.scope.begin | #ABB2BF | — |
| storage.type.cs | #E5C07B | — |
| entity.name.variable.local.cs | #E06C75 | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #C678DD | — |
| meta.template.expression | #ABB2BF | — |
| keyword.operator.assignment.go, keyword.operator.address.go | #E5C07B | — |
| support.type.prelude.elm | #56B6C2 | — |
| support.constant.elm | #D19A66 | — |
| punctuation.quasi.element | #C678DD | — |
| constant.character.entity | #E06C75 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #56B6C2 | — |
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}!`;
}