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 am struggling to use tailwindcss to generate html files using tailwindcss - I've setup the asset_host to load images but not all tailwind styles are loaded - here's my code
WickedPDF uses wkthmltopdf under the hood, which only supports a small amount of CSS3 stuff, you may need to add another CSS file or <style> tag and use some old-school circa 2010 CSS to add the missing styles.
I'm going through the process of setting Tailwind up to integrate with wicked_pdf. I have it working, but thanks to the limited CSS support there are quite a few quirks.
The most important quirk so far: wicked will only let us link to a stylesheet included in app/assets/stylesheets, and not in some other location like app/assets/build. So, my Tailwind command looks like:
Issue description
I am struggling to use tailwindcss to generate html files using tailwindcss - I've setup the asset_host to load images but not all tailwind styles are loaded - here's my code
I am using some custom tailwind classes as well like h-[200px] etc.
Expected or desired behavior
Html page should be loaded with all tailwind css styles
System specifications
MacOS 14.4.1 (23E224), M1 Pro
wicked_pdf gem version (output of
cat Gemfile.lock | grep wicked_pdf
): 2.8.1wkhtmltopdf version (output of
wkhtmltopdf --version
): 0.12.6whtmltopdf provider gem and version if one is used:
platform/distribution and version (e.g. Windows 10 / Ubuntu 16.04 / Heroku cedar): MacOS 14.4.1 (23E224), M1 Pro
The text was updated successfully, but these errors were encountered: