# @pxblue/angular-themes

> Angular themes for PX Blue applications

Latest version **6.3.0** (published 2021-09-28) · BSD-3-Clause license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @pxblue/angular-themes
pnpm add @pxblue/angular-themes
yarn add @pxblue/angular-themes
bun add @pxblue/angular-themes
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 6.3.0 |
| Published | 2021-09-28 |
| First published | 2020-02-20 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 74.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | PX Blue |
| Maintainers | px-blue |
| Keywords | PXBlue, themes, Eaton, Power, Xpert, Angular |

## Links

- npm: https://www.npmjs.com/package/@pxblue/angular-themes
- Repository: https://github.com/pxblue/angular-themes
- Homepage: https://github.com/pxblue/angular-themes/tree/master
- Issues: https://github.com/pxblue/angular-themes/issues
- npm.io page: https://npm.io/package/@pxblue/angular-themes

## Dependencies (2)

- [@pxblue/colors](https://npm.io/package/@pxblue/colors.md) ^3.0.0
- [@fontsource/open-sans](https://npm.io/package/@fontsource/open-sans.md) ^4.1.0

## Recent versions

- 6.3.0 (latest) — 2021-09-28
- 6.3.0-beta.3 (beta) — 2021-09-23
- 6.3.0-beta.2 — 2021-09-23
- 6.3.0-beta.1 — 2021-09-22
- 6.3.0-beta.0 — 2021-09-21
- 6.2.1 — 2021-08-30
- 6.2.1-beta.0 — 2021-08-27
- 6.2.0 — 2021-08-25
- 6.2.0-beta.0 — 2021-08-20
- 6.1.1 — 2021-06-30
- 6.1.0 — 2021-05-28
- 6.0.3 — 2021-04-08
- 6.0.2 — 2021-04-05
- 6.0.1 — 2021-03-31
- 6.0.1-beta.0 — 2021-03-30
- … 25 more at https://npm.io/package/@pxblue/angular-themes/versions

## README

# PX Blue themes for Angular applications

[![](https://img.shields.io/circleci/project/github/pxblue/angular-themes/master.svg?style=flat)](https://circleci.com/gh/pxblue/angular-themes/tree/master)
[![](https://img.shields.io/npm/v/@pxblue/angular-themes.svg?label=@pxblue/angular-themes&style=flat)](https://www.npmjs.com/package/@pxblue/angular-themes)

This package provides theming support for Eaton applications using the PX Blue design system. It includes resources for developers using Angular w/ [Angular Material](https://www.npmjs.com/package/@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:

-   [@pxblue/react-themes](https://www.npmjs.com/package/@pxblue/react-themes)
-   [@pxblue/react-native-themes](https://www.npmjs.com/package/@pxblue/react-native-themes)

## Installation

Install with npm

```shell
npm install --save @pxblue/angular-themes
```

or yarn

```shell
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:

```js
"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.

```scss
// 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:

```HTML
// 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:

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

```

After:

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

```

## Demo

[View on Stackblitz](https://stackblitz.com/github/pxblue/angular-showcase-demo/tree/master)

---
_Source: https://npm.io/package/@pxblue/angular-themes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
