Git Product home page Git Product logo

anchovy-css's Introduction

PyPI - Project Version PyPI - Python Version GitHub - Project License GitHub - Code Size codecov

Anchovy CSS

anchovy-css is a pure-Python CSS pre-processor. The key feature it currently offers is arbitrary selector and media query nesting. Future releases will add more feature parity with established competitors, adding inclusions, features flags, and custom properties/functions.

Installation

anchovy-css includes wheels which can be installed using pip: pip install anchovy-css.

Alternatively, anchovy-css may be installed directly from source: pip install git+https://github.com/pydsigner/anchovy-css.

anchovy-css's People

Contributors

pydsigner avatar

Stargazers

 avatar

Watchers

 avatar  avatar

anchovy-css's Issues

Add support for custom properties

p {
    my-property: 10px;
}

It would be easiest to support these in Python, but maybe more useful to allow them in Anchovy CSS as well:

@anchovy-property (my-property, --size) {
    margin-left: calc(-2 * arg(--size));
    padding: arg(--size) 0;
}

Switch to lightningcss from tinycss2

tinycss2 offers a huge amount of flexibility as it produces a detailed AST out of any syntactically valid input. However, it does not offer much help for transformations. Meanwhile, lightningcss ships with baked-in support for our key functionality, and with hooks that would make our future functionality much easier to implement. While we would need to wait for pydsigner/python-lightningcss#1, there's huge potential available to get rid of brittle parser logic and make extending anchovy-css even simpler.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.