Coder Social home page Coder Social logo

core's Introduction

You're probably looking for hacss/core.

This package just exists so you can run npx hacss.

core's People

Contributors

dependabot[bot] avatar nsaunders avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

afcondon

core's Issues

Validate result

Consider this markup:

<h1 class="color:r">ed;</h1>

Generally speaking, Hacss is trying to match known properties, e.g. color, followed by a colon and some value (anything but whitespace), terminated by a semicolon.

Clearly r">ed is not a valid color value; but the whole color:r">ed; bit is matched anyway because it fits the pattern.

After each rule is generated, it probably needs to be validated somehow and thrown out if not valid. Perhaps it can be added in a comment at the end of the generated style sheet.

At-scope rule should be sorted to the bottom of the stylesheet

Say we have class="font-size:10px; @lg{font-size:20px}". If the @lg{font-size:20px} rule appears first, the corresponding media query will have no effect. This is because, unlike pseudo-selectors, media queries add no specificity. The only workaround that exists today is to add a priority, e.g. @lg{font-size:20px}!.

Scoping

Hacss should allow a scope to be specified. While this addresses somewhat of an edge case (Basement app), it's a lot cheaper for Hacss to add a scope than to use e.g. PostCSS.

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.