@use 'sass:map';
@use '~@angular/material' as mat;

@mixin color($theme) {
  $config: mat.get-color-config($theme);
  $foreground: map-get($config, foreground);
  $is-dark-theme: map.get($config, is-dark);
  $fill-background: mat.get-color-from-palette($foreground, base, if($is-dark-theme, 0.1, 0.04));

  .mtna-inline-editor-controls-container {
    background-color: $fill-background;
  }
}
