Extracting table styles to classes with @apply? Looking for best practice and/or "the Tailwind way". #8381
nonlocalize
started this conversation in
General
Replies: 1 comment
-
Anyone got a thought? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How would everyone handle this? Pretend
aa
is our brand identifier and we do not want to convert the table into components. Our app is very table-heavy and the goal is to make them easy to develop, so we want to extract table element styles.Option 1
Pros/cons: Cleaner markup, but the need to refer to stylesheets and parent selectors to know what's styled:
CSS:
Option 2:
Pros/cons: Explicit and clear class names, but verbose and redundant.
CSS:
Option 3:
Open to ideas!
Beta Was this translation helpful? Give feedback.
All reactions