@mixin ngx-color-alpha-theme($theme) {
    $primary: map-get($theme, primary);
    $foreground: map-get($theme, foreground);
    $background: map-get($theme, background);
    .ngx-color-alpha {
        .ngx-color-alpha-alpha {
            background-color: rgba(255, 255, 255, 1);
        }
        .ngx-color-alpha-slider {
            box-shadow: 0 0 4px rgba(0, 0, 0, 1);
            background: rgba(255, 255, 255, 1);
        }
    }
}
@mixin ngx-color-checkboard-theme($theme) {
    .ngx-color-checkboard {
        background-color: rgba(255, 255, 255, 1);
    }
}
@mixin ngx-color-hue-theme($theme) {
    $primary: map-get($theme, primary);
    $foreground: map-get($theme, foreground);
    $background: map-get($theme, background);
    .ngx-color-hue {
        .ngx-color-hue-hue {
            background-color: rgba(255, 255, 255, 1);
        }
        .ngx-color-hue-slider {
            box-shadow: 0 0 4px rgba(0, 0, 0, 1);
            background: rgba(255, 255, 255, 1);
        }
    }
}
@mixin ngx-color-raised-theme($theme) {
    .ngx-color-raised {
        .zDepth-1 {
            @include mat-elevation(1);
        }
        .zDepth-2 {
            @include mat-elevation(2);
        }
        .zDepth-3 {
            @include mat-elevation(3);
        }
        .zDepth-4 {
            @include mat-elevation(4);
        }
        .zDepth-5 {
            @include mat-elevation(5);
        }
    }
}
@mixin ngx-color-editable-input-theme($theme) {
    $foreground: map-get($theme, foreground);
    $background: map-get($theme, background);
    .ngx-color-editable-input {
        .ngx-color-editable-input-value {
            background-color: transparent;
            color: mat-color($foreground, text);
        }
    }
}
@mixin ngx-color-common-theme($theme) {
    @include ngx-color-alpha-theme($theme);
    @include ngx-color-checkboard-theme($theme);
    @include ngx-color-hue-theme($theme);
    @include ngx-color-raised-theme($theme);
    @include ngx-color-editable-input-theme($theme);
}

/*
 * Single mixin to be used as part of whole library theme.
 * For complete component styling use *-complete mixin.
 */
 @mixin ngx-color-alpha-picker-theme($theme) {
    // empty for now
}

/*
 * Complete mixin to be used as standalone styling for whole component.
 * Includes other component mixins which this component uses in its template.
 */
 @mixin ngx-color-alpha-picker-theme-complete($theme) {
    .ngx-color-alpha-picker {
        @include ngx-color-alpha-theme($theme);
    }
    @include ngx-color-alpha-picker-theme($theme);
}
/*
 * Single mixin to be used as part of whole library theme.
 * For complete component styling use *-complete mixin.
 */
@mixin ngx-color-sketch-theme($theme) {
    $primary: map-get($theme, primary);
    $foreground: map-get($theme, foreground);
    $background: map-get($theme, background);
    .ngx-color-sketch {
        .ngx-color-sketch-picker {
            background-color: mat-color($background, card);
            color: mat-color($foreground, text);
            @include mat-elevation(8);
        }
        .ngx-color-sketch-active {
            box-shadow: mat-color($foreground, secondary-text) 0px 0px 0px 1px inset, mat-color($foreground, secondary-text) 0px 0px 4px inset;
        }
        .ngx-color-editable-input {
            .ngx-color-editable-input-value {
                box-shadow: inset 0 0 0 1px mat-color($foreground, secondary-text);
            }
        }
        .ngx-color-sketch-preset-colors {
            .ngx-color-sketch-preset-colors-sketch-swatches {
                border-top: 1px solid map-get($mat-grey, 300);
            }
            .ngx-color-swatch {
                .ngx-color-swatch-swatch {
                    box-shadow: inset 0 0 0 1px mat-color($foreground, secondary-text);
                }
            }
        }
    }
}

