Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

toggle buttons angular styles

@import '~@angular/material/theming';

@include mat-core();

$app-primary: mat-palette($mat-indigo);
$app-accent:  mat-palette($mat-pink, A200, A100, A400);

$app-theme: mat-light-theme($app-primary, $app-accent);

@mixin mix-app-theme($app-theme) {
  $primary: map-get($app-theme, primary);
  $accent: map-get($app-theme, accent);

  .mat-button-toggle {
    background-color: mat-color($primary);
    color: mat-color($primary, default-contrast);
  }

  .mat-button-toggle-checked {
    background-color: mat-color($accent);
    color: mat-color($accent, default-contrast);
  }
}

// Include the mixin
@include mix-app-theme($app-theme);
Comment

PREVIOUS NEXT
Code Example
Javascript :: metadata object ANGULAR 
Javascript :: react native stepper 
Javascript :: javascript object prototype 
Javascript :: destructuring js 
Javascript :: check property exists 
Javascript :: call javascript function from python 
Javascript :: Get a random value from an array in JS 
Javascript :: gettimezoneoffset javascript 
Javascript :: run only one test cypress 
Javascript :: JavaScript and HTML DOM Reference 
Javascript :: .then function 
Javascript :: belongstomany sequelize 
Javascript :: Promise.all() with async and await to run in console 
Javascript :: selecting multiple feilds using populate in mongoose 
Javascript :: click 
Javascript :: dependency list useeffect 
Javascript :: map.set javascript 
Javascript :: conver all array to object 
Javascript :: how to generate angular component with scss 
Javascript :: react native image slider 
Javascript :: vue js 
Javascript :: last item of array js 
Javascript :: usestate in react 
Javascript :: js int 
Javascript :: npm ERR! missing script: build:dev 
Javascript :: get week number of month from date moment 
Javascript :: screenshot 
Javascript :: convert number into string 
Javascript :: javascript block link action 
Javascript :: javascript sort strings alphabetically 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =