Compiling CSS With Vite and Lightning CSS

Are partials the only thing keeping you writing CSS in Sass? With a little configuration, it's possible to compile partial CSS files without a Sass dependency. Ryan Trimble has the details.


Compiling CSS With Vite and Lightning CSS originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.

https://css-tricks.com/compiling-css-with-vite-and-lightning-css/

Created 1mo | Feb 3, 2025, 3:40:18 PM


Login to add comment

Other posts in this group

Powering Search With Astro Actions and Fuse.js

With Astro, we can generate most of our site during our build, but have a small bit of server-side code that can handle search functionality using something like Fuse.js. In this demo, we’ll use Fu

Mar 11, 2025, 4:30:08 PM | CSS tricks
Smashing Meets Accessibility

The videos from Smashing Magazine's recent event on accessibility were just posted the other day. I was invited to host the panel discussion with the speakers, including a couple of personal heroes

Mar 10, 2025, 5:20:06 PM | CSS tricks
A CSS-Only Star Rating Component and More! (Part 2)

In this second article of a two-part series, Temani Afif demonstrates an alternative approach to creating the star rating component from the first article using experimental scroll-driven animation

Mar 7, 2025, 3:10:06 PM | CSS tricks
Maybe don’t use custom properties in shorthand properties

This easily qualifies as a "gotcha" in CSS and is a good reminder that the cascade doesn't know everything all at the same time. If a custom property is invalid, the cascade won't ignore it, and it

Mar 6, 2025, 6:10:27 PM | CSS tricks
Grouping Selection List Items Together With CSS Grid

Preethi demonstrates how to make a user interface to group selected items using CSS Grid using two different methods: the auto-fill keyword for stable layouts and the span keyword for flexible arra

Mar 5, 2025, 2:30:07 PM | CSS tricks
Functions in CSS?!

Arguments?! Return values?! What's crazier, you can use functions right now in Chrome Canary! So, after reading and playing around, here are my key insights on what you need to know about CSS Funct

Mar 3, 2025, 1:40:27 PM | CSS tricks
A CSS-Only Star Rating Component and More! (Part 1)

In this article, you'll learn how to make a full-on star rating component out of nothing but a single input element and vanilla CSS.


Feb 28, 2025, 4:11:28 PM | CSS tricks