0.0.6 • Published 3 years ago

@brewermap/theming v0.0.6

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

Theming for Brewer Map Applications

Angular Material based predefined themes, palettes and general styles.

Colors

This are the advailable color palettes:

NameBase Color CodeSCSS VariableColor
Hop#73c369$bm-hop#73c369
Chocolate#453329$bm-chocolate#453329
Amber#912411$bm-amber#912411
Violet#b793c9$bm-violet#b793c9
Oldhop#515913$bm-oldhop#515913
Apricot#ffcead$bm-apricot#ffcead
Orange#ee9e4f$bm-orange#ee9e4f
Dirt#977459$bm-dirt#977459
Wheat#ffdb82$bm-wheat#ffdb82
Water#69a8c3$bm-water#69a8c3

Usage

Just import the main theming scss in the file for the Angular Material custom theme setup and use the palettes

@import "~@angular/material/theming";
@import "~@bm/theming/bm";

$bm-typography: mat-typography-config(
  $font-family: 'Open Sans, sans-serif',
  $headline: mat-typography-level(32px, 48px, 700),
  $body-1: mat-typography-level(16px, 24px, 500)
);

@include mat-core($bm-typography);

$bm-hops-primary: mat-palette($bm-hop);
$bm-hops-accent: mat-palette($bm-chocolate, 800);

$bm-hops-warn: mat-palette($bm-amber);

$bm-hops-theme: mat-light-theme(
  (
    color: (
      primary: $bm-hops-primary,
      accent: $bm-hops-accent,
      warn: $bm-hops-warn,
    ),
  )
);

@include angular-material-theme($bm-hops-theme);