DEV Community

loading...

Discussion on: Svelte is the most beautiful web framework I've ever seen

Collapse
jaxxeh profile image
Jaxxeh

Been toying with it the past few days, it's brilliantly put together and it really feels like the natural evolutionary step from React/Vue/Angular. And such a small footprint!

Svelte/Sapper + TailwindCSS + GraphQL, we're getting pretty close to Dev Nirvana here! 😎✨

Collapse
opensas profile image
opensas

what do you use to integrate svelte with Tailwind? I see there are a couple of templates but I'd like to know one that works flawlessly

Collapse
jaxxeh profile image
Jaxxeh

Follow-up to my previous comment about Svelte + Tailwind: If you're looking to use Tailwind with Sapper, this template works really well.

Collapse
jaxxeh profile image
Jaxxeh

I came across this interesting article a few days ago, and it worked as intended after I went through all the steps.

The author of the article put together a template here if you don't want to go through the hassle of manually replicating the steps from the article, though I haven't tried it myself.

Collapse
mattwaler profile image
Matt Waler

If you're using vanilla Svelte with Rollup, it's as easy as installing the PostCSS plugin for rollup and setting extract = true! I have a repo here: github.com/mattwaler/svelte-starter

Collapse
philippm profile image
Philipp Mildenberger

To complement the other question about Tailwind:

What are you using to integrate GraphQL, how well does it integrate (I guess Apollo-Client?)?

Collapse
jaxxeh profile image
Jaxxeh

I haven't tested GraphQL on Svelte yet, but yes, I would use Apollo. There is a 'svelte-apollo' package on npm that seems to be quite functional, the README has a few examples, including a Sapper/SSR one.

Having previously used Apollo in a NextJS project, I know how tricky it can be to integrate Apollo with an SSR framework and I don't really expect any different with Svelte. Hopefully I can find the time to play around with it soon! ;)