Our great sponsors
-
svelte-preprocess
A ✨ magical ✨ Svelte preprocessor with sensible defaults and support for: PostCSS, SCSS, Less, Stylus, Coffeescript, TypeScript, Pug and much more.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
svelte-tailwind-nx-template
A template repository including a Nrwl Nx workspace and a Svelte application configured to use Tailwind
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
All this file does is export a configuration object for the build of our Svelte application. By default, it uses the svelte-preprocess package, which is a preprocessor for Svelte providing support for PostCSS, SCSS, TypeScript, and much more.
Tailwind is more popular than ever. If you've been following me, you know that I'm a huge fan. Recently I've started exploring Svelte, and wanted to know how to combine it with Tailwind. Not only that, but I also wanted to use Nrwl NX. This is a summary of my findings.
Third, we enable the postcss-preset-env plugin, which adds support for many other cool things
If you're in a hurry, then you can use the template I've prepared and published on Github with the results of this experiment. You can find it here: https://github.com/dsebastien/svelte-tailwind-nx-template
In this article, I'll show you how to create a Svelte application with Nrwl NX and how install/configure Tailwind.
PostCSS is a CSS processor that Tailwind relies on to do its magic.
In this article, I'll show you how to create a Svelte application with Nrwl NX and how install/configure Tailwind.
Related posts
- Those of you who have built your own personal website or blog, what tech stacks do you use?
- Landing Starter Template based on TailwindCSS, AlpineJs and build on esbuild and PostCSS
- PostCSS - my initial experience
- Dark Mode with SvelteKit, a Blog Post
- Native CSS nesting now supported by all major browsers!