KyleAMathews/typography.js

Gracefully prevent styles from being applied

wheredoesyourmindgo opened this issue · 2 comments

Is there a more graceful way to prevent a style from being applied? Feel free to close out this issue. I just want to prevent these selectors from being used. The following works in my options, but it still causes an empty CSS rule to be included with the stylesheet.

const theme: OptionsType = {
 overrideStyles: () => ({
    'th:first-child,td:first-child': null,
    'th:last-child,td:last-child': null
  })
}

Having exactly the same problem.

Here in 2023 after getting insanely frustrated with these awful default style choices... questioning why someone decided to use this library back in 2018.