Categories
Angular Tutorials

Tailwind Arbitrary classes in Angular host properties

I wanted to add different classes to the host element based on certain condition. I could add the classes in the accompanying style file. However, they won’t be available to be used on the host element. Unless I change the encapsulation mode to ViewEncapsulation.None. That removes the encapsulation and make the style declarations global. Which […]

Categories
Opinions

A Case for tailwind

I am gonna start fresh, I am will write semantic CSS. The You have a blog title that is different than other titles, little bigger, with underline. So I will use class like .blog-title now all of the styles goes here. But then you  have to have design .page-title, another heading that might share styles […]