You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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 should I name classes that can be potentially be too long?
Working Tailwind Play (with dis javascript): https://play.tailwindcss.com/tQSnU0tOUe
Source: https://github.com/downwindcss/text-decoration/tree/composable (disregard README as it's not up to date).
Context
Creating a composable
text-decoration
plugin following Adam's Composing the Uncomposable with CSS Variables post.text-decoration has many properties.
Issue
The problem is that, class names prefixed with
text-decoration-
can be too long (resulting in bigger bytes and more keyboard strokes).So my workaround was to prefix with
td-
instead oftext-deocration-
but doesn't make it look as readable.Would it be better naming convention? (
td-
ortext-decoration-
)?Beta Was this translation helpful? Give feedback.
All reactions