6.3.0 • Published 3 years ago

@pxblue/angular-themes v6.3.0

Weekly downloads
131
License
BSD-3-Clause
Repository
github
Last release
3 years ago

PX Blue themes for Angular applications

npm.io npm.io

This package provides theming support for Eaton applications using the PX Blue design system. It includes resources for developers using Angular w/ Angular Material. This package comes with two theme options: a Blue theme (standard) and a Dark theme.

For other frameworks, check out our related packages:

Installation

Install with npm

npm install --save @pxblue/angular-themes

or yarn

yarn add @pxblue/angular-themes

Usage

In order to use the PX Blue themes and font (Open Sans), you will need to modify your angular.json file "styles" entries (there is one under "build" and one under "test") to include the PX Blue themes and Open Sans reference:

"styles": [
    "src/styles.scss",
    "./node_modules/@pxblue/angular-themes/theme.scss",
    "./node_modules/@pxblue/angular-themes/open-sans.scss"
],

Alternatively, you can also import the theme file in your top-level SCSS file.

// in styles.scss or your top-level scss file
import '~@pxblue/angular-themes/theme.scss'
import '~@pxblue/angular-themes/open-sans.scss'

You can then apply the theme to your application by adding the proper class to your application's body element:

// Default Theme
<body class="pxb-blue">

// Dark Theme
<body class="pxb-blue-dark">

If you do not specify a theme class, your application will use the default Material theme.

Updating From Version 5 ~> 6

In version 6, we have migrated from the deprecated typeface-open-sans package to @fontsource/open-sans (bundled with the PX Blue themes). You'll need to update your Open Sans references in angular.json:

Before:

'./node_modules/typeface-open-sans';

After:

'./node_modules/@pxblue/angular-themes/open-sans.scss';

Demo

View on Stackblitz

6.3.0

3 years ago

6.3.0-beta.2

3 years ago

6.3.0-beta.3

3 years ago

6.3.0-beta.0

3 years ago

6.3.0-beta.1

3 years ago

6.2.1

3 years ago

6.2.0

3 years ago

6.2.1-beta.0

3 years ago

6.2.0-beta.0

3 years ago

6.1.1

3 years ago

6.1.0

3 years ago

6.0.3

4 years ago

6.0.2

4 years ago

6.0.1

4 years ago

6.0.0

4 years ago

6.0.1-beta.0

4 years ago

6.0.0-beta.2

4 years ago

5.2.1

4 years ago

5.2.1-beta.0

4 years ago

6.0.0-beta.1

4 years ago

5.2.1-beta.1

4 years ago

6.0.0-beta.0

4 years ago

5.2.0

4 years ago

5.2.0-beta.0

4 years ago

5.1.2

4 years ago

5.1.2-beta.0

4 years ago

5.1.1

4 years ago

5.1.0

4 years ago

5.1.0-beta.0

4 years ago

5.0.0

4 years ago

5.0.0-beta.8

4 years ago

5.0.0-beta.7

4 years ago

5.0.0-beta.6

4 years ago

5.0.0-beta.5

4 years ago

5.0.0-beta.4

4 years ago

5.0.0-beta.3

4 years ago

5.0.0-beta.2

5 years ago

5.0.0-beta.1

5 years ago

5.0.0-beta.0

5 years ago

4.0.0

5 years ago

4.0.0-alpha.0

5 years ago