CSS Extraction Library for Vite and Preact
github.com·8h·
Flag this post

preact-css-extract

This package provides the following two main features: a vite plugin for compile-time css extraction and a custom preact classList prop integration based on clsx.

This is inspired by EmotionCSS (that is a bit outdated to my understanding and it doesn’t support ViteJS and Preact together) and VueJS class attributes. Also I don’t want to use heavy css-in-js solutions or TailwindCSS (for various reasons).

Overview

This project provides tools for managing component styling at build time while maintaining a clean, developer-friendly API. It includes:

CSS Extract Plugin: A Vite plugin that processes templa…

Similar Posts

Loading similar posts...