/*
 * Complete mixin to be used as standalone styling for whole component.
 * Includes other component mixins which this component uses in its template.
 */
@mixin ngx-color-sketch-theme-complete($theme) {
    .ngx-color-sketch {
        @include ngx-color-hue-theme($theme);
        @include ngx-color-alpha-theme($theme);
        @include ngx-color-checkboard-theme($theme);
        @include ngx-color-editable-input-theme($theme);
    }
    @include ngx-color-sketch-theme($theme);
}
/*
 * Single mixin to be used as part of whole library theme.
 * For complete component styling use *-complete mixin.
 */
@mixin ngx-color-twitter-theme($theme) {
    $primary: map-get($theme, primary);
    $foreground: map-get($theme, foreground);
    $background: map-get($theme, background);
    .ngx-color-twitter {
        .ngx-color-twitter-picker {
            background-color: mat-color($background, card);
            color: mat-color($foreground, text);
            @include mat-elevation(8);
        }
        .ngx-color-twitter-hash {
            background-color: mat-color($background, card);
            color: mat-color($foreground, secondary-text);
            border-left: 1px solid mat-color($foreground, disabled-text);
            border-top: 1px solid mat-color($foreground, disabled-text);
            border-bottom: 1px solid mat-color($foreground, disabled-text);
        }
        .ngx-color-editable-input {
            .ngx-color-editable-input-value {
                border: 1px solid mat-color($foreground, disabled-text);
            }
        }
        .ngx-color-twitter-top-left-triangle>.ngx-color-twitter-triangle,
        .ngx-color-twitter-top-right-triangle>.ngx-color-twitter-triangle {
            border-color: transparent transparent mat-color($background, card);
        }
        .ngx-color-twitter-top-left-triangle>.ngx-color-twitter-triangleShadow,
        .ngx-color-twitter-top-right-triangle>.ngx-color-twitter-triangleShadow {
            border-color: transparent transparent rgba(0, 0, 0, 0.1);
        }
        .ngx-color-twitter-bottom-right-triangle>.ngx-color-twitter-triangle,
        .ngx-color-twitter-bottom-left-triangle>.ngx-color-twitter-triangle {
            border-color: mat-color($background, card) transparent mat-color($background, card);
        }
        .ngx-color-twitter-bottom-right-triangle>.ngx-color-twitter-triangleShadow,
        .ngx-color-twitter-bottom-left-triangle>.ngx-color-twitter-triangleShadow {
            border-color: rgba(0, 0, 0, 0.1) transparent rgba(0, 0, 0, 0.1);
        }
    }
}

/*
 * Complete mixin to be used as standalone styling for whole component.
 * Includes other component mixins which this component uses in its template.
 */
 @mixin ngx-color-twitter-theme-complete($theme) {
    .ngx-color-twitter {
        @include ngx-color-editable-input-theme($theme);
    }
    @include ngx-color-twitter-theme($theme);
}
/*
 * Single mixin to be used as part of whole library theme.
 * For complete component styling use *-complete mixin.
 */
