18.7.0 • Published 6 years ago

cx-theme-material v18.7.0

Weekly downloads
58
License
SEE LICENSE.md
Repository
-
Last release
6 years ago

Material Theme

This is a package that enables Material Design like appearance for the CxJS framework. Take a look at the theme preview and compare it to the other themes here.

Usage

In order to use the theme, install its npm package:

npm install cx-theme-material

Import theme's JavaScript. If you want material design label and validation behavior, do the following:

import { enableMaterialLabelPlacement, enableMaterialHelpPlacement } from "cx-theme-material";

enableMaterialLabelPlacement();
enableMaterialHelpPlacement();

otherwise, just import the theme:

import "cx-theme-material";

Then, import theme styles from the package by adding the following snippet to one of your SCSS files:

// theme variables can be overridden here

@import "~cx-theme-material/src/variables";

// theme state-style-maps can be overridden here, before importing css

@import "~cx-theme-material/src/index";

// add custom CSS here

If you are using cx-scaffold to start, be sure to replace the line under the comment inside config/webpack.config.js:

//add here any ES6 based library
include: /[\\\/](app|cx|cx-react)[\\\/]/,

with the following:

//add here any ES6 based library
include: /[\\\/](app|cx|cx-react|cx-theme-material)[\\\/]/,

Finally, don't forget to add material icons to your project, as described here.

To learn more about Cx styling and how to customize it, click here.

18.7.0

6 years ago

18.5.4

6 years ago

18.5.3

6 years ago

18.5.2

6 years ago

18.5.1

6 years ago

18.5.0

6 years ago

17.10.0

7 years ago

17.9.0

7 years ago

17.8.0

7 years ago

17.7.0

7 years ago

17.4.7

7 years ago

17.4.6

7 years ago

17.4.5

7 years ago

17.4.4

7 years ago

17.4.3

7 years ago

17.4.2

7 years ago

17.4.1

7 years ago

17.4.0

7 years ago