TypeDark
Publisher: BonnyAD9Themes in package: 4
Dark theme with useful semantic highlighting.
Dark theme with useful semantic 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 |
|---|---|---|
| meta.preprocessor string, entity.name.namespace, entity.name.section.vhdl, entity.name.type.namespace, support.other.namespace, entity.name.type.package | #19b6ff | — |
| entity.name.function, support.function, entity.name.label.cs | — | italic |
| variable.parameter, variable.other.makefile, meta.property-name.css, variable.other.positional, variable.other.metavariable.name, entity.name.function.io.brainfuck, constant.other.option.dash.shell, constant.other.option | #ffa632 | italic |
| punctuation.definition.directive, copula | #7faeff | — |
| keyword.operator, storage.modifier.pointer.cpp, source.makefile punctuation, storage.type.function.arrow.js, punctuation.separator.key-value.html, punctuation.definition.variable.php, keyword.control.cshtml.transition, source.prolog keyword.control, storage.type.function.arrow.ts, punctuation.separator.statement.background.shell, punctuation.math.operator | #e5dba0 | — |
| comment.block, punctuation.definition.comment, comment.ebnf | #7f7f7f | italic |
| comment.line, comment meta.paragraph, comment.source | #666666 | italic |
| keyword.default, keyword.control.context, keyword.control.flow, keyword.control.conditional, keyword.control.exception, keyword.control.loop, keyword.control.directive, keyword.control.twig, keyword.control.awk, source.cpp keyword.control, source.cpp keyword.other, source.python keyword.control, source.java keyword.control, source.java keyword.other, source.c keyword.control, source.c keyword.other, source.shell keyword.control, source.php keyword.control, source.php keyword.other, source.oraclesql keyword.control, source.zig keyword.control, source.js keyword.control, source.ts keyword.control, source.cs storage.type, source.cs storage.modifier, source.cs keyword.other, source.go keyword, source.tsx keyword, source.haskell keyword, text.tex.latex keyword, source.makefile support.function, source.prolog keyword.other, source.rust keyword.control, source.rust keyword.other, source.sql keyword.other, keyword.operator.conjunction, support.type.property-name.table.toml, variable.language.this, variable.language.base, variable.language.java, variable.parameter.function.language.special.self, entity.name.tag, keyword.mnemonic, storage.modifier, storage.type.struct.cpp, storage.type, keyword.operator.quantifier.regexp, keyword.storage.zig, keyword.structure, keyword.cmake, keyword.type.go, keyword.language, source.rust variable.language, entity.name.function.macro.rules.rust, keyword.other.var.cs | #4c8dff | italic |
| string.quoted.double, string.template.js, string.quoted.single.js, meta.preprocessor.string.cs, source.toml string.quoted.single, string.template.ts, constant.string, string.source.cmake, string.quoted.multi, constant.character.set.regexp, string.regexp.quoted.single.python punctuation.definition.string.begin.python, string.regexp.quoted.single.python punctuation.definition.string.end.python, string.regexp, string.unquoted.heredoc, constant.character.math.tex | #e5a55b | — |
| constant.other.placeholder, punctuation.definition.interpolation, punctuation.definition.template-expression, punctuation.section.embedded.begin.php, string.quoted.double.html punctuation.section.tag.twig | #e0e55b | italic |
| invalid.illegal.placeholder, invalid.illegal.unknown-escape | #ff3232 | bold italic |
| invalid.illegal | #ff3232 | bold |
| string.quoted.double constant.character.escape | #ff8800 | italic |
| string.quoted.single | #e5ce5b | — |
| constant.character.escape | #ffd400 | italic |
| constant.numeric, constant.language, constant.other.color, entity.name.tag.backreference, keyword.constant | #d072e5 | — |
| keyword.other.unit, constant.other.color punctuation.definition.constant.css, punctuation.parenthesis.begin.regexp, punctuation.parenthesis.end.regexp | #c32de5 | — |
| variable.other.enummember, constant.enum, constant.other.class.php, invalid.illegal.exception.oraclesql, entity.source.cmake | #ccc88e | — |
| entity.name.type.class, support.class, support.class punctuation.definition.string, entity.name.type.vhdl, variable.other.metavariable.specifier, source.vhdl support.type, entity.name.type.type.vhdl, entity.name.command.shell, meta.class support.function.constructor, entity.other.inherited-class.php, text.aspnetcorerazor entity.name.type.cs | #28c3cc | — |
| entity.name.type.struct, keyword.operator.adverb, entity.name.type.rust, entity.name.type.architecture, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, entity.name.type.go | #28cc92 | — |
| entity.name.type.enum, support.type.property-name.array | #71ce6d | — |
| entity.name.type.interface, text.tex.latex constant.other, entity.other.inherited-class.vhdl, source.vhdl entity.name.type.entity, support.class.mcfunction | #b0cc28 | — |
| meta.interpolation, meta.template.expression.js, meta.template.expression.ts, variable.parameter.label.asm, support.class.math.block, entity.name.type.namespace punctuation.separator.inheritance, meta.use punctuation.separator.inheritance, text.aspnetcorerazor meta.expression | #eeeeee | — |
| entity.name.section | #b2e6ff | bold |
| punctuation.definition.heading | #19b6ff | — |
| markup.inline, markup.fenced_code.block | #e5a55b | — |
| fenced_code.block.language | #e0e55b | italic |
| punctuation.definition.list, punctuation.definition.bold, punctuation.definition.italic | #447fe5 | — |
| markup.italic | — | italic |
| markup.bold markup.italic | — | bold italic |
| markup.bold | — | bold |
| meta.link.inline markup.underline.link, meta.link.reference.markdown constant.other.reference.link.markdown, markup.underline.link.markdown | #447fe5 | — |
| punctuation.definition.link.title, meta.link.inline punctuation.definition.metadata, meta.link.reference.markdown punctuation.definition.constant.end.markdown, meta.link.reference.markdown punctuation.definition.constant.begin.markdown, meta.link.reference.def.markdown | #28c3cc | — |
| punctuation.definition.link.description, meta.image.inline punctuation.definition.metadata, meta.image.reference.markdown punctuation.definition.constant.markdown | #2ecc28 | — |
| string.other.link.title, string.other.link.description, support.type.register | #e5ce5b | — |
| constant.other.reference.link.markdown, constant.other | — | bold |
| markup.underline.link.image, meta.image.reference.markdown constant.other.reference.link.markdown | #28cc92 | — |
| support.type.property-name.json, entity.other.attribute-name, meta.object-literal.key.js string.quoted.double.js, support.type.property-name.toml | #28c3cc | italic |
| entity.name.function.macro.rust, variable.language.makefile, source.css support.constant, entity.name.variable.preprocessor.symbol.cs, source.shell variable.other, text.tex.latex support.function, entity.name.function.preprocessor, storage.source.cmake, support.variable.magic.python, support.function.magic.python, source.oraclesql support.function.builtin, support.function.builtin.zig, variable.source.cmake, variable.language.nawk, variable.language.awk, source.php support.function.construct | #e2ccff | — |
| variable.other.constant, source.css variable | — | bold |
| entity.name.type.numeric, entity.name.type.primitive.rust, storage.type.built-in, keyword.type, support.type.primitive, support.other.match.end.regexp, support.other.match.begin.regexp, storage.type.primitive, support.function.builtin.shell, keyword.other.type, support.type.oraclesql, storage.type.error.go, storage.type.numeric, storage.type.boolean, keyword.map.go, storage.type.haskell | #ed478f | — |
| meta.attribute.rust, meta.function.decorator, storage.type.annotation.java, punctuation.definition.annotation.java, support.other.attribute.cpp, meta.attribute.php, meta.tag.preprocessor.xml | #b4b4b4 | bold |
| meta.preprocessor.macro | #ccc | — |
| source.css variable | #ccdeff | — |
| variable.other.property, variable.other.object.property | #e4ffe7 | — |
| storage.type.class.doxygen, storage.type.class.jsdoc | #355a99 | — |
| comment.block.documentation variable.parameter | #b9833c | — |
| comment markup.inline, punctuation.definition.string.heredoc.shell | #aa7f4f | — |
| comment punctuation.definition.heading | #297ba1 | italic |
| entity.name.type.instance.jsdoc | #337b7f | bold |
| comment entity.name.section | #6c8c9b | bold italic |
| meta.method-call | #e4ffe7 | — |
| meta.tag.template.value.twig, keyword.control.flow.mcfunction | #eee | — |
| keyword.control.at-rule | #4c8dff | — |
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}!`;
}