darken($color, $amount)
//darken(#FFF, 30%)
lighten($color, $amount)
//Makes a color
lighter.darken($color, $amount)
//Makes a color darker.
$btn-bkg: purple;
.btn {
display: inline-block;
padding: 18px;
background: $btn-bkg;
color: white;
&:hover {
background: darken($btn-bkg, 10%)
}
}
darken($color, $amount)
darken($color, 5%);
saturate($color, $amount)
//Makes a color more
saturated.desaturate($color, $amount)
//Makes a color less saturated.
$linkcolour: #0000FF;
a {
color: $linkcolour;
}
a.lighter {
color: lighten($linkcolour, 50%);
}
Code Example |
---|
Css :: scss mixin |
Css :: make element no styles |
Css :: Button CSS normal active hover |
Css :: gap between two flex items |
Css :: portfolio website html css |
Css :: how to centralize cards in css |
Css :: nativescript hr |
Css :: css syntax |
Css :: float: down css |
Css :: how to set unclickable checkbox using css |
Css :: variables css |
Css :: col-md-6 bootstrap |
Css :: bootstrap text truncate after 3 lines |
Css :: showing two iframes side by side |
Css :: font-size |
Css :: purge tailwind css |
Css :: transition css react |
Css :: css transitions |
Css :: Tailwindcss Breadcrumb |
Css :: circle percentage css |
Css :: webkit appreance none select |
Css :: how to give a background color strip in html and css |
Css :: disable on print margin html |
Css :: selectors in css |
Css :: see css from site |
Css :: CSS The object-fit Property |
Css :: screen sizes for css media |
Css :: text overlay animation css |
Css :: how mto change the label font style in css |
Css :: animations css |