Skip to main content

CSS Manifest driven styleguide for your project

Project description

A Python library to build a styleguide from a CSS manifest file.

Goal

Many styleguide builders stand on comments in Sass or CSS sources. This is very verbose in sources and sometime requires you to maintain every variables values when you change them in sources.

In our modern era we mostly build CSS from Sass or Less sources with variables/settings. This library encourages you to describe and structure your variables in a manifest which will be compiled to a dedicated CSS file.

Manifest syntax rules are valid CSS (mostly using CSS3 variables).

Then the CSS manifest is parsed to return a Python object with all your descriptions so you can use them to build your styleguide in code or a template.

Features

  • A Sass source with some mixin helpers to help you to write CSS manifest from your Sass sources;
  • An interface to load a CSS manifest and return it as dictionnary of datas;
  • Django mixin and view to load manifest from your project or application (this library does not require Django, so you may use it in another way);

Dependancies

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for py-css-styleguide, version 0.8.1
Filename, size File type Python version Upload date Hashes
Filename, size py-css-styleguide-0.8.1.tar.gz (17.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page