Tesla Syntax Theme
Publisher: smlombardiThemes in package: 1
A soft, colorful, but professional original syntax theme
A soft, colorful, but professional original syntax theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #D0D0D0 | — |
| variable.parameter.function | #A4A8B0 | — |
| 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, punctuation.definition.comment, ts.block.class.method.declaration.comment.line.double-slash, ts.punctuation.definition.decorator.objectliteral.object.member.array.literal.comment.line.double-slash, comment.block.html | #777777 | |
| constant | #C7AF3F | — |
| constant.character, constant.other, punctuation.definition.entity.html | #AB6767 | — |
| none | #dedede | — |
| entity.name.function, meta.require, support.function.any-method, support.function | #C7AF3F | — |
| meta.function-call | #efd77d | — |
| constant.numeric | #C7AF3F | — |
| keyword | #9FB3C2 | — |
| keyword.other.special-method | #8fa1b3 | — |
| keyword.operator | #c0c5ce | — |
| storage, ts.class.storage.modifier.declaration.method.parameters | #9FB3C2 | — |
| storage.type | #e1a170 | — |
| string, constant.other.symbol, entity.other.inherited-class, constant.character.escape, constant.character.escape.scss, constant.character.escape.css, invalid.illegal.bad-ampersand.html, ts.block.string.quoted.single, scss.meta.set.variable.string.quoted.single, meta.string.quoted.embedded.line.php.source.single.string-contents, string.quoted.single.js, string.quoted.double.json, string.quoted.single.scss, string.quoted.double.scss, string.quoted.single.css, string.quoted.double.css | #d0c39b | — |
| support.function, 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 | #b57b91 | — |
| variable.other.readwrite.js, variable.other.object.js | #97AC92 | — |
| variable.parameter.js | #969469 | — |
| variable.other.property.js, variable.other.object.property.js | #C09F6F | — |
| meta.object-literal.key.js | #aa95b7 | — |
| function.storage.type.block.js | #ce7827 | — |
| support.function.dom.js | #aa95b7 | — |
| meta.ts.variable.class.declaration.method.parameters.parameter, ts.decorator.objectliteral.object.member.object-literal.key, ts.variable.object.class.field.declaration.property, ts.objectliteral.object.member.object-literal.key.array.literal.var.expr | #aa95b7 | — |
| ts.keyword.control.class.export | #bf7a75 | — |
| ts.entity.name.type.class | #9CB571 | — |
| ts.class.storage.modifier | #957690 | — |
| ts.decorator.entity.name.function, ts.punctuation.decorator | #66c4d9 | — |
| ts.support.type.class.declaration.method.return.primitive, ts.type.annotation.support.class.declaration.method.parameters.primitive | #abdee8 | — |
| ts.block.variable.class.declaration.method.language.this | #969469 | — |
| ts.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 | #ba9e6d | — |
| ts.block.class.declaration.method.constant.numeric.decimal | #d0c29d | — |
| 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 | #b57b91 | — |
| ts.keyword.control.block.class.method.declaration.flow | #a0b3c1 | — |
| entity.name.tag, punctuation.definition.tag, keyword.control.html.elements, entity.name.tag.inline.any.html, entity.name.tag.block.any.html | #70a1cc | — |
| meta.tag.any.html.entity.other.attribute-name, meta.tag.html.entity.other.attribute-name, meta.tag.xml.entity.localname.other.attribute-name, meta.tag.xml.entity.other.attribute-name.namespace, html.entity.other.attribute-name.source.js.embedded, entity.other.attribute-name.html | #af9fd8 | — |
| string.quoted.double.html | #bdb496 | — |
| entity.other.attribute-name.id | #8AB8A2 | — |
| meta.selector, entity.other.attribute-name.class.css | #b48ead | — |
| entity.name.tag.scss, entity.name.tag.css | #c89c70 | — |
| 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 | #9D9B74 | — |
| meta.property-group support.constant.property-value.css, meta.property-list.css meta.property-value.css, meta.property-value support.constant.property-value.css, meta.property-group support.constant.property-value.scss, meta.property-group support.constant.property-value.sass, meta.property-value support.constant.property-value.scss, meta.property-value support.constant.property-value.sass, constant.numeric.css, constant.numeric.scss, constant.numeric.sass, .variable.parameter.misc.css, parameter.less.data-uri comment markup.raw, source.less meta.property-value.css, scss.meta.set.variable.constant.support.font-name, meta.property-value.scss | #A0A5AC | — |
| support.constant.named-color, meta.property-value constant, keyword.other.unit, constant.other.color.rgb-value, constant.other.rgb-value.css, constant.other.color, constant.numeric.color.hex-value.scss, constant.numeric.color.hex-value.scss punctuation.definition.constant.scss | #a4b3ca | — |
| 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 | #95C1CA | — |
| meta.preprocessor.at-rule keyword.control.at-rule, meta.at-rule.import, keyword.control.at-rule | #8693A5 | — |
| keyword.other.important, token.literal.sass | #CD6564 | — |
| keyword.control.at-rule.media | #CD9D4B | — |
| support.type.property-name.media | #9d9b74 | — |
| 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 | #d0c29d | — |
| 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 | #627FAC | — |
| keyword.control.at-rule.import | #CD9D4B | — |
| 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 | #ae5555 | — |
| entity.other.attribute-name.attribute.scss | #AE6A6A | — |
| support.function.misc.scss, keyword.control.at-rule.function.scss, entity.name.function.scss | #D28D69 | — |
| keyword.control.at-rule.mixin.scss | #D2C369 | — |
| keyword.control.at-rule.include | #D2C369 | — |
| keyword.control.at-rule.font-face | #D2C369 | — |
| keyword.control.content.scss | #A5C261 | — |
| variable.scss | #c07a7a | — |
| punctuation.definition.interpolation.begin.bracket.curly.scss, punctuation.definition.interpolation.end.bracket.curly.scss | #D2C369 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, punctuation.section.embedded.begin.metatag.php, punctuation.section.embedded.end.metatag.php | #CF6A4C | — |
| string.regexp | #96b5b4 | — |
| meta.block.embedded.php.source.comment.documentation.phpdoc | #ACB5B5 | — |
| constant.character.escape | #96b5b4 | — |
| punctuation.section.embedded, variable.interpolation | #ab7967 | — |
| meta.tag.any.html.string.quoted.double.embedded.line.php.source.constant.language.inline, meta.embedded.line.php.source.constant.language | #ab7967 | — |
| keyword.control.php | #AB6767 | — |
| 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, punctuation.definition.bold | #ebcb8b | |
| markup.italic, punctuation.definition.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 | — |
| scss.meta.at-rule.property-list.constant.numeric.media | #d0c29d | — |
| scss.meta.at-rule.keyword.property-list.other.unit.media | #627FAC | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array, punctuation.separator.key-value, support.constant.mathematical-symbols.scss, support.constant.mathematical-symbols.css, punctuation.section.function, meta.tag.block.any.html.punctuation.definition.begin.string.quoted.double, meta.tag.block.any.html.punctuation.definition.end.string.quoted.double, meta.tag.any.html.punctuation.definition.begin.string.quoted.double.inline, meta.tag.any.html.punctuation.definition.end.string.quoted.double.inline, meta.tag.any.html.punctuation.definition.begin.string.quoted double, meta.tag.any.html.punctuation.definition.end.string.quoted double, ts.block.punctuation, ts.block.brace.array.literal.square, ts.brace.type.square, ts.brace.array.literal.square, ts.punctuation.terminator, ts.punctuation.decorator.objectliteral.object.member.accessor, ts.punctuation.separator.comma.decorator.objectliteral, ts.block.brace.round, scss.meta.at-rule.property-list.media, scss.meta.set.variable.keyword.operator.css, meta.tag.any.html.punctuation.string.quoted.double.embedded.line.php.source.inline.terminator.expression, meta.tag.any.html.string.quoted.double.embedded.line.php.source.inline, meta.punctuation.begin.embedded.line.php.section.source.scope, meta.punctuation.end.embedded.line.php.section.source.scope, entity.scss.meta.property-list.punctuation.other.attribute-name.css.definition.pseudo-class, punctuation.definition.dictionary.end.json, punctuation.definition.dictionary.begin.json, punctuation.separator.dictionary.key-value.json, punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json, punctuation.separator.dictionary.pair.json | #dedede | — |
| keyword.operator.comparison.js, keyword.operator.logical.scss | #DD5B5B | — |
| support.type.property-name.json | #AA95B7 | — |
| meta.structure.dictionary.value.json, string.quoted.double.json | #d0c29d | — |
| constant.language.json | #bf7a75 | — |
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}!`;
}