
Security News
Next.js Patches Critical Middleware Vulnerability (CVE-2025-29927)
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.
The goal of Sugar is certainly not to tells you how to organize your project. It's just like a sugar in the coffee, you choose the coffee, Sugar enhance it with a nice touch!
Sugar has a lots of cool mixins to help you write cleaner scss:
.my-cool-element {
@include s-font(12px helvetica bold underline uppercase nowrap right);
}
This will give:
.my-cool-element {
font-size : 12px;
font-family : helvetica;
font-weight : bold;
text-decoration : underline;
text-transform : uppercase;
white-space : nowrap;
text-align : right;
}
Importing sugar
@import "sugar/sugar"
Configure your sugar :
@include sugar((
typo : (
font-size : 13px
// etc...
),
colors : (
orange : #f2bc2b
// your colors here...
),
transition : (
// your transitions settings here...
)
// and many more settings by packages
// like font-awesome, modular-scale,
// animate.css, BEM, etc...
));
@include sugar(classes);
.pull-left, .pull-right
.m-t-{size}, .m-b-{size}, .m-l-{size}, .m-r-{size}, .m-s-{size}
.p-t-{size}, .p-b-{size}, .p-l-{size}, .p-r-{size}, .p-s-{size}
.text-left, .text-right, .text-center, .text-justify, .text-uppercase, .text-lowercase, .text-capitalize
.c-{color}, .bkg-{color}
// and many more
.h1 {
@include s-vertical-rhythme((
s-font : 30px helvetica uppercase,
margin-botton : 20px
));
}
.my-font-element {
@include s-font(12px s-color(orange, light) uppercase underline nowrap);
}
.popover {
// an orange bubble with an arrow top 20px
@include s-bubble(top s-color(orange) 20px);
}
// and many more mixins and functions...
Sugar comes with some nice packages like font-awesome, animate.css, etc... out of the box. These packages are optimized to generate only the css you need!
You can choose or not to use the embeded packages. Nothing stop you to install them by yourself and use the versions you want...
Sugar offer you a lot of features and advanced settings that you can discover on the full website.
Generator | Version | |
---|---|---|
![]() | Sass | 3.4.18 |
![]() | Gulp | 3.9.0 |
NPM | 2.5.1 | |
![]() | Libsass | 3.3.3 |
![]() | Grunt | 0.4.4 |
FAQs
Writing SCSS has never tasted better!
The npm package sugarcss receives a total of 783 weekly downloads. As such, sugarcss popularity was classified as not popular.
We found that sugarcss 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
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.