https://github.com/attakei/sass-embedded-python
Python Sass binding using Dart Sass
https://github.com/attakei/sass-embedded-python
dart-sass dart-sass-embedded python sass
Last synced: 7 months ago
JSON representation
Python Sass binding using Dart Sass
- Host: GitHub
- URL: https://github.com/attakei/sass-embedded-python
- Owner: attakei
- Created: 2025-03-25T17:16:17.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-04-26T17:30:15.000Z (8 months ago)
- Last Synced: 2025-06-09T16:12:41.437Z (7 months ago)
- Topics: dart-sass, dart-sass-embedded, python, sass
- Language: Python
- Homepage:
- Size: 251 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
Awesome Lists containing this project
README
====================
sass-embedded-python
====================
Embedded Sass Host for Python.
.. important::
This is laboratory stage project. It does not ensure to continue development for goal.
Overview
========
This is Python project to compile Sass/SCSS using `Dart Sass `
that is primary implementation of Sass using Dart runtime.
Motivation
==========
I develop `sphinx-revealjs `_
that is Python Project to generate HTML presentation from reStructuredText or Markdown.
Reveal.js uses Sass to create presentation themes, and this uses ``sass:color`` module since v5.2.0.
But ``sphinxcontrib-sass`` does not compile themes, because this module is not supported by LibSass.
To resolve it, I am developing optional extension optimized sphinx-revealjs.
Concurrently I will develop generic project for multiple usecases.
This is the side of "generic project".
Project goal
============
Final goal is to have features as same as other "Sass Embedded" libraries.
But I will split some steps for it.
First goal
----------
Works as compile Sass/SCSS with subprocess-based actions.
- Provide single entrypoint to compile sources using Dart Sass native executable.
- Generate Dart Sass bundled bdist files every platforms.
Second goal
-----------
Works as "Sass Embedded Host for Python".
- Support `The Embedded Sass Protocol `_.
Third goal
----------
Works as alternative to ``libsass-python``.
- Support all api of ``libsass-python`` using Dart Sass native executable.
Support
=======
This project supports only Python 3.9+.
License
=======
I plan for Apache License 2.0.