🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@refinitiv-ui/theme-compiler

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@refinitiv-ui/theme-compiler

Compiles Element Framework themes into usable JavaScript

latest
Source
npmnpm
Version
7.2.3
Version published
Maintainers
1
Created
Source

Element Framework Theme Compiler

Theme compiler for Element Framework Themes.

npm install -D @refinitiv-ui/theme-compiler

The theme compiler needs to be a dependency of each theme. In the package.json of each theme, add a new build script which calls the compiler.

Usage

You can create npm script and use theme-compiler command to build EF theme.

"scripts": {
  "build": "theme-compiler [output directory] [additional less variables]"
}

Example:

"scripts": {
  "build": "theme-compiler dark --variant=dark"
}

Watch

To watch for changes while you are developing a theme, you can include the watch library.

npm i --save-dev watch

Modify you npm scripts to watch for file changes and recompile the theme.

Example:

"scripts": {
  "build": "theme-compiler dark --variant=dark",
  "watch": "watch 'npm run build' src"
}

Then you can run npm run watch.

Browsers

Theme Compiler uses the Browserslist to Autoprefixing CSS, you can create .browserslistrc in your project to specify the target browsers. See Browserlist for more information.

FAQs

Package last updated on 12 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts