
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
AutoCSS is a tool that generates CSS from a simple syntax that can be written as class-names in a HTML-document. It can be used to implement complex designs while keeping your CSS line-count to a minimum.
AutoCSS is a tool that generates CSS from a simple syntax that can be written as class-names in a HTML-document. It can be used to implement complex designs while keeping your CSS line-count to a minimum.
<div class="pa:4 c:$white bc:$pink">
HELLO
</div>
Produces the following CSS:
.pa\:4 {
padding: 4rem;
}
.c\:white {
color: var(--color-white);
}
.bc\:hotpink {
background-color: var(--color-pink);
}
This example uses variables, so you will have to set them manually, using CSS4:
:root {
--color-white: white;
--color-pink: hotpink;
}
Or SASS:
$color-white: white;
$color-pink: hotpink;
d:b -> display: block
d:ib -> display: inline-block
d:b@m -> display: block @ media device-width < 420px
c:#fff -> color: #fff
bc:#000 -> background-color: #000
c:$a -> color: var(--color-a)
bc:$b -> background-color: var(--color-b)
fs:1 -> font-size: 1rem
fs:24px -> font-size: 24px
lh:1 -> line-height: 1
lh:30px -> line-height: 30px
See autocss.options.map for a complete list of properties.
See .../autocss-demo.git for usage examples.
Yes, setting variableTemplate to "$$name" will produce SASS-compatible output.
Yes, there's a (very basic) gulp plugin, see gulp-autocss.
You have a few alternatives:
FAQs
AutoCSS is a tool that generates CSS from a simple syntax that can be written as class-names in a HTML-document. It can be used to implement complex designs while keeping your CSS line-count to a minimum.
We found that autocss demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.