Replies: 1 comment
-
Thanks, good idea. I will add it to tailwind.config for the template. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that, if Tailwind classes are added to HTML(JSX) elements within
.mdx
files, some of these classes don't render because they aren't defined in the CSS delivered by the app. Other CSS classes do get defined but I think that's because they're referenced elsewhere in React components within.js
/.jsx
files that are analyzed bypostcss
to be needed for the particular url path. That was what I suspected at least. It doesn't seem that use of Tailwind classes within the.mdx
files is a stated feature but they do appear in data/blog/pictures-of-canada.mdx.This was functionality I needed. For this to work, I added to tailwind.config.js, adding
'./data/**/*.mdx'
to itsmodule.exports.content
array, which appeared to do the trick.Just thought I'd mention what I found in case the developers want this functionality! Maybe there is a better way, but this seems to work for me for now since I'm not using any remotely hosted
.mdx
.Beta Was this translation helpful? Give feedback.
All reactions