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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help