EmphasisTheme
Publisher: Emphasis ThemeThemes in package: 1
Theme Emphasis Dark for programmers
Theme Emphasis Dark for programmers
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 |
|---|---|---|
| Global settings | #bfc7d5 | — |
| comment | #697098 | italic |
| string | #C3E88D | — |
| string.quoted | #C3E88D | — |
| string.unquoted | #bfc7d5 | — |
| support.constant.math | #ffcb6b | — |
| constant.numeric, constant.character.numeric | #F78C6C | — |
| constant.language, punctuation.definition.constant, variable.other.constant | #82AAFF | — |
| constant.character, constant.other | #82AAFF | — |
| constant.character.escape | #F78C6C | — |
| string.regexp, string.regexp keyword.other | #80CBC4 | — |
| meta.function punctuation.separator.comma | #eeffff | — |
| variable | #ffcb6b | — |
| punctuation.accessor, keyword | #c792ea | — |
| storage, storage.type, meta.var.expr storage.type, storage.type.property.js, storage.type.property.ts, storage.type.property.tsx, meta.class meta.method.declaration meta.var.expr | #c792ea | — |
| entity.name.class, meta.class entity.name.type.class | #ffcb6b | — |
| entity.other.inherited-class | #a9c77d | — |
| entity.name.function | #82AAFF | — |
| variable.parameter | #7986E7 | — |
| punctuation.definition.tag, meta.tag | #89DDFF | — |
| entity.name.tag support.class.component, meta.tag.other.html, meta.tag.other.js, meta.tag.other.tsx, entity.name.tag.tsx, entity.name.tag.js, entity.name.tag, meta.tag.js, meta.tag.tsx, meta.tag.html | #ff5572 | — |
| entity.other.attribute-name | #ffcb6b | — |
| entity.name.tag.custom | #ffcb6b | — |
| support.function, support.constant | #82AAFF | — |
| support.constant.meta.property-value | #89DDFF | — |
| support.type, support.class | #ffcb6b | — |
| support.variable.dom | #ffcb6b | — |
| invalid | #ffffff | — |
| invalid.deprecated | #ffffff | — |
| keyword.operator | #89DDFF | — |
| keyword.operator.relational | #c792ea | — |
| keyword.operator.assignment | #c792ea | — |
| comment.line.double-slash | #697098 | — |
| object | #cdebf7 | — |
| constant.language.null | #ff5874 | — |
| meta.brace | #bfc7d5 | — |
| meta.delimiter.period | #c792ea | — |
| punctuation.definition.string | #d9f5dd | — |
| constant.language.boolean | #ff5874 | — |
| object.comma | #ffffff | — |
| variable.parameter.function | #89DDFF | — |
| support.type.vendored.property-name, support.constant.vendored.property-value, support.type.property-name, meta.property-list entity.name.tag | #80CBC4 | — |
| meta.property-list entity.name.tag.reference | #ff5572 | — |
| constant.other.color.rgb-value punctuation.definition.constant | #F78C6C | — |
| constant.other.color | #FFEB95 | — |
| keyword.other.unit | #FFEB95 | — |
| meta.selector | #c792ea | — |
| entity.other.attribute-name.id | #FAD430 | — |
| meta.property-name | #80CBC4 | — |
| entity.name.tag.doctype, meta.tag.sgml.doctype | #c792ea | italic |
| punctuation.definition.parameters | #d9f5dd | — |
| keyword.control.operator | #89DDFF | — |
| keyword.operator.logical | #c792ea | — |
| variable.instance, variable.other.instance, variable.reaedwrite.instance, variable.other.readwrite.instance | #ff5572 | — |
| variable.other.property, variable.other.object.property | #89DDFF | — |
| entity.name.function | #82AAFF | — |
| keyword.operator.comparison | #c792ea | — |
| support.constant, keyword.other.special-method, keyword.other.new | #89DDFF | — |
| support.function | #89DDFF | — |
| invalid.broken | #020e14 | — |
| invalid.unimplemented | #ffffff | — |
| invalid.illegal | #ffffff | — |
| variable.language | #ff5572 | — |
| support.variable.property | #89DDFF | — |
| variable.function | #82AAFF | — |
| variable.interpolation | #ec5f67 | — |
| meta.function-call | #82AAFF | — |
| punctuation.section.embedded | #d3423e | — |
| punctuation.terminator.expression, punctuation.definition.arguments, punctuation.definition.array, punctuation.section.array, meta.array | #bfc7d5 | — |
| punctuation.definition.list.begin, punctuation.definition.list.end, punctuation.separator.arguments, punctuation.definition.list | #d9f5dd | — |
| string.template meta.template.expression | #d3423e | — |
| string.template punctuation.definition.string | #bfc7d5 | — |
| italic | #c792ea | italic |
| bold | #ffcb6b | bold |
| quote | #697098 | italic |
| raw | #80CBC4 | — |
| variable.assignment.coffee | #89DDFF | — |
| variable.parameter.function.coffee | #bfc7d5 | — |
| variable.assignment.coffee | #89DDFF | — |
| variable.other.readwrite.cs | #bfc7d5 | — |
| entity.name.type.class.cs, storage.type.cs | #82AAFF | — |
| entity.name.type.namespace.cs | #B2CCD6 | — |
| entity.name.tag.css, entity.name.tag.less, entity.name.tag.custom.css | #ff5572 | — |
| entity.name.tag.wildcard.css, entity.name.tag.wildcard.less, entity.name.tag.wildcard.scss, entity.name.tag.wildcard.sass | #ff5572 | — |
| keyword.other.unit.css, constant.length.units.css, keyword.other.unit.less, constant.length.units.less, keyword.other.unit.scss, constant.length.units.scss, keyword.other.unit.sass, constant.length.units.sass | #FFEB95 | — |
| meta.attribute-selector.css entity.other.attribute-name.attribute | #F78C6C | — |
| source.js source.css meta.property-list, source.js source.css punctuation.section, source.js source.css punctuation.terminator.rule, source.js source.css punctuation.definition.entity.end.bracket, source.js source.css punctuation.definition.entity.begin.bracket, source.js source.css punctuation.separator.key-value, source.js source.css punctuation.definition.attribute-selector, source.js source.css meta.property-list, source.js source.css meta.property-list punctuation.separator.comma, source.ts source.css punctuation.section, source.ts source.css punctuation.terminator.rule, source.ts source.css punctuation.definition.entity.end.bracket, source.ts source.css punctuation.definition.entity.begin.bracket, source.ts source.css punctuation.separator.key-value, source.ts source.css punctuation.definition.attribute-selector, source.ts source.css meta.property-list, source.ts source.css meta.property-list punctuation.separator.comma | #bfc7d5 | — |
| source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir | #82AAFF | — |
| source.elixir entity.name.function | #ffcb6b | — |
| source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir | #82AAFF | — |
| source.elixir punctuation.definition.string | #a9c77d | — |
| source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #ffcb6b | — |
| source.elixir .punctuation.binary.elixir | #c792ea | — |
| source.go meta.function-call.go | #DDDDDD | — |
| variable.qraphql | #bfc7d5 | — |
| entity.other.attribute-name.id.html | #ffcb6b | — |
| punctuation.definition.tag.html | #89DDFF | — |
| meta.tag.sgml.doctype.html | #c792ea | italic |
| meta.class entity.name.type.class.js | #ffcb8b | — |
| meta.method.declaration storage.type.js | #82AAFF | normal |
| terminator.js | #bfc7d5 | — |
| meta.js punctuation.definition.js | #bfc7d5 | — |
| entity.name.type.instance.jsdoc, entity.name.type.instance.phpdoc | #eeffff | — |
| variable.other.jsdoc, variable.other.phpdoc | #78ccf0 | — |
| variable.other.meta.import.js, meta.import.js variable.other, variable.other.meta.export.js, meta.export.js variable.other | #bfc7d5 | — |
| variable.parameter.function.js | #7986E7 | — |
| variable.other.readwrite.js, variable.other.object.js, variable.parameter.js | #bfc7d5 | — |
| meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #bfc7d5 | — |
| variable.other.object.jsx, meta.object-literal.key.js, meta.object-literal.key.jsx, variable.object.property.js, variable.object.property.jsx | #bfc7d5 | — |
| variable.js, variable.other.js | #bfc7d5 | — |
| entity.name.type.js, entity.name.type.module.js | #ffcb8b | — |
| support.class.js | #bfc7d5 | — |
| support.type.property-name.json | #C3E88D | normal |
| support.constant.json | #ffcb6b | — |
| meta.structure.dictionary.value.json string.quoted.double | #80CBC4 | normal |
| string.quoted.double.json punctuation.definition.string.json | #80CBC4 | normal |
| meta.structure.dictionary.json meta.structure.dictionary.value constant.language | #ff5874 | — |
| variable.other.ruby | #bfc7d5 | — |
| constant.language.symbol.hashkey.ruby | #89DDFF | — |
| entity.name.tag.less | #ff5572 | — |
| meta.attribute-selector.less entity.other.attribute-name.attribute | #F78C6C | — |
| markup.heading | #82b1ff | — |
| markup.italic | #c792ea | italic |
| markup.bold | #ffcb6b | bold |
| markup.quote | #697098 | italic |
| markup.inline.raw | #80CBC4 | — |
| markup.underline.link, markup.underline.link.image | #ff869a | — |
| markup.meta.attribute-list | #a9c77d | — |
| markup.admonition | — | bold |
| markup.list.bullet | #D9F5DD | — |
| markup.superscript, markup.subscript | — | italic |
| string.other.link.title.markdown, string.other.link.description.markdown | #bfc7d5 | — |
| punctuation.definition.string.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, meta.link.inline.markdown punctuation.definition.string | #82b1ff | — |
| punctuation.definition.metadata.markdown | #ff5572 | — |
| beginning.punctuation.definition.list.markdown | #82b1ff | — |
| entity.name.function.asciidoc | #F78C6C | — |
| variable.other.php | #bec5d4 | — |
| support.class.php | #ffcb8b | — |
| meta.function-call.php punctuation | #bfc7d5 | — |
| variable.other.global.php | #ffcb6b | — |
| variable.other.global.php punctuation.definition.variable | #ffcb6b | — |
| constant.language.python | #ff5874 | — |
| variable.parameter.function.python, meta.function-call.arguments.python | #7986E7 | — |
| meta.function-call.python, meta.function-call.generic.python | #B2CCD6 | — |
| punctuation.python | #bfc7d5 | — |
| entity.name.function.decorator.python | #ffcb6b | — |
| source.python variable.language.special | #8EACE3 | — |
| variable.scss, variable.sass, variable.parameter.url.scss, variable.parameter.url.sass | #DDDDDD | — |
| source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable | #82AAFF | — |
| source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable | #bec5d4 | — |
| meta.attribute-selector.scss entity.other.attribute-name.attribute, meta.attribute-selector.sass entity.other.attribute-name.attribute | #F78C6C | — |
| entity.name.tag.scss, entity.name.tag.sass | #ff5572 | — |
| variable.other.readwrite.alias.ts, variable.other.readwrite.alias.tsx, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.object.ts, variable.other.object.tsx, variable.object.property.ts, variable.object.property.tsx, variable.other.ts, variable.other.tsx, variable.tsx, variable.ts | #bfc7d5 | — |
| entity.name.type.ts, entity.name.type.tsx | #78ccf0 | — |
| support.class.node.ts, support.class.node.tsx | #82AAFF | — |
| meta.type.parameters.ts entity.name.type, meta.type.parameters.tsx entity.name.type | #eeffff | — |
| meta.import.ts punctuation.definition.block, meta.import.tsx punctuation.definition.block, meta.export.ts punctuation.definition.block, meta.export.tsx punctuation.definition.block | #bfc7d5 | — |
| meta.decorator punctuation.decorator.ts, meta.decorator punctuation.decorator.tsx | #82AAFF | — |
| meta.tag.js meta.jsx.children.tsx | #82AAFF | — |
| entity.name.tag.yaml | #89DDFF | — |
| variable.parameter.handlebars | #bec5d4 | — |
| entity.other.attribute-name.handlebars variable.parameter.handlebars | #ffcb6b | — |
| entity.other.attribute-name.handlebars | #89DDFF | — |
| entity.other.attribute-value.handlebars variable.parameter.handlebars | #7986E7 | — |
| meta.tag.js meta.embedded.expression.js punctuation.section.embedded.begin.js, meta.tag.js meta.embedded.expression.js punctuation.section.embedded.end.js, meta.property-list.css meta.property-value.css variable.other.less, punctuation.section.embedded.begin.js.jsx, punctuation.section.embedded.end.js.jsx, meta.property-list.scss variable.scss, meta.property-list.sass variable.sass, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.ternary, keyword.operator.comparison, keyword.operator.assignment, keyword.operator.operator, keyword.operator.or.regexp, keyword.operator.expression.in, keyword.operator.type, punctuation.section.embedded.js, punctuation.definintion.string, punctuation | — | normal |
| variable.other.readwrite.js, variable.other.object.js, variable.parameter.js | #BFC7D5 | — |
| keyword.operator.relational.js, keyword.operator.assignment.compound.js, storage.type.function.arrow.js, storage.type.function.js, keyword.control.conditional.js, keyword.control.flow.js, keyword.operator.logical.js, storage.type.js, keyword.operator.comparison.js | #FF5572 | — |
| punctuation.definition.string.begin.js, punctuation.definition.string.end.js, meta.block.js, punctuation.accessor.js, variable.other.object.property.js, keyword.operator.assignment.js, meta.brace.round.js, constant.language.boolean.true.js, constant.language.boolean.false.js | #89DDFF | — |
| support.variable.property.js, entity.name.function.js, variable.other.property.js | #C3E88D | — |
| keyword.control.loop.js | #F78C6C | — |
| string.quoted.single.js, string.quoted.double.js | #FFCB6B | — |
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}!`;
}