Dark Pixel - join the bright side of dark.
Publisher: ergotaminThemes in package: 1
Dark Pixel - Editor theme and language syntax-highlighting
Dark Pixel - Editor theme and language syntax-highlighting
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 |
|---|---|---|
| source | #f8f8ff | — |
| markup.quote | #6495ed | — |
| markup.inserted, markup.changed | #006400 | — |
| markup.underline | — | underline |
| emphasis, markup.italic | — | italic |
| strong, markup.bold | — | bold |
| header, markup.heading | #4682b4 | — |
| invalid, markup.deleted | #8b0000 | underline |
| comment, comment.block, punctuation.definition.comment, punctuation.definition.comment.line | #2f4f4f | italic |
| comment.line.double-slash | #1f3f3f | bold |
| comment.line.shebang | #b8860b | bold |
| punctuation.definition, punctuation.terminator.statement | #1e90ff | — |
| punctuation.definition.tag, punctuation.definition.entity, punctuation.separator.key-value | #ff7f50 | bold |
| punctuation.definition.heading | #483d8b | bold |
| punctuation.section.embedded | #ee82ee | bold |
| keyword | #b0c4de | — |
| keyword.operator | #1e90ff | bold |
| keyword.control | #87cefa | bold |
| keyword.other | #00bfff | bold |
| keyword.operator.logical, keyword.operator.pipe, keyword.operator.list, keyword.operator.dereference, keyword.operator.comparison, keyword.operator.bitwise, keyword.operator.assignment, keyword.operator.arithmetic | #00ffff | bold |
| variable, variable.other | #daa520 | bold |
| variable.other.property | #7cfc00 | bold |
| variable.language | #ff8c00 | bold |
| variable.language.this | #dc143c | bold italic |
| variable.interpolation | #cdab53 | bold italic |
| entity.name.function, entity.name.section | #8a2be2 | bold |
| storage.type.function, meta.require, support.function | #9370db | bold |
| meta.class, storage.type.class, entity.name.class, support.class | #9400d3 | bold |
| storage | #ff4500 | bold |
| storage.type, storage.modifier | #ff6347 | bold |
| string, entity.other.inherited-class | #c0c0c0 | — |
| string.tag | #778899 | — |
| string.value | #a9a9a9 | — |
| string.regexp | #7cfc00 | — |
| string.unquoted | #add8e6 | italic |
| constant | #cd5c5c | bold |
| constant.numeric | #c71585 | bold |
| constant.regexp | #ff00ff | — |
| constant.character.escape | #ee82ee | |
| constant.other.placeholder, constant.other.symbol | #ff1493 | bold |
| entity.name.tag | #ffa07a | — |
| entity.other.attribute-name | #ff1493 | — |
| entity.other.attribute-name.id | #dc143c | — |
| entity.name.function.declaration, entity.name.function.definition, entity.name.function.method | #8a2be2 | bold underline |
| meta.selector | #f08080 | — |
| meta.preprocessor | #7fffd4 | — |
| meta.preprocessor.string | #c0c0c0 | — |
| meta.preprocessor.numeric | #c71585 | — |
| meta.brace.curly | #44FF77 | bold |
| meta.block | #87ceeb | — |
| meta.function, meta.function-call | #6495ed | — |
| meta.parens | #8fbc8f | bold |
| markup.quote | #87cefa | — |
| markup.underline | — | underline |
| markup.bold | — | bold |
| markup.heading | #4169e1 | bold |
| markup.italic | — | italic |
| markup.inserted | #556b2f | — |
| markup.deleted | #8b0000 | — |
| markup.changed | #7cfc00 | — |
| support.type | #adff2f | bold |
| support.type.property-name | #9cdcfe | — |
| support.type.sys-types | #ffa500 | bold |
| source | #f8f8ff | — |
| markup.quote | #6495ed | — |
| markup.inserted, markup.changed | #006400 | — |
| markup.underline | — | underline |
| emphasis, markup.italic | — | italic |
| strong, markup.bold | — | bold |
| header, markup.heading | #4682b4 | — |
| invalid, markup.deleted | #8b0000 | underline |
| comment, comment.block, punctuation.definition.comment, punctuation.definition.comment.line | #2f4f4f | italic |
| comment.line.double-slash | #1f3f3f | bold |
| comment.line.shebang | #b8860b | bold |
| punctuation.definition, punctuation.terminator.statement | #1e90ff | — |
| punctuation.definition.tag, punctuation.definition.entity, punctuation.separator.key-value | #ff7f50 | bold |
| punctuation.definition.heading | #483d8b | bold |
| punctuation.section.embedded | #ee82ee | bold |
| keyword | #b0c4de | — |
| keyword.operator | #1e90ff | bold |
| keyword.control | #87cefa | bold |
| keyword.other | #00bfff | bold |
| keyword.operator.logical, keyword.operator.pipe, keyword.operator.list, keyword.operator.dereference, keyword.operator.comparison, keyword.operator.bitwise, keyword.operator.assignment, keyword.operator.arithmetic | #00ffff | bold |
| variable, variable.other | #daa520 | bold |
| variable.other.property | #7cfc00 | bold |
| variable.language | #ff8c00 | bold |
| variable.language.this | #dc143c | bold italic |
| variable.interpolation | #cdab53 | bold italic |
| entity.name.function, entity.name.section | #8a2be2 | bold |
| storage.type.function, meta.require, support.function | #9370db | bold |
| meta.class, storage.type.class, entity.name.class, support.class | #9400d3 | bold |
| storage | #ff4500 | bold |
| storage.type, storage.modifier | #ff6347 | bold |
| string, entity.other.inherited-class | #c0c0c0 | — |
| string.tag | #778899 | — |
| string.value | #a9a9a9 | — |
| string.regexp | #7cfc00 | — |
| string.unquoted | #add8e6 | italic |
| constant | #cd5c5c | bold |
| constant.numeric | #c71585 | bold |
| constant.regexp | #ff00ff | — |
| constant.character.escape | #ee82ee | |
| constant.other.placeholder, constant.other.symbol | #ff1493 | bold |
| entity.name.tag | #ffa07a | — |
| entity.other.attribute-name | #ff1493 | — |
| entity.other.attribute-name.id | #dc143c | — |
| entity.name.function.declaration, entity.name.function.definition, entity.name.function.method | #8a2be2 | bold underline |
| meta.selector | #f08080 | — |
| meta.preprocessor | #7fffd4 | — |
| meta.preprocessor.string | #c0c0c0 | — |
| meta.preprocessor.numeric | #c71585 | — |
| meta.brace.curly | #44FF77 | bold |
| meta.block | #87ceeb | — |
| meta.function, meta.function-call | #6495ed | — |
| meta.parens | #8fbc8f | bold |
| markup.quote | #87cefa | — |
| markup.underline | — | underline |
| markup.bold | — | bold |
| markup.heading | #4169e1 | bold |
| markup.italic | — | italic |
| markup.inserted | #556b2f | — |
| markup.deleted | #8b0000 | — |
| markup.changed | #7cfc00 | — |
| support.type | #adff2f | bold |
| support.type.property-name | #9cdcfe | — |
| support.type.sys-types | #ffa500 | bold |
| keyword.other.line-continuation.c | #a0FFa0 | |
| keyword.operator.heredoc.shell, keyword.control.heredoc-token.shell, keyword.operator.redirect.shell | #FF00FF | bold |
| variable.other.special.shell, variable.other.loop.shell, variable.other.positional.shell | #FF7700 | bold |
| variable.language.makefile, variable.other.bracket.shell, variable.other.normal.shell | #1DFF00 | bold |
| meta.compound.c, meta.scope.function-call.makefile, string.interpolated.dollar.shell | #ff00ff | bold |
| entity.name.function.target.makefile | #FFFE24 | bold underline |
| meta.scope.prerequisites.makefile | #68ffd9 | bold italic |
| punctuation.definition.variable.makefile | #FF0098 | bold italic |
| comment.block.jdoc.c | #00CC7777 | underline italic |
| comment.block.dochead.c | #00CC7777 | bold underline italic |
| comment.block.link.c | #DD777755 | underline italic |
| comment.block.bold.c | #554488cc | bold italic |
| comment.block.underline.c | #554488cc | underline italic |
| comment.block.seperator.c | #4400FFee | bold |
| comment.block.token.c | #990044 | bold underline |
| constant.return.success.c | #30FF30 | bold |
| constant.return.failure.c | #FF0044 | bold |
| constant.return.error.c | #FF0000 | bold |
| entity.name.constant.preprocessor.c | #EEEEEE | bold |
| meta.preprocessor.directive.c | #CCCCFF | bold |
| keyword.operator.ternary.c | #FFCF00 | bold |
| keyword.other.preprocessor.c | #AAFAFF | |
| string.quoted.other.lt-gt.include.c, string.quoted.double.include.c | #BF40FF | bold italic |
| entity.name.function.preprocessor.c, entity.name.class | #33FF33BB | bold |
| entity.name.type.cpp | #ff00ffee | bold |
| entity.name.type.inherited.cpp | #7700fffb | bold italic |
| entity.name.type.declaration.c, entity.name.type.typedef.c | #FF2020 | bold |
| keyword.operator.increment-decrement.c | #0FFFFF | bold |
| meta.scope.group.shell, meta.block.special.c, meta.namespace-block.cpp | #7F77FF | |
| meta.preprocessor.macro.c | #7C7C7C | bold |
| string.macro.stringify.c | #777777 | bold |
| entity.name.tag.open.jsx, entity.name.tag.close.jsx, support.class.component.open.jsx, support.class.component.close.jsx | #FF0050 | |
| punctuation.definition.tag.jsx | #FFF000 | |
| punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx | #FF00FF | bold |
| JSXNested | #AFFC | bold |
| JSXAttrs, entity.other.attribute-name.jsx | #AAA | bold |
| keyword.control.module.js | #00ffff | bold |
| string.quoted.module.js | #CC5500 | underline |
| keyword.operator.new.js | #FF33ff | bold |
| text.html.php | #AFF | |
| string.quoted.double.html | #667 | italic |
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}!`;
}