@mixin ngx-color-photoshop-theme($theme) {
    $primary: map-get($theme, primary);
    $foreground: map-get($theme, foreground);
    $background: map-get($theme, background);
    .ngx-color-photoshop {
        .ngx-color-photoshop-picker {
            @if map-get($theme, is-dark) {
                background-color: mat-color($background, card);
            }
            @else {
                background-color: map_get($mat-grey, 300);
            }
            color: mat-color($foreground, text);
            @include mat-elevation(8);
        }
        .ngx-color-photoshop-head {
            @if map-get($theme, is-dark) {
                background-image: linear-gradient( -180deg, map_get($mat-grey, 800) 0%, map_get($mat-grey, 600) 100%);
                border-bottom: 1px solid map_get($mat-grey, 400);
            }
            @else {
                background-image: linear-gradient( -180deg, map_get($mat-grey, 400) 0%, map_get($mat-grey, 200) 100%);
                border-bottom: 1px solid map_get($mat-grey, 400);
            }
            box-shadow: rgba(255, 255, 255, 0.2) 0px 1px 0px 0px inset,
            rgba(0, 0, 0, 0.02) 0px -1px 0px 0px inset;
        }
        .ngx-color-photoshop-hue,
        .ngx-color-photoshop-saturation {
            @if map-get($theme, is-dark) {
                border: 2px solid map_get($mat-grey, 300);
            }
            @else {
                border: 2px solid map_get($mat-grey, 500);
            }
        }
        .ngx-color-photoshop-previews {
            .ngx-color-photoshop-previews-swatches {
                border: 1px solid #B3B3B3;
                border-bottom: 1px solid #F0F0F0;
            }
            .ngx-color-photoshop-previews-new {
                box-shadow: inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000;
            }
            .ngx-color-photoshop-previews-current {
                box-shadow: inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000;
            }
        }
        .ngx-color-photoshop-button {
            .ngx-color-photoshop-button-button {
                @if map-get($theme, is-dark) {
                    background-image: linear-gradient( -180deg, map_get($mat-grey, 700) 0%, map_get($mat-grey, 600) 100%);
                    border: 1px solid map_get($mat-grey, 300);
                }
                @else {
                    background-image: linear-gradient( -180deg, map_get($mat-grey, 400) 0%, map_get($mat-grey, 200) 100%);
                    border: 1px solid map_get($mat-grey, 500);
                }
            }
            .ngx-color-photoshop-button-button.active {
                @include mat-elevation(3);
            }
        }
        .ngx-color-photoshop-fields {
            .ngx-color-editable-input .ngx-color-editable-input-value {
                @if map-get($theme, is-dark) {
                    background-color: mat-color($mat-grey, 600);
                }
                @else {
                    background-color: map_get($mat-grey, 200);
                }
                color: mat-color($foreground, text);
            }
        }
    }
}

/*
 * Complete mixin to be used as standalone styling for whole component.
 * Includes other component mixins which this component uses in its template.
 */

@mixin ngx-color-photoshop-theme-complete($theme) {
    .ngx-color-photoshop {
        @include ngx-color-hue-theme($theme);
        @include ngx-color-editable-input-theme($theme);
    }
    @include ngx-color-photoshop-theme($theme);
}
/*
 * Single mixin to be used as part of whole library theme.
 * For complete component styling use *-complete mixin.
 */
@mixin ngx-color-chrome-theme($theme) {
    $primary: map-get($theme, primary);
    $foreground: map-get($theme, foreground);
    $background: map-get($theme, background);
    .ngx-color-chrome {
        .ngx-color-chrome-picker {
            background-color: mat-color($background, card);
            color: mat-color($foreground, text);
            @include mat-elevation(8);
        }
        .ngx-color-chrome-active {
            box-shadow: inset 0 0 0 1px mat-color($foreground, secondary-text);
        }
        .ngx-color-chrome-fields-toggle-svg {
            @if map-get($theme, is-dark) {
                background-color: map-get($mat-grey, 600);
            }
            @else {
                background-color: map-get($mat-grey, 100);
            }
        }
        .ngx-color-chrome-fields-toggle-svg:hover {
            background-color: map-get($mat-grey, 300);
        }
    }
}

/*
 * Complete mixin to be used as standalone styling for whole component.
 * Includes other component mixins which this component uses in its template.
 */
 @mixin ngx-color-chrome-theme-complete($theme) {
    .ngx-color-chrome {
        @include ngx-color-hue-theme($theme);
        @include ngx-color-alpha-theme($theme);
        @include ngx-color-checkboard-theme($theme);
        @include ngx-color-editable-input-theme($theme);
    }
    @include ngx-color-chrome-theme($theme);
}
/*
 * Single mixin to be used as part of whole library theme.
 * For complete component styling use *-complete mixin.
 */
