7.1.4 • Published 3 months ago

@refinitiv-ui/theme-compiler v7.1.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 months ago

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.

7.1.4

3 months ago

7.1.3

4 months ago

6.3.9

4 months ago

7.1.2

4 months ago

6.3.8

4 months ago

7.1.1

5 months ago

6.3.7

5 months ago

6.3.2

10 months ago

7.1.0

6 months ago

7.0.0

10 months ago

7.0.4

8 months ago

7.0.3

9 months ago

7.0.2

10 months ago

7.0.1

10 months ago

6.3.4

9 months ago

6.3.3

10 months ago

6.3.6

6 months ago

6.3.5

8 months ago

6.3.1

11 months ago

7.0.0-next.3

11 months ago

7.0.0-next.1

11 months ago

7.0.0-next.2

11 months ago

6.3.0

1 year ago

6.1.0

1 year ago

6.1.1

1 year ago

7.0.0-next.0

1 year ago

6.2.0

1 year ago

6.0.4

2 years ago

6.0.1

2 years ago

6.0.3

2 years ago

6.0.2

2 years ago

6.0.0

2 years ago

6.0.0-next.0

2 years ago

5.0.0-dev.204

2 years ago

5.0.8-dev.0

2 years ago

5.1.0-alpha.1

2 years ago

5.1.0-alpha.0

2 years ago

5.0.8

2 years ago

5.0.7

2 years ago

5.0.6

2 years ago

5.0.5

3 years ago

5.0.3

3 years ago

5.0.2

3 years ago

5.0.2-next.1

3 years ago

5.0.2-next.0

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

5.0.0-beta.3

3 years ago

5.0.0-beta.1

3 years ago