in a project with Tailwind i need to darken a color defined in the tailwind.config.js (directly in the scss file).
@debug "Darken Color: #{darken(theme("colors.gray.500"), 10%)}";
This cause the error:
SassError: $color: theme("colors.gray.500") is not a color.
However when i use the notation "theme("colors.gray.500")" as value and not as a parameter of the darken function it works properly.
Can you explain me what I'm wrong and how to get the color value defined in the configuration file?
Thanks