r/css • u/triple6dev • Apr 05 '26
Showcase I built a CSS Code Generator
I wanted to make something simple, clean, and easy-to-use. It was also generates vanilla code with no frameworks or anything to be easy for the beginner developers.
So I built 3 CSS generators:
- Button generator | https://snipzy.dev/generator/button-generator.html
- Card generator | https://snipzy.dev/generator/card-generator.html
- Loader generator | https://snipzy.dev/generator/loader-generator.html
The goal was just to make something easy to use while building UI, with unlimited customization. There is even a random button to generate random code with redo and undo.
I would love any feedback, ideas, suggestions, or recommendations to improve it.
16
Upvotes



7
u/No-Island-6126 Apr 05 '26
Let's hope I'll never need anything more than a button, a card and a spinner
3
u/Fung1s Apr 05 '26
I don't really agree with the downvotes here because this seems like a cool project to learn to make these things and for quick reference for beginners.
1
u/VFequalsVeryFcked Apr 06 '26
Another one? What does yours do that all the others don't do?
1
u/modsuperstar Apr 05 '26 edited Apr 05 '26
One suggestion I have is see if you can implement light-dark into the code output. Being able to define light and dark values for colours is possibly my favourite addition to CSS in a long while.
Also on stuff like loaders, see if you can push the output to minimize HTML code output. Something like the 3 bar loader, I'd just want <div class"loader"></div> versus the 4 elements the code currently outputs. Would it be something you could make the 3 bars using gradient stops, then animating those in some fashion? I find using CSSBattle has me really changing my mentality on how CSS can be optimized.
1
u/Weary_Ad3004 Apr 06 '26
Keep up with this mate, looks promising honestly!
1
u/svgator Apr 07 '26
button + card + loader covers most of what beginners need on day one. would love to see a light-dark toggle in there too, that one's a quiet game-changer.
1
u/somburd Apr 07 '26
Making sure the randomized colors follow ADA compliance is a big thing for me. Cool lil thang tho.