All Projects → sass → Libsass Python

sass / Libsass Python

Licence: mit
A straightforward binding of libsass for Python. Compile Sass/SCSS in Python with no Ruby stack at all!

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Libsass Python

Scssphp
SCSS compiler written in PHP
Stars: ✭ 309 (-36.16%)
Mutual labels:  scss, sass
Gulp Scss Starter
Frontend development with pleasure. SCSS version
Stars: ✭ 339 (-29.96%)
Mutual labels:  scss, sass
Devportfolio
A lightweight, customizable single-page personal portfolio website template built with JavaScript and Sass
Stars: ✭ 3,582 (+640.08%)
Mutual labels:  scss, sass
Almace Scaffolding
AMSF, a.k.a. Almace Scaffolding, a super-fast Jekyll framework fighting against the website obesity.
Stars: ✭ 275 (-43.18%)
Mutual labels:  scss, sass
Trunk
Build, bundle & ship your Rust WASM application to the web.
Stars: ✭ 378 (-21.9%)
Mutual labels:  scss, sass
Styled Components Theme
Defines themes via flexible color selectors for use with styled-components
Stars: ✭ 302 (-37.6%)
Mutual labels:  scss, sass
Breakpoint Slicer
Slice media queries with ease
Stars: ✭ 332 (-31.4%)
Mutual labels:  scss, sass
Bulma Helpers
Library with missing Functional / Atomic CSS classes for Bulma framework
Stars: ✭ 263 (-45.66%)
Mutual labels:  scss, sass
Typesettings
A Sass or Stylus toolkit that sets type in Ems based on modular scale, vertical rhythm, and responsive ratio based headlines.
Stars: ✭ 380 (-21.49%)
Mutual labels:  scss, sass
Magento2 Theme Blank Sass
SASS based version of Magento 2 Blank theme
Stars: ✭ 373 (-22.93%)
Mutual labels:  scss, sass
Juice
Mixins for Life
Stars: ✭ 274 (-43.39%)
Mutual labels:  scss, sass
Progress Tracker
A HTML component to illustrate the steps in a multi step process e.g. a multi step form, a timeline or a quiz.
Stars: ✭ 461 (-4.75%)
Mutual labels:  scss, sass
Input Range Scss
Styling Cross-Browser Compatible Range Inputs with Sass
Stars: ✭ 272 (-43.8%)
Mutual labels:  scss, sass
Oruga
🐛 Oruga is a lightweight library of UI components without CSS framework dependency
Stars: ✭ 297 (-38.64%)
Mutual labels:  scss, sass
Sass Deprecate
Let Sass warn you about the pieces of your UI that are deprecated, providing a clear upgrade path for developers
Stars: ✭ 265 (-45.25%)
Mutual labels:  scss, sass
Pug Starter
Simple pug (jade) starter [framework] enabling faster delivery of HTML & CSS projects to a private server and/or automatic deployment of GitHub pages.
Stars: ✭ 328 (-32.23%)
Mutual labels:  scss, sass
Css
Believe in Better CSS
Stars: ✭ 262 (-45.87%)
Mutual labels:  scss, sass
Stylesheet
The GTK Stylesheet for elementary OS
Stars: ✭ 260 (-46.28%)
Mutual labels:  scss, sass
Sass Loader
Compiles Sass to CSS
Stars: ✭ 3,718 (+668.18%)
Mutual labels:  scss, sass
Motherplate
A bare bones responsive SCSS boilerplate for web designers
Stars: ✭ 392 (-19.01%)
Mutual labels:  scss, sass

libsass-python: Sass_/SCSS for Python

.. image:: https://badge.fury.io/py/libsass.svg :alt: PyPI :target: https://pypi.org/pypi/libsass/

.. image:: https://dev.azure.com/asottile/asottile/_apis/build/status/sass.libsass-python?branchName=master :target: https://dev.azure.com/asottile/asottile/_build/latest?definitionId=22&branchName=master :alt: Build Status

.. image:: https://img.shields.io/azure-devops/coverage/asottile/asottile/22/master.svg :target: https://dev.azure.com/asottile/asottile/_build/latest?definitionId=22&branchName=master :alt: Coverage Status

.. image:: https://results.pre-commit.ci/badge/github/sass/libsass-python/master.svg :target: https://results.pre-commit.ci/latest/github/sass/libsass-python/master :alt: pre-commit.ci status

This package provides a simple Python extension module sass which is binding LibSass_ (written in C/C++ by Hampton Catlin and Aaron Leung). It's very straightforward and there isn't any headache related Python distribution/deployment. That means you can add just libsass into your setup.py's install_requires list or requirements.txt file. Need no Ruby nor Node.js.

It currently supports CPython 2.7, 3.6--3.8, and PyPy 2.3+!

.. _Sass: https://sass-lang.com/ .. _LibSass: https://github.com/sass/libsass

Features

  • You don't need any Ruby/Node.js stack at all, for development or deployment either.
  • Fast. (LibSass_ is written in C++.)
  • Simple API. See the below example code for details.
  • Custom functions.
  • @import callbacks.
  • Support both tabbed (Sass) and braces (SCSS) syntax.
  • WSGI middleware for ease of development. It automatically compiles Sass/SCSS files for each request.
  • setuptools/distutils integration. You can build all Sass/SCSS files using setup.py build_sass command.
  • Works also on PyPy.
  • Provides prebuilt wheel_ binaries for Linux, Windows, and Mac.

.. _wheel: https://www.python.org/dev/peps/pep-0427/

Install

It's available on PyPI_, so you can install it using pip (or easy_install):

.. code-block:: console

$ pip install libsass

.. note::

libsass requires some features introduced by the recent C++ standard. You need a C++ compiler that support those features. See also libsass project's README_ file.

.. _PyPI: https://pypi.org/pypi/libsass/ .. _README: https://github.com/sass/libsass#readme

.. _example:

Example

.. code-block:: pycon

import sass print sass.compile(string='a { b { color: blue; } }') a b { color: blue; }

Docs

There's the user guide manual and the full API reference for libsass:

https://sass.github.io/libsass-python/

You can build the docs by yourself:

.. code-block:: console

$ cd docs/ $ make html

The built docs will go to docs/_build/html/ directory.

Credit

Hong Minhee wrote this Python binding of LibSass_.

Hampton Catlin and Aaron Leung wrote LibSass_, which is portable C/C++ implementation of Sass_.

Hampton Catlin originally designed Sass_ language and wrote the first reference implementation of it in Ruby.

The above three are all distributed under MIT license_.

.. _MIT license: https://mit-license.org/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].