Darcula theme for Elixir
Publisher: ArsenThemes in package: 1
Darcula theme (from IntelliJ) adapted for Elixir language
Darcula theme (from IntelliJ) adapted for Elixir language
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 |
|---|---|---|
| — | #dfe2e5ff | — |
| variable.parameter.function, text.html.basic | #eaeaea | — |
| 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, ts.class.comment.line.double-slash, js.function.punctuation.definition.block.object.objectliteral.member.comment.line.double-slash, meta.js.function.punctuation.definition.block.comment.line.double-slash, comment.block.html | #808080 | |
| constant | #9876AA | — |
| constant.character, constant.other, punctuation.definition.entity.html | #6D9CBE | — |
| none | #dedede | — |
| entity.name.function, meta.require, support.function.any-method, support.function | #ffc765 | — |
| meta.function-call | #a9b7c7 | — |
| constant.numeric | #6897BB | — |
| keyword | #ce7827 | — |
| keyword.other.special-method | #8fa1b3 | — |
| keyword.operator | #c0c5ce | — |
| keyword.operator.expression.typeof.js | #ce7827 | — |
| 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.single.css | #6b8657 | — |
| 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.readwrite.js, variable.other.object.js | #A6B090 | — |
| variable.parameter.js | #A98AAB | — |
| variable.other.property, variable.other.object.property | #759F9E | — |
| 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.objectliteral.object.member.class.declaration.method.language.constant.boolean | #e1a170 | — |
| 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 | #E8BF6A | — |
| entity.scss.meta.property-list.punctuation.other.attribute-name.class.css.definition, entity.punctuation.other.attribute-name.class.css.definition, punctuation.definition.entity.css, meta.selector.css | #a9b7c7 | — |
| entity.name.tag.scss, entity.name.tag.css | #CC7832 | — |
| 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 | #BABABA | — |
| 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 | #A5C261 | — |
| 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 | #6897BB | — |
| 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 | |
| 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 | #6897BB | — |
| 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 | #a4c35b | — |
| 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 | #ffc765 | — |
| keyword.control.at-rule.import, keyword.control.at-rule.import punctuation.definition | #CC7832 | — |
| 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 | #BABABA | — |
| scss.meta.at-rule.import.string.quoted.single | #82A66D | — |
| keyword.control.at-rule.mixin.scss, keyword.control.at-rule.mixin.scss punctuation.definition | #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 | #9975ab | — |
| punctuation.definition.interpolation.begin.bracket.curly.scss, punctuation.definition.interpolation.end.bracket.curly.scss | #A5C261 | — |
| entity.name.tag.reference.scss | #A5C261 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, punctuation.section.embedded.begin.metatag.php, punctuation.section.embedded.end.metatag.php | #CC7832 | — |
| string.regexp | #96b5b4 | — |
| meta.block.embedded.php.source.comment.documentation.phpdoc | #ACB5B5 | — |
| constant.character.escape | #96b5b4 | — |
| 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 | — |
| constant.numeric.php | #6696bd | — |
| punctuation.terminator.expression.php | #CC7832 | — |
| 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 | #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, | #a9b7c7 | — |
| punctuation.terminator | #CC7832 | — |
| keyword.operator.comparison, keyword.operator.logical | #C0B27D | — |
| support.type.property-name.json | #9876AA | — |
| meta.structure.dictionary.value.json, string.quoted.double.json | #82A66D | — |
| constant.language.json | #AB6767 | — |
| constant.numeric.json | #6897BB | — |
| entity.name.tag, punctuation.definition.tag, keyword.control.html.elements, entity.name.tag.inline.any.html, entity.name.tag.block.any.html | #E8BF6A | — |
| 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 | #cacaca | — |
| string.quoted.double.html, meta.template string.quoted.double | #A5C261 | — |
| entity.other.attribute-name.id | #8AB8A2 | — |
| comment.block.documentation.js, comment.block.documentation.js punctuation.definition.comment.js | #859A90 | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| keyword.operator.other.elixir | #81bb24 | — |
| variable.other.constant.elixir | #E6DA00 | bold |
| constant.other.symbol.elixir | #9876AA | — |
| parameter.variable.function.elixir | #8547FF | — |
| comment.documentation.heredoc.elixir | #8A653B | — |
| source.elixir.embedded.source | #CC7832 | — |
| variable.other.anonymous.elixir | #34e7de | — |
| parameter.variable.function.elixir | #E047FF | — |
| keyword.control.elixir | #CC7832 | bold italic |
| punctuation.section.function.elixir | #E6E649 | — |
| constant.character.escape.elixir | #80529C | — |
| string.quoted.double.elixir | #70B347 | — |
| support.function.variable.quoted.single.elixir | #6A8759 | — |
| punctuation.section.regexp.begin.elixir | #47A6B3 | — |
| string.regexp.interpolated.elixir | #47A6B3 | — |
| string.regexp.literal.elixir | #47A6B3 | — |
| punctuation.section.list.begin.elixir | #47A6B3 | — |
| punctuation.definition.string.begin.elixir | #70B347 | — |
| string.quoted.double.interpolated.elixir | #70B347 | — |
| constant.language.elixir | #CC7832 | bold |
| comment.documentation.string | #8A653B | — |
| keyword.other.special-method.elixir | #CC7832 | bold |
| entity.name.type.module.elixir | #E6DA00 | bold |
| keyword.operator.assignment.elixir | #97E649 | — |
| punctuation.definition.variable.elixir | #34e7de | — |
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}!`;
}