What the CSS — Implementing Trigonometry in SCSS, and lessons learnt

CSS, at its core, is a style sheet language. But we can do so much more by using Sass with its SCSS syntax.

Weiyuan
The Startup

--

Original image, source: weiyuan

Preface (before the Trigonometry)

I love solving CSS problems ♥️ .

It’s like a guilty pleasure of mine, to work on them late at night 😏 after work like a hobby, outside of all the other backend or DevOps work that I do.

These problems appeal to me because there are many different ways to solve each of these problems. Not to mention that there is a wide range of designs for websites serving different features, leading to a wide array of solutions to be discovered out there.

But vanilla CSS is kind of meh…

Original image, source: pixabay

CSS is restricted to rules provided by the style sheet language. This also meant that we could not apply programming principles when designing styling solutions, which rely on constructs like functions and variables.

--

--

Weiyuan
The Startup

Senior Engineering Manager, Ascenda Loyalty | Former Engineering Manager, Grab | Former Director of Engineering, ZilLearn | bit.ly/weiyuan