Currently incorporating SASS into my project,
Below is the snippet of my variable code
:root, [data-theme="default"] {
--text-color: #383143;
}
$text-color: var(--text-color);
Utilizing the variable with a lighten function as shown below,
body {
color: lighten($text-color, 10%);
}
Encountering the following error message,
Error: argument
$color
oflighten($color, $amount)
must be a color on line 10 of assets/scss/base/typography.scss, in functionlighten
Seeking guidance on how to use the lighten function with that specific variable format. The requirement is to maintain --text-color: #383143; for the color switching functionality.