
Product
Introducing Socket Scanning for OpenVSX Extensions
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
csshat-language-less
Advanced tools
This is a template for CSS Hat 2 that generates code in Less language (using LESS Hat Library).
If you have a layer with more text styles, template will output just first complete style with all properties and the others will be just diffs (useful if they are childs of the main element - for example <strong> in <p>)
font-family: "Helvetica";
font-size: 12px;
font-weight: bold;
It will add curly braces and selector to the output
.layer-name {
color: #000000;
}
We try to autogenerate a selector from layer name. You can choose which type it should be
| Option | Example |
|---|---|
| class | .button |
| id | #button |
| element | button |
Choose your preferred color syntax.
Note that if you select hex, sometimes it may actually output an
rgba, because hex has no option to express alpha.
Use this if you are using an outdated Less compiler. It will wrap all mixin params to quotes, so Less Hat won't break. However in most cases - do not use this option.
If you have text layer with more styles (various text sizes, colors, …), it will show you snippet of text in comment, so you know which rule relates to which part of content
FAQs
Less language
We found that csshat-language-less demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies