Skip to content

Feature request: toggle show/hide classnames #313

Closed
@julienma

Description

@julienma

Hey,
Tailwind is awesome. A minor downside though is that my HTML is much denser, less easy to scan, because of all the new class names.

I'd like a way to collapse all Tailwind classes, while keeping visible custom classes, such that it becomes easier to scan when I need to focus on my HTML. A keyboard shortcut to toggle visibility would be great (I think), e.g.

turn this:

<div class="flex items-start self-center mt-3">
  <div class="flex items-center h-5">
    <input name="yo" type="checkbox" class="w-4 h-4 text-red-600 border-gray-300 rounded focus:ring-indigo-500 my-custom-class" value="1">
  </div>
</div>

to this:

<div class="•••">
  <div class="•••">
    <input name="yo" type="checkbox" class="••• my-custom-class" value="1">
  </div>
</div>

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions