Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Latest commit

 

History

History
27 lines (19 loc) · 454 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 454 Bytes

css2json.py

PyPI version

Convert style sheets to json. Python clone of kesla/css2json

Install

pip install css2json

Usage

>>> import css2json
>>> css2json.css2json("""
... p {
...     color: #222;
...     margin: 10px;
... }
... """)
'{"p": {"color": "#222", "margin": "10px"}}'
>>>