@use '../button-styling' as *;
@use '../../../00-mixins/mixins' as *;

///
/// Primary button type.
///
/// @since 3.0.0
/// @access public
///
%button-primary,
.button-primary {
  @include theme('background-color', 'button-primary-background');
  @include theme('color', 'button-primary-color');
  @include theme-content('button-primary-background', 'button-primary-hover-background') {
    background-image: linear-gradient(0deg, $theme-color, $theme-color);
  };

  & {
    border: 0;
  }

  &:focus {
    @include theme('background-color', 'button-primary-hover-background');
    @include theme('color', 'button-primary-hover-color');
  }

  &:active {
    @include theme('background-color', 'button-primary-active-background');
    @include theme('color', 'button-primary-active-color');
  }
}
