Using SCSS functions in the configuration
In this tutorial, you will learn how to use SCSS functions in the theme configuration.
Last updated
Was this helpful?
In this tutorial, you will learn how to use SCSS functions in the theme configuration.
Last updated
Was this helpful?
Was this helpful?
darken(#0c7ebb, 10%)
darken($sw-color-brand-primary, 10%)lighten(#111, 10%)
lighten($sw-text-color, 10%)complement($color) // RGB complementary color of $color
grayscale($color) // Gray value with same brightness as $color
darken($color, $amount) // Darkens the color $color (e.g. 10%)
lighten($color, $amount) // Lightens $color (e.g. 10%)
desaturate($color, $amount) // Reduces the saturation of $color (e.g. 10%).
saturate($color, $amount) // Increases the saturation of $color (e.g. 10%).
fade-in($color, $amount) // Makes $color more opaque (e.g. 0.1)
fade-out($color, $amount) // Makes $color more transparent (e.g. 0.1)lighten(desaturate($sw-color-brand-secondary, 15%), 5%)