emclaug2 / pxblue-theme-demo-angular

pxblue-theme-demo-angular

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular Theme

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/themes/angular/theme.scss",
    "./node_modules/typeface-open-sans"
],

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/themes/angular/theme.scss'

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

// Default Theme
<app-root class="pxb-blue">

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

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

About

pxblue-theme-demo-angular

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:TypeScript 46.8%Language:HTML 26.2%Language:CSS 22.1%Language:Shell 3.6%Language:JavaScript 1.3%