@mixin ngx-color-github-theme($theme) {
    $foreground: map-get($theme, foreground);
    $background: map-get($theme, background);
    .ngx-color-github {
        .ngx-color-github-picker {
            background-color: mat-color($background, card);
            color: mat-color($foreground, text);
            @include mat-elevation(8);
        }
        .ngx-color-github-top-left-triangle>.ngx-color-github-triangle,
        .ngx-color-github-top-right-triangle>.ngx-color-github-triangle {
            border-color: transparent transparent mat-color($background, card);
        }
        .ngx-color-github-top-left-triangle>.ngx-color-github-triangleShadow,
        .ngx-color-github-top-right-triangle>.ngx-color-github-triangleShadow {
            border-color: transparent transparent rgba(0, 0, 0, 0.1);
        }
        .ngx-color-github-bottom-right-triangle>.ngx-color-github-triangle,
        .ngx-color-github-bottom-left-triangle>.ngx-color-github-triangle {
            border-color: mat-color($background, card) transparent mat-color($background, card);
        }
        .ngx-color-github-bottom-right-triangle>.ngx-color-github-triangleShadow,
        .ngx-color-github-bottom-left-triangle>.ngx-color-github-triangleShadow {
            border-color: rgba(0, 0, 0, 0.1) transparent rgba(0, 0, 0, 0.1);
        }
        .ngx-color-github-swatch {
            .ngx-color-github-swatch-swatch:hover {
                outline: 2px solid mat-color($background, card);
                box-shadow: 0 0 5px 2px mat-color($foreground, text);
            }
        }
    }
}

/*
 * Complete mixin to be used as standalone styling for whole component.
 * Includes other component mixins which this component uses in its template.
 */
 @mixin ngx-color-github-theme-complete($theme) {
    @include ngx-color-github-theme($theme);
}
@mixin ngx-color-swatches-theme($theme) {
    $foreground: map-get($theme, foreground);
    $background: map-get($theme, background);
    .ngx-color-swatches {
        .ngx-color-swatches-picker {
            background-color: mat-color($background, card);
            color: mat-color($foreground, text);
            @include mat-elevation(8);
        }
    }
}

/*
 * Complete mixin to be used as standalone styling for whole component.
 * Includes other component mixins which this component uses in its template.
 */
 @mixin ngx-color-swatches-theme-complete($theme) {
    @include ngx-color-swatches-theme($theme);
}
/*
 * Single mixin to be used as part of whole library theme.
 * For complete component styling use *-complete mixin.
 */
@mixin ngx-color-slider-theme($theme) {
    .ngx-color-slider {
        .ngx-color-hue {
            .ngx-color-hue-slider {
                background-color: white;
                box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
            }
        }
    }
}

/*
 * Complete mixin to be used as standalone styling for whole component.
 * Includes other component mixins which this component uses in its template.
 */
 @mixin ngx-color-slider-theme-complete($theme) {
    .ngx-color-slider {
        @include ngx-color-hue-theme($theme);
    }
    @include ngx-color-slider-theme($theme);
}
/*
 * Single mixin to be used as part of whole library theme.
 * For complete component styling use *-complete mixin.
 */
@mixin ngx-color-material-theme($theme) {
    $foreground: map-get($theme, foreground);
    $background: map-get($theme, background);
    .ngx-color-material {
        .ngx-color-material-picker {
            background-color: mat-color($background, card);
            color: mat-color($foreground, text);
            @include mat-elevation(8);
        }
        .ngx-color-editable-input {
            &.ngx-color-material-input-rgb {
                .ngx-color-editable-input-value {
                    border-bottom: 1px solid map-get($mat-grey, 300);
                }
            }
        }
    }
}

/*
 * Complete mixin to be used as standalone styling for whole component.
 * Includes other component mixins which this component uses in its template.
 */
 @mixin ngx-color-material-theme-complete($theme) {
    .ngx-color-material {
        @include ngx-color-editable-input-theme($theme);
    }
    @include ngx-color-material-theme($theme);
}
/*
 * Single mixin to be used as part of whole library theme.
 * For complete component styling use *-complete mixin.
 */
