All Downloads are FREE. Search and download functionalities are using the official Maven repository.

theme-base._colors.scss Maven / Gradle / Ivy

There is a newer version: 15.0.0
Show newest version
@use "sass:meta";

:root {
    @if meta.variable-exists(colors) {
        @each $name, $color in $colors {
            @for $i from 0 through 5 {
                @if ($i == 0) {
                    --#{$name}-50:#{tint($color, (5 - $i) * 19%)};
                }
                @else {
                    --#{$name}-#{$i * 100}:#{tint($color, (5 - $i) * 19%)};
                }
            }

            @for $i from 1 through 4 {
                --#{$name}-#{($i + 5) * 100}:#{shade($color, $i * 15%)};
            }
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy