I have been trying to use tailwind’s theme directive with Sage 10 but somehow it’s not defined in the default installation.
Example
.test-color {
color: theme('colors.red')
}
Error output
Has anyone faced the same issue before?
I have been trying to use tailwind’s theme directive with Sage 10 but somehow it’s not defined in the default installation.
Example
.test-color {
color: theme('colors.red')
}
Error output
Has anyone faced the same issue before?
I’ve just created a PR for Bud to prevent this error this morning! In the meantime you can add this to your .stylelintrc file in the root of your theme.
"rules": {
"function-no-unknown": [
true,
{
"ignoreFunctions": [
"theme"
]
}
]
}