/* THEME MIXINS
   -------------------------------------------------------------------------------------------------------------------------------------------- */


@mixin fontawesome {
    display: inline-block;
    font-family: FontAwesome;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}




// Function for switching theme background colors

@function bgColorSwitch($dark-theme: false, $surface: false, $other-color: false, $color: $dark-background) {
    @if $dark-theme {
        @if $surface {
            @return $dark-surface;
        } @else {
            @return $dark-background;
        }
    }

    @else {
        @if $other-color {
            @return $color;
        }

        @else {
            @return $light-background;
        }
    }
}


// Function for switching theme text colors

@function txtColorSwitch($dark-theme: false, $surface: false, $other-color: false, $dark-color: #fff, $light-color: #000) {
    @if $dark-theme {
        @if $surface and $dark-theme {
            @if $other-color {
                @return $color;
            }

            @else {
                @return #fff;
            }
        }

        @else {
            @if $other-color {
                @return $dark-color;
            }

            @else {
                @return #fff;
            }
        }
    }

    @else {
        @if $other-color {
            @return $light-color;
        }

        @else {
            @return #000;
        }
    }
}