neojp / tailwindcss-line-clamp-utilities

Tailwind CSS `line-clamp` utilities
Other
20 stars 0 forks source link

Option to include some but not all lines? #1

Open christhofer opened 4 years ago

christhofer commented 4 years ago

Something like

  theme: {
    lineClamp: [2, 3]
  },
neojp commented 4 years ago

While do-able, I'd recommend using purgecss to remove unsused styles anyway.

christhofer commented 4 years ago

While do-able, I'd recommend using purgecss to remove unsused styles anyway.

Option like this can also be used if we need to clamp more than 10 lines. p.s not that I have any use case with that many lines.

neojp commented 4 years ago

Sorry for the misunderstanding. I agree with you and I'm planning to work on this. Thanks for the feedback!

However, I still recommend using PurgeCSS to clean up your Tailwind bundle afterwards :)

christhofer commented 4 years ago

I do use purge as the docs says purge: [ './src/**/*.vue', ], I just think that maybe it'd be useful to have configurable option.