How to use TailwindCSS wtih @nxext/svelte?
See original GitHub issueHey, how can I use TailwindCSS properly with Svelte?
I’ve tried to use custom rollup.config.js,
but it does not work.
Always received the following error:
Error during bundle: Unexpected character '@' (Note that you need plugins to import files that are not JavaScript
)
I think something is with postcss, but not sure.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Install Tailwind CSS with Nuxt.js
Using npm, install tailwindcss and its peer dependencies, as well as @nuxt/postcss8 , and then run the init command to generate the tailwind.config.js...
Read more >Pairing Nuxt 3 with TailwindCSS and Supabase
Learn how to work with TailwindCSS and Supabase in Nuxt 3 projects.
Read more >How to Build a To-do app with Svelte, Strapi & Tailwind CSS
In the tutorial, we will build REST API using Strapi and consume our data from the client-side using Axios and make our components...
Read more >How to use Tailwind CSS with Svelte
Create beautiful, custom components with Tailwind CSS to style your Svelte app using this step-by-step tutorial.
Read more >How to Install Tailwind CSS 3 in Nuxt 3 - Frontendshape
Create Nuxt 3 Project. Run below command to create nuxt 3 project. ... After run it look like this, so follow the setps....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Wow, cool. It just works. And as we are adding tailwind into
.svelte
, we can use@apply
. 🎉 Also, with this configuration, we could usepurge
in development to improve postcss performance(tailwind.config.js)
:@andrasbacsai I added another maybe helpful option to archive that, you’re able to hook in a method to configure the svelte preprocessor with something like this:
now you’re able to e.g. add a Tailwind.svelte with
and import it in your app component