@use 'sass:color';
@use 'sass:map';
@use 'sass:meta';
@use '@angular/material' as mat;
@use '../core/tokens/m2-utils';
@use '../core/tokens/m3-utils';

@function get-tokens($theme) {
  @return (
    base: (),
    color: private-get-color-palette-color-tokens($theme, primary),
    typography: (),
    density: ()
  );
}

// Tokens that can be configured through Angular Material's color theming API.
@function private-get-color-palette-color-tokens($theme, $color-variant) {
  $system: m2-utils.get-system($theme);
  $system: m3-utils.replace-colors-with-variant($system, primary, $color-variant);

  @return (
    split-gutter-background-color: map.get($system, outline),
    split-gutter-hover-state-background-color: map.get($system, primary),
  )
}
