css-knife

Crates.iocss-knife
lib.rscss-knife
version0.1.6
sourcesrc
created_at2023-10-05 14:06:26.065997
updated_at2023-12-14 14:40:36.787642
descriptionA tool for shortening css classes
homepagehttps://github.com/uros-5/css-knife
repositoryhttps://github.com/uros-5/css-knife
max_upload_size
id994124
size155,056
Uros Mrkobrada (uros-5)

documentation

README

Logo for css-knife

css-knife

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(css-knife.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
Commit count: 25

cargo fmt