---
title: "Vihanga nivarthana (@vihanga) | Hashnode"
description: "Senior Software Engineer , Frontend. Read the latest articles by Vihanga nivarthana on Hashnode."
url: "https://hashnode.com/@vihanga"
---

@vihanga

# Vihanga nivarthana

@vihanga · SriLanka · Joined September 2022

Senior Software Engineer , Frontend

[Website](https://vihanga.dev/)

### [Hacking My Keychron K2 Pro to Report Its Battery to macOS](https://blog.vihanga.dev/hacking-my-keychron-k2-pro-to-report-its-battery-to-macos?utm_source=hashnode&utm_medium=feed)

Bring your Keychron K2 Pro battery level to macOS. Discover how custom QMK firmware and a lightweight Swift app deliver real-time battery monitoring through the menu bar and desktop widget.

12 min read · [blog.vihanga.dev](https://blog.vihanga.dev/hacking-my-keychron-k2-pro-to-report-its-battery-to-macos?utm_source=hashnode&utm_medium=feed)

[1d ago](https://hashnode.com/posts/hacking-my-keychron-k2-pro-to-report-its-battery-to-macos/6afbdb8c36c5b82b234c1c14)

### [Make Your Applications More Attractive Using SVG Animations — Part 2](https://blog.vihanga.dev/make-your-applications-more-attractive-using-svg-animations-part-2?utm_source=hashnode&utm_medium=feed)

Learn how to create SVG animations using CSS, explore stroke drawing effects, and discover tools for designing engaging, interactive web animations.

5 min read · [blog.vihanga.dev](https://blog.vihanga.dev/make-your-applications-more-attractive-using-svg-animations-part-2?utm_source=hashnode&utm_medium=feed)

[4](https://hashnode.com/posts/make-your-applications-more-attractive-using-svg-animations-part-2/6ade4389412d0977220f61cd) [Oct 25](https://hashnode.com/posts/make-your-applications-more-attractive-using-svg-animations-part-2/6ade4389412d0977220f61cd)

### [The CSS light-dark() Function](https://blog.vihanga.dev/the-css-light-dark-function?utm_source=hashnode&utm_medium=feed)

A Simpler Way to Handle Themes

4 min read · [blog.vihanga.dev](https://blog.vihanga.dev/the-css-light-dark-function?utm_source=hashnode&utm_medium=feed)

[Jun 9](https://hashnode.com/posts/the-css-light-dark-function/6a2859c152d5759b56ade590)

### [How I Built a Free Package Tracking Notifier with Cloudflare Workers](https://blog.vihanga.dev/how-i-built-a-free-package-tracking-notifier-with-cloudflare-workers?utm_source=hashnode&utm_medium=feed)

Get instant courier updates with a free Cloudflare Workers + IFTTT notifier. Never miss a package status change again.

5 min read · [blog.vihanga.dev](https://blog.vihanga.dev/how-i-built-a-free-package-tracking-notifier-with-cloudflare-workers?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/how-i-built-a-free-package-tracking-notifier-with-cloudflare-workers/68a0382e819235d14fa529a2) [Aug 16, 2025](https://hashnode.com/posts/how-i-built-a-free-package-tracking-notifier-with-cloudflare-workers/68a0382e819235d14fa529a2)

### [A Guide to Building a Custom Web Based JSON Editor with Syntax Highlighting using react](https://blog.vihanga.dev/custom-json-editor--deleted?utm_source=hashnode&utm_medium=feed)

Building a JSON editor from scratch can be tough, but I'll give you a simple guide to create your own with custom syntax highlighting without using any thri

5 min read · [blog.vihanga.dev](https://blog.vihanga.dev/custom-json-editor--deleted?utm_source=hashnode&utm_medium=feed)

[Dec 22, 2023](https://hashnode.com/posts/custom-json-editor--deleted/6585f9a1288c3925c8071455)
