@use "../../mixins/index.scss" as *;
@use "../../color-system/_functions.scss" as *;
@use "./_variables.scss" as *;

@mixin kendo-form--theme-base() {

    .k-form,
    .k-form-inline {
        @include fill( $color: k-color(on-app-surface) );

        fieldset {
            legend {
                @include fill( $color: $kendo-fieldset-legend-text );
            }
        }

        .k-form-legend {
            @include fill( $border: $kendo-form-legend-border-color );
        }

        .k-field-info {
            @include fill( $color: k-color(subtle) );
        }

        .k-alert-error {
            @include fill( $color: k-color(error-on-surface) );
        }
    }

    .k-form-error,
    .k-text-error,
    .k-form-field-error .k-label {
        @include fill( $color: k-color(error-on-surface) );
    }

    .k-form-separator {
        @include fill( $border: $kendo-form-separator-border-color );
    }

}
