You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran in this issue literally today, and the answer is that unfortunately there is no native way to do this currently. Well, at least I couldn't find a native way of doing this.
There are some open issues related to this: #132 #262 #740
But you have a few non native options.
You could use gcss: https://github.com/AccentDesign/gcss
If you are using tailwind, you can read env vars from your tailwind.config.js file
Lastly, you can create your own type that implements the templ.Component interface, this is what I ended up doing.
For example:
I want to add critical css and dynamic paths in templ, is it not possible to have css dynamic?
Also, the syntax highlighting is off inside style tags.
Will it be supported?
What’s the alternative, how do I approach this problem?
The text was updated successfully, but these errors were encountered: