Espresso Syntax Theme
Publisher: smlombardiThemes in package: 1
Based on the default theme from the Espresso editor
Based on the default theme from the Espresso editor
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #434343 | — |
| text.html.basic | #434343 | — |
| constant.language.boolean, constant.language.boolean.true.js, constant.language.boolean.false.js, constant.language.null.js | #AB6767 | — |
| support.class, entity.name.class, entity.name.type.class, meta.class | #C7AF3F | — |
| comment, comment.block.html, punctuation.definition.comment | #B2B2B5 | |
| constant | #9876AA | — |
| constant.character, constant.other, punctuation.definition.entity.html | #6D9CBE | — |
| none | #dedede | — |
| entity.name.function, meta.require, support.function.any-method, support.function | #E19B23 | — |
| meta.function-call | #a9b7c7 | — |
| constant.numeric | #8257BE | — |
| keyword | #6618B6 | — |
| keyword.other.special-method | #8fa1b3 | — |
| keyword.operator | #D24493 | — |
| keyword.operator.expression.typeof.js | #ce7827 | — |
| keyword.operator.assignment.js | #434343 | — |
| storage | #9FB3C2 | — |
| storage.type | #A45F2A | — |
| constant.character.escape, constant.character.escape.css, constant.character.escape.scss, constant.other.symbol, entity.other.inherited-class, invalid.illegal.bad-ampersand.html, meta.string.quoted.embedded.line.php.source.single.string-contents, string, string.quoted.double, string.quoted.single | #B0723C | — |
| support, support.constant, support.type, support.class | #C7AF3F | — |
| support.class.console.js | #FF8843 | — |
| support.function.console.js | #FFD24A | — |
| variable, punctuation.definition.variable.php, variable.other.php | #9876AA | — |
| variable.other.object.js | #7DB011 | — |
| variable.parameter.js | #A98AAB | — |
| variable.other.property, variable.other.object.property | #20807F | — |
| meta.object-literal.key, meta.object.member.object-literal.key, meta.object-literal.key.js entity.name.function.js | #9975ab | — |
| function.storage.type.block.js | #ce7827 | — |
| support.function.dom.js | #9975ab | — |
| keyword.control.export.ts, keyword.control.flow.ts | #ce7827 | — |
| entity.name.type.ts | #a9b7c7 | — |
| storage.modifier.ts | #AB6767 | — |
| entity.name.function.ts, punctuation.decorator.ts | #a9b7c7 | — |
| support.type.class.declaration.method.return.primitive.ts, type.annotation.support.class.declaration.method.parameters.primitive.ts | #abdee8 | — |
| variable.language.this.ts | #BEC7A9 | — |
| block.variable.other.object.class.declaration.property.method.ts, block.variable.other.object.class.declaration.method.ts, block.variable.other.object.array.literal.class.declaration.method.var.expr.ts, block.variable.class.declaration.method.parameter.arrow, ts.block.variable.other.class.declaration.property.method.ts | #a9b7c7 | — |
| block.variable.other.object.class.declaration.method.ts, block.variable.other.object.array.literal.class.declaration.method.var.expr.ts block.variable.class.declaration.method.parameter.arrow.ts, block.variable.other.class.declaration.property.method.ts | #9975ab | — |
| ts.block.class.declaration.method.constant.numeric.decimal | #6696bd | — |
| ts.entity.name.class.type.method.declaration.parameters.return, ts.punctuation.definition.begin.class.type.method.declaration.parameters.return.typeparameters, ts.punctuation.definition.end.class.type.method.declaration.parameters.return.typeparameters, ts.block.entity.name.class.type.method.declaration.parameters.new.expr, ts.block.punctuation.definition.begin.class.type.method.declaration.parameters.typeparameters.new.expr, ts.block.punctuation.definition.end.class.type.method.declaration.parameters.typeparameters.new.expr, ts.block.objectliteral.object.member.object-literal.key.class.declaration.method | #9975ab | — |
| ts.keyword.control.block.class.method.declaration.flow | #a0b3c1 | — |
| ts.string.quoted.single.class.field.declaration | #698857 | — |
| ts.block.variable.class.declaration.method.parameter.arrow | #a9b7c7 | — |
| meta.selector, entity.other.attribute-name.class.css, entity.other.attribute-name.parent-selector-suffix.scss | #3D79BD | — |
| punctuation.definition.entity.css, meta.selector.css, | #3D79BD | — |
| entity.name.tag.scss, entity.name.tag.css | #D256A6 | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id.css punctuation.definition.entity.css | #8BB8A7 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.sass, meta.property-list.css meta.property-name.css, meta.property-list.scss meta.property-name.scss, entity.name.tag.custom.scss, meta.property-list.scss meta.property-name.sass, entity.name.tag.custom.sass | #DA4A53 | — |
| meta.property-group support.constant.property-value.css, meta.property-group support.constant.property-value.sass, meta.property-group support.constant.property-value.scss, meta.property-list.css meta.property-value.css, meta.property-value support.constant.property-value.css, meta.property-value support.constant.property-value.sass, meta.property-value support.constant.property-value.scss, meta.property-value.scss, parameter.less.data-uri comment markup.raw, scss.meta.set.variable.constant.support.font-name, source.less meta.property-value.css, meta.property-value.scss support.type.property-name.scss | #47A01B | — |
| constant.numeric.color.hex-value.scss punctuation.definition.constant.scss, constant.numeric.color.hex-value.scss, constant.other.color, constant.other.color.rgb-value, constant.other.rgb-value.css, keyword.other.unit, meta.property-value constant, support.constant.named-color, constant.numeric.color.rgb-value.scss | #47A01B | — |
| meta.constructor.argument.css, meta.constructor.argument.sass | #8F9D6A | — |
| source.scss entity.other.attribute-name.placeholder.scss, source.scss entity.other.attribute-name.placeholder.scss punctuation.definition.entity.scss, source.sass entity.other.attribute-name.placeholder.sass, source.sass entity.other.attribute-name.placeholder.sass punctuation.definition.entity.sass, entity.other.attribute-name.placeholder.scss, entity.other.attribute-name.placeholder.scss punctuation.definition.entity.scss | #6AA1AC | — |
| meta.preprocessor.at-rule keyword.control.at-rule, meta.at-rule.import, keyword.control.at-rule | #8693A5 | — |
| keyword.other.important, token.literal.sass | #CD6564 | |
| meta.at-rule.constant.numeric.media, meta.property-list.property-value.constant.numeric, scss.meta.property-list.at-rule.media, property-list.scss.constant.numeric.variable.set, meta.scss.set.variable.constant.numeric.map, scss.meta.set.variable.constant.numeric, scss.meta.at-rule.property-list.constant.numeric.media, constant.numeric.scss | #47A01B | — |
| meta.at-rule.keyword.other.unit.media, property-list.scss.set.variable.keyword.unit, other.meta.scss.set.variable.keyword.unit.map, scss.meta.set.variable.keyword.other.unit, scss.meta.at-rule.keyword.property-list.other.unit.media, meta.scss.keyword.other.unit.property-list.property-value, keyword.other.unit.scss, keyword.other.unit.css, keyword.other.unit.scss | #47A01B | — |
| entity.property-list.other.attribute-name.pseudo-element.css, entity.property-list.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #AB6767 | — |
| entity.other.attribute-name.attribute.scss | #AB6767 | — |
| string.quoted.double.attribute-value.scss | #82A66D | — |
| support.function.misc.scss, keyword.control.at-rule.function.scss, keyword.control.at-rule.function.scss punctuation.definition, entity.name.function.scss | #E18F00 | — |
| keyword.control.at-rule.import, keyword.control.at-rule.import punctuation.definition | #47A01B | — |
| meta.at-rule.return.scss, meta.at-rule.return.scss punctuation.definition, meta.at-rule.else.scss, meta.at-rule.else.scss punctuation.definition, meta.at-rule.if.scss, meta.at-rule.if.scss punctuation.definition, | #CC7832 | — |
| keyword.control.at-rule.media, keyword.control.at-rule.media punctuation.definition | #A48BBD | — |
| support.type.property-name.media | #578BCB | — |
| scss.meta.at-rule.import.string.quoted.single | #82A66D | — |
| keyword.control.at-rule.mixin.scss, keyword.control.at-rule.mixin.scss punctuation.definition, meta.at-rule.include.scss | #6D9CBE | — |
| keyword.control.at-rule.include, keyword.control.at-rule.include punctuation.definition | #6D9CBE | — |
| keyword.control.at-rule.font-face, keyword.control.at-rule.font-face punctuation.definition | #6D9CBE | — |
| keyword.control.at-rule.keyframes.scss, keyword.control.at-rule.keyframes.scss punctuation.definition | #9084BE | — |
| meta.at-rule.keyframes.scss entity.other.attribute-name.scss | #6897BB | — |
| keyword.control.content.scss, keyword.control.content.scss punctuation.definition | #A5C261 | — |
| variable.scss | #5F36B7 | — |
| punctuation.definition.interpolation.begin.bracket.curly.scss, punctuation.definition.interpolation.end.bracket.curly.scss | #81353B | — |
| entity.name.tag.reference.scss | #C26232 | — |
| invalid.illegal | #F8F8F0 | — |
| invalid.deprecated | #F8F8F0 | — |
| string.quoted.double.html invalid.illegal.bad-ampersand.html | #d0c39b | — |
| markup.heading punctuation.definition.heading, entity.name.section | #BF93B5 | |
| markup.bold | #ebcb8b | |
| markup.italic | #B4B378 | |
| markup.raw.inline | #a3be8c | — |
| string.other.link | #bf616a | — |
| meta.link, meta.paragraph.inline.link.underline.detected-link | #B2885F | — |
| markup.list | #ababab | — |
| markup.quote | #d08770 | — |
| meta.separator | #c0c5ce | — |
| punctuation.definition, punctuation.section.function, punctuation.separator, punctuation.support.type.property-name, punctuation.accessor.ts, meta.brace.round, meta.brace.square, meta.type.annotation.ts, support.constant.mathematical-symbols, block.brace.array.literal.square, block.brace.round, block.punctuation, brace.array.literal.square, brace.type.square, punctuation.decorator.objectliteral.object.member.accessor, punctuation.section.property-list, meta.property-list.scss, punctuation.section.array | #000000 | — |
| punctuation.terminator | #434343 | — |
| keyword.operator.comparison, keyword.operator.logical | #DFB726 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, punctuation.section.embedded.begin.metatag.php, punctuation.section.embedded.end.metatag.php, meta.embedded.block.php punctuation.section.embedded.end.metatag.php source.php, meta.embedded.line.php punctuation.section.embedded.end.metatag.php source.php | #47A01B | — |
| string.regexp | #589694 | — |
| meta.embedded.block.php source.php, keyword.operator.string.php, meta.embedded.line.php source.php, keyword.operator.assignment.php | #434343 | — |
| meta.block.embedded.php.source.comment.documentation.phpdoc | #ACB5B5 | — |
| constant.character.escape | #557877 | — |
| punctuation.section.embedded, variable.interpolation | #9975ab | — |
| meta.tag.any.html.string.quoted.double.embedded.line.php.source.constant.language.inline, meta.embedded.line.php.source.constant.language | #AB6767 | — |
| meta.function-call.php | #0A5AB7 | — |
| keyword.control.php | #AB3E3E | — |
| support.function.construct.output.php | #3D79BD | — |
| support.type.property-name.json | #9876AA | — |
| meta.structure.dictionary.value.json, string.quoted.double.json | #82A66D | — |
| constant.language.json | #AB6767 | — |
| entity.name.tag, keyword.control.html.elements, entity.name.tag.inline.any.html, entity.name.tag.block.any.html, meta.tag.inline.any.html, meta.tag.structure.any.html | #3270C2 | — |
| punctuation.definition.tag | #86C0EE | — |
| meta.tag.any.html entity.other.attribute-name.html, meta.tag.block.any.html entity.other.attribute-name.html, meta.tag.inline.any.html entity.other.attribute-name.html, meta.tag.other.html entity.other.attribute-name.html, source.js.embedded.html entity.other.attribute-name.html, meta.tag.structure.any.html entity.other.attribute-name.html, meta.tag.block.any.html | #53A4E0 | — |
| string.quoted.double.html, meta.template string.quoted.double | #DA4A53 | — |
| entity.other.attribute-name.id | #8AB8A2 | — |
| comment.block.documentation.js, comment.block.documentation.js punctuation.definition.comment.js | #859A90 | — |
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}!`;
}