You're probably looking for hacss/core.
This package just exists so you can run npx hacss
.
The core Hacss library
Home Page: https://hacss.io
License: MIT License
This package just exists so you can run npx hacss
.
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.
Unresolved variable "red500" vs. Unresolved at-scope "@sm"
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}!
.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.