@mixin ngx-color-compact-theme($theme) {
    $primary: map-get($theme, primary);
    $foreground: map-get($theme, foreground);
    $background: map-get($theme, background);
    .ngx-color-compact {
        .ngx-color-compact-picker {
            background-color: mat-color($background, card);
            color: mat-color($foreground, text);
            @include mat-elevation(8);
        }
        .ngx-color-compact-color {
            .ngx-color-swatch {
                .ngx-color-swatch-swatch {
                    box-shadow: inset 0 0 0 1px mat-color($foreground, secondary-text);
                }
            }
        }
        .ngx-color-compact-fields {
            .ngx-color-editable-input {
                .ngx-color-editable-input-label {
                    color: map-get($mat-grey, 500);
                }
            }
        }
    }
}

/*
 * Complete mixin to be used as standalone styling for whole component.
 * Includes other component mixins which this component uses in its template.
 */
 @mixin ngx-color-compact-theme-complete($theme) {
    .ngx-color-compact {
        @include ngx-color-editable-input-theme($theme);
    }
    @include ngx-color-compact-theme($theme);
}
/*
 * Single mixin to be used as part of whole library theme.
 * For complete component styling use *-complete mixin.
 */
@mixin ngx-color-block-theme($theme) {
    $foreground: map-get($theme, foreground);
    $background: map-get($theme, background);
    .ngx-color-block {
        .ngx-color-block-picker {
            background-color: mat-color($background, card);
            color: mat-color($foreground, text);
            @include mat-elevation(8);

            .ngx-color-editable-input {
                &.ngx-color-block-input {
                    .ngx-color-editable-input-value {
                        box-shadow: inset 0 0 0 1px mat-color($foreground, disabled-text);
                    }
                }
            }
        }
    }
}

/*
 * Complete mixin to be used as standalone styling for whole component.
 * Includes other component mixins which this component uses in its template.
 */
 @mixin ngx-color-block-theme-complete($theme) {
    .ngx-color-block {
        @include ngx-color-checkboard-theme($theme);
        @include ngx-color-editable-input-theme($theme);
    }
    @include ngx-color-block-theme($theme);
}
/*
 * Single mixin to be used as part of whole library theme.
 * For complete component styling use *-complete mixin.
 */
 @mixin ngx-color-hue-picker-theme($theme) {
    // empty for now
}

/*
 * Complete mixin to be used as standalone styling for whole component.
 * Includes other component mixins which this component uses in its template.
 */
@mixin ngx-color-hue-picker-theme-complete($theme) {
    .ngx-color-hue-picker {
        @include ngx-color-hue-theme($theme);
    }
    @include ngx-color-hue-picker-theme($theme);
}
/*
 * Single mixin to be used as part of whole library theme.
 * For complete component styling use *-complete mixin.
 */
@mixin ngx-color-circle-theme($theme) {
    // empty for now
}

/*
 * Complete mixin to be used as standalone styling for whole component.
 * Includes other component mixins which this component uses in its template.
 */
 @mixin ngx-color-circle-theme-complete($theme) {
    @include ngx-color-circle-theme($theme);
}
@mixin ngx-color-modules-theme($theme) {
    @include ngx-color-alpha-picker-theme($theme);
    @include ngx-color-hue-picker-theme($theme);
    @include ngx-color-sketch-theme($theme);
    @include ngx-color-twitter-theme($theme);
    @include ngx-color-photoshop-theme($theme);
    @include ngx-color-chrome-theme($theme);
    @include ngx-color-github-theme($theme);
    @include ngx-color-swatches-theme($theme);
    @include ngx-color-slider-theme($theme);
    @include ngx-color-material-theme($theme);
    @include ngx-color-compact-theme($theme);
    @include ngx-color-block-theme($theme);
    @include ngx-color-circle-theme($theme);
}


@mixin ngx-color-theme($theme) {
    @include ngx-color-common-theme($theme);
    @include ngx-color-modules-theme($theme);
}