Install via npm: npm install luxcss ·
Full framework guide →
200+ attributes covering styling, layout, motion, components, and JS interactions — all from plain HTML.
Building the future of CSS.
Lux is an attribute-first CSS + JS library. Style and interact with HTML elements purely through attributes — no class names needed.
Tailwind uses utility classes. Lux uses semantic HTML attributes. Your markup stays clean and readable, and you get JS-powered interactions for free.
Zero. Drop a <link> and <script> tag in your HTML and you're live. Works in React, Vue, Svelte, or plain HTML.
Lux ships with built-in tab panels. Click a tab above to switch. Panels animate in with a smooth slide-up. No JS needed on your end.
Access the JS API: Lux.toast(msg, opts), Lux.confetti(opts), Lux.openModal(el), and more.
This modal was created with zero JavaScript on your end.
Just add modal-backdrop and modal attributes, and a button with modal-open.
Lux handles the rest — animations, backdrop blur, ESC key, and focus management.
Drawers slide in from any side: right, left, top, or bottom.
Just set drawer-side="right".