How to Use Tailwind on a Svelte Site

Let’s spin up a basic Svelte site and integrate Tailwind into it for styling. One advantage of working with Tailwind is that there isn’t any context switching going back and forth between HTML and CSS, since you’re applying styles as …

The post How to Use Tailwind on a Svelte Site appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/how-to-use-tailwind-on-a-svelte-site/

Établi 4y | 12 mars 2021 à 19:20:44


Connectez-vous pour ajouter un commentaire

Autres messages de ce groupe

Some Things You Might Not Know About Custom Counter Styles

I was reading through Juan’s recent Almanac entry for the @counter-style at-rule and I’ll be darned if he didn’t uncover and unpack some extremely interesting things

23 janv. 2025 à 17:40:29 | CSS tricks
Creating a “Starred” Feed

Chris wrote about “Likes” pages a long while back. The idea is rather simple: “Like” an item in your RSS reader and dis

21 janv. 2025 à 14:40:17 | CSS tricks
Fancy Menu Navigation Using Anchor Positioning

Anchor positioning can be great for little interactive effects — as Temani Afif shows off with this clever idea for a menu hover.


17 janv. 2025 à 15:40:06 | CSS tricks
Web-Slinger.css: Across the Swiper-Verse

Lee Meyer with a super clever idea using scroll-driven animations as an interaction to "like" or "dislike" something.


15 janv. 2025 à 17:20:12 | CSS tricks
A Few Ways That Cloudways Makes Running This Site a Little Easier

(This is a sponsored post.)

It’s probably no surprise to you that CSS-Tricks is (proudly) hosted on

14 janv. 2025 à 15:50:06 | CSS tricks
How to Wait for the sibling-count() and sibling-index() Functions

Today, I want to look into one of those cases of impatient and how the community has waited for that feature, to be specific, two upcoming functions: sibling-count() and sibling-index().


13 janv. 2025 à 16:40:05 | CSS tricks