$themes: (
    dark: (
        bodysize: 15px,
        h1: 24px,
        h2: 18px,
        p: 14px,
        bodybg: #4d4d4d,
        cardbg: #3d3d3d,
        navbg: #2c2c2c,
        color0: #000000,
        txtcolor1: #dddddd,
        txtcolor2: #999999,
        txtcolor3: #666666,
        txtcolor4: #424242,
        txtcolor5: #2c2c2c,
        txtcolor100: #ffffff,
        menucolor: #dddddd,
        menuhover: #000000,
        menudropitemhover: #2c2c2c,
        crumbdrophover: #eee,
        crumbdropitemhover: #2c2c2c,
        label-count: #000000,
        label-count-bg: #ffffff, 
        trHoverColor: #eeeeee,
        trBorderColor: #666666,
        barbg: #333333,
        barvalue: #FE802A,
        windblue: #226B9D,
        grassgreen: #309F39,
        neutral: #369894,
        alert: #D52E2B,
        warning: #E8AE31,
        operations:#00C90F,
        virtual:#01579B,
        service: #008ACE,
        comm: #999,
        predictor:#8D41CE,
        ticket:#ddd,
        focusborder: #666,
        online1:#20BF6B,
        online2:#FA8231,
        online3:#2D98DA,
        online4:#0FB9B1,
        online5:#EB3B5A,
        online6:#8854D0,
        online7:#778CA3,
        online8:#FED330,
        tag-selected:#2c2c2c,
        unknown: #EF862C,

    ),
    light: (
        bodysize: 15px,
        h1: 24px,
        h2: 18px,
        p: 14px,
        bodybg: #e0e0e0,
        cardbg: #ffffff, 
        navbg: #ffffff,
        color0: #ffffff,
        txtcolor1: #2c2c2c,
        txtcolor2: #424242,
        txtcolor3: #666666,
        txtcolor4: #999999,
        txtcolor5: #dddddd,
        txtcolor100:#555555,
        menucolor: #666666,
        menuhover: #eee,
        menudropitemhover: #ddd,
        crumbdrophover: #ddd,
        crumbdropitemhover: #999,  
        label-count: #ffffff,
        label-count-bg: #212121,
        trHoverColor: #000000,
        trBorderColor: #999999,
        barbg: #f2f2f2,
        barvalue: #FE802A,
        windblue: #20BECE,
        grassgreen: #00C90F,
        neutral: #369894,
        alert: #D52E2B,
        warning: #E8AE31,
        operations:#00C90F,
        virtual:#01579B,
        service: #20BECE,
        comm: #999,
        predictor:#8D41CE,
        ticket:#ddd,
        focusborder: #ccc,
        online1:#20BF6B,
        online2:#FA8231,
        online3:#2D98DA,
        online4:#0FB9B1,
        online5:#EB3B5A,
        online6:#8854D0,
        online7:#778CA3,
        online8:#FED330,
        tag-selected:#eeeeee,
        unknown: #EF862C,
    ),
  );
  
  @mixin themify($themes) {
    @each $theme, $map in $themes {
      .theme-#{$theme} & {
        $theme-map: () !global;
        @each $key, $submap in $map {
          $value: map-get(map-get($themes, $theme), '#{$key}');
          $theme-map: map-merge($theme-map, ($key: $value)) !global;
        }
        @content;
        $theme-map: null !global;
      }
    }
  }

  @mixin themifyPrivate($themes) {
    @each $theme, $map in $themes {
      .theme-#{$theme} :host & {
        $theme-map: () !global;
        @each $key, $submap in $map {
          $value: map-get(map-get($themes, $theme), '#{$key}');
          $theme-map: map-merge($theme-map, ($key: $value)) !global;
        }
        @content;
        $theme-map: null !global;
      }
    }
  }
  
  @function themed($key) {
    @return map-get($theme-map, $key);
  }