Building a New Home
I’ve been meaning to start a blog for a while now. I’ve always enjoyed writing, and I’ve been eager to share my thoughts and experiences with the world. However, I’ve been held back by the complexity of setting up a blog. I wanted something simple, fast, and easy to maintain. I didn’t want to deal with databases, server-side rendering, or complex build processes. I wanted to focus on writing and sharing my thoughts without worrying about the technical details.
Discovering JAMStack
Enter JAMStack, a modern web development architecture. When I stumbled upon it, I thought it might be the perfect fit for my needs. The beauty of JAMStack is the array of free hosting and platforms available, such as Vercel, Netlify, Github Pages, and Cloudflare Pages. After considering my options, I opted for Vercel due to its user-friendly interface and free personal use option.
For the static site generator, I chose Astro. Its framework-agnostic approach and familiar HTML-like coding environment won me over. Although I experimented with NextJS and NuxtJS, I found Astro’s lightweight nature and optimal performance more suitable for a simple blog.
Simplifying CSS with UnoCSS
CSS can be challenging, not just in terms of syntax but also when dealing with bundling and maintaining a modular and reusable codebase. Various CSS frameworks like TailwindCSS, Bootstrap, and Bulma aim to ease this pain, but choosing the right one can be a headache.
That’s when I stumbled upon UnoCSS, a CSS engine rather than a framework. It proved to be powerful and enjoyable, especially when combined with its Uno Preset, akin to Tailwind and WindiCSS. The syntax is familiar, as shown below:
This UnoCSS snippet compiles to the following CSS, handling custom properties like bg-#272d44
and text-20px
with ease:
UnoCSS’s engine capabilities make it a standout choice, providing both power and simplicity. The best part? It’s lightning-fast and remarkably easy to use. Oh! did i mention that unocss support a lot of preset from icon, atributify, transformers, and extractor.
Wrapping Up
That’s all for now. I’m excited about the future possibilities with this tech stack and can’t wait to share more in the coming days. Stay tuned!