DEV Community

Discussion on: Angular 6: Dynamic Themes Without a Library

Collapse
 
aayushregmi profile image
aayushregmi

This article has been very helpful. But I had one question how can you handle darken and lighten function with css variables?

Collapse
 
maximrobota profile image
Maxim • Edited

Very important question !!!
$variables: (
--cardColor: darken(var(--cardColor), 50%),

argument $color of darken($color, $amount) must be a color