Closed willpinha closed 2 months ago
Collections weren't designed to be imported in a tailwind configuration file.
Also, I don't think we have a documentation page where we show how you can do that.
Closing as it's not a bug
Thanks for the answer! I'll think of an alternative solution. I will also pay attention to the right place to ask my questions.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I cannot use Astro collections inside the
tailwind.config
file, since the module "astro:content" is not definedWhat's the expected result?
Use a collection inside the
tailwind.config
file, since I have a collection with colors definitions and want to build custom Tailwind colors dynamically based on themLink to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-1yjmkk?file=tailwind.config.mjs
Participation