4 releases
0.2.0 | Sep 12, 2023 |
---|---|
0.1.7 | Sep 12, 2023 |
0.1.6 | Sep 12, 2023 |
0.1.5 | Sep 11, 2023 |
#19 in #style-sheet
25KB
465 lines
mkcss
mkcss is a simple CSS creation utility. It locates all the classes from your HTML documents and generates a stylesheet automatically.
Usage
# Use path from command line argument
~ $ mkcss /path/to/your/file.html
Stylesheet has been created successfully.
# Use path from console prompt
~ $ mkcss
Stylesheet has been created successfully.
To generate CSS with reset.css, use the --reset
flag like so:
~ $ mkcss /path/to/your/file.html --reset
Stylesheet has been created successfully.
For more commands, check out mkcss --help
Installation
Pre-built binaries for Linux, MacOS, and Windows can be found on the releases page.
Building
- Clone the project
git clone https://github.com/exact-labs/mkcss.git
- Open a terminal in the project folder
- Check if you have cargo (Rust's package manager) installed, just type in
cargo
- If cargo is installed, run
cargo build --release
- Put the executable into one of your PATH entries
- Linux: usually /bin/ or /usr/bin/
- Windows: C:\Windows\System32 is good for it but don't use windows
Dependencies
~9–21MB
~241K SLoC