A simple CLI tool to generate CSS skeleton from HTML
Project description
🛠html2css
A simple Python CLI tool that automatically generates a CSS skeleton (style.css) from an HTML file.
No need to manually type selectors — just run a command and let it do the work for you.
update(v1.0.1)
-nth-child selector support: Now correctly applies :nth-child(n) to repeated HTML tags that do not have unique id or class attributes.
-Handles repeated ids and classes gracefully with appropriate structural nesting.
-Introduced ^= (starts-with) selector handling for dynamic or pattern-based attribute detection.
🚀 Features
- Detects HTML tags, IDs, and class names
- Outputs a starter
style.csswith all selectors structured - Includes responsive media queries
- Works globally via the
html2csscommand
📦 Installation (after publishing to PyPI)
pip install --upgrade html2css
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
html2css-1.0.2.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file html2css-1.0.2.tar.gz.
File metadata
- Download URL: html2css-1.0.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d9c33fed02879716a019fcfae99340a4830f50a6d060bb357307db25fbc06fc
|
|
| MD5 |
ed764cd49bae311db982ba7963444f92
|
|
| BLAKE2b-256 |
a6e1fbd690bce40c8bbd415626f0121dd80c9720e76f395902229b0aae30cc00
|
File details
Details for the file html2css-1.0.2-py3-none-any.whl.
File metadata
- Download URL: html2css-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8db7f9a5ed81a14e0efd5ca074a0f970b2c1e9844fc0ff160ce595bc25ec0177
|
|
| MD5 |
53c0e3004afbc190db2a6b8bbafdd66b
|
|
| BLAKE2b-256 |
391642ae14a1f59a656df6e1657c17f7dea03a0f7aa6938a0f60736b1bc5c514
|