Flux Theme
Publisher: Danil ReznichenkoThemes in package: 4
Flux themes for VS Code, Cursor, and other VS Code-compatible editors
Flux themes for VS Code, Cursor, and other VS Code-compatible editors
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 |
|---|---|---|
| comment | #B2B6BD | — |
| keyword | #7225E4 | — |
| storage.type | #7225E4 | — |
| entity.name.function | #2585E4 | — |
| constant.numeric | #E46525 | — |
| string | #04BE6D | — |
| support.type, support.variable.dom, support.variable.property, support.variable.property.dom, storage.modifier.import, constant.other.php, variable.other.object.cs, entity.name.type.namespace, variable.other.member.c, meta.using-namespace-declaration.cpp entity.name.type.cpp, meta.class-struct-block.cpp meta.namespace-block.cpp entity.name.type.cpp, variable.other.source.dart, entity.name.namespace.cpp | #E1094A | — |
| entity.name.type, entity.name.type.class | #FD2BEF | — |
| variable | #6E7687 | — |
| variable.parameter, token.variable.parameter, variable.other.jsdoc, variable.language.arguments, function.parameter, entity.name.variable.parameter, meta.function.c, punctuation.vararg-ellipses, variable.other.block.ruby, meta.arguments, entity.name.type.template | #FDA92B | — |
| variable.parameter.url.css | #04BE6D | — |
| variable.other.less, variable.other.sass, variable.scss, meta.function.calc.css, source.sass variable.other | #FDA92B | — |
| variable.other.readwrite.alias, entity.name.type.module, entity.name.package, variable.other, support.variable, meta.definition.variable, variable.other.object, variable.other.readwrite, entity.name.type.enum, meta.method.body, entity.name.variable, variable.other.object.property.cs, meta.block.c, source.c, source.cpp, source.ruby, source.go, meta.class-struct-block, source.dart, source.python, meta.item-access.python, meta.function-call.arguments.python, meta.item-access.arguments.python, variable.parameter.keyframe-list.css, meta.property-value.css, source.css.less | #4F5869 | — |
| variable.other.property, variable.other.object.property, variable.other.constant.property | #2585E4 | — |
| punctuation.separator.key-value, keyword.operator.type.annotation, punctuation.definition.section.case-statement, punctuation.separator.colon, punctuation.separator.other, punctuation.definition.parameters, punctuation.definition.constant.ruby, punctuation.separator.dictionary.key-value, keyword.operator.ternary.dart, punctuation.section.function.begin.python, meta.property-list.css.sass, sass-script-maps, punctuation.colon, punctuation.separator.initializers | #6E7687 | — |
| keyword.operator.assignment, meta.property-value.css keyword.operator.less | #6E7687 | — |
| keyword.operator.key.php | #72B8FECC | — |
| keyword.operator.expression.typeof, keyword.other.typeof, keyword.operator.expression.instanceof, keyword.operator.instanceof | #04A2B4 | — |
| punctuation.separator.comma, punctuation.separator.delimiter, punctuation.separator.list.comma, punctuation.separator.parameter, meta.array.php, punctuation.separator.parameters, punctuation.separator.arguments.python, punctuation.separator.object, meta.function.method.with-arguments.ruby, punctuation.comma, punctuation.separator.element.python, comment.punctuation.comma.sass, meta.at-rule.keyframes.body.css, meta.delimiter.object.comma | #6E7687 | — |
| punctuation.terminator, punctuation.terminator.statement, punctuation.terminator.rule, punctuation.terminator.expression, punctuation.separator.statement, meta.using-namespace-declaration.cpp, invalid.deprecated.semicolon, constant.character.end | #6E7687 | — |
| punctuation.accessor, punctuation.separator.period, punctuation.separator.dot-access, punctuation.separator.method, punctuation.other.period, punctuation.dot, meta.delimiter.property.period | #6E7687 | bold |
| meta.parameters.js | #6E7687 | — |
| support.constant.font-name | #04BE6D | — |
| support.constant.property-value.scss, support.constant.property-value.css, support.constant.vendored.property-value.css | #FD2BEF | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #2585E4 | — |
| meta.object-literal.key, meta.object-literal.key string.quoted, variable.object.property, keyword.operator.optional, support.type.map.key, meta.at-rule.each.scss, meta.property-value.scss | #2B94FD | italic |
| keyword.operator.negation.regexp, keyword.control.anchor.regexp, punctuation.definition.group.capture.regexp, keyword.operator.quantifier.regexp | #FDA92B | — |
| support.class | #2585E4 | — |
| support.class.console, support.class.component | #F50A51 | — |
| support.class.builtin | #2585E4 | — |
| entity.name.class | #2585E4 | — |
| meta.method.declaration | #2585E4 | — |
| storage.type.function.arrow | #7225E4 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.decrement, keyword.operator.increment, keyword.operator.assignment.compound, keyword.operator.less, meta.property-list.css, keyword.operator.sass, keyword.operator.increment-decrement, keyword.operator.css, entity.name.tag.wildcard.scss, keyword.operator.string, keyword.operator.bitwise, keyword.operator.assignment.augmented, storage.type.variable.ruby, keyword.operator.assignment.arithmetic, punctuation.definition.list.begin, variable.language.import-all, constant.language.import-export-all, storage.modifier.reference, storage.modifier.pointer | #04A2B4 | — |
| keyword.operator.new, keyword.other.new, storage.modifier.c, keyword.control.directive.define, keyword.control.def, keyword.control.class, keyword.control.directive.define punctuation.definition.directive, keyword.control.module, keyword.control.new, keyword.preprocessor.define, meta.preprocessor.cs punctuation.separator.hash.cs | #7225E4 | — |
| keyword.operator.expression.in, keyword.operator.expression.of | #E425D7 | — |
| keyword.control, keyword.other.using, keyword.preprocessor.elif, keyword.preprocessor.if, keyword.preprocessor.else, keyword.preprocessor.endif, storage.modifier.extends, keyword.control.directive, punctuation.definition.directive, punctuation.separator.hash, storage.type.modifier, keyword.control.export, keyword.control.import, keyword.control.at-rule.import.css, keyword.control.at-rule.import.less, keyword.control.at-rule.import.sass, keyword.other.import, keyword.import, keyword.package, keyword.control.flow, keyword.other.special-method.ruby, keyword.input, keyword.type.graphql, entity.name.function.definition.special.constructor.cpp, keyword.cmake | #E425D7 | — |
| keyword.operator.ternary, keyword.operator.logical, keyword.operator.comparison, keyword.operator.relational, keyword.operator.or.regexp, keyword.operator.class, keyword.operator.type, keyword.operator.other.ruby, keyword.operator.conditional, punctuation.separator.question-mark, keyword.operator.null-coalescing, punctuation.tilde, punctuation.separator.pointer-access, punctuation.separator.namespace, keyword.operator.dart | #E425D7 | — |
| keyword.control.from, entity.other.keyframe-offset | #E425D7 | — |
| entity.name.function, support.type.pthread, entity.name.scope-resolution.function, meta.block.class.cpp meta.body.class.cpp meta.block.class.cpp entity.name.function.definition.special.constructor.cpp | #206BB6 | — |
| support.function, meta.function-call, support.function.construct.output, invalid.deprecated.gradient.function.css, invalid.deprecated.function.css, support.function.console, support.function.dom | #04A2B4 | — |
| support.function.any-method.builtin.url, support.function.any-method.builtin, support.function.url, support.function.misc, support.function.transform, support.function.calc, support.function.var, support.function.string, support.function.basic_functions, support.function.array, support.function.construct, support.function.datetime, support.function.file, support.function.network, support.function.session, support.function.mail, support.function.filter, support.function.errorfunc, support.function.mysql, support.function.php_odbc, support.function.xml, support.function.math | #2585E4 | — |
| keyword.other.package, keyword.other.class, keyword.other.namespace, keyword.other.enum, keyword.other.operator-decl, keyword.other.interface, keyword.preprocessor, keyword.other.delegate, storage.type.cpp, storage.type.namespace, storage.modifier, storage.type.modifier.cpp, storage.type.language.primitive.cpp, storage.type.built-in.primitive.c, storage.type.struct, storage.type.template, support.type.built-in.posix-reserved.pthread | #7225E4 | — |
| keyword.control.default | #E425D7 | — |
| support.type.primitive, support.type.builtin, entity.name.type.instance, entity.name.type.alias.ts, storage.type.string, storage.type.numeric, storage.type.boolean, storage.type.primitive, meta.type.annotation, meta.method.identifier, meta.return.type, meta.type.parameters, keyword.interface, storage.type.generic, entity.name.type.interface, entity.other.inherited-class, storage.type.cs, entity.name.type.struct, keyword.type, entity.name.type.type-parameter, storage.type.object.array, storage.type.java, entity.name.type.delegate, storage.type.c, support.class.dart, meta.declaration.dart, meta.type.declaration, meta.block.ts, meta.class-struct-block.cpp entity.name.type.cpp, support.type.graphql, meta.function.definition.parameters storage.type.built-in.primitive.c, meta.function.definition.parameters.cpp storage.type.language.primitive.cpp, meta.function.definition.parameters.cpp storage.type.struct.cpp, meta.function.constructor.cpp storage.type.language.primitive.cpp, storage.type.template.argument | #FD2BEF | — |
| entity.name.type.js, new.expr.ts | #2585E4 | — |
| string, punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #04BE6D | — |
| constant.language, constant.language.boolean, keyword.operator.expression.void, constant.language.json | #5C20B6 | italic bold |
| constant.numeric, keyword.other.unit, support.constant.dom, constant.other.character-class.regexp, meta.attribute.id.html entity.other.attribute-name.html, entity.other.attribute-name.id, support.constant.math, support.constant.property.math, support.constant.ext, support.constant.core, variable.other.enummember, constant.other.enum, entity.name.variable.enum-member, entity.name.variable.preprocessor.symbol, entity.name.function.preprocessor.c, entity.other.keyframe-offset.percentage.css, variable.other.constant, constant.other.js | #E46525 | — |
| beginning.punctuation.definition.quote | #2585E4 | — |
| fenced_code.block.language | #E1094A | italic |
| entity.name.tag, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #B0073A | — |
| punctuation.definition.tag, meta.tag.inline.any, meta.tag.block.any, meta.tag.any, meta.tag.structure.any, meta.tag.metadata.script, punctuation.definition.tag.begin, punctuation.definition.tag.end, meta.tag.preprocessor.xml, punctuation.separator.key-value.html, meta.tag.metadata.style.html, meta.tag.attributes.js keyword.operator.assignment, meta.tag.other.html, meta.tag.inline.any.html source.directive.vue meta.brace, punctuation.definition.tag.begin source.js, punctuation.definition.tag.end source.js | #8F96A3 | — |
| text.html.basic, text.html, meta.paragraph, text.html.php, text.html.derivative, text.html.wxml, text.xml, text.html, source.js, source.ignore, source.nginx, text | #6E7687 | — |
| meta.jsx.children | #6E7687 | — |
| punctuation.section.block.begin.bracket, punctuation.section.block.end.bracket, punctuation.definition.block, punctuation.section.embedded.begin, punctuation.section.embedded.end, meta.brace, punctuation.bracket, punctuation.definition.parameters.ruby, punctuation.definition.parameters.begin, punctuation.definition.parameters.end, punctuation.section.function.begin.bracket, punctuation.section.function.end.bracket, punctuation.definition.typeparameters.begin, punctuation.definition.typeparameters.end, punctuation.section.array.end, punctuation.section.array.begin, punctuation.definition.array.end, punctuation.definition.array.begin, punctuation.section.scope.end, punctuation.section.scope.begin, meta.parameter.object-binding-pattern, punctuation.definition.binding-pattern.object, punctuation.definition.arguments.end, punctuation.definition.arguments.begin, punctuation.definition.begin.bracket, punctuation.definition.end.bracket, punctuation.curlybrace.open, punctuation.curlybrace.close, punctuation.parenthesis.open, punctuation.parenthesis.close, punctuation.squarebracket.open, punctuation.squarebracket.close, punctuation.section.method.begin, punctuation.section.method.end, punctuation.section.class.begin, punctuation.section.class.end, punctuation.section.enum.begin, punctuation.section.enum.end, punctuation.section.parameters.begin.bracket, punctuation.section.parameters.end.bracket, punctuation.section.parens.begin.bracket, punctuation.section.parens.end.bracket, punctuation.section.arguments.begin.bracket, punctuation.section.arguments.end.bracket, punctuation.separator.arguments, punctuation.section.function.ruby, punctuation.definition.dictionary.begin, punctuation.definition.dictionary.end, punctuation.separator.dictionary.pair, punctuation.separator.array, punctuation.definition.map.begin.bracket, punctuation.definition.map.end.bracket, punctuation.section.function, punctuation.definition.parameters.end.bracket, punctuation.definition.parameters.begin.bracket, punctuation.section.property-list.begin.bracket, punctuation.section.property-list.end.bracket, punctuation.definition.list.begin, punctuation.definition.list.end, punctuation.definition.binding-pattern.array, punctuation.section.embedded.end.ruby source.ruby, punctuation.section.embedded.begin.ruby source.ruby, source.cs, punctuation.definition.generic.begin.html, punctuation.definition.generic.end.html, punctuation.definition.function.body.begin.bracket, punctuation.definition.function.body.end.bracket, punctuation.definition.modules.begin, punctuation.definition.modules.end, constant.character.brace, punctuation.operation.graphql, punctuation.definition.optional.arguments.begin, punctuation.definition.optional.arguments.end, punctuation.definition.brackets, punctuation.math.begin.bracket, punctuation.math.end.bracket, punctuation.section.angle-brackets, keyword.operator.delete.array.bracket | #6E7687 | — |
| meta.brace.round.css, punctuation.section.property-list.begin.bracket.curly.css, punctuation.section.property-list.end.bracket.curly.css, punctuation.section.function.begin.bracket.round.css, punctuation.section.function.end.bracket.round.css, punctuation.section.media.begin.bracket.curly.css, punctuation.section.media.end.bracket.curly.css, punctuation.definition.parameters.begin.bracket.round.css, punctuation.definition.parameters.end.bracket.round.css, punctuation.section.keyframes.begin.bracket.curly.css, punctuation.section.keyframes.end.bracket.curly.css | #6E7687 | — |
| support.constant.color.w3c-standard-color-name, constant.other.color.rgb-value.hex, constant.other.rgb-value, support.constant.color.w3c-extended-color-name.css | #6E7687 | — |
| support.type.property-name.css, support.type.vendored.property-name.css, meta.at-rule.each.scss support.constant.property-value.css, source.css.scss, entity.name.tag.css | #2B94FDCC | — |
| entity.other.attribute-name, invalid.deprecated.entity.other.attribute-name | #04A2B4 | — |
| entity.other.attribute-name.class.mixin | #2585E4 | — |
| entity.other.attribute-name.class.css, selector.sass, entity.other.attribute-name.parent-selector.css, meta.at-rule.extend.scss | #04BE6D | — |
| entity.other.attribute-name.pseudo-class.css, support.type.property-name.media.css, support.constant.media.css | #04A2B4 | — |
| entity.other.attribute-name.pseudo-element.css | #E1094A | — |
| beginning.punctuation.definition.list, beginning.punctuation.definition.quote | #2585E4 | — |
| string.other.link.title, string.other.link.description | #2585E4 | — |
| string.regexp | #04BE6D | — |
| keyword.other | #E1094A | — |
| constant.character.escape | #04A2B4 | — |
| invalid, invalid.illegal, invalid.illegal.expected-dictionary-separator.json, invalid.broken, invalid.deprecated | #B0073A | italic bold underline |
| source.json meta.structure.dictionary.json > string.quoted.json | #E1094A | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json, source.json meta.structure.array.json > value.json > string.quoted.json, source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation, source.json meta.structure.array.json > value.json > string.quoted.json > punctuation | #04BE6D | — |
| support.type.property-name.json | #206BB6 | — |
| variable.other.global.safer.php, variable.other.global.php | #FDA92B | — |
| variable.language.self, variable.language.this, variable.language.super, variable.language.special.self.python, variable.language.dart, keyword.operator.delete, keyword.operator.expression.delete | #FD712B | italic bold |
| token.info-token | #206BB6 | italic bold |
| token.warn-token | #B67A20 | italic bold |
| token.error-token | #B0073A | italic bold |
| token.debug-token, keyword.other.debugger | #B620AC | italic bold |
| meta.var.expr, storage.type.function, keyword.function, keyword.var, keyword.const, keyword.channel, keyword.struct, keyword.other.struct, keyword.map, keyword.reserved, storage.type.class, storage.type.php, storage.type.interface, storage.type.object, storage.type.primitive.dart, keyword.declaration, keyword.operator.closure.dart, storage.type.enum, storage.type.type, keyword.control.at-rule.function, keyword.control.at-rule.mixin, storage.type.const | #7225E4 | — |
| punctuation.definition.block.tag.jsdoc, storage.type.class.jsdoc, keyword.control.at-rule.keyframes.css | #7225E4 | — |
| support.module.node.js, support.type.object.module.js, support.type.object.module.ts, support.module.node.ts | #7225E4 | — |
| markup.bold, punctuation.definition.bold | #FDA92B | — |
| comment.markup.link, punctuation.definition.comment, markup.quote | #B2B6BD | italic |
| entity.name.section, markup.heading, punctuation.definition.heading | #E1094A | — |
| markup.italic, punctuation.definition.italic | #FD2BEF | italic |
| markup.inline.raw | #04BE6D | — |
| markup.underline.link, markup.underline.link.image, punctuation.definition.metadata | #2B94FD | — |
| markup.inline.raw.string, punctuation.definition.raw, markup.fenced_code.block, markup.fenced_code.block punctuation, markup.raw.block | #7F2BFD | — |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
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}!`;
}