3.0.2 • Published 5 years ago

@pxblue/themes v3.0.2

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

PX Blue themes for Eaton applications

This package provides theming support for Eaton applications using the PX Blue design system. It includes resources for developers using:

Installation

Install with npm

npm install --save @pxblue/themes

or yarn

yarn add @pxblue/themes

Usage

Depending on the framework that you are using, PX Blue themes are applied in different ways.

Angular w/ Angular Material

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

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

"styles": [
    "src/styles.scss",
    "./node_modules/typeface-open-sans"
],

React w/ Material UI

import { 
    MuiThemeProvider, 
    createMuiTheme 
} from '@material-ui/core/styles';
import * as PXBThemes from '@pxblue/themes/react';
require('typeface-open-sans');

...
<MuiThemeProvider theme={createMuiTheme(PXBThemes.blue)}>
    <App />
</MuiThemeProvider>

NativeScript

// in styles.scss or your top-level sass file
import '~@pxblue/themes/nativescript/theme.scss'

React Native

The React Native theme provides a color palette but not a comprehensive automatic styling system. You will need to manually apply the appropriate colors to various elements in your application.

import * as Colors from '@pxblue/themes/react-native'
...
<Text style={{color: Colors.blue['500']}}>Hello World!</Text>

Publishing

To publish this packages to npm, you must be authenticated to npm in your terminal as px-blue. Type the following to see if you are authenticated:

npm whoami

If you are not, you will need to log in:

npm adduser px-blue

You'll be prompted to enter the password and then you'll be ready to publish.

To transpile all of the downstream packages, run one of the following in the root directory:

npm run build:all
yarn build:all

You can then version the packages and publish:

npm version <type>
npm publish

If you would like to transpile all downstream packages, apply a patch version, and publish, you can do so with a single command:

npm run publish:full
yarn publish:full
0.0.0

5 years ago

4.0.0

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.1-beta.0

5 years ago

3.0.0-beta.0

5 years ago

3.0.0

5 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.1-beta.1

5 years ago

2.2.1-beta.0

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.2.0-beta.2

5 years ago

2.2.0-beta.1

5 years ago

2.2.0-beta.0

5 years ago

2.1.0

5 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago