#tailwind #css-class #css #html

bin+lib not-tailwind

A tool for shortening css classes

2 releases

0.1.8 Nov 24, 2024
0.1.7 Mar 26, 2024

#1647 in Command line utilities

Download history 7/week @ 2024-09-20 3/week @ 2024-09-27 122/week @ 2024-11-22 16/week @ 2024-11-29 8/week @ 2024-12-06

146 downloads per month

MIT license

47KB
760 lines

not-tailwind logo not-tailwind logo
crates.io build status

not-tailwind

Shorten those long TailwindCSS classes

This is your HTML in development:

  <div class="text-red-600 px-2 bg-green-200 md:text-md lg:text-lg xl:text-xl custom-font dark:text-green-200 dark:bg-red-500">
    Hello World
  </div>

And here is in production:

  <div class="c b a g h i custom-font f d">
    Hello World
  </div>

Configuration(not-tailwind.toml):

html_dir = ["web/src/templates"]
css_dir = ["web/src/css"]
js_dir = ["web/src/js"]
assets_dir = ["web/src/svg"]
output_dir = "prod"

Dependencies:

Installation

cargo install --path=. --force

Dependencies

~24–34MB
~547K SLoC