nunomaduro/termwind

Styling issues with \e[0m

devacse opened this issue · 5 comments

Check this example

image

I am trying to use green-text color for the entire div. But after font-bold it resets all the styles.

image

Its because of \e[0m. Why are we resetting all the stylings?

Check this gist => https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797

To reset each style it has its own number (i.e bold=> \e[22m, italic => \e[23m ...)

Is there any specific reason for going with \e[0m?

This is after I used the style specific ending sequences instead of \e[0m.

image

Hey @devacse there is already a pull request to handle the style inheritance check #64. That should solve this one. Thanks.

@xiCO2k The above PRs examples also uses \e[0m. Not sure whether it will fix the issue or not. Anyway will wait for the PR merge.

And one more thing as per https://tailwindcss.com/docs/list-style-type the default list style for both ul & ol is none.
In termwind by default disc and decimal gets added. In case if I want no stylings for ul or ol is there any styles/classes available?

Not yet available, If you want to contribute with a list-none method I would be happy to review it, that's a good one.

Thanks @devacse

Sure! @xiCO2k