Pretty Dark Theme
Publisher: CJLThemes in package: 1
基于 One Dark Pro 主题,更暗更美
基于 One Dark Pro 主题,更暗更美
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 | #ffc3bab7 | — |
| keyword, keyword.control, storage.modifier, keyword.operator.new, keyword.operator.word, keyword.operator.module, keyword.operator.optional, keyword.operator.ternary, keyword.operator.assignment, keyword.operator.expression.keyof, keyword.operator.expression.instanceof, keyword.operator.expression.delete, keyword.operator.expression.typeof, keyword.operator.expression.void, keyword.operator.expression.in, keyword.operator.expression.of, keyword.operator.instanceof.java | #c678dd | italic |
| keyword.operator.logical, keyword.operator.logical.tsx, keyword.operator.bitwise, keyword.operator.channel, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.relational, keyword.operator.decrement, keyword.operator.increment, keyword.operator.assignment.compound, keyword.operator.assignment.compound.js, keyword.operator.assignment.compound.ts, keyword.operator.logical.python, keyword.operator.logical.php, keyword.operator.bitwise.php, keyword.operator.arithmetic.php, keyword.operator.assignment.go, keyword.operator.arithmetic.go, keyword.operator.address.go, keyword.operator.misc.rust, keyword.operator.sigil.rust, keyword.operator.key-value.rust, keyword.operator.namespace.rust | #56b6c2 | |
| variable.language, variable.language.this, variable.language.self, variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python, variable.language.rust | #e5c07b | — |
| variable, variable.other.readwrite, variable.other.local, variable.other.field, variable.other.object, variable.other.object.property, variable.other.property, meta.object-literal.key, variable.other.readwrite.c, variable.other.readwrite.cpp, variable.other.readwrite.java, variable.other.readwrite.cs, meta.method.body.java, entity.name.variable.local.cs, entity.name.variable.field.cs, entity.name.variable.parameter.cs, variable.parameter, variable.parameter.function, variable.parameter.function.js, variable.parameter.function.language.python, variable.parameter.function.c, variable.parameter.function.ruby, variable.parameter.function.kotlin, variable.parameter.function.swift, variable.parameter.function.latex, function.parameter, function.parameter.ruby, function.parameter.cs, meta.definition.variable.name.java, meta.definition.variable.name.groovy, text.variable, text.bracketed | #e06c75 | — |
| text.html.derivative meta.embedded.block.html variable.other.readwrite, meta.embedded.block.html variable.other.readwrite.js, source.js meta.embedded.block.html variable.other.readwrite | #c2c2c2 | — |
| variable.other.field, variable.other.property, variable.other.object.property, meta.object-literal.key, variable.object.property.tsx, entity.name.field, entity.name.field.rust, entity.name.field.go | #d19a66 | — |
| punctuation.terminator.java | #d19a66 | — |
| variable.other.constant, variable.other.readonly | #e5c07b | — |
| entity.name.function, meta.function, meta.function.c, meta.function.cpp, meta.function.rust, meta.function.go, meta.function.php, meta.function.cs, meta.function.kotlin, meta.function.swift, meta.require, support.function.any-method, variable.function, support.function.console, meta.function-call.generic.python, support.function.std.rust, support.function, keyword.other.special-method, support.function.console, support.function.builtin.go, support.function.builtin.rust | #61afef | — |
| support.type, support.type.sys-types, entity.name.type, entity.name.type.class, entity.name.class, entity.other.inherited-class, support.class, support.type.primitive.ts, support.type.builtin.ts, support.type.primitive.tsx, support.type.builtin.tsx, support.type.swift, support.type.kotlin, support.type.vb.asp, entity.name.type.parameter, support.type.prelude.elm, support.type.texture.hlsl, support.type.sampler.hlsl, support.type.object.hlsl, support.type.object.rw.hlsl, support.type.fx.hlsl, storage.type.cs, storage.type.java, storage.type.generic.java, storage.type.primitive.java, storage.type.annotation.java, storage.type.object.array.java, keyword.type, keyword.type.cs, keyword.type.java, keyword.predefined.type, keyword.predefined.type.cs, keyword.predefined.type.java | #4ec9b0 | |
| storage.type, storage.type.swift, storage.type.kotlin, storage.type.rust, storage.type.go, storage.type.dart, storage.type.struct.rust, storage.type.enum.rust, storage.type.union.rust, storage.type.class.python, storage.type.class.cs, storage.type.namespace.cs, storage.type.namespace.ts, storage.type.namespace.js | #c678dd | italic |
| storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.error.go, storage.type.rune.go, support.type.builtin.go, support.type.go | #4ec9b0 | |
| constant.other.enum, entity.name.enum, constant.other.enummember, support.constant.core.rust, support.constant.ext.php, support.constant.std.php, support.constant.core.php, support.constant.parser-token.php, support.constant.property-value.scss, support.constant.elm, constant.language.symbol.ruby, constant.language.symbol.hashkey.ruby, constant.language.symbol.elixir, constant.language.symbol.double-quoted.elixir | #d19a66 | — |
| support.other.namespace.use.php, support.other.namespace.use-as.php, entity.other.alias.php, meta.interface.php, support.type.object.module, support.module.node, entity.name.type.module, entity.name.package.go, token.package.keyword, token.package | #e5c07b | — |
| entity.name.namespace, entity.name.type.namespace, entity.name.type.namespace.cs, support.other.namespace, support.other.namespace.cs | #e5c07b | italic |
| constant, constant.numeric, punctuation.definition.constant, constant.numeric.decimal.asm.x86_64 | #d19a66 | — |
| constant.language, constant.language.json, source.json meta.structure.dictionary.json > constant.language.json, source.json meta.structure.array.json > constant.language.json | #d19a66 | italic |
| string, string.quoted, string.quoted.double, string.quoted.single, string.quoted.triple, string.interpolated, markup.inline.raw.markdown, markup.inline.raw.string.markdown, markup.raw.monospace.asciidoc, constant.character.escape | #98c379 | — |
| string.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp, support.other.parenthesis.regexp, support.other.parenthesis.regexp, support.constant.edge, keyword.operator.regexp.php | #56b6c2 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded, meta.template.expression, keyword.other.template.begin, keyword.other.template.end, keyword.other.substitution.begin, keyword.other.substitution.end, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, variable.interpolation | #c678dd | — |
| support.type.property-name.json, support.type.property-name.json punctuation, source.json meta.structure.dictionary.json > string.quoted.json, source.json meta.structure.dictionary.json > string.quoted.json > punctuation, 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, support.constant.json | #e06c75 | — |
| support.type.property-name.css, support.type.vendored.property-name.css, support.constant.property-value.css, support.constant.color.w3c-standard-color-name.css, support.constant.property-value.scss, support.constant.property-value, support.constant.font-name, rgb-value, inline-color-decoration rgb-value, less rgb-value, selector.sass, keyword.operator.css, keyword.operator.scss, keyword.operator.less, support.constant.color.w3c-standard-color-name.scss, punctuation.separator.list.comma.css | #c2c2c2 | — |
| entity.name.tag, meta.tag, invalid.illegal-unrecognized-tag.html, constant.character.entity | #7d99db | — |
| meta.tag.tsx, source.tsx meta.tag | #c2c2c2 | — |
| entity.other.attribute-name, entity.other.attribute-name.id, entity.other.attribute-name.class.css, entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #d19a66 | — |
| punctuation.definition.tag | #c2c2c2 | — |
| markup.heading, markup.heading punctuation.definition.heading, entity.name.section, entity.name.section.markdown, punctuation.definition.heading.markdown, markup.heading.setext, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown, punctuation.definition.block.sequence.item.yaml | #e06c75 | — |
| punctuation.definition.list.begin.markdown, punctuation.definition.list.markdown, beginning.punctuation.definition.list.markdown, markup.list.asciidoc | #6f9bff | — |
| markup.quote.markdown | #696969 | — |
| markup.bold, todo.bold, punctuation.definition.bold, punctuation.definition.bold.markdown | #d19a66 | bold |
| markup.italic, punctuation.definition.italic, todo.emphasis | #6f9bff | italic |
| markup.inline.raw.markdown, markup.inline.raw.string.markdown, punctuation.definition.raw.markdown, markup.raw.monospace.asciidoc, punctuation.definition.asciidoc | #98c379 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, string.other.link.title.markdown, string.other.link.description.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown, markup.link.asciidoc, markup.other.url.asciidoc | #61afef | — |
| markup.inserted.diff, markup.deleted.diff, markup.changed.diff, meta.diff.header.from-file, meta.diff.header.to-file, punctuation.definition.from-file.diff, punctuation.definition.to-file.diff | #98c379 | — |
| token.info-token, token.warn-token, token.error-token, token.debug-token, log.info, log.warning, log.error | #c678dd | — |
| invalid.illegal, invalid.broken, invalid.deprecated, invalid.unimplemented, invalid.deprecated.entity.other.attribute-name.html, invalid.illegal.bad-ampersand.html, invalid.illegal.non-null-typehinted.php, invalid.illegal.unrecognized-tag.html | #ffffff | — |
| punctuation.separator.delimiter, punctuation.separator.key-value, punctuation.separator.comma, punctuation.section.block, punctuation.section.scope, punctuation.section.embedded.begin, punctuation.section.embedded.end, meta.brace.square, punctuation.separator.c, punctuation.separator.cpp, punctuation.section.array.begin.php, punctuation.section.array.end.php, punctuation.definition.parameters.begin.bracket.round.php, punctuation.definition.parameters.end.bracket.round.php | #c2c2c2 | — |
| keyword.operator.type, keyword.operator.type.ts, keyword.operator.type.tsx | #56b6c2 | |
| keyword.operator.optional, keyword.operator.optional.ts, keyword.operator.optional.tsx | #56b6c2 | |
| keyword | — | italic |
| keyword.operator.ternary, keyword.operator.ternary.ts, keyword.operator.ternary.tsx | #c678dd |
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}!`;
}