Welcome to AltCSS, the opinionated, offbeat, lightweight CSS component library you didn't know you needed! 🎉
AltCSS is all about simplicity and style, without the fuss. It's built on Tailwind CSS and designed to make your web projects look sleek and modern with minimal effort.
Interested to know more about why I created this? Read this blog post.
To get started with AltCSS, add it to your project:
npm install altcss
pnpm add altcss
bun add altcss
Import AltCSS in your project (E.g. In sveltekit, you would import this under the script tag of +layout.svelte):
import 'altcss/alt.min.css';
And voilà! You're ready to go. Just use native html without any further CSS in your project.
Only these tags are supported at the moment. More will be added soon. To understand how to use them, you can refer to index.html.
h1
, h2
, h3
, h4
p
a
section
, article
div
elements with nested structuresHere's a quick example to see AltCSS in action: https://aditya-xq.github.io/altcss/
AltCSS is licensed under the MIT License. See the LICENSE file for more information.
Special thanks to the Tailwind CSS community for their amazing work. Also, special mention to ChatGPT/Copilot/Cody for being the awesome companions in helping with debugging, writing code and creative support.
This project is frequently updated.